5,596,700 Members 46,067 Now Online
XDA Developers Android and Mobile Development Forum

[Script] For Stock ROMS! Enable AutoStart Scripts! (etc/init.d folder) w/o VR Patch!

Tip us?
 
zeppelinrox
Old
(Last edited by zeppelinrox; 10th October 2011 at 03:19 AM.)
#1  
zeppelinrox's Avatar
Senior Member - OP
Thanks Meter 20468
Posts: 9,222
Join Date: Dec 2010
Location: IN THE FREAKIN' OP

 
DONATE TO ME
Default [Script] For Stock ROMS! Enable AutoStart Scripts! (etc/init.d folder) w/o VR Patch!

I'm not sure on which phones this will work.
Motorola Milestone is for certain. Probably other Motorolas as well.
If you have the file /system/bin/mot_boot_mode, then this should work just fine.

Edit: Works on DroidX, Atrix, Bionic, Defy... (I guess it really does have a chance of working if you have mot_boot_mode

Do this at your own risk

What you need:

1. GScript Lite or Script Manager
2. Rooted Phone. For Milestoners, you can use Universal Androot (not in market ?)
3. Busybox Installer

You don't need to have a vulnerable recovery applied.

Why you want it: People on custom roms take it for granted that they can run custom scripts from the /system/etc/init.d folder.

Overclocking, tweaking memory settings, kernel tweaks, etc.

Those on Stock ROMS usually have to resort to 3rd party apps (eg. Milestone Overclock, Auto Memory Manager) that take up memory to do stuff that custom roms do automatically and easily - with boot up scripts.

It's possible for Stock ROMS to get this ability via open recovery but most users may find it overwhelming and confusing as to where to even start.

I have also been working on GScripts to get my SuperCharging / Bulletproof Launcher tweaks to work on all phones without need of 3rd party software.
I found that the easiest way would be with a startup script placed in the /system/etc/init.d - the same way that custom roms do it.

Since alot of users would be uncomfortable with getting it working via open recovery, I converted the open recovery script to work in GScript!

Booya!

Instructions: 1. Extract the attached zip file into the root of your sdcard. The files should then be inside the folder /sdcard/gscript
................... 2. Run GScript Lite
................... 3. Press menu > Add script > Load file button
................... 4. Select "!Autostarts - Enable init.d on Stock ROMS.sh"
................... 5. Leave "Needs SU?" checked and press the Save button.
................... 6. It now shows up in the list of GScripts.
................... Note: GScript will save it internally within it's settings.
................... 7. Run the script by simply selecting it in GScript... and...
................... 8. Get tweaking!

All thanks go to those who put Androidian OpenRecovery together! ie. Skrilax_CZ, Azhad and 89luca89!!


Attached Files
File Type: zip gscript-Stock_ROMS-Autostarts_Enabled.zip - [Click for QR Code] (1.1 KB, 20654 views)
The Following 24 Users Say Thank You to zeppelinrox For This Useful Post: [ Click to Expand ]
sileshnair Old
#2  
Guest
Thanks Meter
Posts: n/a
Good job, Joe. I'll test and let you know.

btw, the values that we discussed a few days back work better for me on stock. First 3 from your script and last 3 default values.
 
zeppelinrox
Old
#3  
zeppelinrox's Avatar
Senior Member - OP
Thanks Meter 20468
Posts: 9,222
Join Date: Dec 2010
Location: IN THE FREAKIN' OP

 
DONATE TO ME
Cool beans
The Following User Says Thank You to zeppelinrox For This Useful Post: [ Click to Expand ]
 
mcpterra
Old
#4  
Member
Thanks Meter 2
Posts: 69
Join Date: Aug 2009
Quote:
Originally Posted by zeppelinrox View Post
What you need:

1. GScript Lite
2. Rooted Phone. For Milestoners, you can use Universal Androot (not in market ?)
3. Busybox Installer - Have it install the latest BusyBox (v1.19). This ensures GScript doesn't spit out ugly stderr: messages.

You don't need to have a vulnerable recovery applied.

Why you want it: People on custom roms take it for granted that they can run custom scripts from the /system/etc/init.d folder.

Overclocking, tweaking memory settings, kernel tweaks, etc.

Those on Stock ROMS usually have to resort to 3rd party apps (eg. Milestone Overclock, Auto Memory Manager) that take up memory to do stuff that custom roms do automatically and easily - with boot up scripts.

It's possible for Stock ROMS to get this ability via open recovery but most users may find it overwhelming and confusing as to where to even start.

I have also been working on GScripts to get my SuperCharging / Bulletproof Launcher tweaks to work on all phones without need of 3rd party software.
I found that the easiest way would be with a startup script placed in the /system/etc/init.d - the same way that custom roms do it.

Since alot of users would be uncomfortable with getting it working via open recovery, I converted the open recovery script to work in GScript!

Booya!


Instructions: 1. Extract the attached zip file into the root of your sdcard. The files should then be inside the folder /sdcard/gscript
................... 2. Run GScript Lite
................... 3. Press menu > Add script > Load file button
................... 4. Select "!Autostarts - Enable init.d on Stock ROMS.sh"
................... 5. Leave "Needs SU?" checked and press the Save button.
................... 6. It now shows up in the list of GScripts.
................... Note: GScript will save it internally within it's settings.
................... 7. Run the script by simply selecting it in GScript... and...
................... 8. Get tweaking!

All thanks go to those who put Androidian OpenRecovery together! ie. Skrilax_CZ, Azhad and 89luca89!!


Hi, good evening.

Excellent work... But I cant see
gscript-All_ROMS-SuperCharge+BulletProof_Pack_v4.zip
It isnt a link.

Thanks. Best regards
Marcos
sileshnair Old
#5  
Guest
Thanks Meter
Posts: n/a
Hey Zep, will these work on 2.1 eclair? I am running 2.1 for a change. Had enough of the half cooked Froyo and GB roms.
 
zeppelinrox
Old
#6  
zeppelinrox's Avatar
Senior Member - OP
Thanks Meter 20468
Posts: 9,222
Join Date: Dec 2010
Location: IN THE FREAKIN' OP

 
DONATE TO ME
I'm not sure.
Did you flash a custom eclair or stock?
I'd love to get it to work with stock eclair though.

If you have a 10overclock, where is it?

Actually, a good test is if you were able to overclock with AOR's froyo menu after running this gscript
sileshnair Old
#7  
Guest
Thanks Meter
Posts: n/a
Quote:
Originally Posted by zeppelinrox View Post
I'm not sure.
Did you flash a custom eclair or stock?
I'd love to get it to work with stock eclair though.

If you have a 10overclock, where is it?

Actually, a good test is if you were able to overclock with AOR's froyo menu after running this gscript
I am currently overclocked using milestone overclock app. There is no 10overclock file in /system/etc/init.d folder. I will try overclocking using AOR after loading modules.

Sent from my Milestone using Tapatalk
 
zeppelinrox
Old
#8  
zeppelinrox's Avatar
Senior Member - OP
Thanks Meter 20468
Posts: 9,222
Join Date: Dec 2010
Location: IN THE FREAKIN' OP

 
DONATE TO ME
In AOR, the eclair overclocking uses the /system/bin/boot_script folder as opposed to the usual /system/etc/init.d folder.

If I do a google search for "eclair /system/bin/boot_script" there aren't that many results.
If I do a google search for "eclair /system/etc/init.d" there are twice as many hits.

So this should work on stock eclair without vulnerability patch
 
LuigiC6
Old
(Last edited by LuigiC6; 21st April 2011 at 06:45 AM.)
#9  
LuigiC6's Avatar
Senior Member
Thanks Meter 39
Posts: 258
Join Date: Dec 2010
Applying this to a rooted, stock 2.2.1 milestone makes the M logo bootloop... ive tried it twice. Followed the steps exactly..

And I think it may have bricked my phone :S Now it won't turn on anymore...
 
zeppelinrox
Old
#10  
zeppelinrox's Avatar
Senior Member - OP
Thanks Meter 20468
Posts: 9,222
Join Date: Dec 2010
Location: IN THE FREAKIN' OP

 
DONATE TO ME
So buysbox is installed right?
I actually developed the script working with stock telus 2.2.1 so it works.

I had a problem flashing the sbf 2.2 upgrade and was stuck on the M logo.
From recovery menu, I had wiped caches/reset to factory defaults and it booted up.

What have you tried so far?

Tags
autostart, boot script, gscript, init.d, stock rom
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes