I'm trying to build an application that will work like Superuser manager application, and will give/deny root premission for all the 'root' applications in my phone,
How can i send the applications that require root to ask me for permission?
I'm trying to add these 2 Java to my app, but it doesn't work, what's worng?
https://github.com/ChainsDD/Superuser/blob/master/src/com/noshufou/android/su/SuRequestActivity.java
https://github.com/ChainsDD/Superuser/blob/master/src/com/noshufou/android/su/SuRequestReceiver.java
Related
i need an app on Android 1.5 which can Backup System apps as APKs.I need to back up the Google apps(Market,gmail etc). Please tell me of an app that can do this and tell me if i need to root my device.
Thanks
You need to root your phone then you can use either SU file manager $1.97 or Root explorer(file manager)$4.00
You need to root it because generally you need super user permissions to manipulate system/app files.
It may be worth it to try a free app that is used for file managing (it will be a related app to the above stated) To attempt to copy the apk file to another location.
Hope that helps
EDIT >> not sure of whether or not those apps are on andriod 1.5 marketplace.
If you don't want to shell out the cash, I believe the free Root Uninstaller (which als requires root permissions) can backup any installed application as an apk or configured to perform backups automatically anytime an app is installed or updated.
Or what is the exact mechanism behind this in Android? I have been using GNU/Linux for many years so I understand the original concept and would not want every app to have root privileges.
The Superuser app allows you to accept & deny all root apps. You can also choose to always allow certain apps, but you don't have to.
I don't quite understand this. Who gives the apps the privileges. I suppose the Superuser app is only the frontend for some system service. And does it work as a white list or as a black list. Meaning: Does every app get root priviliges by default on a rooted phone or do I have to manually give root privileges to desired apps but the rest doesn't even realize it's on a rooted phone.
By default, apps are denied root privileges. If I restore an app that runs as root in the background -along with its data - the app won't work until I launch it & grant it superuser permissions. Droidwall is a good example of this. Droidwall works by denying or allowing 3g and/or wifi access to apps based on your input. It does this by changing the iptables. If I flash a new ROM & restore with Titanium Backup, I usually forget that Droidwall isn't doing its job until I notice ads in an app that isn't supposed to connect. Once the app is launched & I choose to apply the rules, Superuser prompts me to allow the changes. If I do not make a choice within 10 seconds, SU automatically denies the root request.
In short, an app will never run as root (aside from superuser itself, if that counts) without you first allowing it. Also be aware that most everyday apps will never ask for root access as they don't need it to run. Only apps that are making changes to the system (reading or writing) will need root access. As far as accessing your contact data & other stuff you may worry about, any app can do that if it has permission (not root) to do so. When you first install an app, you will see a list of permissions - usually an app needs those permissions to run and there's nothing to worry about.
OK, thanks I understand it more now. What would happen if I didn't install Superuser. Is there a built in daemon for superuser privileges?
Don't fight the powers that be. Install superuser. You need it.
I'm pretty sure you'll get error messages from most root apps. I could be wrong, though. Next time I'm about to flash a new ROM, I'll remove Superuser after I do my backup, just because I'm curious. I'm pretty sure that Superuser or an alternative - if one exists - is necessary. I know the ability is there in the os, but I would think that it would need some kind of vehicle (such as an app) to relay the information. I certainly hope apps wouldn't automatically be granted root privileges, but I'm not sure. It's an interesting question, though.
Roms come pre-loaded with Superuser, and any auto-root method does as well. You would only be without it if you root manually, stay on stock, and choose not to push the app. Or, I guess, if you choose to remove it.
Hello, my device is rooted and I can check it through the Root Checker app and I can also use all the features that require root access (Android Tuner, Root Explorer, etc.) but I cannot use the Permission Pro (aka Permission Denied) app. For instance, when I want to disable some permission feature, it says that the app doesn't have SuperUser permission. Also, I cannot find the app in the app list in the SuperUser app. Also, when I launch the app, the "SuperUser box" didn't pop up for me to select "gain SuperUser permission". What is the problem?
all these google play apps say : supersu permission needed, but the root features work 100% ok without supersu on my phone(its like my phone automaticly give them permission)
question is does superuser do anything and is it needed for safestrap install of rom(would it work without it?)
Superuser/SuperSU/etc only manages root access. If your device is already rooted and you don't have a root manager, then every app can get root.
The description for SU in the XDA-University dictionary explains it better than I could.
Hey guys,
This is the wrong place forum, but I like you guys, so I will ask you a question
Say there is an app that requires root (in this case Cisco AnyConnect rooted version), but I do not want to have root access enabled from within Android OS. Is there a way to install the app with automatic root access? E.g. by flashing it from within the recovery?
Thanks,
Su
Do it need root access or system permissions ?
If it needs root, you must have "su" in android OS.
If it needs system permisssions, you could push it in /system/app/ or /system/priv-app/ (more access than /system/app/)
Hmm, from the description, it seems like root access... ah well, from the CM11 SuperUser settings, seems like it is possible to automatically deny root access to all requests, and only allow selected apps.
Perhaps this is a better way to set up the device...
Sumanji said:
Hmm, from the description, it seems like root access... ah well, from the CM11 SuperUser settings, seems like it is possible to automatically deny root access to all requests, and only allow selected apps.
Perhaps this is a better way to set up the device...
Click to expand...
Click to collapse
every app that wants SU permission should be prompting you the first time to allow or deny it.
if any app gets SU permission without you allowing it, something is wrong.
what i dont understand is, you said the phone is NOT rooted, then mentioned cm11. if you are running cm11, your phone is already rooted.