Not able to add new group permission in android

后端 未结 1 1956
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-07 04:51

I\'m trying to add a new group permission in Android but it is not taking effect in my application (new CTS test). Below are the changes :

test@test-ubuntu:~         


        
相关标签:
1条回答
  • 2021-01-07 05:09

    I was able to solve the problem. Additional change has to be made in frameworks/base/core/res/AndroidManifest.xml :

    test@test-ubuntu:~/android_aosp/frameworks/base$ git diff core/res/AndroidManifest.xml
    diff --git a/core/res/AndroidManifest.xml b/core/res/AndroidManifest.xml
    index 4b1c534..a4ba0b5 100644
    --- a/core/res/AndroidManifest.xml
    +++ b/core/res/AndroidManifest.xml
    @@ -1054,6 +1054,12 @@
         <permission android:name="android.permission.BLUETOOTH_STACK"
             android:protectionLevel="signature" />
    
    +    <!-- Allows applications to access files in xyz group.
    +         <p>Protection level: normal
    +    -->
    +    <permission android:name="android.permission.XYZ"
    +        android:protectionLevel="normal" />
    +
         <!-- Allows applications to perform I/O operations over NFC.
              <p>Protection level: normal
         -->
    

    After that need to execute make update-api and then build the full Android again

    0 讨论(0)
提交回复
热议问题