Reputation: 21
I'm working on an app that should be able to broadcast protected intents like android.intent.action.DEVICE_STORAGE_LOW
so that I can see if the necessary system receivers work properly. Currently the app stops and I get a security exception.
Is there anyway to give the app permissions to send these protected broadcasts?
Upvotes: 2
Views: 3178
Reputation: 26547
Only system-level processes can broadcast protected intents. An app can't get the persmission to send them in any way, except maybe on a rooted device if you can find a way to start your app as a system process.
Upvotes: 3