[Galaxy S II Android Development] cwc3:
​

Credits: Pikachu01, geko95gek, crypted, droidphile, User Feedback​

​

Features:

Pikachu01's ThunderBolt! scripts (v2.6.1). (Also extracts the bolt_scripts onto the SDCARD)

80MB LMK Tweaks (v6 SuperCharger Memory Tweaks)

Crypted's GPS.conf for Quick Fixes

Ad Blocking Hosts file (5 of the best merged together)

Undervolted - Safe -50mV on most

Easy to tweak with ExTweaks

GPU Rendered UI Enabled

AFTR enabled, Sched_mc disabled. Siyah logger disabled. Custom Brightness, Touch Sensitivity Parameters, Static Bus Frequencies, Custom Deepsleep Levels, Dynamic hotplug, Logging disabled, Phone / Memory / SDCard / WIFI/3G/4G Tweaks, Hot Plug Thresholds, Sampling Interval & Frequency, Gtalk Wifi Only = False.

CPU set to: 1600Mhz@1425mV 1400Mhz@1300mV 1200Mhz@1225mV 1000Mhz@1125mV 800Mhz@1025mV 500Mhz@950mV 200Mhz@925mV 100Mhz@925mV

Battery Version:

In this version you will be sacrificing some cpu & gpu performance for a decent amount of battery. Hotplugging checks at a slower rate for battery, Ondemand is tweaked for battery instead of speed. Minimum brightness levels are set lower, our #1 Battery Drainer.

100-1000Mhz

Ondemand/sio

GPU set to: 100/160/200Mhz | 800/850/900mV

Hotplug/Governor Tweaked for Battery

Performance Version:

This version you should be noticing a difference in benchmarks/responsiveness. The battery drain should be a little more than stock because of the overclocking. Hotplugging is set to Siyah Defaults, and lulzactive is tweaked for performance/battery.

100-1400Mhz

lulzactive/sio

GPU set to: 100/200/400Mhz | 800/900/1150mV

Hotplug/Governor Mostly at Stock/ThunderBolt!

Requirements:

Most of the Features will not work in ICS - Backup First

SiyahKernel v2.6.13+

ExTweaks Installed - If you wish to tweak init.doh

Files installed:

/system/etc/init.d/

S01logger - Disables Android Logging

S02sysctl

S70darky_zipalign - Zipalign

S91SuperCharger - Memory Tweaks

S98CFS - ThunderBolt! Kernel Tweaks

S98system_tweak - Most ThunderBolt! Tweaks

S92init_doh - CPU/Misc Tweaks

/system/etc/

gps.conf - GPS Tweaks

hosts - AdBlocking

SuperChargerAdj - LMK Memory Tweaks

SuperChargerMinfree - LMK Memory Tweaks

SuplRootCert - GPS Cert.

/system/

default.prop - LMK Memory Tweaks

/data/.siyah/

default.profile - Most of CPU/GPU Tweaks (ExTweak Profile)

Init.d scripts deleted each install:

Files Listed Above (Overwritten)

S98gekoh

s91voltctrl

Installation:

Download the latest zip below

Do a Backup in Recovery Mode

Flash Init.Doh in CWM (Recovery)

Reboot

The following steps are not required

If you now have 2 zipaligns scripts, please delete one of them (Keeping the one listed above)

Download Script Manager

Open Script Manager, Scroll down to the "bolt_scripts" on your sdcard

Open "sqlite_optimize", press the Skull/Bones icon "Su" and "Save"

Press Run, this will take a minute or two. Ignore the Errors.

It is finished when you see "Exit code 0", Click Close.

Run this script once once in a while (Whenever you have installed a few apps)

Updating/Changing Version: Just flash the latest zip and all the files are overwritten.

Uninstall: Download the file (uninstall_doh.zip) and flash it in CWM.

Note:

If you have any issues, try clearing your cache/dalvik

Give this script some time to work. At least one full batteries worth.

Some people give up after one SoD, just adjust the voltages up a little. Could also be kernel related (Read your kernels thread for latest issues)

This script changes at least once a week, so let me know if you run into any issues.

General Battery Saving Tips: - Thanks AndroidGX

Never use Tasks killer things or related.

Settings > Display > Touch key light duration : "OFF"

Settings > Display > Auto adjust screen power : [TICK]

Settings > Applications > Samsung Apps > "OFF"

Settings > Privacy > Back up my data > [UNTICK]

Settings > Location and security > Use wireless networks : [UNTICK]

Settings > Wireless and network > Wi-Fi settings > (press Menu button) > Advanced > Wi-Fi sleep policy > "Never" or "When screen turns off"

Deactivate auto sync for accounts

Deactivate GPS (and wifi gps)

Set brightness level to automatic/low

Disable motion

Changelog:

v0.4.6b: Upped Hotplugging a little. Disabled Static Bus. Changed back/updated to Crypted GPS v3.1 No-SSL. Smooth Scaling Enabled 2/2/2. GPU Thresholds changed to 90/50/90/50. Wifi/Phone Experiments added to bottom of S92init_doh. Should be a faster release without hopefully any additional battery drain.

