Disable WebViewSetting for non-admin users.

For an app to be able to know whether the WebViewSetting is enabled for
a user we disable the setting at boot for non-admin users. In this way
an app can call intent.resolveActivity[Info] for the WebViewSetting
intent to check whether the WebViewSetting is enabled before linking to
it.

Bug: 28034166
Change-Id: I33b3fa10a38f2a2600cddd0891ef746126abdd61
This commit is contained in:
Gustav Sennton
2016-05-11 12:31:40 +01:00
parent 938501cf76
commit 66313bb11d
2 changed files with 26 additions and 5 deletions

View File

@@ -153,7 +153,7 @@
</intent-filter>
</activity>
<receiver android:name="ManagedProfileSetup">
<receiver android:name="SettingsInitialize">
<intent-filter>
<action android:name="android.intent.action.USER_INITIALIZE"/>
<action android:name="android.intent.action.PRE_BOOT_COMPLETED"/>