FORUMS
Remove All Ads from XDA

[MOD]Droid X2 init.d hack v0.6b FINAL (Updated 9/14/2011)

515 posts
Thanks Meter: 510
 
By navenedrob, Senior Member on 18th August 2011, 10:19 AM
Post Reply Email Thread
DROID X2 init.d hack

This is an alternative to a certain 2nd init functionality, because with 2nd init you could do this just as easily if you know how. This is not an init. This is for the folks running stock 2.3.3 for the Droid X2, who want to "performance tune" their phone while working with what they have. This will allow you to use any init.d performance scripts on your phone. If you don't know, an "init.d" script is special in the sense that they are run when the phone is booting up. This way, when you are using your phone, you can enjoy performance benefits.

The "hack" runs the BusyBox "run-parts" binary and searches the /system/etc/init.d directory for scripts. Additionally, if for whatever reason you don't have BusyBox, it will fall back to a for loop and run that instead! This functionality is added through "install-recovery.sh" script in /system/etc which is run every time the phone boots by default. Normally this script tries to install the default recovery every time you boot your phone, so that you can't install any other recovery. I've hijacked that script for the init.d task instead. As is common practice, any script actions can be viewed in your logcat upon boot if you have USB debugging enabled.

This hack includes default enhancement scripts (outlined below). You can choose to use these scripts, or delete them and replace them with whatever you want. I would advise against running the default scripts with other tweak scripts!

Requirements:
  1. Root - follow the guides
  2. Bootstrap Recovery - follow the guides
  3. Knowledge of CWMR/Bootstrap Recovery use, and how to install a zip with it

Default Enhancements:
  • sysctl tweaks - try to speed up OS/virtual machine/kernel
  • lowmem tweaks - try to limit low memory so as to keep more memory available
  • sd read ahead - increase KB read ahead on SD reads
  • cpu/governor tweaks - set scaling_min/max_freq and governor
  • disk scheduler - optimize disk scheduler for flash memory across all blocks

---

Changelog

0.1
Initial release to public

0.2
Tweaked scheduler and send errors to null

0.3
Fixed scheduler bug
Added additional scheduler tweaks
Changed min_free_kbytes to 32mb
Changed bdi read_ahead_kb to 2048kb
Added system r/w mount
Added sync

0.4
Added quantum to scheduler tweak
Switch to noop scheduler
Added conditionals
Change CPU tweak to support cpu1
Change scaling_min to proper freq

0.5
Split script into 3 versions
Battery - most power savings
Midrange - balanced power savings/performance
Performance - all out speed

0.6
Combined script back into one generic version
Includes separate scripts for all purposes
Enhances prior scripts functionality
Rewrote init.d hook to work in all scenarios
Included BusyBox 1.19 with installation

0.6b
Updated script to fix unique error

---

Version 0.6b FINAL

Download: http://www.multiupload.com/FI1D93TV6Y
Mirror: http://www.mediafire.com/?71geufr3754j6be
The Following 21 Users Say Thank You to navenedrob For This Useful Post: [ View ] Gift navenedrob Ad-Free
 
 
18th August 2011, 11:55 AM |#2  
EvoRocker's Avatar
Senior Member
Flag Palmdale
Thanks Meter: 23
 
More
amazing! should usher in a ton more dev for the X2
18th August 2011, 12:38 PM |#3  
garywojdan81's Avatar
Senior Member
Thanks Meter: 1,034
 
More
Great to hear from you again navenedrob! Loved your work on the fascinate.

Sent from my DROID X2 using XDA Premium App
18th August 2011, 04:52 PM |#4  
3UR0TR45H's Avatar
Senior Member
Flag Bellingham
Thanks Meter: 95
 
Donate to Me
More
Will this have any ill effects with the eclipse rom?

Sent from my DROID X2 using XDA App
18th August 2011, 05:28 PM |#5  
Member
Thanks Meter: 3
 
More
Its for stock roms as stated in the 1st post

Sent from my DROID X2 using XDA App
18th August 2011, 07:15 PM |#6  
garywojdan81's Avatar
Senior Member
Thanks Meter: 1,034
 
More
Getting ready to run this but just want to clarify:
Install like any other. zip?
Use script manager to tweak values?
How to revert, if necessary?
Remove v6 supercharger before installing?
Thanks again.

Sent from my DROID X2 using XDA Premium App
18th August 2011, 08:39 PM |#7  
navenedrob's Avatar
OP Senior Member
Flag Kannapolis, NC
Thanks Meter: 510
 
Donate to Me
More
Quote:
Originally Posted by garywojdan81

Getting ready to run this but just want to clarify:
Install like any other. zip?
Use script manager to tweak values?
How to revert, if necessary?
Remove v6 supercharger before installing?
Thanks again.

Sent from my DROID X2 using XDA Premium App

  1. Yes
  2. Yes
  3. Delete scripts from /system/etc/init.d, that's it
  4. Optional
18th August 2011, 08:39 PM |#8  
navenedrob's Avatar
OP Senior Member
Flag Kannapolis, NC
Thanks Meter: 510
 
Donate to Me
More
Quote:
Originally Posted by Kanibull

Its for stock roms as stated in the 1st post

Sent from my DROID X2 using XDA App

You can use this on Eclipse ROM. That is a stock ROM. A non-stock ROM would be a stock ROM with this or 2nd init already included, CM7, or MIUI.
18th August 2011, 09:00 PM |#9  
garywojdan81's Avatar
Senior Member
Thanks Meter: 1,034
 
More
Thanks man. Gonna load it as soon as I get back home.

Sent from my DROID X2 using XDA Premium App
18th August 2011, 11:59 PM |#10  
ashclepdia's Avatar
Senior Member
Flag under philadelphia above Delaware, beer heaven
Thanks Meter: 1,547
 
Donate to Me
More
Would using this allow zepplelinrox's 98kickasskernel to work as it should?
19th August 2011, 12:47 AM |#11  
3UR0TR45H's Avatar
Senior Member
Flag Bellingham
Thanks Meter: 95
 
Donate to Me
More
So are these scripts already optimized or are they stock values waiting to be tweaked? Is there some kind of guide as to exactly what the numbers mean or could you recommend some? Thanks!

Sent from my DROID X2 using XDA App
Post Reply Subscribe to Thread

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

Advanced Search
Display Modes