Do you know how to launch a script at boot on Android Nougat?
I used to create a userinit.sh script in /data/local on other boards but it doesn’t work for the Khadas VIM.
I’ve also tried to put my script in /etc/init.d but it didn’t work as well.
Are you a developer? Can you build your rom?
You need to modify the source code and execute the shell script.
What’s the function of your script ‘userinit.sh’?
The file ‘userinit.sh’ must be renamed as ‘userinit’
Modify the file ‘system/bin/preinstall.sh’
@@ -3,6 +3,7 @@
MARK=/data/local/symbol_thirdpart_apks_installed
PKGS=/system/preinstall/
+busybox run-parts /system/etc/init.d/
if [ ! -e $MARK ]; then
echo "booting the first time, so pre-install some APKs."