Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,728,708 Members 53,419 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: 122
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 1505
Posts: 3,370
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

But First, Let Me Take a #Selfie

“Today while browsing XDA,I’m going tocheck to seeif my favorite ROM has been updated–but … more

Easily Combine Text and Manage Your Android Clipboard with StuffMerge

Android clipboard management has always been impractical without the … more

Pale Moon Browser Ported to Android

Having a wide choice of third party applications is one of the most beautiful things that Android has to … more