5,605,373 Members 42,136 Now Online
XDA Developers Android and Mobile Development Forum

◄ ▌[24.Jan.13][MOD][Guide] Brainmaster's Tweaks for Android 4+ ▌►

Tip us?
 
brainmaster
Old
(Last edited by brainmaster; 24th January 2013 at 12:50 PM.) Reason: Rewritten 99bmtweak
#1  
brainmaster's Avatar
Recognized Developer - OP
Thanks Meter 4424
Posts: 3,874
Join Date: Dec 2006

 
DONATE TO ME
Default ◄ ▌[24.Jan.13][MOD][Guide] Brainmaster's Tweaks for Android 4+ ▌►

Here is the description of the Tweaks:

  • Scripts in the /system/etc/init.d folder:
  • 08dalvik - Moves the Dalvik cache from the ext4 /data/dalvik to the faster yaffs /cache/dalvik partition
  • 95zipalign - This is more enhanced zipaligning method. Its zipaligning the apps in the /system/app and /data/app. It also creates the database that contains infos on apps that are already zipaligned, and checks that databe on reboot. If all apps are zipaligned, it skips the zipalign process. Zipaligning is useful because its reducing the amount of used RAM
  • 99bmtweak - Contains the tweaks that I've collected and enhanced over the time. Included are IO tweaks, TCP tweaks, SDCard ReadAhead tweak, SQLite Vacuum Database tweak

  • hosts file in the /system/etc folder:
  • Hosts file makes your Phone ADFree.

  • resolv.conf file in the /system/etc folder:
  • Google DNS Servers

  • placeholders in the /system/app and /data/app folders:
  • If you want to add a system app or install data/app with the CWM Zip file, just drop the apk in the /system/app or /data/app folder in the CWM Zip file and they will be installed when you flash the CWM Zip.

  • /kernel folder:
  • Enables the init.d script support.

  • updater-script in the /META-INF/com/google/android folder:
  • Deletes the Cache and Dalvik Cache, mounts the /data and /system partitions, copying the needed files. It sets the permissions. If you are editing that file, be SURE to use the Notepad 2 or Notepad ++ and use the Unix file system encoding when saving the file, not the regular Notepad Windows app.

  • build.prop tweaks Injector in the /tmp folder:
  • Injects the values in the /system/build.prop file. The /tmp/mytweaks.sh file shouldn't be edited! The file /tmp/misc contains the buildprop tweaks. You can add your own build.prop tweaks in that file.If you are editing that file, be SURE to use the Notepad 2 or Notepad ++ and use the Unix file system encoding when saving the file, not the regular Notepad Windows app, also IF you use comments (#Disable.ADB.Notification.Icon), DON'T use spaces, use ONLY the underline or dot character! These tweaks are included:
    Code:
    #Disable.ADB.Notification.Icon
    persist.adb.notify=0
    #Disable.Google.OTA.Checkin
    ro.config.nocheckin=1
    #Disable.Google.Reports
    profiler.force_disable_err_rpt=1
    profiler.force_disable_ulog=1
    #Enable_Google_DNS_Servers
    net.dns1=8.8.4.4
    net.dns2=8.8.8.8
    #HSPA.Tweaks
    ro.ril.hsxpa=2
    ro.ril.gprsclass=12
    ro.ril.hsdpa.category=16
    ro.ril.hsupa.category=8
    #Dalvik.Optimization
    dalvik.vm.execution-mode=int:jit
    dalvik.vm.verify-bytecode=false
    dalvik.vm.dexopt-flags=v=n,o=v

Installation

Step 0: You must be rooted!

Step 1: Download the Busybox installer app and install the Busybox to /system/xbin. Again - install the Busybox to /system/xbin not to /system/bin!

Step 2: Reboot to recovery and install the BM.Tweaks.NEXUS.S.zip file.

Optional Memfree tweak - set to 100 MB:

In order to use the Memfree tweak on every ROM, extract the /system/framework/services.jar from the ROM and upload it to android.mimic.ca, let the site edit the file, download the edited services.jar and put it in the BM Memfree zip file. Then flash the BM Memfree zip in the Recovery.

The attached Memfree zip is for the stock JZO54K ROM.

Optional BM Seeder:

You can read everything about the tweak here.

This is my version adjusted for the Nexus S.

How can I be sure that the tweaks are working?

Open the RootExplorer and click on the /cache folder. IF the dalvik-cache folder is present, THEN the tweaks are working properly. Check also your /system/build.prop file for the #Brainmaster Tweaks area.

The tweaks are universal - not ROM version related, and can be flashed over any ROM but ONLY for NS or NS4G.


