Violation of the Permissions policy in google play

前端 未结 3 485
青春惊慌失措
青春惊慌失措 2021-01-22 05:27

Our app was currently removed from google play for having the SMS permission. We already removed the permission and uploaded a new apk but the status of the project is still rem

3条回答
  •  悲哀的现实
    2021-01-22 06:27

    May be any of the 3rd party library you are using in your project is already using those permissions. And when you build your project it merged all the AndroidManifest file in a single Merged Manifest file. This is the reason you are getting this warning because your final manifest has any of those permission(s).

    Solution 1: After build your project,

    • Open your project's AndroidManifest file.
    • Open the Merged Manifest tab in the bottom.
    • Search for any of those permission. (example- READ_SMS)
    • If you get any, now it's time to remove them. Check the example

    Example: If you see READ_SMS permission in Merged Manifest file, so now open your project's AndroidManifest file and add the line written below to remove that permission from your project-

    
    

    Add the above permission line in your AndroidManifest file, and that's it. It will remove the Permission from the Merged Manifest file and your issue will be resolved.

    AndroidManifest file

    
    
    
        
        
    
        
    
            
                
                    
    
                    
                
            
        
    

    Solution 2: Replace/Remove those 3rd Party library which are using these permissions.

    Solution 3: For safe side you can add these lines in your AndroidManifest file.

    
    
    
    
    
    
    
    
    
    

    these lines will remove all the restricted permission(s) according to Permission Policy if any used.

    Hope it will be helpful.

提交回复
热议问题