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!
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!
Use getPackageManager().getPackageInfo()
to get a PackageInfo
object, from which you can get the permissions.