Search code examples
androidprivilege

Start an android privileged app without ever opening it


I wish to create a privilege app (pre-installed or in a rooted device). Can I make my app run a service without the user ever open it? How?


Solution

  • Normal apps are installed in "stop state". It's means all their broadcast receivers are disabled until the user manually open them.

    System apps don't have that restriction, so you can put your app in system partition, use broadcast receiver on BOOT_COMPLETED and start your service without user interaction.