Disclaimer:

ALWAYS make a NANDroid Backup of your current ROM so that you can go back if you don't like the tweaks.

I will NOT reply any users PM's regarding this thread or my ROMs, only the DEVs should contact me over PM.

If you are user and have questions, write HERE in the thread.

BEFORE asking any questions, make sure that you read this post.


Attached Files
File Type: zip BM.Memfree.NEXUS.S.JZO54K.zip - [Click for QR Code] (1.12 MB, 1002 views)
File Type: zip BM.Seeder.zip - [Click for QR Code] (691.4 KB, 1232 views)
File Type: zip BM.Tweaks.NEXUS.S.zip - [Click for QR Code] (886.8 KB, 1157 views)


Buy me a Coffee - here for US and here for EU.
The Following 120 Users Say Thank You to brainmaster For This Useful Post: [ Click to Expand ]
 
brainmaster
Old
(Last edited by brainmaster; 28th January 2012 at 06:26 PM.)
#2  
brainmaster's Avatar
Recognized Developer - OP
Thanks Meter 4424
Posts: 3,874
Join Date: Dec 2006

 
DONATE TO ME
I have edited the Mobile_Sensei's ROM prepare tool and added the deletion of the /sdcard/.android_secure folder.

Now when you flash new ROM and want to do a clean install, just flash this file.

It does following:
  • deletes /sdcard/.android_secure
  • deletes /cache
  • deletes /data/dalvik-cache
  • formats /cache
  • formats /data
  • formats /boot
  • formats /system
Happy flashing!

Here you can also find just the Dalvik-Wiper when you're updating your ROM.
Attached Files
File Type: zip ROM-Wiper.zip - [Click for QR Code] (148.2 KB, 6083 views)
File Type: zip Dalvik-Wiper.zip - [Click for QR Code] (147.9 KB, 3081 views)


Buy me a Coffee - here for US and here for EU.
The Following 69 Users Say Thank You to brainmaster For This Useful Post: [ Click to Expand ]
 
brainmaster
Old
#3  
brainmaster's Avatar
Recognized Developer - OP
Thanks Meter 4424
Posts: 3,874
Join Date: Dec 2006

 
DONATE TO ME
Reserved 2.


Buy me a Coffee - here for US and here for EU.
The Following 5 Users Say Thank You to brainmaster For This Useful Post: [ Click to Expand ]
 
brainmaster
Old
#4  
brainmaster's Avatar
Recognized Developer - OP
Thanks Meter 4424
Posts: 3,874
Join Date: Dec 2006

 
DONATE TO ME
Reserved 3.


Buy me a Coffee - here for US and here for EU.
The Following 5 Users Say Thank You to brainmaster For This Useful Post: [ Click to Expand ]
 
brainmaster
Old
#5  
brainmaster's Avatar
Recognized Developer - OP
Thanks Meter 4424
Posts: 3,874
Join Date: Dec 2006

 
DONATE TO ME
Reserved 4.


Buy me a Coffee - here for US and here for EU.
The Following 4 Users Say Thank You to brainmaster For This Useful Post: [ Click to Expand ]
 
Icecoldmeat
Old
#6  
Icecoldmeat's Avatar
Senior Member
Thanks Meter 111
Posts: 723
Join Date: Oct 2011
Location: Almelo
Nice!

Sent from my Nexus S using XDA App
Galaxy Nexus - MBQ's Xylon / franco.Kernel

Apple iPhone 5 - iOS 6.1.2 Evasi0n
 
flodb113
Old
#7  
flodb113's Avatar
Senior Member
Thanks Meter 113
Posts: 165
Join Date: Apr 2011
Thank you for sharing this

Transmitted from somewhere in space... from my Nexus S... and Tapatalk.
 
suksit
Old
#8  
suksit's Avatar
Senior Member
Thanks Meter 83
Posts: 410
Join Date: Dec 2010
Thanks!

Now I have something more to play with my personal version of MIUI ICS
 
frost866
Old
#9  
frost866's Avatar
Senior Member
Thanks Meter 108
Posts: 336
Join Date: Nov 2010
Location: GTA
Thanks man
But I have a question, For the ICS custom rom, most of them come with boot.img and I tried on KANGY-S but i got stock on google sign in the beginning of boot.
So can you tell me which package should I use?

 
zadnica
Old
#10  
zadnica's Avatar
Senior Member
Thanks Meter 64
Posts: 383
Join Date: May 2010
Location: Marseille
Thx

10char

Google Nexus 4
CyanogenMod 10.1 Nightlies

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes