Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,807,005 Members 38,031 Now Online
XDA Developers Android and Mobile Development Forum

[Q] How to build custom ROM include Superuser?

Tip us?
 
hoang.l.nguyen
Old
#1  
Junior Member - OP
Thanks Meter 0
Posts: 6
Join Date: May 2014
Default [Q] How to build custom ROM include Superuser?

Hi everyone! I'm researching about build custom ROM with AOSP. Now I get problem about how to include Superuser in the ROM. I want after flash ROM user can be already using. I tried copy su binary and superuser apk from zip file and put into system/xbin/su and system/app folder. After flash ROM superuser appear but it notify Su binary need update... Second way I tried work with the guide from Cyanogenmod but same problem. How can I add superuser into custom ROM by other solution?
 
deadgiveaway
Old
#2  
deadgiveaway's Avatar
Senior Member
Thanks Meter 18
Posts: 144
Join Date: Apr 2014
What superuser and what binaries are you using

Sent from my LG-D803 using XDA Free mobile app
 
hoang.l.nguyen
Old
#3  
Junior Member - OP
Thanks Meter 0
Posts: 6
Join Date: May 2014
Quote:
Originally Posted by deadgiveaway View Post
What superuser and what binaries are you using

Sent from my LG-D803 using XDA Free mobile app
I downloaded it from github Superuser. After extract I get su binary and superuser.apk.
 
TheManii
Old
#4  
Wiki Admin / Recognized Contributor
Thanks Meter 1,524
Posts: 3,409
Join Date: Dec 2010
You need to set file permissions on su and Superuser.apk.

Download the flashable installer and check the install script, all the permissions that need to be set are listed in it.
XDA Wiki Moderator
Nexus 4: Stock 4.4.4 (KTU84P) 2013 N7: Stock 4.4.4 (KTU84P)
iTouch 5G: 6.1.2 (10B146) Surface Pro 2: Win8.1u1 (6.3.9600.17085.amd64fre.winblue_gdr.140330-1035)
 
hoang.l.nguyen
Old
#5  
Junior Member - OP
Thanks Meter 0
Posts: 6
Join Date: May 2014
Quote:
Originally Posted by TheManii View Post
You need to set file permissions on su and Superuser.apk.

Download the flashable installer and check the install script, all the permissions that need to be set are listed in it.
How can I change permission file on the system folder, I tried to use Root Browser and copy su binary to another file but can not change.
 
hoang.l.nguyen
Old
#6  
Junior Member - OP
Thanks Meter 0
Posts: 6
Join Date: May 2014
Quote:
Originally Posted by hoang.l.nguyen View Post
How can I change permission file on the system folder, I tried to use Root Browser and copy su binary to another file but can not change.
Help me, plz!!!
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Schedule is up for xda:devcon ’14

With xda:devcon ’14 just around the corner, and the venue close to selling out, there is a lot … more

aLogcat Returns Thanks to XDA Love

The developers of Android, that is Google, gave users several great debugging tools that can be used in … more

And the Winners in the XDA Pebble Development Challenge Are…

Almost two months ago, we set out with Pebble to findthree amazing … more

MediaTek Releases Full Kernel Source for First Android One Devices

Those who might have thought that MediaTek wouldnever release working … more