FORUMS
Remove All Ads from XDA

[MOD][APK+SCRIPT+ZIP] Enable Init.d for Any Phones w/o Need of Custom Kernels!!!

3,548 posts
Thanks Meter: 7,233
 
Post Reply Email Thread
14th November 2012, 10:41 PM |#121  
PIRATA!'s Avatar
Senior Member
Flag Pisa, Italy
Thanks Meter: 171
 
Donate to Me
More
Quote:
Originally Posted by CiscoX

Hi.

Yes download BusyBox if you don't have it installed yet. And run "Normal Install" from BusyBox. The run-parts are included with BusyBox. After that you can run Term-init.d.sh

Quote:
Originally Posted by Ryuinferno

.........


Lol...when you download the installer from play store, you will get busybox and run-parts after selecting normal installation in the installer...

Ok...so you both say to download the Play store version right?? Those linked in first post from Stericson are from there right??

Sent from my GT-i9300 using my XDA app
14th November 2012, 11:09 PM |#122  
CiscoX's Avatar
Senior Member
Thanks Meter: 74
 
More
Quote:
Originally Posted by PIRATA!

Ok...so you both say to download the Play store version right?? Those linked in first post from Stericson are from there right??

Sent from my GT-i9300 using my XDA app

Hi.

Yes the link on first post for BusyBox are correct

https://play.google.com/store/apps/d...ricson.busybox
14th November 2012, 11:14 PM |#123  
Member
Thanks Meter: 5
 
More
Quote:
Originally Posted by Ryuinferno

Ok...here's a quick fix...get script manager from play store, then navigate to /etc/install-recovery.sh...select it and run as root and at boot (select the skull icon and the gear icon)...then reboot your phone...should do you fine...

It's working!!! First time i selected the icons you wrote, there was a popup message in script manager, what i ignored. That was the failure. I had to download SMExternalSD... after installation, i rrbooted, and there is the log file.

Thanks a lot!

Sent from my GT-S5830i using xda premium
18th November 2012, 01:25 PM |#124  
Member
Flag Hong Kong
Thanks Meter: 3
 
More
I am using 2.3.6 Galaxy GIO rooted
I tried the emulator method and went over troubleshooting and it doesn't work unluckily
I install the busybox here, and it said I have already installed(in root browser), and it reboot automatically after re installing(not sure if it is installed again). I checked that run parts is installed

Then, I tried CWM method
I face the status 0 error. And how to extract that from my recovery? I use this recovery. I just find a .img file inside and don't know how to extract
http://forum.xda-developers.com/show...&postcount=559
18th November 2012, 02:44 PM |#125  
Ryuinferno's Avatar
OP Senior Member
Thanks Meter: 7,233
 
Donate to Me
More
Ok...here's a quick fix...run term-init and get script manager from play store, then navigate to /etc/install-recovery.sh...select it and run as root and at boot (select the skull icon and the gear icon)...then reboot your phone...should do you fine...
21st November 2012, 05:53 AM |#126  
passlogin's Avatar
Senior Member
Flag Goa
Thanks Meter: 117
 
More
I don't know if you are keeping the script up to date in the OP which points here:
http://androidfilehost.com/?fid=9390135922294522554

I found a couple typo's in the script while reading it. On lines 69 and 70 you have this:
Code:
echo "echo  "Ryuinferno @ XDA 2012" > /data/Test.log" >> /system/etc/init.d/00test
echo "echo  "Init.d is working !!!" >> /data/Test.log" >> /system/etc/init.d/00test
Instead, they should be:
Code:
echo "echo  \"Ryuinferno @ XDA 2012\" > /data/Test.log" >> /system/etc/init.d/00test
echo "echo  \"Init.d is working !!!\" >> /data/Test.log" >> /system/etc/init.d/00test
Cheers

---------- Post added at 06:53 AM ---------- Previous post was at 05:58 AM ----------

Here's a remodification of your script. Main mods
  • It does a safer confirmation of install
  • Doesn't require an sdcard
  • Removes unecessary type "auto" from mounts
Code:
#!/system/bin/sh
#Script to enable init.d by Ryuinferno @ XDA 2012

echo "Init.d Enabler by Ryuinferno @ XDA 2012"
sleep 2
echo "Have you installed busybox with proper applets? (y/[N]):"
read ins

if [ "$ins" != "y" -a "$ins" != "Y" ]
then
echo "Please install busybox with proper applets first before attempting this...thank you...=)"
exit
fi
sleep 2
echo "Great! Let's proceed..."
sleep 2
echo "Mounting system as rewritable..."
busybox mount -o remount,rw /system
sleep 2
echo "Checking for the presence of install-recovery.sh..."
sleep 2
if [ -e /system/etc/install-recovery.sh ] 
then
echo "Install-recovery.sh found, adding lines to it..."
echo "# init.d support" >> /system/etc/install-recovery.sh
echo "run-parts /system/etc/init.d/" >> /system/etc/install-recovery.sh
echo "" >> /system/etc/install-recovery.sh
TEMP=$(awk '!x[$0]++' /system/etc/install-recovery.sh)
echo "$TEMP" > /system/etc/install-recovery.sh
echo "" >> /system/etc/install-recovery.sh
else
echo "Install-recovery.sh not found, creating the file..."
echo "#!/system/bin/sh" > /system/etc/install-recovery.sh
echo "# init.d support" >> /system/etc/install-recovery.sh
echo "run-parts /system/etc/init.d/" >> /system/etc/install-recovery.sh
echo "" >> /system/etc/install-recovery.sh
fi
sleep 2
echo "Setting the correct permissions and ownership for install-recovery.sh..."
chmod 755 /system/etc/install-recovery.sh
chown 0.0 /system/etc/install-recovery.sh
sleep 2
echo "Checking for the presence of the init.d folder..."
if [ -e /system/etc/init.d ]
then
echo "Init.d folder found..."
else 
echo "Init.d folder not found, creating the folder..."
mkdir /system/etc/init.d
fi
sleep 2
echo "Creating basic init.d scripts..."
echo "#!/system/bin/sh" > /system/etc/init.d/08setperm
echo "#Set correct permissions to /system/etc/init.d folder by Ryuinferno @ XDA 2012" >> /system/etc/init.d/08setperm
echo "busybox mount -o remount,rw -t auto /system;" >> /system/etc/init.d/08setperm
echo "busybox chmod -R 777 /system/etc/init.d;" >> /system/etc/init.d/08setperm
echo "" >> /system/etc/init.d/08setperm

