Android Question Reboot remotely via B4A

cooperlegend

Active Member
Licensed User
Longtime User
Previously I used this from the forums from 2014

Reboot code:
    Private Out, Err As StringBuilder
            
    Out.Initialize
    Err.Initialize
  
    File.WriteString(Common.rp.GetSafeDirDefaultExternal(""), "reboot.sh", "su -c reboot")

    p.Shell("sh", Array As String(File.Combine(Common.rp.GetSafeDirDefaultExternal(""), "reboot.sh")), Out, Err)

But this now seems not to work, is there an updated version I can use ?
 

teddybear

Well-Known Member
Licensed User
1. Are you sure your phone has got root privilege?
2. Add log(Err) to see what error happens.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…