1. 程式人生 > >android開機啟動shell指令碼

android開機啟動shell指令碼

1、system/core/rootdir/init.rc

service start_test /system/bin/test.sh    

    user root
    group root
    disabled
    oneshot
on property:sys.boot_completed=1
    start start_test

2、在/system/bin下建立test.sh

     #!/system/bin/sh

      echo "Test Success!"