Hide Settings launcher icon for a managed profile
This makes the Settings icon disappear at the next reboot.
Bug: 16369104
Change-Id: Ic0a394413a0f2dc573d340394d2cd24388535856
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index fac2d34..b9f87d1 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -93,6 +93,13 @@
</intent-filter>
</activity>
+ <receiver android:name="LauncherIconToggler">
+ <intent-filter>
+ <action android:name="android.intent.action.BOOT_COMPLETED"/>
+ <action android:name="android.intent.action.PRE_BOOT_COMPLETED"/>
+ </intent-filter>
+ </receiver>
+
<activity android:name=".SubSettings"
android:taskAffinity="com.android.settings"
android:parentActivityName="Settings">