Clean up unused Android permissions

前端 未结 7 1522
醉酒成梦
醉酒成梦 2020-12-25 11:49

If I wanted to research how and where permissions [requested in the Mainfest.xml] were used in an Android app for the purposes of removing them is there an easy way of doing

相关标签:
7条回答
  • 2020-12-25 12:16

    In your app manifest file you should have a tab "Merged Manifest" there you can see your final manifest and the permissions you request you can click on a permission to see where it came from. (who added it - ex': sdk or what code it came from)

    There is also a simple way to remove a permission by adding to manifest:

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

    Also remember to add the tools at the top:

    <manifest xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:tools="http://schemas.android.com/tools"
        package="...">
    
    0 讨论(0)
提交回复
热议问题