Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,810,757 Members 36,578 Now Online
XDA Developers Android and Mobile Development Forum

[GUIDE] Change SuperUser client in ROM.zip [OPTIMA-TEAM]

Tip us?
 
skyinfo
Old
(Last edited by skyinfo; 23rd July 2014 at 12:26 PM.)
#1  
skyinfo's Avatar
Senior Member - OP
Thanks Meter 407
Posts: 309
Join Date: Sep 2013
Location: Kottayam, Kerala-INDIA
Default [GUIDE] Change SuperUser client in ROM.zip [OPTIMA-TEAM]

Hello guys,
Today I will show you a simple method to change Superuser Client - From ChainsDD's/Koush's SuperUser to chainsfire's SuperSU.
I personally prefer the SuperSU over SuperUser.
If you are unsure, you might want to read up on it.
For a basic idea, look here - http://getandroidstuff.com/superuser...t-at-its-best/

So, if you're a ROM dev/porter, and would like to replace, this is what you need to do!

What you need
  • Latest SuperSU and binary - can be found here
  • The ROM you're working on!
  • WinRAR (or similiar)
  • 5 minutes of time!

Instructions
  1. Download the SuperSU.zip
  2. Extract it!
  3. From the common-folder copy the superuser.apk
  4. Open your ROM's flashable .zip via WinRAR
  5. Navigate to /system/app
  6. Replace the superuser.apk from the .zip we extracted
  7. Go to our extracted SuperSU folder
  8. From the arm-folder copy su
  9. Navigate through ROM.zip to /system/xbin
  10. Replace the su
  11. WinRAR will update the archive!
  12. Profit!

In case the above doesn't work out for you, then also copy chattr and chattr.pie from arm-folder to /system/xbin of your ROM.zip
(Thanks to @F4uzan and @-CALIBAN666- for the tip!)

Thats it!
Enjoy!!
LG Optimus L5 E612
ROM: CyanogenMod 11 Beta 9.4 by PecanCM
Kernel: SKernel Beta 0.6.1
Android: KitKat 4.4.4 [KTU84Q]
Recovery: TWRP 2.8.0.0

If anybody helped you, remember to thank them!


Connect with Optima Team on Facebook || XDA
The Following 6 Users Say Thank You to skyinfo For This Useful Post: [ Click to Expand ]
 
droidxx9
Old
#2  
Member
Thanks Meter 14
Posts: 64
Join Date: Jan 2014
Nice tutorial.
Seems easy!

Sent from my IdeaTab A2107A-F using xda app-developers app
 
F4uzan
Old
#3  
F4uzan's Avatar
Recognized Contributor
Thanks Meter 1,448
Posts: 2,666
Join Date: Jul 2012
Location: Bandung, Indonesia
One suggestion :
On some ROM it's needed to copy chattr and chattr.pie from arm folder

Great guide, btw
| F4uzan | Optima Team
------------------------------------



The Following User Says Thank You to F4uzan For This Useful Post: [ Click to Expand ]
 
skyinfo
Old
#4  
skyinfo's Avatar
Senior Member - OP
Thanks Meter 407
Posts: 309
Join Date: Sep 2013
Location: Kottayam, Kerala-INDIA
Quote:
Originally Posted by F4uzan View Post
One suggestion :
On some ROM it's needed to copy chattr and chattr.pie from arm folder

Great guide, btw
Thanks, where should the chattr and chattr.pie be copied too?
I shall update OP!
LG Optimus L5 E612
ROM: CyanogenMod 11 Beta 9.4 by PecanCM
Kernel: SKernel Beta 0.6.1
Android: KitKat 4.4.4 [KTU84Q]
Recovery: TWRP 2.8.0.0

If anybody helped you, remember to thank them!


Connect with Optima Team on Facebook || XDA
 
-CALIBAN666-
Old
#5  
-CALIBAN666-'s Avatar
Recognized Contributor
Thanks Meter 3,367
Posts: 5,612
Join Date: Feb 2012
Location: Leverkusen
system/xbin
The Following 2 Users Say Thank You to -CALIBAN666- For This Useful Post: [ Click to Expand ]
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes