FORUMS

Galaxy S6 Weekly Shooting Challenge

Over in our forums this weekend, XDA Forum member DevonSloan has started a thread for talented … more

Which Features from Apple Watch Do You Think Android Wear Will Copy?

The Apple Watch and Android Wear are both growing platforms. Now … more

XDA Picks: Best Apps of the Week (May 15 – 22)

Apps are at the front and center of any smartphone experience, and with over a … more

Android 5.1 for the Nvidia Shield Tablet is Out!

Nvidia is quite good at delivering updates in a timely fashion. The producer of famous … more
Post Reply Subscribe to Thread Email Thread

Impossible to get the init.d support in ramdisk

24th May 2014, 01:52 PM |#1  
OP Senior Member
Flag Modena
Thanks Meter: 1,730
 
Donate to Me
More
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
 
 
24th May 2014, 02:31 PM |#2  
Elluel's Avatar
Recognized Contributor
Flag えうれる
Thanks Meter: 3,197
 
More
Quote:
Originally Posted by kalo86

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
24th May 2014, 02:38 PM |#3  
OP Senior Member
Flag Modena
Thanks Meter: 1,730
 
Donate to Me
More
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:
#!/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
24th May 2014, 02:41 PM |#4  
jd1639's Avatar
XDA: ASSIST
Recognized Contributor
Minnetonka, MN
Thanks Meter: 4,676
 
Donate to Me
More
Quote:
Originally Posted by kalo86

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:
#!/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
24th May 2014, 03:28 PM |#5  
Senior Member
Flag Toronto
Thanks Meter: 347
 
More
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
24th May 2014, 04:16 PM |#6  
OP Senior Member
Flag Modena
Thanks Meter: 1,730
 
Donate to Me
More
Quote:
Originally Posted by jd1639

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.
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes