Wrong permissions at Google Play

前端 未结 1 1868
遇见更好的自我
遇见更好的自我 2021-01-19 01:53

Permissions at my app\'s Google Play page are wrong. Here is my Manifest (just the permissions)



        
相关标签:
1条回答
  • 2021-01-19 02:37

    I found out what's wrong.

    getSharedPreferences(getApplicationContext().getPackageName() + "_preferences", Context.MODE_MULTI_PROCESS);
    

    Android Studio adds access to files because I'm using multi process shared preferences and I'm writing to them somewhere (available since API 11).

    Force removing the permission by

    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" tools:node="remove" />
    

    in the app's Manifest breaks writing to Shared Prefs. So it's really needed and auto-added by Android Studio.

    The second one, READ_PHONE_STATE is because of the saxrssreader library. When the library's min SDK is lower than the app's min SDK, the permission is added during build. I simply changed the library's minimum SDK to the number my app is using and the permission is gone.

    That was a tricky one but everything is clear now.

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