This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

do you know how / where to enter the path to the sh script to make it run on boot? I can't find that answer anywhere, my attempts are not working. Init files, system startup are restored from the image and any data stored in them disappears after rebooting Sad Help

Android 6 with root
ok Smile today i find solution:

create this file


and put in file script or path to script

Big Grin
magic... ;-]..

Hi doggedly,
many thanks for info...

note.. mount -o rw,remount /system

just made /system/etc/ file with this inside..
sleep 90&& ./system/etc/

then made /system/etc/ file with..

sleep 05&& am start -n com.termux/com.termux.HomeActivity&
sleep 30&& am start -n com.termux/
sleep 30&& am start -n com.termux/com.termux.HomeActivity&
sleep 30&& am start -n com.termux/
now... I don't need autoStart app anymore ]]]]...... 
Termux runs after boot with Session 1 ;-]...

bash:5.0][u0_a99]@~:$ ll /system/etc/init.asus*
-rwxr-xr-x 1 root root 266 Jul 29 08:09 /system/etc/*
-rw-r--r-- 1 root root  49 Jul 29 07:43 /system/etc/
note.. ll... list of files and...

bash:5.0][u0_a99]@~:$ stat /system/etc/init.asus*
 File: /system/etc/
 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/
 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: -
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 -
& 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/ 
and add the following line at the beginning /data/ &


touch /data/
chmod 755 /data/
Done! You can now put whatever you want in /data/ and it will run on startup.
note.. for TinkerOS_Android 7 Nougat V14.3.2.82... /system/bin/

---------------- ;-]..
hope it helps,

Forum Jump:

Users browsing this thread: 1 Guest(s)