5,595,196 Members 46,898 Now Online
XDA Developers Android and Mobile Development Forum

[Q] What is the Best App or Way to Keep Root after Flashing Zip?

Tip us?
 
xnickfx
Old
(Last edited by xnickfx; 20th January 2014 at 09:06 PM.)
#1  
xnickfx's Avatar
Member - OP
Thanks Meter 81
Posts: 64
Join Date: May 2013
Question [Q] What is the Best App or Way to Keep Root after Flashing Zip?

I love Custom ROMs and Kernels and I'm sure you all do too. It seems that every time I flash my favorite CM ROM which has a built in CM SuperUser found within Settings and then after flashing my favorite kernel, I simply lose root for the ROM and the SuperUser stops working. I want to know how to get the CM SuperUser working again after flashing the zip in recovery.

Here is where my problem seems to be different than others. I can get root back by installing SuperSU and then going to settings and telling it to "Ignore CM Root Settings" and then rebooting, then root access works with SuperSU and the system thinks its doing its job too...but then when I uninstall SuperSU the entire problem comes back.

So my question is, is there a solid method to keeping the built in CM SuperUser found in Settings working as it did before flashing that zip that broke the ROMs root in the first place?

Any help is greatly appreciated! Thanks so much in advance!
 
Cloonix
Old
#2  
Cloonix's Avatar
Member
Thanks Meter 9
Posts: 59
Join Date: Sep 2010
Location: Munich
I think you are experiencing a similar problem like I did ( http://forum.xda-developers.com/show....php?t=2602670 ). Am I right?

My root in CM11 is not working properly. So every time I flash CM11 with TWRP, I have to flash SuperSU right after CM11 and my kernel.

My personal explanation is, that SELinux (enforcing) doesn't work well with CM11 yet.
Google+: http://google.com/+ClausMalter
Twitter: http://twitter.com/Cloonix
Phones: Nexus 5 (CM11 / Franco r32), HTC Desire Z (CM7)
Tablet: Samsung Tab 2 10.1 (CM11)
 
xnickfx
Old
#3  
xnickfx's Avatar
Member - OP
Thanks Meter 81
Posts: 64
Join Date: May 2013
Quote:
Originally Posted by Cloonix View Post
I think you are experiencing a similar problem like I did ( http://forum.xda-developers.com/show....php?t=2602670 ). Am I right?

My root in CM11 is not working properly. So every time I flash CM11 with TWRP, I have to flash SuperSU right after CM11 and my kernel.

My personal explanation is, that SELinux (enforcing) doesn't work well with CM11 yet.
Yeah, I'm pretty sure we are having the exact same problem seeing that it's CM and you flashed a kernel which broke your built-in root.

Isn't there an update for the built-in SuperUser or something? CM is really popular so I know some people have liked it enough to want to keep the built in SuperUser and not use a halfa$$ workaround. Don't get me wrong, SuperSU is LEGIT, but I want the built-in SuperUser this time because I don't want it sitting in the Settings for no purpose.

Anyone? Thank you in advance!
 
mistahseller
Old
(Last edited by mistahseller; 20th January 2014 at 11:06 PM.)
#4  
mistahseller's Avatar
Senior Member
Thanks Meter 161
Posts: 730
Join Date: Mar 2013
Location: Saint Louis
superuser updated today and fixed the CM breaking root deal.


What's New
- New -cn/--context parameter for su binary (devs: see How-To SU update)
- Handle mksh being switched out for sh
- Daemon forces new session immediately at launch (moved up)
- Fixed reading dynamic properties on 4.4 (update ASAP if 4.4 user)
- Fixed issue where root wasn't granted on CM
- Add support for Samsung 4.4
- Update copyright notices to 2014
- Updated language files
Additional information
Updated
January 20, 2014
 
BirchBarlow
Old
#5  
BirchBarlow's Avatar
Senior Member
Thanks Meter 84
Posts: 253
Join Date: Oct 2013
Location: Philadelphia
I think the latest version of SuperSU (1.91) is supposed to fix that.
 
Cloonix
Old
#6  
Cloonix's Avatar
Member
Thanks Meter 9
Posts: 59
Join Date: Sep 2010
Location: Munich
Quote:
Originally Posted by mistahseller View Post
superuser updated today and fixed the CM breaking root deal.


What's New
- New -cn/--context parameter for su binary (devs: see How-To SU update)
- Handle mksh being switched out for sh
- Daemon forces new session immediately at launch (moved up)
- Fixed reading dynamic properties on 4.4 (update ASAP if 4.4 user)
- Fixed issue where root wasn't granted on CM
- Add support for Samsung 4.4
- Update copyright notices to 2014
- Updated language files
Additional information
Updated
January 20, 2014
The problem is imho the built-in superuser by CM (https://play.google.com/store/apps/d...droid.su&hl=en or https://play.google.com/store/apps/d...uperuser&hl=en) not SuperSU. Actually I'm not really sure which one is used in CM.
Google+: http://google.com/+ClausMalter
Twitter: http://twitter.com/Cloonix
Phones: Nexus 5 (CM11 / Franco r32), HTC Desire Z (CM7)
Tablet: Samsung Tab 2 10.1 (CM11)
 
simms22
Old
#7  
simms22's Avatar
Recognized Contributor
Thanks Meter 17943
Posts: 22,557
Join Date: Jun 2009
Location: BROOKLYN!
Quote:
Originally Posted by Cloonix View Post
The problem is imho the built-in superuser by CM (https://play.google.com/store/apps/d...droid.su&hl=en or https://play.google.com/store/apps/d...uperuser&hl=en) not SuperSU. Actually I'm not really sure which one is used in CM.
cm uses superuser. flashing supersu fixes the issue and rids cm of everything superuser related.
Google+ Profile
Twitter Simms22
DerKernel For Trinity kernels and more!
 
xnickfx
Old
(Last edited by xnickfx; 21st January 2014 at 08:57 AM.)
#8  
xnickfx's Avatar
Member - OP
Thanks Meter 81
Posts: 64
Join Date: May 2013
It looks like, at least from all the research I did today, that there actually might be a fix for all this by possibly updating the actual ROMs built-in version of SuperUser.

If you look at this version of the SuperUser app by ClockworkMod on Google Play, you can see in one of the screenshots it shows an app requesting permission from what looks like the exact UI as the built-in SuperUser we see in our CM-based ROMs.

CM Built-In SuperUser App on Google Play:
https://play.google.com/store/apps/d...utta.superuser

Screenshot of SuperUser found on Google Play:


I will report back if I can find a solution or fix!
 
Cloonix
Old
#9  
Cloonix's Avatar
Member
Thanks Meter 9
Posts: 59
Join Date: Sep 2010
Location: Munich
Quote:
Originally Posted by xnickfx View Post
It looks like, at least from all the research I did today, that there actually might be a fix for all this by possibly updating the actual ROMs built-in version of SuperUser.

If you look at this version of the SuperUser app by ClockworkMod on Google Play, you can see in one of the screenshots it shows an app requesting permission from what looks like the exact UI as the built-in SuperUser we see in our CM-based ROMs.

CM Built-In SuperUser App on Google Play:
https://play.google.com/store/apps/d...utta.superuser

Screenshot of SuperUser found on Google Play:


I will report back if I can find a solution or fix!
You could try to get the .apk of SuperSU or CM's superuser and put it in the "app" or "priv-app" folder of your CM-ROM .zip-file.

I tried to simply replace the su-binary in the xbin folder... Stupid idea though. Didn't work out
Google+: http://google.com/+ClausMalter
Twitter: http://twitter.com/Cloonix
Phones: Nexus 5 (CM11 / Franco r32), HTC Desire Z (CM7)
Tablet: Samsung Tab 2 10.1 (CM11)
 
xnickfx
Old
(Last edited by xnickfx; 21st January 2014 at 01:25 PM.)
#10  
xnickfx's Avatar
Member - OP
Thanks Meter 81
Posts: 64
Join Date: May 2013
Bummer, so I didn't find a solution / fix, but I did find some possibly helpful links.

These are options that I researched very deeply in any and every way possible. Notes for found possibilities are noted below the option, if any.

Opt-1 .) Locate where the files or code for the built-in SuperUser are located within ROM and update / replace them with newest version of SuperUser, and also gain root when re-root is needed.

Opt-2 .) Replace SuperUser found in CM-based ROM's Settings with newest version of SuperSU by either deleting from ROM's Settings somehow or keep it and have SuperSU built in ROM's Settings same as current SuperUser.

I do believe that somewhat of Option #2 might be possible. I don't really know for sure yet, but I found these other 2 links that look pretty interesting.
http://forum.xda-developers.com/show....php?t=2033590
http://forum.xda-developers.com/show....php?t=1539711

I know you can install SuperSU and pretty much ditch SuperUser for good, but then you still have it sitting in the ROMs settings for no reason at all.

You can remove and hide SuperUser from the ROMs settings but in order to do that you have to completely disable root. You can remove it by going to Developer Options or SuperUser settings and choosing "disable" for SuperUser Access. Unfortunately when doing this SuperSU immediately stops working even when open and closes the first chance it gets.

If anyone else can shed any light at all on the subject, it would be VERY MUCH appreciated! Thank you!

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


TRENDING IN THEMER...