magic... ;-]..
Hi doggedly,
many thanks for info...
note.. mount -o rw,remount /system
just made
/system/etc/init.asus.sh file with this inside..
Code:
sleep 90&& ./system/etc/init.asus.autostart.sh&
then made
/system/etc/init.asus.autostart.sh file with..
Code:
#!/system/bin/sh
sleep 05&& am start -n com.termux/com.termux.HomeActivity&
sleep 30&& am start -n com.termux/com.termux.app.TermuxActivity&
sleep 30&& am start -n com.termux/com.termux.HomeActivity&
sleep 30&& am start -n com.termux/com.termux.app.TermuxActivity&
now... I don't need autoStart app anymore ]]]]......
Termux runs after boot with Session 1 ;-]...
Code:
bash:5.0][u0_a99]@~:$ ll /system/etc/init.asus*
-rwxr-xr-x 1 root root 266 Jul 29 08:09 /system/etc/init.asus.autostart.sh*
-rw-r--r-- 1 root root 49 Jul 29 07:43 /system/etc/init.asus.sh
bash:5.0][u0_a99]@~:$
note.. ll... list of files and...
Code:
bash:5.0][u0_a99]@~:$ stat /system/etc/init.asus*
File: /system/etc/init.asus.autostart.sh
Size: 266 Blocks: 8 IO Block: 4096 regular file
Device: b30ah/45834d Inode: 1890 Links: 1
Access: (0755/-rwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2020-07-29 07:14:36.524745802 +0100
Modify: 2020-07-29 08:09:34.481369629 +0100
Change: 2020-07-29 08:09:34.481369629 +0100
Birth: -
File: /system/etc/init.asus.sh
Size: 49 Blocks: 8 IO Block: 4096 regular file
Device: b30ah/45834d Inode: 1889 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2020-07-29 02:55:13.105735603 +0100
Modify: 2020-07-29 07:43:35.359372005 +0100
Change: 2020-07-29 07:43:35.359372005 +0100
Birth: -
bash:5.0][u0_a99]@~:$
stat of files..
its still a guessing game for me as to the timing & boot order of Init .rc Files..
found link to...
Android Init Language -
https://android.googlesource.com/platfor.../README.md
& this youtube vid..
Digging Into Android Startup...
Also found these apps to help with figuring out Activity Names for apps..
Apk Info
QuickShortcutMaker on Google Play Store...
note.. "
2 Ways to find appPackage and appActivity name of your App"
also.. i.forgot.. [.. after some google searches for.. "
run script on boot android"
Ramast had the answer..;-]..
----------------------------------------------------------------
basically, find the file /system/etc/install-recovery.sh
and add the following line at the beginning /data/init.sh &
then
touch /data/init.sh
chmod 755 /data/init.sh
Done! You can now put whatever you want in /data/init.sh and it will run on startup.
--------------------------------------------------------------------------------------------------------
note.. for TinkerOS_Android 7 Nougat V14.3.2.82... /system/bin/install-recovery.sh
---------------- ;-]..
hope it helps,
k,