Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ef81519f authored by Nate Jiang's avatar Nate Jiang
Browse files

[CLEANUP] Clean up unused permissions

Remove the MANAGE_WIFI_WHEN_WIRELESS_CONSENT_REQUIRED,
ACCESS_WIMAX_STATE, CHANGE_WIMAX_STATE from AndroidManifest.xml and
PackageManagerSettingsTests.

Test: build
Test: atest PackageManagerSettingsTests
BUG:120853187
Change-Id: I7e292cc42f2a5680fd2a284bebf8c69e452a552a
parent a572838e
Loading
Loading
Loading
Loading
+0 −18
Original line number Diff line number Diff line
@@ -1520,18 +1520,6 @@
    <permission android:name="android.permission.OVERRIDE_WIFI_CONFIG"
        android:protectionLevel="signature|privileged" />

    <!-- @hide -->
    <permission android:name="android.permission.ACCESS_WIMAX_STATE"
        android:description="@string/permdesc_accessWimaxState"
        android:label="@string/permlab_accessWimaxState"
        android:protectionLevel="normal" />

    <!-- @hide -->
    <permission android:name="android.permission.CHANGE_WIMAX_STATE"
        android:description="@string/permdesc_changeWimaxState"
        android:label="@string/permlab_changeWimaxState"
        android:protectionLevel="normal" />

    <!-- Allows applications to act as network scorers. @hide @SystemApi-->
    <permission android:name="android.permission.SCORE_NETWORKS"
        android:protectionLevel="signature|privileged" />
@@ -1601,12 +1589,6 @@
    <permission android:name="android.permission.MANAGE_LOWPAN_INTERFACES"
        android:protectionLevel="signature|privileged" />

    <!-- @hide Allows internal management of Wi-Fi connectivity state when on
         wireless consent mode.
         <p>Not for use by third-party applications. -->
    <permission android:name="android.permission.MANAGE_WIFI_WHEN_WIRELESS_CONSENT_REQUIRED"
        android:protectionLevel="signature" />

    <!-- #SystemApi @hide Allows an app to bypass Private DNS.
         <p>Not for use by third-party applications.
         TODO: publish as system API in next API release. -->
+0 −1
Original line number Diff line number Diff line
@@ -894,7 +894,6 @@ public class PackageManagerSettingsTests {
                + "<permissions>"
                + "<item name=\"android.permission.WRITE_CALL_LOG\" package=\"android\" protection=\"1\" />"
                + "<item name=\"android.permission.ASEC_ACCESS\" package=\"android\" protection=\"2\" />"
                + "<item name=\"android.permission.ACCESS_WIMAX_STATE\" package=\"android\" />"
                + "<item name=\"android.permission.REBOOT\" package=\"android\" protection=\"18\" />"
                + "</permissions>"
                + "<package name=\"com.android.app1\" codePath=\"/system/app/app1.apk\" nativeLibraryPath=\"/data/data/com.android.app1/lib\" flags=\"1\" ft=\"1360e2caa70\" it=\"135f2f80d08\" ut=\"1360e2caa70\" version=\"1109\" sharedUserId=\"11000\">"