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:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Google Play Store ON clean install TinkerOS_Android 7 Nougat V14.1.2.50
#31
It seems like the root privilege does not survive reboot (the 'su --daemon &' must be running). Is there a way to have it so the su daemon process is launched when Android is booted up?
Reply
#32
(09-15-2019, 12:49 AM)ls_user123 Wrote: It seems like the root privilege does not survive reboot (the 'su --daemon &' must be running). Is there a way to have it so the su daemon process is launched when Android is booted up?

hi ls_user123,
sry, this is an old thread.. and i haven't had time to update..
but if you install AutoStart - No root... run app and add termux , twice..  
and yes.. I had to add it twice for termux to start with session 1..

then create a ~/.bashrc with 
------------------------
# start ssh server...
/data/data/com.termux/files/usr/bin/sshd
---------------------------------------------------
at the end of the file.. 

then look for the file... install-recovery.sh
find /. -name 'install-recovery.sh' 2>/dev/null
Code:
rk3288:/ # find /. -name 'install-recovery.sh' 2>/dev/null
/./system/bin/install-recovery.sh
1|rk3288:/ #

and add the following lines at the bottom...
-----------------------------------------------
# following init.sh should run at boot..
/data/init.sh &
------------------

then create /data/init.sh with..
-------------------------------------
#!/system/bin/sh
/system/xbin/su -ad &
----------------------------

-rwxr-xr-x 1 root shell 69 2019-09-15 02:24 /data/init.sh*
----------------------------------------------------------------------
note.. make sure to..
Code:
chmod 755 /data/init.sh
chown root:shell /data/init.sh

this will give you a ssh server running @ boot with su -ad ---> [su --auto-daemon]

I hope i get some time to update..  
----------------
hope it helps
k,
Reply
#33
Thank you for the quick response, I appreciate it. I'll give this a try.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)