Android AOSP – Running something at bootup

There will be some .mk file where you need to put code to copy files to the android system.

 

 


# file copy
PRODUCT_COPY_FILES += \
device/softwinner/nanopi-h3/extras/kernelService:system/bin/kernelService \
device/softwinner/nanopi-h3/extras/kernelService.sh:system/bin/kernelService.sh \
device/softwinner/nanopi-h3/extras/usr/share/ac.conf:system/usr/share/config.conf

Now in init.rc
 

#service for kernel commands like

service someName /system/bin/kernelService.sh

class main

oneshot

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s