Android Add Daemon Service

1. mkdir in /frameworks/base/cmds, such as xx_yyy

2. refer to Android.mk in other folders, such as installd, backup, etc.

caution: lib module name

3. add XX.c XX.h

4. make libmodulename

5. copy libmodulename to /system/bin/

修改init.rc后无法放入根目录

adb shell mount -o remount rw /

然后adb push init.rc /

adb reboot

你可能感兴趣的:(Android Add Daemon Service)