The phone wants to start a script, Baidu's
The Android default startup script has init.rc init.xxx.rc init.xxx.sh
Because Init.rc is a file in a memory file system, each time the power-on is released from RAM and loaded into memory, it means that the change is replaced after the restart or the previous one, so it cannot be init.rc by direct modification to start this. SH script.
The x.sh script is placed under/SYSTEM/ETC/INIT.D and is not automatically run after a reboot. I then thought of writing the script statement in Init.xxx.sh, because it was too long, so I found it was still unsuccessful after I chose to join the sh/system/etc/init.d/x.sh reboot at the end of install-recovery.sh. So the manual execution of install-recovery.sh, feasible, the script is no problem. So the problem is no boot from boot.
Baidu reason, the conclusion is that the kernel does not support, want to implement can only modify the kernel. So the search continues to find a software--unicversal INIT.D can execute scripts under the Init.d folder when the boot is detected and restarted. See
Https://github.com/Androguide/Universal-init.d
At this point, the unsuccessful boot self-boot script is completed.
Android setup script boot from boot