Search code examples
androidandroid-intentfactoryresetandroid-pendingintent

Preventing deletion/removal of android service ever after factory reset


I am creating one android service that runs forever in background. And I don't want it to be deleted/removed even after factory reset of the phone. How can I achieve this in android code? Is there any intent for this?


Solution

  • Is there any intent for this?

    Fortunately, no, for blindingly obvious security reasons.

    And I don't want it to be deleted/removed even after factory reset of the phone. How can I achieve this in android code?

    Build your own custom ROM that contains your app pre-installed. Install that custom ROM on your device.