[Root] Replacing Superuser app with Super SU by CF

dr.ketan

Recognized Developer / Recognized Contributor
Apr 9, 2011
34,362
67,754
263
Gujarat, India
drketanrom.com
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
 

Attachments

Last edited:

M3TALLICA

Senior Member
Nov 14, 2011
1,507
499
103
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.
 

chasmodo

Senior Member
Dec 28, 2011
12,406
41,141
0
Novi Sad
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.:)
 

kopitalk

Senior Member
Feb 4, 2012
2,707
2,008
0
Singapore
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
 

shaggyskunk

Recognized Contributor
Nov 22, 2011
19,351
15,759
253
IDK
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
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
 

shaggyskunk

Recognized Contributor
Nov 22, 2011
19,351
15,759
253
IDK
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
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
 
Last edited:

chasmodo

Senior Member
Dec 28, 2011
12,406
41,141
0
Novi Sad
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.
 

krazman325

Senior Member
Dec 10, 2010
518
107
0
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
 

grgsiocl

Senior Member
Nov 9, 2009
2,891
4,546
0
Kurnool, Andhra Pradesh
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
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!
 
  • Like
Reactions: krazman325

krazman325

Senior Member
Dec 10, 2010
518
107
0
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
 

chasmodo

Senior Member
Dec 28, 2011
12,406
41,141
0
Novi Sad
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!
Yeah, this is what CF has to say about it in his original thread:

PROTIP:

For extra performance, disable notifications. Logging does not impact performance much.