Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,742,083 Members 50,463 Now Online
XDA Developers Android and Mobile Development Forum

Impossible to get the init.d support in ramdisk

Tip us?
 
kalo86
Old
#1  
Senior Member - OP
Thanks Meter 1661
Posts: 1,035
Join Date: Jan 2011
Location: Modena

 
DONATE TO ME
Default Impossible to get the init.d support in ramdisk

Hello guys!

I am not new in the Android and Nexus world but at this time I need some help.
I am used to root any Nexus phone in this way:

1. Put su, daemonsu, busybox on /system/xbin/ path;
2. Create the init.d folder in /system/etc/ path;
3. Add a script file to start the superuser daemon at the boot;
4. Edit the kernel ramdisk adding the sysinit script to add the init.d support at the boot;
5. Edit the updated-script for the right permissions to the new init.d folder (and its content) and to the su binary file.

I never had problems with Galaxy Nexus and LG Nexus 4 but today I am having troubles with the Nexus 5.
Is this a common issue?

I hope to get answers,
regards,

kalo86
 
Lethargy
Old
#2  
Lethargy's Avatar
Senior Member
Thanks Meter 814
Posts: 1,613
Join Date: Jan 2014
Location: Sydney, Australia
Quote:
Originally Posted by kalo86 View Post
Hello guys!

I am not new in the Android and Nexus world but at this time I need some help.
I am used to root any Nexus phone in this way:

1. Put su, daemonsu, busybox on /system/xbin/ path;
2. Create the init.d folder in /system/etc/ path;
3. Add a script file to start the superuser daemon at the boot;
4. Edit the kernel ramdisk adding the sysinit script to add the init.d support at the boot;
5. Edit the updated-script for the right permissions to the new init.d folder (and its content) and to the su binary file.

I never had problems with Galaxy Nexus and LG Nexus 4 but today I am having troubles with the Nexus 5.
Is this a common issue?

I hope to get answers,
regards,

kalo86
fastboot oem unlock

flash custom recovery

flash SuperSU in recovery
Quote:
Originally Posted by kyphur
You ask us to understand your position. Well if you want to benefit from our experience and time then I think it is only fair that you understand our position.
 
kalo86
Old
#3  
Senior Member - OP
Thanks Meter 1661
Posts: 1,035
Join Date: Jan 2011
Location: Modena

 
DONATE TO ME
Of course I have unlocked the bootloder but the init.d script does not work.
Neither a test script works...

This is the test script that I am using to verify if the init.d support is working. The file 00test is placed in /system/etc/init.d/.

Code:
Select Code
#!/system/bin/sh
#Init.d Test

busybox mount -o remount,rw -t auto /system

if [ -e /system/Test.log ]; then
rm /system/Test.log
fi

echo "kalo86 @ XDA 2014" > /system/Test.log
echo "Init.d is working !!!" >> /system/Test.log
 
jd1639
Old
#4  
jd1639's Avatar
Recognized Contributor
Thanks Meter 3073
Posts: 9,118
Join Date: Sep 2012
Location: Minnetonka, MN
Quote:
Originally Posted by kalo86 View Post
Of course I have unlocked the bootloder but the init.d script does not work.
Neither a test script works...

This is the test script that I am using to verify if the init.d support is working. The file 00test is placed in /system/etc/init.d/.

Code:
Select Code
#!/system/bin/sh
#Init.d Test

busybox mount -o remount,rw -t auto /system

if [ -e /system/Test.log ]; then
rm /system/Test.log
fi

echo "kalo86 @ XDA 2014" > /system/Test.log
echo "Init.d is working !!!" >> /system/Test.log
You're making it way too difficult. Just flash supersu in a custom recovery

Sent from my Nexus 5 using XDA Free mobile app
 
3DSammy
Old
#5  
Senior Member
Thanks Meter 302
Posts: 677
Join Date: May 2011
Location: Toronto
You could install an application such as Universal init.d from the playstore. It works for me on both my Nexus 5 and 10. Initially works without issue.

Sent from my Nexus 10 using XDA Premium HD app
Google Nexus 5 & 10: [4.4.4] rooted Stock, Franco kernel (on N5, on N10), TWRP, Xposed, GravityBox, SuperSU Pro and ViPER4Android Audio Effects FX
 
kalo86
Old
#6  
Senior Member - OP
Thanks Meter 1661
Posts: 1,035
Join Date: Jan 2011
Location: Modena

 
DONATE TO ME
Quote:
Originally Posted by jd1639 View Post
You're making it way too difficult. Just flash supersu in a custom recovery

Sent from my Nexus 5 using XDA Free mobile app
Why difficult? This is the same identical mechanism that Chainfire uses to root your phone but I like to share a rooted-ROM ready to use.
The init.d folder is not supported at the moment. This is the truth.
And I don't want a workaround since the init.d support is very useful also for other stuff which is not only root access.
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


XDA PORTAL POSTS

[OTA Captured] Verizon LG G Pad 8.3 Finally Gets Official KitKat Update

It’s been almost nine months since the LG G Pad … more

Enjoy Wallpaper Overload with PhotoPhase

We don’t usually feature live wallpapers on the XDA Portal unless they are somewhat innovative … more

Monitor What Your Phone’s Camera Sees with Android Wear

Having a smart device strapped to your wrist certainly has its merits. A … more

Mod Lets You Have Stereo Speakers on Your Sony Xperia Z1 (Sort Of)

The stereo speakers onthe Sony Xperia Z2areprobably a relatively large … more