• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!
  • Fill out your device list and let everyone know which phones you have!    Edit Your Device Inventory

[Q] Integrate SU in rom

Search This thread

Cryss

Senior Member
Sep 13, 2011
1,321
542
33
Barnsley
www.soundmasters.22web.org
Hy people, i need someone help with superuser.

I want to integrate last version in my next rom but i fail to do that.
I know that kitchen is what i need to use, but i need help with that, i tryed and after i finish, rom failed to flash.
 

Cryss

Senior Member
Sep 13, 2011
1,321
542
33
Barnsley
www.soundmasters.22web.org

psndna88

Recognized Contributor
Dec 2, 2011
7,495
17,795
Mumbai
well as explained above u need to place superuser.apk in /system/app & su in /system/xbin and need to set permissions in updater-script as:

set_perm(0, 0, 04755, "/system/app/Superuser.apk");
set_perm(0, 0, 04755, "/system/xbin/su");

BUT
if older superuser.apk & its su binary is present in a kernel and it replaces it on /system at each boot, ramdisk in boot.img needs to be modified and newer files needed to be replaced !
 
Last edited:
  • Like
Reactions: Cryss

Cryss

Senior Member
Sep 13, 2011
1,321
542
33
Barnsley
www.soundmasters.22web.org
well as explained above u need to place superuser.apk in /system/app & su in /system/xbin and need to set permissions in updater-script as:

set_perm(0, 0, 04755, "/system/app/Superuser.apk");
set_perm(0, 0, 04755, "/system/xbin/su");

BUT
if older superuser.apk & its su binary is present in a kernel and it replaces it on /system at each boot, ramdisk in boot.img needs to be modified and newer files needed to be replaced !

I will try that.

First i will try the simple one, with updater-script, if doesn't work, i will ask for help in ramdisk replacement !

Big thanx folks !
 

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    Dont use kitchen.
    Which rom are you using and which kernel?
    1
    Take super user.apk and put it in /system/app
    Then,take su bin file
    Set perms for them in updater script..
    Just refer the root package..

    I am a potato, problem?
    1
    Why do you need update su binary?
    New su binaries are buggy.
    Instead try Supersu. Download package from chainfire's original post. And place the files as mentioned by prawesome.
    1
    well as explained above u need to place superuser.apk in /system/app & su in /system/xbin and need to set permissions in updater-script as:

    set_perm(0, 0, 04755, "/system/app/Superuser.apk");
    set_perm(0, 0, 04755, "/system/xbin/su");

    BUT
    if older superuser.apk & its su binary is present in a kernel and it replaces it on /system at each boot, ramdisk in boot.img needs to be modified and newer files needed to be replaced !
    1
    Yes, i need help in that ...

    Kernel is prerooted (firekernel 22.07)

    Can someone please help me with integration ?

    Download ketut's tools
    Decompile kernel
    Decompile ramdisk also if needed
    Replace binaries and apk

    Controversies,controversies everywhere :what: