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

Commit 36f8a877 authored by Kangping Dong's avatar Kangping Dong
Browse files

[Thread] add permission THREAD_NETWORK_TESTING for guarding testing APIs or shell commands

For new Thread network APIs or shell command for only testing, a new
signature permission is deversed to protect them (so to distinguish them
from existing system APIs which are designed for privileged apps such as
GMS Core).

Bug: 329368792
Change-Id: I291989eb0e024614568044945726edc07e20b8be
parent 9e319787
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -2258,6 +2258,11 @@
    <permission android:name="android.permission.THREAD_NETWORK_PRIVILEGED"
                android:protectionLevel="signature|privileged" />

    <!-- @hide Allows access to Thread network APIs or shell commands ("cmd thread_network") which
        are only for testing. -->
    <permission android:name="android.permission.THREAD_NETWORK_TESTING"
                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. -->
+2 −0
Original line number Diff line number Diff line
@@ -602,6 +602,8 @@

    <!-- Permission required for CTS test - CtsThreadNetworkTestCases -->
    <uses-permission android:name="android.permission.THREAD_NETWORK_PRIVILEGED"/>
    <!-- Permission required to access Thread network shell commands for testing -->
    <uses-permission android:name="android.permission.THREAD_NETWORK_TESTING"/>

    <!-- Permission required for CTS tests to enable/disable rate limiting toasts. -->
    <uses-permission android:name="android.permission.MANAGE_TOAST_RATE_LIMITING" />