Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,739,156 Members 47,034 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 13
Posts: 123
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 1506
Posts: 3,373
Join Date: Dec 2010

 
DONATE TO ME
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


XDA PORTAL POSTS

Device Review: OnePlus One

Seemingly every day, there are a bunch of new devices being released. Some are budget devices and some are … more

Browse the Internet with the Innovative Atlas Web Browser

For the most part, Chrome, Firefox, and Dolphin Browser have no real rivals among … more

Choose from Over a Thousand Battery Styles with 3Minit Battery Mod

The battery style in stock Android looks pretty dull. It doesn’t … more

Organize Your Cloud Storage Files with Unclouded

Cloud storage services like Dropbox or Google Drive have grown in popularity dramatically … more