Reputation: 35
For example, I'm developing an app "A", and I want to use some codes in "A" to tell me if another app "B" has asked for "RECORD_AUDIO" permission in its manifest?
Who can give me those codes? Thank you very much!
Upvotes: 1
Views: 94
Reputation: 28697
Use getPackageManager().getPackageInfo()
to get a PackageInfo
object, from which you can get the permissions.
Upvotes: 1