Give an app su permissions? - LineageOS Questions & Answers

I installed the su addon from Lineage extras.
Root Permissions are set to 'Apps & ADB'
"Manage root accesses" is greyed out.
How can I assign root permission to AFWall?

z0m8i3 said:
I installed the su addon from Lineage extras.
Root Permissions are set to 'Apps & ADB'
"Manage root accesses" is greyed out.
How can I assign root permission to AFWall?
Click to expand...
Click to collapse
If something needs root access it will ask you. It is not something you can give to an app before it is needed. Once you have granted permission to one or more apps the "Manage root access" will no longer be greyed out.
Sent from my Nexus 6 using Tapatalk

SteveYoungs said:
If something needs root access it will ask you.
Click to expand...
Click to collapse
I uninstalled AFWall & reinstalled, it never asked for root. When I launch it, it gives me the "Make sure it has su permissions" notice. Is there any way to trigger it?
Not sure if its related, but when I go to AFWall Preferences -> Log -> Turn on log service:
"Unable to start log service.LogTarget is not empty or LogService not enabled."

z0m8i3 said:
I uninstalled AFWall & reinstalled, it never asked for root. When I launch it, it gives me the "Make sure it has su permissions" notice. Is there any way to trigger it?
Not sure if its related, but when I go to AFWall Preferences -> Log -> Turn on log service:
"Unable to start log service.LogTarget is not empty or LogService not enabled."
Click to expand...
Click to collapse
I'm not familiar with AFWall, sorry. Launching it should have triggered the request to grant su perms, at least to my mind it should have.
Sent from my Nexus 6 using Tapatalk

z0m8i3 said:
I installed the su addon from Lineage extras.
Root Permissions are set to 'Apps & ADB'
"Manage root accesses" is greyed out.
How can I assign root permission to AFWall?
Click to expand...
Click to collapse
Late reply but I just had this problem, so in case it could help someone else : I made a mistake to install the addonsu in its last version, on my Lineage 14.1. Big mistake... everything seemed to be ok, except this unability to give root permissions to app (they weren't asking me for at all) and this "greyed out" symptom described here.
I just uninstalled this addonsu to reflash it with the 14.1 version corresponding to my Lineage and... here we goooo....

Related

[Q] su permission denied

Hello there,
I just flashed a new ROM (Gingerbread 2.3.7) last night. After signing in the Google account everything is great; the old apps got redownloaded and all. I noticed that there is no apps listed in the superuser. I tried 'su' command in the emulator terminal & I got permission denied.
Luckily all the apps are working in perfect harmony. However, how do I get the superuser permission back? It seems like my device is not rooted. Do I need to root my phone again? Fingers crossed I don't.
Initially, I tried to flash the Ice Cream Sandwich. I tried multiple times but to no avail. I even tried to change the HBOOT (from CM7 > downgrader > Stock HBOOT) but the process failed. I afraid that this might be the cause my root access got lost. Anyone can verify this?
Thanks!
Su app will be built into the ROM so you should still rooted. Sounds like Su settings are just defaulting to deny. Open Su, menu > settings and check its set at prompt (safer than allow). After flashing new Rom you'll need to launch apps that require root access to allow them permission again. You might need to update the Su app or binaries if permissions don't stick.
Sent from my HTC Desire using Tapatalk 2
beachcomber said:
Su app will be built into the ROM so you should still rooted. Sounds like Su settings are just defaulting to deny. Open Su, menu > settings and check its set at prompt (safer than allow). After flashing new Rom you'll need to launch apps that require root access to allow them permission again. You might need to update the Su app or binaries if permissions don't stick.
Sent from my HTC Desire using Tapatalk 2
Click to expand...
Click to collapse
beachcomber,
1. my Superuser is set at prompt.
2. I am not sure which app that require root access. Could you give me some examples so that I can run them?
3. I tried to update the su binaries, but I got this:
" checking current install path...FAIL!"
" failed to find currently installed su binary. Update cannot continue."
Therefore, what do you suggest?
Thanks.
xuminarc said:
beachcomber,
1. my Superuser is set at prompt.
2. I am not sure which app that require root access. Could you give me some examples so that I can run them?
3. I tried to update the su binaries, but I got this:
" checking current install path...FAIL!"
" failed to find currently installed su binary. Update cannot continue."
Therefore, what do you suggest?
Thanks.
Click to expand...
Click to collapse
Take a backup. Download this. Flash it through recovery. Reboot and check if it works.
Alaa said:
Take a backup. Download this. Flash it through recovery. Reboot and check if it works.
Click to expand...
Click to collapse
Thank you! It works!

Lost shell root access

Hi,
i have a rooted Desire Z currently running CM9 RC2, and I've noticed recently that my # shell has been replaced by a [email protected]:/ and it seems like I don't have root access there. I can't ls in /data/ for example, and su throws a permission denied error. However, apps that require root access(such as Titanium Backup) still seem to work. I noticed this happen right after I installed and ran Busybox. I did not even install busybox from the app as I already have it. I was just trying to get the apk file for another device with no internet access. I'm not sure if this app is what caused it, but it was when I noticed it.
In any case, short of a nandroid restore how do I get back shell root access and the proper shell?
Thanks.
Most likely your root access under System Settings -> Development was changed from "ADB and Apps" to "Apps Only".
PS: why would you be installing busybox, CM9 came with it (likewise with superuser and su).
Thanks. That worked.
Like I mentioned in my original post
I did not even install busybox from the app as I already have it. I was just trying to get the apk file for another device with no internet access.
Click to expand...
Click to collapse
goister said:
Thanks. That worked.
Like I mentioned in my original post
Click to expand...
Click to collapse
Though your quote here conflicted so wasn't sure :
I noticed this happen right after I installed and ran Busybox.
Click to expand...
Click to collapse
Sorry for the confusion, by running busybox I meant simply launching the Busybox app(which is just an installer, not busybox itself), but not clicking the "install busybox" button in the app to actually install busybox on my phone.

[Q] "Shell denied by superuser"

Hey guys,
I've got a stupid problem which only is solved by rebooting: It is showing every so time "Shell has been denied by Superuser"
And that stupid message pops all the time until you reboot. (going to superuser/log shows every 1/10th of a second a new log of 'Shell has been denied by superuser".
I got CyanogenMod 10 with N7C (or something) kernel and don't have any apps on it, except a few standard stuff. And Afterburner Cyanogen10 theme (which does show when installing that theme "This theme is missing some files for your screen".
What is the problem and how do I resolve this? I can't find anything in Superuser to grant Shell permission ..
Thanks in advance!
You can select the app in superuser and assign the permission. Or if there's a reset permissions button somewhere in settings you can try that.
Sent from my cardboard box
tomascus said:
You can select the app in superuser and assign the permission. Or if there's a reset permissions button somewhere in settings you can try that.
Sent from my cardboard box
Click to expand...
Click to collapse
Hmm, well already looked twice for such thing, before this reply.. But will look again, since I can't find it :s
And what if you set default acces to grant in the SU-app after clearing permissions data?
Sent from my HTC One X using xda premium

Root Access Problem (CM10.1)

Hello, everybody. I installed CM10.1 (from arco68) 3 days ago. It's cool, but I have a problem about root access. It seems there's no problem, but I can't get root access.
Options -> #SuperUser -> Settings "Apps and ADB" enabled.
Options -> Developer Options -> Root Access "Apps and ADB" enabled.
And still I can't get root access. When I try to enter ann app which requires root access, SuperUser must ask me for allow or deny, but no. Instead, the app warns me about I don't have root access.
Also I tried installing "update.zip" file again. I entered "superuser" app in applications menu, but nothing different... It doesn't work.
Before CM10.1, I was able to use root access.
What do you think? What is the problem? What is the solution?
Unknown_Man2168 said:
Hello, everybody. I installed CM10.1 (from arco68) 3 days ago. It's cool, but I have a problem about root access. It seems there's no problem, but I can't get root access.
Options -> #SuperUser -> Settings "Apps and ADB" enabled.
Options -> Developer Options -> Root Access "Apps and ADB" enabled.
And still I can't get root access. When I try to enter ann app which requires root access, SuperUser must ask me for allow or deny, but no. Instead, the app warns me about I don't have root access.
Also I tried installing "update.zip" file again. I entered "superuser" app in applications menu, but nothing different... It doesn't work.
Before CM10.1, I was able to use root access.
What do you think? What is the problem? What is the solution?
Click to expand...
Click to collapse
I haven't encounter such problem. Have you tried reinstalling the ROM?
Thanks
herioeks said:
I haven't encounter such problem. Have you tried reinstalling the ROM?
Click to expand...
Click to collapse
Actually, I was looking for a shorter way to fix, but no problem. The important thing is solution of problem. It worked. :good: Thanks for help. Happy new year

EFS Backup

I need to make an EFS backup, never have before and flashed tonnes of roms, lol. But after reading it's probably a good idea.
Currently on CM13.
However, I've run into an issue. I downloaded Terminal Emulator. I enter "su" and it says on a new line: 255|[email protected]:/
So I then tried to enter: dd if=/dev/block/sdf1 of=/sdcard/modemst1.bin bs=512 - and it says permission denied?
Any help? :]
Root access
Are you sure the terminal has root access?
I use a CM13 variant as well and I had to disable and reenable root access from the developer options before any apps were able to get root. After doing that the first time its worked ever since. Even on cm13 you should get a permission prompt when an app requests root.
JoshAulder said:
Are you sure the terminal has root access?
I use a CM13 variant as well and I had to disable and reenable root access from the developer options before any apps were able to get root. After doing that the first time its worked ever since. Even on cm13 you should get a permission prompt when an app requests root.
Click to expand...
Click to collapse
Uh, 'su' is apparently supposed to give the terminal root access, apparently? lol
Sorta new to this.
ritchiedrama said:
Uh, 'su' is apparently supposed to give the terminal root access, apparently? lol
Sorta new to this.
Click to expand...
Click to collapse
When running the terminal app for the first time, entering su does not instantly grant it root access, but instead makes the app request access. If it has never been given you will get a prompt over the screen asking if you want to give the app root access. If you are not getting this prompt, then do this:
Go to developer options in settings
Tap on root access
Set it to disabled
Tap again and select Apps (or apps and adb)
Then run the terminal again and enter su
JoshAulder said:
When running the terminal app for the first time, entering su does not instantly grant it root access, but instead makes the app request access. If it has never been given you will get a prompt over the screen asking if you want to give the app root access. If you are not getting this prompt, then do this:
Go to developer options in settings
Tap on root access
Set it to disabled
Tap again and select Apps (or apps and adb)
Then run the terminal again and enter su
Click to expand...
Click to collapse
Thannks, where are these files once I did this?
It says internal storage but I don't see them.
edit: I see them on my phone but not on my PC when I plug my phone in, weird, lol.
ritchiedrama said:
Thannks, where are these files once I did this?
It says internal storage but I don't see them.
edit: I see them on my phone but not on my PC when I plug my phone in, weird, lol.
Click to expand...
Click to collapse
It should come to /storage/emulated/0
Aka the main internal storage folder which includes things like the downloads and pictures folders. The file should be called modemst1.bin
Hope this helps
Edit: I have no idea why it doesn't show when you plug in your phone. Maybe the file is set to be hidden and you dont have show hidden files and folders enabled on your pc? In any case I just backed mine to my google drive
JoshAulder said:
When running the terminal app for the first time, entering su does not instantly grant it root access, but instead makes the app request access. If it has never been given you will get a prompt over the screen asking if you want to give the app root access. If you are not getting this prompt, then do this:
Go to developer options in settings
Tap on root access
Set it to disabled
Tap again and select Apps (or apps and adb)
Then run the terminal again and enter su
Click to expand...
Click to collapse
JoshAulder said:
It should come to /storage/emulated/0
Aka the main internal storage folder which includes things like the downloads and pictures folders. The file should be called modemst1.bin
Hope this helps
Click to expand...
Click to collapse
I found them on my phone, not my pc.
They were 2mb each and I emailed them to myself and uploaded them to my dropbox, so all good? I can delete them now from my phone?
ritchiedrama said:
I found them on my phone, not my pc.
They were 2mb each and I emailed them to myself and uploaded them to my dropbox, so all good? I can delete them now from my phone?
Click to expand...
Click to collapse
Yep, the terminal only made a copy of the files, so as long as you can get them back when you need them they're safe to delete

Categories

Resources