azad
azad

Reputation: 361

how to define permission for a specific application in android?

I wanna define permission for specific application and I don't want to access any applications to it.

What should I do? Do I set it with protectionLevel:signature? If I should use protectionLevel:signature, How can I define key for other applications?

Upvotes: 0

Views: 245

Answers (1)

Nikolay Elenkov
Nikolay Elenkov

Reputation: 52966

If you set protectionLevel to signature only apps signed with the same key will be able to get that permission. So, if you sign all your applications with the same key, all of your applications will be able to use that permission. As long as you take care to keep your private key to yourself, no other app will be able to get this permission.

Upvotes: 1

Related Questions