[Q] SuperSU - Losing root every few minutes? - One (M7) Q&A, Help & Troubleshooting

Hi,
I'm not sure if I'll explain this properly but here it goes:
Phone: AT&T HTC One
ROM/OS: GPE 4.3 (this one - link)
SuperSU Version: 1.65. I updated from the 1.51 on the ROM because I was getting 'binary needs updating' messages and it would never update.
Issue:
I have apps like QuickBoot and SnapCapture[Root] that seem to only work for a few minutes after initially opening the app (I see a small popup on the screen that states "*App* has been granted superuser permissions for an interactive shell"). After like 10 minutes, without a prompt, that access goes away. In the case of SnapCapture, it no longer captures my SnapChats. I need to manually go back into the app and it'll re-grant root access for another period of time.
How do I get SuperSU to give permanent root access so long as the phone is on?
Is this because the OS is killing the SnapCapture process?
Any help would be appreciated. Thanks!

Try SuperUser instead, version 1.0.2.1 by Koush Dutta and see if that makes any difference. If it works, uninstall SuperSU. Hope this helps.

Gr8man001 said:
Try SuperUser instead, version 1.0.2.1 by Koush Dutta and see if that makes any difference. If it works, uninstall SuperSU. Hope this helps.
Click to expand...
Click to collapse
Thanks, I installed it via recovery and I am getting the "Install Superuser - The su binary is out of date" message. When I try to update it from within the app via the recovery method, it fails. "There was an error installing Superuser. Please send a log of the error to the developer."
Also, it removed SuperSU by itself? I got back on the phone and root was lost and SuperSU was gone.
So I tried running the .zip again and did see it mention that it was updating the armeabi binaries. I'm guessing those are different...
As soon as the phone starts up, it brings up the # notification icon to update the binaries.
I'm back on SuperSU for now...
EDIT: I installed via the APK (instead of the .zip recovery method) and it installed. When I opened Superuser, it prompted me to update and I just did install (not through recovery) and got a successful message. I then rebooted and SuperSU was still there. Google Play store prompted me to update Superuser so I did. When I opened it post update, I was back to the beginning of this post.
I'm back on SuperSU yet again...

Check out the following thread:
http://forum.xda-developers.com/showthread.php?t=1538053
I also have a flashable zip that has always worked for me,
Not my creation but can't find the post where I downloaded from. If you send me your email, I can send you the zip file.Good luck.
---------- Post added at 11:12 PM ---------- Previous post was at 11:08 PM ----------
Also make sure busybox is installed and uptodate.

Gr8man001 said:
Check out the following thread:
http://forum.xda-developers.com/showthread.php?t=1538053
I also have a flashable zip that has always worked for me,
Not my creation but can't find the post where I downloaded from. If you send me your email, I can send you the zip file.Good luck.
---------- Post added at 11:12 PM ---------- Previous post was at 11:08 PM ----------
Also make sure busybox is installed and uptodate.
Click to expand...
Click to collapse
Thanks.
I had BusyBox 1.20.x installed but just updated to the latest. You think not having the latest BB is what was causing my apps to only gain root for 10 minutes at a time?
I'm on SuperSU 1.65 and the latest BusyBox now.

I think I fixed my own issue, for anyone that finds this. The problem was not with SuperSU or Superuser.
It was the fact that I have an application called 1Tap Cleaner installed which cleans my cache. I stumbled upon this by accident, but every time I clear the cache, and re-open the app, it would ask for root access. If I didn't, and re-opened, it was fine.
My cache was being cleaned every hour.

Related

[Root] Replacing Superuser app with Super SU by CF

Super SU by CF
SuperSU is the Superuser access management tool of the future
Features include:
- Superuser access prompt
- Superuser access logging
- Superuser access notifications
- Per-app notification configuration
- Temporary unroot
- Deep process detection (no more unknowns)
- Works in recovery (no more segfaulting)
- Works when Android isn't properly booted
- Works with non-standard shell locations
- Trusts ADB connection
- Always runs in ghost mode
- Wake on prompt
The Pro version additionally offers:
- OTA survival mode (no guarantees)
- Full color-coded command content logging (input/output/error)
- Per-app logging configuration
- Per-app user override
- PIN protection
Who, What Why ? - said by CF
As you may know, I make a lot of apps that use or require root. I also release rooted kernels. I run into a lot of issues with existing Superuser tools. More importantly, a lot of my users run into these issues as well and then email me about it. So I decided to do something about this. Doesn't mean these were problems you have ever seen, or will ever see.
And thus, I have written - pretty much from scratch - SuperSU. I have taken the su binary command line parameter parsing from Superuser, to make sure that is compatible. Aside from that, it is completely rewritten, because how I wanted to do a number of things was incompatible with the existing codebase.
This is not a stab at ChainsDD, or his skills. He has done great work and will no doubt continue to do so, however, I felt the need for some of these changes, and thus made them. This is an early release, so I expect there will be some unforseen issues somewhere.
From now on, all CF-Root and Mobile ODIN Pro (EverRoot) releases will be built around SuperSU.
Please note that SuperSU is not hardened-security-tested or reviewed, and may be exploitable (... as may other solutions ...).
Install :
Flashable Zip v0.93
Market :
Lite
Pro
Note : Pro is key only, you need to install lite version first.
If you install from market, you will have two superuser, remove older one with system appl remover, or any other application can perform same job.
Remember, if you remove older first without installing newer one, you will lose Root n newer won't run.
One more thing market version will be regular application, so hard reset can delete it. So better install with flashable zip, to make it system application.
Source : http://forum.xda-developers.com/showthread.php?t=1538053
Thanks a lot doc. Gonna give it a try.
---------- Post added at 05:52 PM ---------- Previous post was at 05:50 PM ----------
Sorry to say but this belongs to General Section.
Nice one, Dr.Ketan.
Perhaps your fine installation instruction could also include this:
"Superuser (the old one) is a system app and should be removed from /system/app/ folder using Root Explorer, ES Eplorer with root permissions, or similar explorer app. Titanium Backup does not show Superuser in its app list, and therefore cannot remove it."
Otherwise you'll be swamped with Titanium questions.
This is modding
any thing android Mod, should be better place under development.
thogh let's leave it upon moderator..
dr.ketan said:
This is modding
any thing android Mod, should be better place under development.
thogh let's leave it upon moderator..
Click to expand...
Click to collapse
i think it doesnt work if USB debugging is enabled and if it is disabled then it works fine...
grgsiocl said:
i think it doesnt work if USB debugging is enabled and if it is disabled then it works fine...
Click to expand...
Click to collapse
CF says he has fixed that bug in v0.74, and that's the one posted here.
I have no issue with USB debugging ON
Confirmed working fine! Recommended to install via CWM. It will replace the other automatically so you don't have to manually remove it.
Sent from my GT-N7000 using XDA
kopitalk said:
Confirmed working fine! Recommended to install via CWM. It will replace the other automatically so you don't have to manually remove it.
Sent from my GT-N7000 using XDA
Click to expand...
Click to collapse
Newbie question here, (sorry) so you don't just download from the market/play store..... open and it will install on it's own?
Sent From my Two Tin Cans & String Device on The Wookie Network
It will install, but not as system application. So it is recommended to flash with CWM. as well you have to remove old manually, if you install from market
dr.ketan said:
It will install, but not as system application. So it is recommended to flash with CWM. as well you have to remove old manually, if you install from market
Click to expand...
Click to collapse
Another newbie question... Is there enough of a difference between superuser & supersu for a newbie to risk mucking up their phone?
Thanks!
EDIT : are there instructions as to how to flash with CWM? SORRY!!
Sent From my Two Tin Cans & String Device on The Wookie Network
Superuser v0.75 has been released.
Changelog:
10.03.2012 - v0.75
- Adjustment to OTA survival (better!)
- Slight speedup in Settings
- Fixed native settings update after temp-re-root
- Clear data no longer clears PIN code
- Layout: Prompt: Grant and Deny switch positions (ICS style)
- Layout: AppDetail: Save and Cancel switched positions (ICS style)
- Layout: Added xlarge PIN layout
http://forum.xda-developers.com/attachment.php?attachmentid=940641&d=1331395344
P.S. Dr.Ketan, when I try to download CWM flashable zip from your 1st post I get a 404.
Ya b'coz link replaced by CF with new version
updated now
dr.ketan said:
Ya b'coz link replaced by CF with new version
updated now
Click to expand...
Click to collapse
even mobile Odin is updated with 2.25
Very Slow Boot Up Following Switch to SuperSU Pro
My Note is running rooted stock ROM with Franco.kernel v6. After installing the SuperSU v.75.zip with CWM and installing the Pro key, and removing Superuser.apk my Note is VERY slow to boot up. It took less than 1 minute immediately prior to SuperSU and now takes 5-6 minutes. It runs wifi and mobile data and sync together EVERY time it boots. It never did this before. It also runs "Media Scanning 6-8 times before it finishes booting.
I'm not complaining, just informing. I realize that this is a new work in progress as posted in the OP post #1. Is anyone else having these issues? If not, any suggestions to correct these problems? I have tried clearing Dalvik and cache partition through CWM app.
Thank you for any help and/or advice.
kraz
krazman325 said:
My Note is running rooted stock ROM with Franco.kernel v6. After installing the SuperSU v.75.zip with CWM and installing the Pro key, and removing Superuser.apk my Note is VERY slow to boot up. It took less than 1 minute immediately prior to SuperSU and now takes 5-6 minutes. It runs wifi and mobile data and sync together EVERY time it boots. It never did this before. It also runs "Media Scanning 6-8 times before it finishes booting.
I'm not complaining, just informing. I realize that this is a new work in progress as posted in the OP post #1. Is anyone else having these issues? If not, any suggestions to correct these problems? I have tried clearing Dalvik and cache partition through CWM app.
Thank you for any help and/or advice.
kraz
Click to expand...
Click to collapse
what you said was true...it slows up booting...but what i did was, in supersu app, i selected grant as default and there is no need for prompt...after that, booting as speed up!
I actually found my own solution as you were posting! Thanks for your help, grgsiocl!!! I did leave default access set to PROMPT though as it will only show the first time until i grant permission.
MY SOLUTION: I unchecked the show Notification Toasts, rebooted and total boot up took 50 seconds!
Sorry for wasting space in this thread!!! Hopefully, anyone else having similar trouble will see this.
kraz
Thanks Doc!flashing now
krazman325 said:
I actually found my own solution as you were posting! Thanks for your help, grgsiocl!!! I did leave default access set to PROMPT though as it will only show the first time until i grant permission.
MY SOLUTION: I unchecked the show Notification Toasts, rebooted and total boot up took 50 seconds!
Click to expand...
Click to collapse
Yeah, this is what CF has to say about it in his original thread:
Chainfire said:
PROTIP:
For extra performance, disable notifications. Logging does not impact performance much.
Click to expand...
Click to collapse
I think it would have been better to just link to chainfires thread rather than repost what he posted.

Problem installing Xposed since 2.6.1

Hey
I tried to update Xposed FW from 2.60 to 2.61 and when I tried to install the app_process and XposedBridge.jar files via the Framework menu it takes forever and then a notifiation pops up saying I should make sure my phone is rooted and shell commands aren't blocked.
I did nothing to the phone since the last update to 2.60 and every other Xposed update before worked.
I have a rooted Nexus 5 and SUper SU 1.97
Super SU doesn't show a request to approve Xposed rights.
I tried to install an older version of Xposed but that doesnt work.
I cleared the cache of xposed fw and uninstalled, then reinstalled it with several reboots in between. Nothing works.
It keeps saysing xposed is not activated, I should root my phone and that's it.
How can I force SuperSU to ask for root rights for xposed?
Thanks
EDIT: Just saw in the SuperSU log file that it says I need Super SU Pro for Xposed Framework???
sutobe said:
I tried to update Xposed FW from 2.60 to 2.61 and when I tried to install the app_process and XposedBridge.jar files via the Framework menu it takes forever and then a notifiation pops up saying I should make sure my phone is rooted and shell commands aren't blocked.
Click to expand...
Click to collapse
Open SuperSU, find "Xposed Installer" and make sure it's set to grant root access. You can also try tapping on "Forget" and you should get asked next time you try to install the framework.
sutobe said:
EDIT: Just saw in the SuperSU log file that it says I need Super SU Pro for Xposed Framework???
Click to expand...
Click to collapse
That's just to see a detailed log.
GermainZ said:
Open SuperSU, find "Xposed Installer" and make sure it's set to grant root access. You can also try tapping on "Forget" and you should get asked next time you try to install the framework.
That's just to see a detailed log.
Click to expand...
Click to collapse
The Problem was SuperSU 1.97.
It seems as the phone will lose root with this version (what would make sense then). In the 1.97 announcement post of Chainfire on Google+ was another comment to version 1.98 which fixes the root loss issue (meanwhile SuperSU is already version 1.99).
Xposed is working again after updating SuperSU.

[Solved] SU Doesn't Work With Layers ROMs

It doesn't matter what ROM I flash (Chroma, RastaPop, Terminus, etc) and whether its 5.0.1, 5.0.2, or 5.1, but no matter what I won't have root access even when I flash SuperSU v1.94 via TWRP. It installs successfully and the su binary exists in /system/xbin and the apk exists in /system/app so I have no idea what the problem is. Every time I open up the layers app it says that I don't have root access and then directs me to download super user from the play store. Even when I open the SuperSU app it tells me that the binary isn't installed, even though it is. This is confusing the hell out of me.
What's even more odd is that ROMs that require flashing the SuperSU zip but DON'T include layers work perfectly!
brando56894 said:
It doesn't matter what ROM I flash (Chroma, RastaPop, Terminus, etc) and whether its 5.0.1, 5.0.2, or 5.1, but no matter what I won't have root access even when I flash SuperSU v1.94 via TWRP. It installs successfully and the su binary exists in /system/xbin and the apk exists in /system/app so I have no idea what the problem is. Every time I open up the layers app it says that I don't have root access and then directs me to download super user from the play store. Even when I open the SuperSU app it tells me that the binary isn't installed, even though it is. This is confusing the hell out of me.
What's even more odd is that ROMs that require flashing the SuperSU zip but DON'T include layers work perfectly!
Click to expand...
Click to collapse
im using terminus, with layers, and supersu, and it works perfectly. what you should do next time it happens is uninstall layers, thrn reinstall it.
simms22 said:
im using terminus, with layers, and supersu, and it works perfectly. what you should do next time it happens is uninstall layers, thrn reinstall it.
Click to expand...
Click to collapse
By "uninstalling Layers" do you mean "Layers Manager"? If so it's not installed to begin with, although it's present in the System menu. Maybe I'm doing something wrong. It's not just Layers that doesn't have SU rights, nothing does.
@simms22 on a sidenote, it seems we're only a few miles away from each other, I'm over in Hoboken. Heading to Midtown in a few for a Linux job interview
Isn't 1.94 out of date? I thought we were on 2.46 or something
joshm.1219 said:
Isn't 1.94 out of date? I thought we were on 2.46 or something
Click to expand...
Click to collapse
it is out of date. i didnt see he said hes using that one.
---------- Post added at 02:28 PM ---------- Previous post was at 02:26 PM ----------
brando56894 said:
By "uninstalling Layers" do you mean "Layers Manager"? If so it's not installed to begin with, although it's present in the System menu. Maybe I'm doing something wrong. It's not just Layers that doesn't have SU rights, nothing does.
@simms22 on a sidenote, it seems we're only a few miles away from each other, I'm over in Hoboken. Heading to Midtown in a few for a Linux job interview
Click to expand...
Click to collapse
good luck with your interview!
btw, the supersu that you tried using is way out of date, thats why it wont work. you need to grab the latest supersu here http://download.chainfire.eu/695/SuperSU/UPDATE-SuperSU-v2.45.zip
Yep that was it! Silly me, where the hell did I get v1.94 from?? I swore I downloaded it from one of the ROM OPs here but I probably just googled it and downloaded the first one I saw from Chainfire's site lol

Uninstall as system app

The method I used for rooting my LG G3 (v5.0.1) installs SuperSU (2.46) as a system app. I would much prefer to have it be a regular app (as it has always been on my Android devices prior to v5.0). When I use SuperSU to clean up in preparation for "another" SU app, it removes itself and leaves behind a few files (including the su binary) in /system/xbin.
All well and good. However, after now installing SuperSU from the Google Play Store, SuperSU gives the message that there is no su binary installed, and of course refuses to work. I even tried copying su to "sux" and giving the latter 4755 privileges (while still rooted), but that didn't help.
Is this a bug in SuperSU, or is it a necessity of Android 5.x ???
ps: The XDA forum software will not let me post this as a question. Where do I post questions about SuperSU?
DeanGibson said:
The method I used for rooting my LG G3 (v5.0.1) installs SuperSU (2.46) as a system app. I would much prefer to have it be a regular app (as it has always been on my Android devices prior to v5.0). When I use SuperSU to clean up in preparation for "another" SU app, it removes itself and leaves behind a few files (including the su binary) in /system/xbin.
All well and good. However, after now installing SuperSU from the Google Play Store, SuperSU gives the message that there is no su binary installed, and of course refuses to work. I even tried copying su to "sux" and giving the latter 4755 privileges (while still rooted), but that didn't help.
Is this a bug in SuperSU, or is it a necessity of Android 5.x ???
ps: The XDA forum software will not let me post this as a question. Where do I post questions about SuperSU?
Click to expand...
Click to collapse
Sorry as I don't have a solution for your problem....
But still as far as I know Super user 2.46 is not fully compatible with android 5 & above.
On other hand I would suggest you to give a try to super user 2.49 beta which is the latest but still under development.
Hope you find this useful.
ayushbpl10
DeanGibson said:
The method I used for rooting my LG G3 (v5.0.1) installs SuperSU (2.46) as a system app. I would much prefer to have it be a regular app (as it has always been on my Android devices prior to v5.0). When I use SuperSU to clean up in preparation for "another" SU app, it removes itself and leaves behind a few files (including the su binary) in /system/xbin.
All well and good. However, after now installing SuperSU from the Google Play Store, SuperSU gives the message that there is no su binary installed, and of course refuses to work. I even tried copying su to "sux" and giving the latter 4755 privileges (while still rooted), but that didn't help.
Is this a bug in SuperSU, or is it a necessity of Android 5.x ???
ps: The XDA forum software will not let me post this as a question. Where do I post questions about SuperSU?
Click to expand...
Click to collapse
If you want to make SuperSU a user app:
If SuperSU was "updated" by the Play Store (ie there's an eu.chainfire.supersu-*.apk in /data/app), then delete /system/app/SuperSU.apk and reboot. If it's flashed *and* the afore mentioned apk is *not* in /data/app, then move /system/app/SuperSU.apk to /data/app and reboot.
Sent from: SGS2 - JB 4.1.2 GB27 / SGS4 - JB 4.2.2 MF9
Sent from my Aqua i5 mini using xda-developers.com, powered by appyet.com
DeanGibson said:
The method I used for rooting my LG G3 (v5.0.1) installs SuperSU (2.46) as a system app. I would much prefer to have it be a regular app (as it has always been on my Android devices prior to v5.0). When I use SuperSU to clean up in preparation for "another" SU app, it removes itself and leaves behind a few files (including the su binary) in /system/xbin.
All well and good. However, after now installing SuperSU from the Google Play Store, SuperSU gives the message that there is no su binary installed, and of course refuses to work. I even tried copying su to "sux" and giving the latter 4755 privileges (while still rooted), but that didn't help.
Is this a bug in SuperSU, or is it a necessity of Android 5.x ???
ps: The XDA forum software will not let me post this as a question. Where do I post questions about SuperSU?
Click to expand...
Click to collapse
If all you wanted to do was make it a user app, reroot, open supersu, go to cleanup and choose for reinstallation. After choosing that, if it says to reboot then press it again, do so, else reboot and install supersu from play. Done, supersu as a user app
mmonaghan34 said:
If all you wanted to do was make it a user app, reroot, open supersu, go to cleanup and choose for reinstallation. After choosing that, if it says to reboot then press it again, do so, else reboot and install supersu from play. Done, supersu as a user app
Click to expand...
Click to collapse
That doesn't work (v2.46 on LG G3 running v5.0.1). It loops trying to uninstall. After a couple minutes, I forced a reboot. SuperSU was still there, and as a system app.
Edit: The same thing happens when I tell SuperSU to completely unroot the LG G3. Since I needed to unroot in order to apply an LG/Verizon OTA update, I used LG's Flash Tool to replace the system partition (THAT removed SuperSU!), and then the OTA update was successful.
Since LG now supplies an on-phone backup/restore tool for the G3 as part of the Settings menu, I no longer need to run Titanium Backup, which means I no longer need root. Given the nuisance issues with rooting/unrooting/system updating/etc, I've decided to remain unrooted on the LG G3 for the time being. Quite a change for me, since this is the first Android device in well over a dozen for which I've made this decision.

SuperSu 2.67 missing icon in launcher

I installed SuperSu v2.67 on a Nexus 5 running stock Marshmallow 6.0.1, and SuperSu works great for me so far!
The only (minor) issue I've encountered thus far is that the SuperSu icon seems to be missing from the Google Now launcher home screen and app drawer.
I can still launch SuperSu by searching for it in the Google Play store and clicking "Open", and it still pops up when an unauthorized app is requesting root access.
I've tried to do a complete unroot + reinstall, change the SuperSu icon from the app's settings etc. - without success.
Has anyone else encountered this? Is there any way to get SuperSu icon to show up?
Thanks in advance.
Try this with your computer:
adb uninstall eu.chainfire.supersu
Reboot back into Android, then reboot into recovery and reflash, or extract the APK from the zip and "adb install" it.
Edit:
Correction! Found the icon. It was buried in the app drawer all along. What threw me off was that for some reason, when I write "SuperSu" or any prefix of the name in the search box at the top, it doesn't find SuperSu, like it does pretty much any other app. Weird.
Anyway, thanks for the help and sorry about the false alarm.
Chainfire said:
Try this with your computer:
adb uninstall eu.chainfire.supersu
Reboot back into Android, then reboot into recovery and reflash, or extract the APK from the zip and "adb install" it.
Click to expand...
Click to collapse
I'm having a similar problem as the OP except that 2.6.7 binaries don't install on a T-Mobile Note 4 (SM-910T3) in either Lollipop or Marshmallow using either the Normal or TWRP methods. 2.6.5 and 2.6.6 binaries install properly, however.
I tried the command in recovery and got the following error:
In other words, you have a completely different problem that isn't even vaguely related. Not enough info, wrong thread.
Also, adb uninstall doesn't work from recovery, only full Android.
Chainfire said:
In other words, you have a completely different problem that isn't even vaguely related. Not enough info, wrong thread.
Also, adb uninstall doesn't work from recovery, only full Android.
Click to expand...
Click to collapse
You're right I didn't explain things right. My ROM comes preinstalled with SuperSU 2.6.6 and I have the same issue as the OP as the app doesn't appear in either app drawer and I can't launch it from the Play Store either. I'll try adb uninstall properly.
The 2.6.7 failed install is a separate issue. Do I start another thread here in the same forum? What info do you need?
Mate if adb shell not working then use this as i got same issues before anyway go to setting/application manger then roll down to find this
eu.chainfire.supersu
Then uninstall it & reboot then re install supersu app extracted from supersu zip it should work for u ok
thereassaad said:
Mate if adb shell not working then use this as i got same issues before anyway go to setting/application manger then roll down to find this
eu.chainfire.supersu
Then uninstall it & reboot then re install supersu app extracted from supersu zip it should work for u ok
Click to expand...
Click to collapse
Thanks. I got it to uninstall and was able to reinstall, but it still wouldn't show up in app drawer or open from the Play Store.

Categories

Resources