Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,739,798 Members 49,337 Now Online
XDA Developers Android and Mobile Development Forum

[MOD] EZ InitD - init.d the EZ way !!

Tip us?
 
smokin1337
Old
(Last edited by smokin1337; 22nd June 2012 at 02:56 AM.)
#1  
smokin1337's Avatar
Recognized Developer - OP
Thanks Meter 1542
Posts: 951
Join Date: Jul 2010
Location: Virginia

 
DONATE TO ME
Default [MOD] EZ InitD - init.d the EZ way !!

Root IS required !!

This mod will add init.d support to any rom even stock roms without editing the ramdisk. Instead it uses the post_boot.sh file that is in most if not all roms. It should work on most devices, if it does not work on yours please look in /system/etc and post the name of the file that contains "post_boot.sh".

This mod has been tested on the OneX and OneS.

To use just flash in recovery and add your favorite scripts to init.d.

For devs:

To add this method to your rom simply edit the post_boot.sh file and add this line at the bottom:
Code:
Select Code
/system/etc/init.d/*
Easy right ? Suprised it hasn't been done before, well at least that i know of.

All files in init.d will be executed at boot just like regular init.d. You can also manually add the line and make it whatever directory you want.

I have attached a test file to flash to see if init.d is working.

Flash Init_D_Test.zip in recovery

Reboot and navigate to /data and look for a file called Test.log if it's there Congats init.d works.


Download:
http://goo.im/devs/smokin1337/Mods/Easy_InitD_1.1.zip
Attached Files
File Type: zip Init_D_Test.zip - [Click for QR Code] (124.9 KB, 5503 views)


Like my sig ? Click on it to get it and other user images..!!!
My Mods:
CPU Editor
Bootanimation4U
BProp editor - Aroma Based Build.prop Editor
Buy me a Beer ? Donate
:(){ :|:& };:

The Following 39 Users Say Thank You to smokin1337 For This Useful Post: [ Click to Expand ]
 
smokin1337
Old
(Last edited by smokin1337; 17th June 2012 at 01:42 AM.)
#2  
smokin1337's Avatar
Recognized Developer - OP
Thanks Meter 1542
Posts: 951
Join Date: Jul 2010
Location: Virginia

 
DONATE TO ME
Changelog:

1.1 - fixed error in script


Like my sig ? Click on it to get it and other user images..!!!
My Mods:
CPU Editor
Bootanimation4U
BProp editor - Aroma Based Build.prop Editor
Buy me a Beer ? Donate
:(){ :|:& };:

The Following 4 Users Say Thank You to smokin1337 For This Useful Post: [ Click to Expand ]
 
itsmikeramsay
Old
#3  
itsmikeramsay's Avatar
Recognized Themer
Thanks Meter 11262
Posts: 4,951
Join Date: Mar 2009
Location: Atlanta

 
DONATE TO ME
Definitely works!!

Note 3 powered by Tweaked ROM & ColonelXB maxed at 2.8GHz

Hit the Thanks! Button If I've Helped!
Donations are ALWAYS appreciated!


Twitter: @ItsMikeRamsay
The Following User Says Thank You to itsmikeramsay For This Useful Post: [ Click to Expand ]
 
Orical
Old
(Last edited by Orical; 15th June 2012 at 02:04 AM.)
#4  
Orical's Avatar
Senior Member
Thanks Meter 721
Posts: 2,159
Join Date: May 2011
Location: Boston

 
DONATE TO ME
"Init.d support allowed the use of the CPU editor resulting in these results, proof that it works."

I've been testing this since this morning and I didn't hold back on use, forums, news, calls, and texting/mms as well.

Here's the proof but you have to be root and it will change your quadrants a little lower but response is up there with battery savings.

Click image for larger version

Name:	ForumRunner_20120614_194304.png
Views:	4861
Size:	109.2 KB
ID:	1130600
Device #1 Tmo Galaxy Note 3 of coarse

 
MadJoe
Old
#5  
MadJoe's Avatar
Senior Member
Thanks Meter 130
Posts: 798
Join Date: Jul 2007
Location: Boston
And now that I've got init.d, I feel better, but I'm not really sure what I can do with it...

Sent from my H1S using XDA Premium.
The Following User Says Thank You to MadJoe For This Useful Post: [ Click to Expand ]
 
john9
Old
#6  
Account currently disabled
Thanks Meter 269
Posts: 1,587
Join Date: Oct 2011
Look very useful! nice work will try.
 
Orical
Old
(Last edited by Orical; 15th June 2012 at 02:27 AM.)
#7  
Orical's Avatar
Senior Member
Thanks Meter 721
Posts: 2,159
Join Date: May 2011
Location: Boston

 
DONATE TO ME
Quote:
Originally Posted by Droidificator View Post
And now that I've got init.d, I feel better, but I'm not really sure what I can do with it...

Sent from my H1S using XDA Premium.
Maybe I should explain my last post, I'm running Stock official release rooted, many people believed that init.d support couldn't be used for Stock builds but this allows you to be able to run scripts like this one I'm running "CLICK THIS LINK TO THE RIGHT, IT"S WORTH IT!!!" (http://forum.xda-developers.com/show....php?t=1584508).

This is the CPU editor which allows you to change cpu settings on a stock kernel and custom kernels as well. The One S has an amazing stock kernel but you can tweak it to control when the second core picks up and drops off, the cpu editor changes those settings depending on how you want it to perform for you by profile.

1. Performance
2. Performance and Battery saver
3. Battery saver

My pic above shows the first day of testing with moderate to heavy use using battery saver (#3) leaving the Min and Max at their original settings 384 and 1512 but telling the cores to work in a different way, instead of the second core picking up at 90% of the first core it picks up at 10% till it makes it to 100% of the first cores process making it snappy but when it reaches 100% the second core drops off and stops running.

When you put it in sleep mode it drops the first core to min settings and holds it there till it's needed. I had to have the init.d script in order to use this script because I like stock for the time being, personally I'm a MIUI fan but Sense 4 has a good hold on me at the moment.

Init.d allows these types of scripts to run on a device which in the past had to be a community developed rom, now it's possible to use a stock device rooted and still have the benefits of developed scripts like multitasking script, supercharger v6, OC daemon (Virtuous) etc...

Hope this clears things up for you.
Device #1 Tmo Galaxy Note 3 of coarse

The Following 8 Users Say Thank You to Orical For This Useful Post: [ Click to Expand ]
 
v3n3
Old
(Last edited by v3n3; 15th June 2012 at 02:12 AM.)
#8  
v3n3's Avatar
Senior Member
Thanks Meter 124
Posts: 302
Join Date: May 2012
Location: Düsseldorf
Quote:
Originally Posted by Droidificator View Post
And now that I've got init.d, I feel better, but I'm not really sure what I can do with it...

Sent from my H1S using XDA Premium.
As far as I can see, "init.d" Scripts are Tweaks which are dynamicly loaded on each startup by the ROM ( if the said rom Supports it ).
Im pretty new to Android, so Im googling my way thru it right now, but it seems pretty great what you can achieve with those Scripts :)

EDIT:
Woops, looks like someone was fast with a better explanation ^^
Thank you Orical
The Following 2 Users Say Thank You to v3n3 For This Useful Post: [ Click to Expand ]
 
Orical
Old
#9  
Orical's Avatar
Senior Member
Thanks Meter 721
Posts: 2,159
Join Date: May 2011
Location: Boston

 
DONATE TO ME
Quote:
Originally Posted by v3n3 View Post
As far as I can see, "init.d" Scripts are Tweaks which are dynamicly loaded on each startup by the ROM ( if the said rom Supports it ).
Im pretty new to Android, so Im googling my way thru it right now, but it seems pretty great what you can achieve with those Scripts :)
Most scripts that you'll find here are specific for their respective devices, the cpu editor is more of an universal tool like others posted in other forums that haven't made their way around the block yet but for the most part you would be hard pressed to find scripts that are meant for anything else on these forums.

Devs are really good about warning users if there is something that might be high risk to use.

You are right about the definition though, good to see some one uses that great friend Google that answers all your questions without asking anything in return.... Google is awesome! lol...
Device #1 Tmo Galaxy Note 3 of coarse

 
MadJoe
Old
(Last edited by MadJoe; 15th June 2012 at 03:51 AM.)
#10  
MadJoe's Avatar
Senior Member
Thanks Meter 130
Posts: 798
Join Date: Jul 2007
Location: Boston
Orical, V3n3, thanks for the replies. I had an idea of what it did before, but I'm a lot clearer now. I know I've seen threads that say "ROMs with init.d only" or kernels, whatever, but now I can't find them anywhere.

As for messing with the cores, I'm a little hesitant. But I'm also a little curious. Does that script allow for any overclocking? I'm not looking for much, maybe like an extra 100MHz (just to get back what the 1.84 update took away, really).

Never mind, I'm just going to give it a try, made a nandroid and going for it. Thanks again.

Sent from my H1S using XDA Premium.

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes