[Samsung Epic 4G Touch] kobridge:
Quick guide about how to install these tweaks :

Because many people asked me how to run these tweaks, I spent sometime to give you the quick instruction. To follow this instruction, you will need the following files downloaded and available at your sdcard.

Pre-requisite:

1. init.d scripts (able to download from op section). Download the zip file and unzip it. Save the files into your sdcard.

2. build.prop file (able to download from op section).

3. sqlite3 executable (just in case you want to use the tweak that updating wifi idle time before sleep). where to download and how to use it is here - http://xdaforums.com/showthread.php?t=1630792

4. Get the install-recovery.sh from here if you are on the stock kernel (not repacked) - http://xdaforums.com/showthread.php?t=1610741

If you have sfhub's auto root tool, then run the option 'E' to install the init.d support installed on your phone. Actually his tool will install the install-recovery.sh. (I assume that you've already have busybox installed, otherwise, you can download it too from above link)

Backup:

Do the backup for the following files -

1. /system/etc/init.d files - if there's any existing init.d scripts then back it up.

2. /system/build.prop - backup this file also for just in case

Now you are ready to start, follow these steps:

1. copy downloaded init.d script into /system/etc/init.d folder. If the init.d folder is not there, create the folder 'init.d' under /system/etc. Be sure that init.d folder permission should be 'rwxr_xr_x' (755). For the copied init.d scripts, check the permissions and changed it to same 755 (if it's not like that). If there's any script that you don't want to run during the boot, then change the permission to 'rw_r__r__' (644).

2. copy the install-recovery.sh file to /system/etc folder (only if you are on stock kernel or you've never installed sfhub's auto root tool (option 'E'). Change the permission to 'r_xr_x___' (550).

3. copy build.prop file to /system folder. Change the permission to 'rw_r__r__' (644).

4. Additional steps if you don't have sqlite3 or busybox.

copy the files to /system/xbin folder. permission 755.

5. You are done now. Reboot the phone.

How to verify that the script is running - the easiest way would be checking the Maximum CPU speed and SD tweaks applied to your phone. If you have any tool like Rom Toolbox (Pro) or System Tuner (Pro), then goto the options that showing CPU or SDcard (SD Boost), it will show the different values if you did not applied the tweaks previously.

Hope this help!

[Q/A]

On which Rom/Kernel this tweak is going to work?

The tweaks in here is mainly for the stock based ICS roms/Kernels only.

Any sfhub's rom, any Calk's Rom, any Agat's rom, VeNuM_ICE_Rom_RL5.0, MIJJz BLEND ICS, AnaKonda Rom ICS, etc....

init.d tweak files can be used for some other roms but it's not tested from my side. build.prop tweak is also mainly for stock roms and based on specific kernel version. If the kernel is upgraded, then you will need a different build.prop.

Can I try it on different rom and kernel?

Before applying the tweaks, make sure that you have the nandroid backup first and try it. If the phone is stuck on boot screen, you may need to flash your rom again thru the odin or CWM recovery.

(usually incorrect edit on build.prop file could cause a freezing on boot screen. So be sure that you know how to edit build.prop)

Does build.prop support different ROMs except the stock?

Basically, my answer is no. To make the build.prop working on different ROM, it needs to be modified based on your rom and kernel. Currently I have a few versions supporting stock rom and kernel - check the progress report and change log for any updates. For any other Roms, please check the same area also.

Progress report:

4/29/12 10:50 pm US EST I'm adding three more screenshots.

screenshot#4 : Lasting More than 21 hours and battery still left 52%

#5: showing screen-on statistics. In here, on battery time was reset somehow. But actual time is 21+ hours (same on screenshot #4,5,6)

#6: It shows which apps were running during the sleep mode and screen was off. If you wonder which apps are running when the phone is on sleep/deep sleep mode, you can check the apps thru this kind of tool (battery monitor widget). If you want to save more battery, you can change the options from each apps if it provides a such kind of options.

4/30/12 My first full battery cycle test was ended up with about 40 hours until battery capacity reaches to 30%. During my test, I found some apps were still running during the sleep mode and those were using lots of battery. In my case, some of those apps were touchdown (email), Kakao talk (sns), and facebook apps. In many cases, we are not able to control the method how the application run in foreground and background. Some apps provides us how to sync and when to sync but there are still lots of chances for those apps for the improvement at least in the perspective of battery consumption.

5/1/12 The second version tweak is coming soon -> done.

5/2/12 WiFi issue resolved. http://xdaforums.com/showthread.php?t=1630792 and added one more tweak file. Before applying this file, read the attached thread first. You won't be disappointed.

5/4/12 Tested battery consumption with wifi turned on 24x7 (like JC's snapshot somewhere in this thread). Not bad at all. #7 snapshot shows that. About 19 hours and still 63% remaining (with on screen 30m, voice call 2m, lots of snapshots, lots of emails (100+), some SNS). Added snapshots #8 & 9.

5/5/12 Big Thanks to TeamERA and team member who converted build.prop for each Kernels. TeamERA provided build.prop files based on different Kernels(Roms). Check out the post #88.

Supported Kernel: AOKP CM9a3 (tested) CNA FD26 MIUI. For FD26, I've checked the items and values on it. There's some items sequence change made comparing build.prop in here and minor values changes - post #94.

So anyone who had issues on boot screen with build.prop that I posted, now you can try build.prop tweak based on your current rom.

5/6/12 GB Kernel Test - Blazer 4.1 EL29 - Not able to change the CPU frequencies and frequency change is causing phone freezing during the sleep & wakeup. No way to change this by init.d script so far. Only the way would be using Tegrak or System Tuner Pro tools. I tried System Tuner Pro and set the conservative governor (underclock to 1GHz) as on boot instead of init.d option. Working like a charm and no freezing yet.

Update: since applied, 19 hours and 70% of battery remaining. For more info, post your questions. Related post: http://xdaforums.com/showthread.php?t=1625299&page=11 post #107.

5/8/12 Added FE07 Stock based tweaked build.prop. Only for Stock FE07 based Kennels.

5/9/12 Two more zip files added. init.d.v2b - moderate CPU tweaks. init.dv2b2 - agressive CPU tweaks (could save more battery).

5/10/12 Added AOKP FE07 version of build.prop at post #156.

http://xdaforums.com/showpost.php?p=25907510&postcount=156

5/14/12 zipalign tweak added

5/16/12 wifiSleepWait tweak improved. Check the section 4.5 from OP. Now this tweak works without any manual database handling.

5/17/12 Now supporting flashable zip files. You may get customized flashable zip files based on your rom. Check out - http://xdaforums.com/showthread.php?t=1658471

Issue Log:

5/1/12 a. It seems like changing the Wi-Fi option to 'Never' and pm.sleep_mode to 1 does not work. My previous test based on the 3G turned on always and minimized turning on wifi. Now I'm testing wi-fi options but status shows that wifi is turned on always. Checking more details... Checked with wifi fixer but wifi still does not sleep. Started removing anything related wifi, but no luck yet. Spending several hours but no luck. Going to test on fresh installed stock rom/kernel.

Status: Resolved. http://xdaforums.com/showthread.php?t=1630792

b. AOKP Rom users or custom Kernel users - Do not sue these tweaks. Basically I cannot help any issues on AOKP because I'm not a user of AOKP. So far, it's known that 31tweak file is causing a boot loop on Samsung logo screen.

Change log:

4/29/12 41tweaks_kobridge tweak updated. changed value setprop pm.sleep_mode to sync with build.prop.

4/30/12 lcd_density value changed back to default 240. It's my mistake uploading the file based on my configuration and forgot to change it back to default. Thanks to TeamERA for findings. If anything else found, more updates will be added to build.prop.

Thanks again to TeamERA. He found another one - "In your kobridgetweaks script you have ring delay at 1000, and in build.prop 0, it should be 0". Updated attached zip file.

5/2/12 New wifi idle tweak init.d file attached (only for the update of existing table)

5/4/12 Added 11 email section.

5/6/12 Wrong link in wifi section corrected.

5/8/12 Build.prop created based on FE07. Rearranged tweaked items based on Stock sequence. Removed duplicates.

5/9/12 uploaded updated init.d scripts. CPU tweaks changed to deal with only ondemand governor. Fixed few errors on 41tweaks. Currently it's a beta version because very few times, I saw that wifi was not automatically reconnected after the sleep. I confirmed that it's the stock rom issue and it's not coming from the tweaks in here.

5/14/12 zipalign tweak updated to confirm the removal of temporary APK files.

5/15/12 Improvement on 41Tweaks_other tweak file (more tweaks based on sysctl). Fixed on error from previous file. 21&31 CPU tweak files were changed more aggressively.

5/16/12 70wifiSleepWait_kobridge version2 tweak uploaded.