Merge "Force system ApplicationInfo update and notify DisplayManager" into qt-dev am: 70e0438d59 am: ad982e23cc

am: 5639e2cf29

Change-Id: I1b36abe72d903e11f2fa168a242e67053252c8cd
This commit is contained in:
Winson
2019-05-20 22:03:59 -07:00
committed by android-build-merger
4 changed files with 46 additions and 2 deletions

View File

@@ -36,6 +36,7 @@ import android.content.res.Configuration;
import android.content.res.Resources.Theme;
import android.database.sqlite.SQLiteCompatibilityWalFlags;
import android.database.sqlite.SQLiteGlobal;
import android.hardware.display.DisplayManagerInternal;
import android.net.NetworkStackClient;
import android.os.BaseBundle;
import android.os.Binder;
@@ -792,6 +793,12 @@ public final class SystemServer {
mSystemServiceManager.startService(new SensorPrivacyService(mSystemContext));
traceEnd();
if (SystemProperties.getInt("persist.sys.displayinset.top", 0) > 0) {
// DisplayManager needs the overlay immediately.
mActivityManagerService.updateSystemUiContext();
LocalServices.getService(DisplayManagerInternal.class).onOverlayChanged();
}
// The sensor service needs access to package manager service, app ops
// service, and permissions service, therefore we start it after them.
// Start sensor service in a separate thread. Completion should be checked