user3211774
user3211774

Reputation: 35

How to tell if an app has used certain permission in its manifest?

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

Answers (1)

Dheeraj Vepakomma
Dheeraj Vepakomma

Reputation: 28697

Use getPackageManager().getPackageInfo() to get a PackageInfo object, from which you can get the permissions.

Upvotes: 1

Related Questions