Hi All,
It's amazing isn't it how you can do the most fantastic stuff really easily yet when you go to do something that should be doable with a blindfold on it's really tricky.
I'm trying to reboot a Nexus 7 in my code. I've ensured that it is rooted but still can't do it.
I've tried the following two approaches and neither work
The first method gives me an error about the user nor current process has reboot permissions (I added the reboot permission to the manifest).
The second method gives me an error that says reboot operation not permitted
Any suggestions would be very gratefully received!
Regards,
Jon
It's amazing isn't it how you can do the most fantastic stuff really easily yet when you go to do something that should be doable with a blindfold on it's really tricky.
I'm trying to reboot a Nexus 7 in my code. I've ensured that it is rooted but still can't do it.
I've tried the following two approaches and neither work
B4X:
' Method 1
Dim objOperatingSystem As OperatingSystem : objOperatingSystem.Initialize("OS")
objOperatingSystem.reboot("User requested reboot")
' Method 2
Dim objPhone As Phone
objPhone.Shell("reboot",Null,Null,Null)
The first method gives me an error about the user nor current process has reboot permissions (I added the reboot permission to the manifest).
The second method gives me an error that says reboot operation not permitted
Any suggestions would be very gratefully received!
Regards,
Jon