fix safeMode status in AppWidgetService
AppWidgetService uses safemode value that defined on SystemServiceManager.
however mSystemServiceManager.setSafeMode never called.
therefore AppWidgetService doesn't know whether safemode or not in boot phase.
In safemode, it causes NullPointerException in parsing function.
after that all of placed widgets disappear at launcher app.
Change-Id: I7576dcba7a2f548b2afa48ff2c700372c6920fe8
diff --git a/services/java/com/android/server/SystemServer.java b/services/java/com/android/server/SystemServer.java
index 7871147..63f2271 100644
--- a/services/java/com/android/server/SystemServer.java
+++ b/services/java/com/android/server/SystemServer.java
@@ -1035,6 +1035,8 @@
reportWtf("making Display Manager Service ready", e);
}
+ mSystemServiceManager.setSafeMode(safeMode);
+
// These are needed to propagate to the runnable below.
final MountService mountServiceF = mountService;
final NetworkManagementService networkManagementF = networkManagement;