Loading core/res/res/values/config.xml +6 −0 Original line number Diff line number Diff line Loading @@ -5134,4 +5134,10 @@ <item>@array/config_mainBuiltInDisplayWaterfallCutout</item> <item>@array/config_secondaryBuiltInDisplayWaterfallCutout</item> </array> <!-- Whether the airplane mode should be reset when device boots in non-safemode after exiting from safemode. This flag should be enabled only when the product does not have any UI to toggle airplane mode like automotive devices.--> <bool name="config_autoResetAirplaneMode">false</bool> </resources> core/res/res/values/symbols.xml +1 −0 Original line number Diff line number Diff line Loading @@ -2217,6 +2217,7 @@ <java-symbol type="string" name="config_primaryLocationTimeZoneProviderPackageName" /> <java-symbol type="bool" name="config_enableSecondaryLocationTimeZoneProvider" /> <java-symbol type="string" name="config_secondaryLocationTimeZoneProviderPackageName" /> <java-symbol type="bool" name="config_autoResetAirplaneMode" /> <java-symbol type="layout" name="resolver_list" /> <java-symbol type="id" name="resolver_list" /> Loading services/java/com/android/server/SystemServer.java +3 −0 Original line number Diff line number Diff line Loading @@ -1586,6 +1586,9 @@ public final class SystemServer implements Dumpable { // all listeners have the chance to react with special handling. Settings.Global.putInt(context.getContentResolver(), Settings.Global.AIRPLANE_MODE_ON, 1); } else if (context.getResources().getBoolean(R.bool.config_autoResetAirplaneMode)) { Settings.Global.putInt(context.getContentResolver(), Settings.Global.AIRPLANE_MODE_ON, 0); } StatusBarManagerService statusBar = null; Loading Loading
core/res/res/values/config.xml +6 −0 Original line number Diff line number Diff line Loading @@ -5134,4 +5134,10 @@ <item>@array/config_mainBuiltInDisplayWaterfallCutout</item> <item>@array/config_secondaryBuiltInDisplayWaterfallCutout</item> </array> <!-- Whether the airplane mode should be reset when device boots in non-safemode after exiting from safemode. This flag should be enabled only when the product does not have any UI to toggle airplane mode like automotive devices.--> <bool name="config_autoResetAirplaneMode">false</bool> </resources>
core/res/res/values/symbols.xml +1 −0 Original line number Diff line number Diff line Loading @@ -2217,6 +2217,7 @@ <java-symbol type="string" name="config_primaryLocationTimeZoneProviderPackageName" /> <java-symbol type="bool" name="config_enableSecondaryLocationTimeZoneProvider" /> <java-symbol type="string" name="config_secondaryLocationTimeZoneProviderPackageName" /> <java-symbol type="bool" name="config_autoResetAirplaneMode" /> <java-symbol type="layout" name="resolver_list" /> <java-symbol type="id" name="resolver_list" /> Loading
services/java/com/android/server/SystemServer.java +3 −0 Original line number Diff line number Diff line Loading @@ -1586,6 +1586,9 @@ public final class SystemServer implements Dumpable { // all listeners have the chance to react with special handling. Settings.Global.putInt(context.getContentResolver(), Settings.Global.AIRPLANE_MODE_ON, 1); } else if (context.getResources().getBoolean(R.bool.config_autoResetAirplaneMode)) { Settings.Global.putInt(context.getContentResolver(), Settings.Global.AIRPLANE_MODE_ON, 0); } StatusBarManagerService statusBar = null; Loading