Android platform autorun

From ESS-WIKI
Jump to: navigation, search

rk3288 android6.0.1

 Edit /system/bin/advantech.sh

 Power on, please following in cmd line:

shell@rsb4680:/ $ su
root@rsb4680:/ # mount -rw -o remount /system
root@rsb4680:/ # busybox vi /system/bin/advantech.sh

rk3399 android7.1.2

Edit /system/bin/adv_autorun.sh

Power on, Connect to the board through adb and enter the following command:

$ adb root
# adb disable-verity
# adb reboot

Wait for the board to restart

$ adb root
# adb remount

Please following in cmd line:

shell@rk3399_rsb4710:/ $ su 
root@rk3399_rsb4710:/ # busybox vi /system/bin/adv_autorun.sh

imx6 android4.4.2 and android6.0

 Create and edit /data/test.sh

 Power on, please following in cmd line:

root@rsb6410 # touch /data/test.sh
root@rsb6410 # busybox vi /data/test.sh

Note 

1、USE "#!/system/bin/sh" in .sh