Former Writer · Jun 21, 2012 at 06:30 pm

How to Use Init.d with Any Phone

Init.d has a special place in Android. With it, users can install scripts and mods to run at boot, and thus modify almost any aspect of the phone that they want. There are battery tweaks, performance tweaks, GPS tweaks, signal tweaks, and the list goes on and on. However for these scripts to work, the phone must first have init.d support. Typically, Ramdisks provide init.d support, but sometimes it is possible to gain init.d support without flashing a new Ramdisk, or even without altering the Ramdisk at all.

This is something that XDA Recognized Developer smokin1337 has been working on for a number of devices. With a mod called EZ InitD, smokin1337 looks to help users add init.d support easily. Additionally, the developer gives a couple of options on how to use the mod. One version is for users to flash via custom recovery, while the other is for ROM developers to include in their ROMs. The best part is, it’s simple.

After the mod is applied, anything in your init.d folder will run on boot, as it normally would. In the ROM developer version, developers can actually change the directory to whatever they want. In other words, there could be ROMs made with init.d support but without an actual init.d folder. (Ed: I’m thinking /etc/NyanCat or /etc/bacolicious, myself.) The method has been tested on the HTC One S and the HTC One X, but it should actually work on any device. As many users will tell you, init.d support comes from the Ramdisk. This is not necessarily true. According to smokin1337:

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”.

So, given this method, it’s actually possible to gain init.d support without switching, editing or otherwise touching the Ramdisk or kernel. For additional information, check out the original thread.


_________
Want something on the XDA Portal? Send us a tip!

Former Writer

Former Writer is an editor on XDA-Developers, the largest community for Android users. View Former Writer's posts and articles here.
Jimmy McGee · May 6, 2015 at 06:00 am · 5 comments

Vinsic 20,000mAh Ultra Slim Power Bank Giveaway

We have covered a lot of Android Accessories here on XDA TV. Mostly because we realize that there are not many phones out there designed specifically with us in mind. So we get powerful phones that don’t have the best speakers or batteries. To resolve this issue we can grab an accessory to fill the gap. In this episode of XDA TV, Producer Jordan reviews the Vinsic 20,000mAh Ultra Slim Power Bank. This device provides a great big helping of...

XDA NEWS
Mathew Brack · May 5, 2015 at 04:02 pm · 3 comments

T-Mobile Steps Up The War Against Verizon

T-Mobile has today launched a new attack on Verizon under the tagline of “Never Settle For Verizon” complete with eight new adverts and risk free trials for their customers. This is in retaliation to the new campaign from Verizon sharing the same name as One Plus's "Never Settle".     Following the latest “Never Settle” advert campaign from Verizon, T-mobile has surprisingly agreed, you shouldn't settle … For Verizon and to reinforce this point they have launched no less than eight...

XDA NEWS
Faiz Malkani · May 5, 2015 at 01:01 pm · 4 comments

Google #StepInsideAdWords Event Livestream

Ahead of the annual I/O conference scheduled to take place later this month, the Google AdWords team is set to unveil a host of new products aimed at better mobile experiences, improved event-tracking, scalability and more. Yesterday, a video highlighting the upcoming features was launched on the AdWords blog, and the event itself is scheduled to take place today at 9:30 AM PST / 12:30 PM EST. You can watch the live stream right here on this page, and while it doesn't require registration....

XDA NEWS
Share This