So im making a very simple root app, But i need to know after calling for root using Runtime.getRuntime().exec("su"); how can i get my app to check if it was granted Root or not by SU.
Related
For clarification...
An app has to request root permissions to run as root, you cannot just give it the permissions? Is there a setuid? The "/system" filesystem is ext3 on this phone. "ext3" supports setuid & setgid, are these supported by Android?
In other words, is there any way to give a non-root app root permissions?
nodots said:
For clarification...
An app has to request root permissions to run as root, you cannot just give it the permissions? Is there a setuid? The "/system" filesystem is ext3 on this phone. "ext3" supports setuid & setgid, are these supported by Android?
In other words, is there any way to give a non-root app root permissions?
Click to expand...
Click to collapse
have you "rooted" your bravo using super one click etc?
the su built for rooted android phones has a hook to the superuser.apk so that any app requesting root must be approved by the user. You can set the app to a whitelisted app so it always gets root permissions, so that is what i recommend. this is a much important security feature and i highly recommend you dont circumvent it. that being said, there is a su out there that doesnt require approval and just gives approval so you can find it on xda if you want it but really its not a good idea or recommended
I have a related question: How do pre-installed apps on unrooted phones get root permission? I would expect that there are some that do, although I cannot give any examples.
Is Titanium Backup supposed to not be getting root currently on the A500? Other apps like Root Explorer seem to get root and work fine. Titanium Backup on my A500 complains that it can not get root. I did say allow on the Superuser box and after Titanium Backup complained of not having root, I opened Superuser and saw that it was indeed given permission to have root. Could I maybe not have obtained root correctly with Gingerbreak or is this just a problem for everybody now?
I got root fine after the update. Did you update busybox?
Sent from my A500 using XDA Premium App
I have this problem before, I find out because I didn't root it probably and install superuser
, so titanium backup can not run without root permission which superuser haven't got too.
To fix that, simply just reroot it, step by step again, after that mine run fine.
Sent from my A500 using XDA Premium App
try to update busybox
Luigi
enigmatl said:
Is Titanium Backup supposed to not be getting root currently on the A500? Other apps like Root Explorer seem to get root and work fine. Titanium Backup on my A500 complains that it can not get root. I did say allow on the Superuser box and after Titanium Backup complained of not having root, I opened Superuser and saw that it was indeed given permission to have root. Could I maybe not have obtained root correctly with Gingerbreak or is this just a problem for everybody now?
Click to expand...
Click to collapse
Busybox! 10char
busybox installation solved that for me
Re-ran Gingerbreak everything is great now, thanks for the tip!
Apps like Root Explorer (writing protected files) and Type Fresh (changing system fonts by replacing protected font files) don't work in my phone. Starting to suspect that root may be corrupt...
Any idea why this is happening? Suggestions, anyone?
Run Superuser apk and look if Root Explorer have granted root permission.
Sent with my Wildfire s-off thank Alpharevx using XDA Premium App
You could try to re-root. mine did the same after about a week. How long you been rooted? Have you got super user? try and run it like @emmibuzz suggested.
How can I launch an application to give it root permissions ? Can I possibly edit the apk without writing the program over ?
Sent from my HTC HD2 using Tapatalk
You first need to root your phone. You could use z4root.apk. try searching the forums or google it. Apply permanent or temporary. I applied permanent root. The app will notify if a root is successful. Then you will need to have superuser app installed. Normally all the roms comes preinstalled with superuser. If an app asks for permission for root access just grant it and you're done.
Sent from my HTC Runnymede using XDA App
hairuleff81 said:
You first need to root your phone. You could use z4root.apk. try searching the forums or google it. Apply permanent or temporary. I applied permanent root. The app will notify if a root is successful. Then you will need to have superuser app installed. Normally all the roms comes preinstalled with superuser. If an app asks for permission for root access just grant it and you're done.
Sent from my HTC Runnymede using XDA App
Click to expand...
Click to collapse
?
My device is already rooted with SuperUser added ...... What im trying to do is give an app which was downloaded from the market root permissions . now the only way i personally know how to give an app root permissions is by FIRST programming it with root permissions . Once its compiled i dont thing i can launch an app as root . But i may be wrong . hence the thread
elesbb said:
?
My device is already rooted with SuperUser added ...... What im trying to do is give an app which was downloaded from the market root permissions . now the only way i personally know how to give an app root permissions is by FIRST programming it with root permissions . Once its compiled i dont thing i can launch an app as root . But i may be wrong . hence the thread
Click to expand...
Click to collapse
U can only give Root Permission if the app and for it
Hi!
I've got a problem with root access of an app, it just doesn't ask for root permission but gives me a warning that it needs root access.
I already tried to use superSU instead of Superuser, but it didn't work. I unrooted and rooted the phone back, didn't work either. I'm sure the phone has root permission because after the rooting superuser asked me to give root permission to "system" and I also managed to write files in the obb and data folders.
It's driving me mad because it seems that the root is working but the app just don't ask for root permission.
P.S. The app is Freedom, v1.0.6
Thanks for the help!
What app did you mean which cant get root permission?
Sent from my GT-I9205 using XDA Free mobile app