[WifiDialog] Guard with CHANGE_WIFI permission

Guard WifiDialogActivity with CHANGE_WIFI_STATE permission.

Bug: 25189534
Change-Id: I97e311f35873323c7db6a2e47f4155da6d73e9f6
This commit is contained in:
Maurice Lam
2015-10-29 16:40:49 -07:00
parent 61eaed7bfb
commit ec1f2eeaf1

View File

@@ -2495,7 +2495,8 @@
<activity android:name=".wifi.WifiDialogActivity" <activity android:name=".wifi.WifiDialogActivity"
android:theme="@style/Transparent" android:theme="@style/Transparent"
android:excludeFromRecents="true" android:excludeFromRecents="true"
android:exported="true"> android:exported="true"
android:permission="android.permission.CHANGE_WIFI_STATE">
<intent-filter> <intent-filter>
<action android:name="com.android.settings.WIFI_DIALOG" /> <action android:name="com.android.settings.WIFI_DIALOG" />
<category android:name="android.intent.category.DEFAULT" /> <category android:name="android.intent.category.DEFAULT" />