cooperlegend Active Member Licensed User Longtime User May 8, 2026 #1 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 ?
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 ?
aeric Expert Licensed User Longtime User May 8, 2026 #2 cooperlegend said: Common.rp.GetSafeDirDefaultExternal("") Click to expand... Try change to File.DirInternal Upvote 0
cooperlegend said: Common.rp.GetSafeDirDefaultExternal("") Click to expand... Try change to File.DirInternal
teddybear Well-Known Member Licensed User May 8, 2026 #3 cooperlegend said: 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 ? Click to expand... 1. Are you sure your phone has got root privilege? 2. Add log(Err) to see what error happens. Upvote 0
cooperlegend said: 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 ? Click to expand... 1. Are you sure your phone has got root privilege? 2. Add log(Err) to see what error happens.