|
Posted at 9/1/2017 19:59:01
Only Author
3#
This is what I found so far:
The lock screen is apparently bypassed by default for box configurations as used by the firefly AOSP build. App limiting does work for some apps but not for the pre-installed rk apps.
Locally did the following to get the lock screen (re)enabled.
{{{
diff --git a/frameworks/base/services/core/java/com/android/server/am/ActivityRecord.java b/frameworks/base/services/core/java/com/android/server/am/ActivityRecord.java
index bbf7dc8..4c758c7 100644
--- a/frameworks/base/services/core/java/com/android/server/am/ActivityRecord.java
+++ b/frameworks/base/services/core/java/com/android/server/am/ActivityRecord.java
@@ -1249,16 +1249,18 @@ final class ActivityRecord {
}
void windowsDrawnLocked() {
+// revert to stock android to have keyguard
//Launcher is drawn completed,box can exit bootanim, other product wait for keygurad drawn
- if(shortComponentName!=null && !shortComponentName.contains(".FallbackHome") && !"1".equals(SystemProperties.get("service.bootanim.exit")))
- {
- if(!"tablet".equals(SystemProperties.get("ro.target.product")))
- {
- SystemProperties.set("service.bootanim.exit", "1");
- SystemService.stop("bootanim");
- Log.d("xzj","----not tablet,launcher drawn done,exit bootanim----");
- }
- }
+// if(shortComponentName!=null && !shortComponentName.contains(".FallbackHome") && !"1".equals(SystemProperties.get("service.bootanim.exit")))
+// {
+//
+// if(!"tablet".equals(SystemProperties.get("ro.target.product")))
+// {
+// SystemProperties.set("service.bootanim.exit", "1");
+// SystemService.stop("bootanim");
+// Log.d("xzj","----not tablet,launcher drawn done,exit bootanim----");
+// }
+// }
mStackSupervisor.mActivityMetricsLogger.notifyWindowsDrawn();
if (displayStartTime != 0) {
reportLaunchTimeLocked(SystemClock.uptimeMillis());
diff --git a/frameworks/base/services/core/java/com/android/server/policy/keyguard/KeyguardServiceDelegate.java b/frameworks/base/services/core/java/com/android/server/policy/keyguard/KeyguardServiceDelegate.java
index da8c591..a5d1513 100644
--- a/frameworks/base/services/core/java/com/android/server/policy/keyguard/KeyguardServiceDelegate.java
+++ b/frameworks/base/services/core/java/com/android/server/policy/keyguard/KeyguardServiceDelegate.java
@@ -144,8 +144,8 @@ public class KeyguardServiceDelegate {
resources.getString(com.android.internal.R.string.config_keyguardComponent));
intent.addFlags(Intent.FLAG_DEBUG_TRIAGED_MISSING);
intent.setComponent(keyguardComponent);
-
- boolean isBox = isBox();
+ // Revert to default android as want the lock screen
+ boolean isBox = false;//isBox();
if (isBox || !context.bindServiceAsUser(intent, mKeyguardConnection,
Context.BIND_AUTO_CREATE, mScrimHandler, UserHandle.SYSTEM)) {
}}}
The ro.rk.install_non_market_apps being set to true result in an restricted profile always being allowed to install apk's
Setting a different wallpaper only seems to work through modifing the wallpaper file with adb for now.
Battery level can be adjusted using adb "adb shell dumpsys battery set level 99" |
|