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

Commit 6f9506ce authored by Nandita Viswanath's avatar Nandita Viswanath
Browse files

Make the 'NETWORK_FACTORY' permission privileged

Making the permission signature | privileged requires that current
signature level users also include the permission in their priv-app
allowlist. Updating privapp-permissions-platform.xml accordingly.

CTS change - ag/34556176, Updating the
permission in bluetooth module - ag/34554981

Flag: android.net.platform.flags.update_network_factory_protection_level
Bug: 431500580
Change-Id: I9a09ebfd63c6f88bba6bc5300cd325afffd75d79
parent 0c4e4345
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -69,3 +69,11 @@ flag {
    description: "This flag controls VPN metrics collection."
    bug: "306313287"
}

flag {
  name: "update_network_factory_protection_level"
  is_exported: false
  namespace: "android_core_networking"
  description: "Flag for change to NETWORK_FACTORY permission to include priviliged"
  bug: "431500580"
}
+6 −1
Original line number Diff line number Diff line
@@ -2334,7 +2334,12 @@
    <!-- @SystemApi @hide Allows applications to register network factory or agent -->
    <permission android:name="android.permission.NETWORK_FACTORY"
                android:protectionLevel="signature|role" />
                android:protectionLevel="signature|role"
                android:featureFlag="!android.net.platform.flags.update_network_factory_protection_level"/>
    <!-- @SystemApi @hide Allows applications to register network factory or agent -->
    <permission android:name="android.permission.NETWORK_FACTORY"
                android:protectionLevel="signature|privileged|role"
                android:featureFlag="android.net.platform.flags.update_network_factory_protection_level" />
    <!-- @SystemApi @hide Allows applications to access network stats provider -->
    <permission android:name="android.permission.NETWORK_STATS_PROVIDER"
+1 −0
Original line number Diff line number Diff line
@@ -97,5 +97,6 @@
        <permission name="android.permission.OVERRIDE_SYSTEM_KEY_BEHAVIOR_IN_FOCUSED_WINDOW"/>
        <permission name="android.permission.SUBSCRIBE_TO_KEYGUARD_LOCKED_STATE" />
        <permission name="android.permission.SET_UNRESTRICTED_GESTURE_EXCLUSION" />
        <permission name="android.permission.NETWORK_FACTORY" />
    </privapp-permissions>
</permissions>
+4 −0
Original line number Diff line number Diff line
@@ -722,4 +722,8 @@ applications that come with the platform
    <privapp-permissions package="com.android.wm.shell">
        <permission name="android.permission.SUBSCRIBE_TO_KEYGUARD_LOCKED_STATE" />
    </privapp-permissions>

    <privapp-permissions package="com.android.phone">
        <permission name="android.permission.NETWORK_FACTORY" />
    </privapp-permissions>
</permissions>