29

I am trying to upload a apk to the google play store but its saying to my surprise that i am using the following permission:

Your APK is using permissions that require a privacy policy: (android.permission.RECORD_AUDIO).

so i searched the entire IDE for "android.permission.RECORD_AUDIO" but i cant find it. How can i find out which 3rd party is requesting this ? There should be a way to view in the manifest merger process all the manifest but when i hit shift twice and search manifest only the local manifest are showing up. The other is bit code and i cant view it.

yoAlex5
  • 29,217
  • 8
  • 193
  • 205
j2emanue
  • 60,549
  • 65
  • 286
  • 456

3 Answers3

62

In project build directory, there is a manifest merger report.

In my case, it is located under [ProjectRoot]/app/build/outputs/logs/manifest-merger-debug-report.txt

From this file, your can find where the permission is added. For example:

uses-permission#android.permission.RECORD_AUDIO
ADDED from /home/jack/AndroidProject/ApiDemos/app/src/main/AndroidManifest.xml:45:5-71
    android:name
            ADDED from /home/jack/AndroidProject/ApiDemos/app/src/main/AndroidManifest.xml:45:22-68
uses-permission#android.permission.CAMERA
ADDED from /home/jack/AndroidProject/ApiDemos/app/src/main/AndroidManifest.xml:49:5-65
    android:name
            ADDED from /home/jack/AndroidProject/ApiDemos/app/src/main/AndroidManifest.xml:49:22-62
cmoaciopm
  • 2,076
  • 2
  • 22
  • 30
2

You can use Merged Manifest[About] feature

Open AndroidManifest.xml -> Merged Manifest
yoAlex5
  • 29,217
  • 8
  • 193
  • 205
1

If the library is open source you can check their source code for the permissions they have used. They usually list the permission on their Read.me files. Even if they are proprietary libs they will list the permissions they will be using otherwise their security is questionable.

Umar Hussain
  • 3,461
  • 1
  • 16
  • 38
  • other thing can be you application has to do something with microphone, so yo need to put the privacy policy url in app store. – Umar Hussain Aug 23 '17 at 05:07