echo "#!/system/bin/sh" > /system/etc/init.d/00test
echo "#Init.d Test" >> /system/etc/init.d/00test
echo "busybox mount -o remount,rw -t auto /system" >> /system/etc/init.d/00test
echo "busybox mount -o remount,rw -t auto /data" >> /system/etc/init.d/00test
echo "" >> /system/etc/init.d/00test
echo "if [ -e /data/Test.log ]; then" >> /system/etc/init.d/00test
echo "rm /data/Test.log" >> /system/etc/init.d/00test
echo "fi" >> /system/etc/init.d/00test
echo "" >> /system/etc/init.d/00test
echo "echo  \"Ryuinferno @ XDA 2012\" > /data/Test.log" >> /system/etc/init.d/00test
echo "echo  \"Init.d is working !!!\" >> /data/Test.log" >> /system/etc/init.d/00test
echo "" >> /system/etc/init.d/00test
sleep 2
echo "Setting correct permissions and ownership for init.d folder..."
chmod 777 /system/etc/init.d/08setperm
chmod 777 /system/etc/init.d/00test
chown 0.0 /system/etc/init.d
chown 0.0 /system/etc/init.d/08setperm
chown 0.0 /system/etc/init.d/00test
sleep 2
echo "Checking for the presence of sysint in /system/bin..."
sleep 2
if [ -e /system/bin/sysint ]
then
echo "Sysint found, adding lines to it..."
echo "#!/system/bin/sh" >> /system/bin/sysint
echo "# init.d support" >> /system/bin/sysint
echo "" >> /system/bin/sysint
echo "export PATH=/sbin:/system/sbin:/system/bin:/system/xbin" >> /system/bin/sysint
echo "/system/bin/logwrapper run-parts /system/etc/init.d" >> /system/bin/sysint 
echo "" >> /system/bin/sysint
TEMP=$(awk '!x[$0]++' /system/bin/sysint)
echo "$TEMP" > /system/bin/sysint
echo "" >> /system/bin/sysint
else
echo "Sysint not found, creating file..."
echo "#!/system/bin/sh" > /system/bin/sysint
echo "# init.d support" >> /system/bin/sysint
echo "" >> /system/bin/sysint
echo "export PATH=/sbin:/system/sbin:/system/bin:/system/xbin" >> /system/bin/sysint
echo "/system/bin/logwrapper run-parts /system/etc/init.d" >> /system/bin/sysint 
echo "" >> /system/bin/sysint
fi
sleep 2
echo "Setting correct permissions and ownership for sysint..."
chmod 755 /system/bin/sysint
chown 0.2000 /system/bin/sysint
sleep 2
echo "Done!!!"
sleep 2
echo "Please reboot at least twice before checking /data..."
sleep 2
echo "If init.d is working, you will see a Test.log in /data..."
sleep 2
echo "Enjoy!!! =)"
sleep 2
echo "Ryuinferno @ XDA 2012"
The Following User Says Thank You to passlogin For This Useful Post: [ View ] Gift passlogin Ad-Free
21st November 2012, 12:13 PM |#127  
Ryuinferno's Avatar
OP Senior Member
Thanks Meter: 7,233
 
Donate to Me
More
Thanks but that is no typo...it is working...and all phones require sdcards right (no matter internal or external), if not where will they download this script to? ...I have recoded my script and it will check for necessary parts automatically now...thanks anyway...
21st November 2012, 05:44 PM |#128  
Ryuinferno's Avatar
OP Senior Member
Thanks Meter: 7,233
 
Donate to Me
More
v2 for term-init is out...it has better functionality...check it out guys...by the way, I added a file to test whether you have init.d support before going anything...
21st November 2012, 06:12 PM |#129  
PIRATA!'s Avatar
Senior Member
Flag Pisa, Italy
Thanks Meter: 171
 
Donate to Me
More
Quote:
Originally Posted by cegrade

.....

.. I just find a .img file inside and don't know how to extract
http://forum.xda-developers.com/show...&postcount=559

How to see inside .img files!!
http://forum.xda-developers.com/show....php?t=1667081


Sent from my GT-i9300XXDLJ4 using XDA app
22nd November 2012, 05:02 PM |#130  
iamareebjamal's Avatar
Senior Member
Flag Batcave
Thanks Meter: 5,239
 
More
Links not working


Please fix them
22nd November 2012, 05:09 PM |#131  
Ryuinferno's Avatar
OP Senior Member
Thanks Meter: 7,233
 
Donate to Me
More
It's working now...just now the servers had an error...but it's fixed now...
Post Reply Subscribe to Thread

Tags
app, init.d, stock kernel, terminal emulator

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes