0

I am creating a system app that open when first boot is complated. how can i start this app automatically ? i have the stock rom. is there a file for autostarting apps ?

Phantômaxx
  • 37,901
  • 21
  • 84
  • 115
sabrey
  • 47
  • 1
  • 7

1 Answers1

1

You could do this in several ways:

  1. Have your app act as launcher ( set launcher declarations in manifest and set it as default launcher)
  2. Modify your default launcher (e.g. Launcher3) to start the app when the launcher starts.
  3. Modify SystemUI app to start your app when it first starts.
  4. Modify SystemServer or one of the system services ( e.g. ActivityManagerService ) to start your app when the correct boot phase is reached (e.g. PHASE_BOOT_COMPLETED )
Rick Sanchez
  • 4,528
  • 2
  • 27
  • 53
  • thank you. this helped me a lot. does modifying system server breaks gsm certification rules ? – sabrey Feb 23 '20 at 21:53