diff --git a/core/api/system-current.txt b/core/api/system-current.txt
index ce408d1a80f17..03daf992ce195 100644
--- a/core/api/system-current.txt
+++ b/core/api/system-current.txt
@@ -379,6 +379,7 @@ package android {
field public static final int config_systemSpeechRecognizer;
field public static final int config_systemTelevisionNotificationHandler;
field public static final int config_systemTextIntelligence;
+ field public static final int config_systemUi;
field public static final int config_systemUiIntelligence;
field public static final int config_systemVisualIntelligence;
field public static final int config_systemWellbeing;
diff --git a/core/res/AndroidManifest.xml b/core/res/AndroidManifest.xml
index 925a212d10cbd..23243ca242ece 100644
--- a/core/res/AndroidManifest.xml
+++ b/core/res/AndroidManifest.xml
@@ -5569,12 +5569,12 @@
+ android:protectionLevel="internal|role" />
+ android:protectionLevel="internal|role|installer" />
+
+ com.android.systemui
com.android.stk
diff --git a/core/res/res/values/public.xml b/core/res/res/values/public.xml
index f6a67d2ae7105..51e34477724f9 100644
--- a/core/res/res/values/public.xml
+++ b/core/res/res/values/public.xml
@@ -3227,6 +3227,8 @@
+
+
diff --git a/services/java/com/android/server/SystemServer.java b/services/java/com/android/server/SystemServer.java
index 912b8cad952c8..75996b8e099b0 100644
--- a/services/java/com/android/server/SystemServer.java
+++ b/services/java/com/android/server/SystemServer.java
@@ -2724,13 +2724,6 @@ public final class SystemServer implements Dumpable {
t.traceEnd();
}
- t.traceBegin("StartSystemUI");
- try {
- startSystemUi(context, windowManagerF);
- } catch (Throwable e) {
- reportWtf("starting System UI", e);
- }
- t.traceEnd();
// Enable airplane mode in safe mode. setAirplaneMode() cannot be called
// earlier as it sends broadcasts to other services.
// TODO: This may actually be too late if radio firmware already started leaking
@@ -2932,6 +2925,14 @@ public final class SystemServer implements Dumpable {
}
}, t);
+ t.traceBegin("StartSystemUI");
+ try {
+ startSystemUi(context, windowManagerF);
+ } catch (Throwable e) {
+ reportWtf("starting System UI", e);
+ }
+ t.traceEnd();
+
t.traceEnd(); // startOtherServices
}