[*]v0.4.5b: Lowered Hotplugging values. They were fairly ridiculous. Disabled sched_mc, redundant with hotplugging on. Freq_cpu1on back at 600hz. GPU Thresholds changed to 85/70/85/65 (Thanks droidphile). GPUSTAYCOUNT=2 on all. Upped ondemand/down_differential to 10.

[*]v0.4.4b: Changed freq_cpu1on to 800Mhz. Changed GPS Quick Fix to H3llstorm's. Updated Ad Blocking Hosts file. Uncommented Wifi/Phone Experiments in s92init_doh.

[*]v0.4.3: 2.6.13 Siyah Required. Moved most of the tweaks in init_doh to default.profile for the new 2.6.13 SiyahKernel. This will allow you to edit most of this in ExTweaks app. Added 80MB LMK v6 SuperCharger memory tweaks by zepp & Pika. Cleaned out most commented lines in system_tweak, and a couple AOSP issues. Updated ThunderBolt! scripts. Changed hotplug values / GPU steps for hopefully better battery. Changed scheduler to SIO. Choosing a lower minimum brightness for better battery. Commented out Experimental Tweaks in init_doh script.

[*]v0.4.2b: Few build.prop tweaks again, these from ICScrewD. You will see them at the bottom of init_doh under "Latest Experiments". Could cause AOSP issues. Also extracting bolt_scripts to both /emmc/ and /sdcard/, hopefully fixing some peoples complaints about it missing. Overall, just a small update.

[*]v0.4.1b: Deep Sleep Freq set back to 100-800 @ 400mhz bus. If .4.0 is working fine for you, no need to update.

[*]v0.4.0b: Deep Sleep Freq set to 100-500Mhz and bus @ 133Mhz (This could cause SoD's, let me know). Set Governor to Ondemand (Good Battery Life with Moderate Use), tweaked ondemand towards Battery Saving. Fixed 100Mhz mV to 925 (Instead of 920). Changed GPS fix to Crypted's patch (experiment). Back to 3 step GPU (100/160/200@800/850/900mV). 1000Mhz bus set back to 266Mhz.

Q: Where is my init.d folder? A: On your main storage. "/system/etc/init.d/". Find it with File Manager

Q: I want to change stuff like voltages/governor, but how? A: Browse to the init.d folder, open s99init_doh with a text editor such as Jota Text Editor. Trial and error from here.

Q: Cool story bro, but I can't edit/save the file. Wth? A: Calm down. The directory is read only. In file manager go to the directory, then open your menu -> more -> settings, scroll to the bottom and check root and mount. When u are finished, unchecked those two.

Q: How do I boot into recovery (CWM) mode? A: Through your power menu, through the CWM app on your phone, or: With the phone off, Vol-Up,Vol-Down, Power Button - Hold down at same time till your in recovery

Q: I tried hitting my power button recently, but the screen never came on (SOD). Whats up? A: Hard to say exactly, but lets start pumping the CPU voltages up. 25mV at a time. If it continues even at stock voltages, long-press power to reset the phone and then pull /proc/last_kmsg and let me know!​

A lot of people can push their voltages lower, I can too. Trying to make this script universal for us siyah people. Don't be afraid to increase/decrease your CPU voltages 25mV at a time, never go higher than stock in my opinion.

Undervolting is pretty much a placebo with your screen on. At most people save is 5% more battery with extreme undervolting. If you get one reboot, you may have drained more power than you have saved. If you want to save battery, turn your brightness low and choose a governor that stays away from the max freq the most. Your phone will also save a little more juice if you can handle 100Mhz as lowest state.

Stock CPU Voltages: 1600Mhz@1425mV 1400Mhz@1325mV 1200Mhz@1275mV 1000Mhz@1175mV 800Mhz@1075mV 500Mhz@975mV 200Mhz@950mV 100Mhz@950mV

Stock GPU Voltages: 160Mhz@950mV 267Mhz@1000mV

Backup your init.d folder if you want to be safe, this will overwrite all the files listed above. Also if you have a voltage control service, odds are that this won't work (at least the cpu/gpu/voltage tweaks).
​

Go give thanks to: (Click on their names below)

Pikachu01 - 99% of the scripts

geko95gek - CPU/GPU/Voltage Settings, Tons of user feedback

Armisael - Misc Tweaks, User Feedback

stevehkim - Misc Tweaks, User Feedback

GadgetCheck - CheckROM, Misc Tweaks

droidphile - Amazing reference/guide

bedalus - Another Amazing Reference

crypted - GPS Quick Fix

H3llstorm - GPS Quick Fix

I9100 & SGH-I777 Community

To anyone I forgot: Thank you for all your hard work​

SiyahKernel Only: Download: Battery 0.4.6b | Performance 0.4.3p​

​