Difference between revisions of "Android platform autorun"
From ESS-WIKI
Yanwei.cao (talk | contribs) (Created page with "coming soon") |
|||
Line 1: | Line 1: | ||
− | + | == rk3288 android6.0.1 == | |
+ | |||
+ | Edit /system/bin/advantech.sh | ||
+ | |||
+ | Power on, please following in cmd line: | ||
+ | <pre>shell@rsb4680:/ $ su | ||
+ | root@rsb4680:/ # mount -rw -o remount /system | ||
+ | root@rsb4680:/ # busybox vi /system/bin/advantech.sh | ||
+ | </pre> | ||
+ | |||
+ | == rk3399 android7.1.2 == | ||
+ | |||
+ | Edit /system/bin/adv_autorun.sh | ||
+ | |||
+ | Power on, Connect to the board through adb and enter the following command: | ||
+ | <pre>$ adb root | ||
+ | # adb disable-verity | ||
+ | # adb reboot | ||
+ | </pre> | ||
+ | |||
+ | Wait for the board to restart | ||
+ | <pre>$ adb root | ||
+ | # adb remount | ||
+ | </pre> | ||
+ | |||
+ | Please following in cmd line: | ||
+ | <pre>shell@rk3399_rsb4710:/ $ su | ||
+ | root@rk3399_rsb4710:/ # busybox vi /system/bin/adv_autorun.sh | ||
+ | </pre> | ||
+ | |||
+ | == imx6 android4.4.2 and android6.0 == | ||
+ | |||
+ | Create and edit /data/test.sh | ||
+ | |||
+ | Power on, please following in cmd line: | ||
+ | <pre>root@rsb6410 # touch /data/test.sh | ||
+ | root@rsb6410 # busybox vi /data/test.sh | ||
+ | </pre> | ||
+ | |||
+ | == '''Note : '''USE "#!/system/bin/sh" in .sh == |
Revision as of 13:00, 16 February 2020
Contents
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