user1118764
user1118764

Reputation: 9845

Adding commands in the Android boot process

I'm wondering if it's possible to insert my own commands in the Android boot process to modify its behavior. Specifically, I'm looking to modify the security lock where the user enters his/her PIN/password/pattern, obtain the user input, and authenticate the user myself. Upon a successful authentication, I would then like to run a few native ARM binaries before loading the home screen and sending the ACTION_USER_PRESENT broadcast.

Is this done in the framework or application level?

I've studied the Android boot process and it seems that the ACTION_BOOT_COMPLETED broadcast is sent after the android system server runtime is up and running. However, this happens before the user has unlocked the device. So I'm assuming I can't do it at the system server?

Thanks.

Upvotes: 0

Views: 1544

Answers (1)

user755278
user755278

Reputation: 1634

In the most ROMs you can add the command to any file in /system/etc/init.d/ and it will be executed at boot. Or, you can create a file in that folder, and set 755 permissions on it.

Upvotes: 1

Related Questions