FORUMS

Index Project For XDA Device Subforums

Another ambitious project from the collaborative efforts of Recognized Contributors and Forum … more

The Atlas of XDA

A few weeks ago, we asked you “How Does Your Location Affect Your Life As A Power User?”. In the days that … more

New Snapdragons: Some Context & Contrast

It hasn’t been a good year for Qualcomm so far. Every device featuring the Snapdragon 810 … more

Google To Launch Next Gen Android One On July 14

The first gen of Android One devices to be launched in India in September 2014 were … more

(TWEAK'S) Deodex/odex tweak build.prop tweaks etc

2,963 posts
Thanks Meter: 454
 
By Danzano, Senior Member on 10th January 2012, 12:26 PM
Post Reply Subscribe to Thread Email Thread
More tweaks being added see below!!!!!!!!!

Here's a little tip/tweak!!!!!!

All credit goes to my friend Nibras Reeza this is hes work all credit to him im just the messenger. I tested this tweak for him awhile back in the GT540 thread tried it on the TF101 and had great results so thought I should share

This wasnt supposed to be a tweak for devices with 1Gb of RAM etc. However I think if I had to choose odexed or deodexed I would choose deodexed plus this tweak no matter what device no matter how much RAM.

AS WITH ANY MODDING PROCEDURE FOR YOUR PHONE, THIS GUIDE ALSO COMES WITH NO WARRANTY. AUTHOR HOLDS NO RESPONSIBILITY FOR ANY DIRECT AND INDIRECT CONSEQUENCES OF FOLLOWING THIS GUIDE. MAKE SURE YOU HAVE MADE A NAND BACKUP BEFORE PROCEEDING.

This will give a performance boost in deodexed ROMs as much as odexing system & data apps. This is an alternative for odexing. It's not that you can't apply this tweak on an odexed ROM but rather, it's useless to do so.

1) Open Terminal Emulator on phone or adb shell from PC and type the following.
su
setprop dalvik.vm.verify-bytecode false
setprop dalvik.vm.dexopt-flags v=n,o=v
rm /data/dalvik-cache/*
rm /cache/dalvik-cache/*
reboot

2) Add these to the /data/local.prop or build.prop.
dalvik.vm.verify-bytecode = false
dalvik.vm.dexopt-flags=v=n,o=v

(Copy local.prop or build.prop to SD and edit them. Copy back afterwards. If lines starting with dalvik.vm.verify-bytecode or dalvik.vm.dexopt-flags exist already, please modify them as above. Also type following in adb shell or terminal emulator.
rm /data/dalvik-cache/*
rm /cache/dalvik-cache/*
reboot


Advantages:
  • More free RAM.
  • Faster launch for system & user apps during the second launch.
  • Gives as much as of a performance boost as ODEX without odexing. Themer friendly.
  • Smoother app switching.

Disadvantages:
  • Might break some apps. ( I have not had any break you probably wont either but you have been warned!!!! )

Reversing the change/undo tweak.
Type the following in shell.
su
setprop dalvik.vm.verify-bytecode true
rm /data/dalvik-cache/*
rm /cache/dalvik-cache/*
reboot

WARNING!!! (Have had a few people have this problem) If you have V6Supercharger installed and you are trying to edit the build.prop through root explorer or similar and its just not working its not the tweaks fault nor my fault you must Un-Supercharge edit the build.prop then Re-Supercharge afterwards!

MORE TWEAKS!!!!!!!!!!!!!!!!

I will add to this section when I can mostly just build.prop tweaks or change's to settings that might help some people get there device a little smoother

##########################

**Improve Touch Performance**
1. Open up your favorite Root explorer
2. Open build.prop in a text editor
3. Add this line of code ( windowsmgr.max_events_per_sec=500 )
4. Save and exit and delete build.prop.bak if you trust the tweak
5. Reboot Enjoy

Quick note if your build.prop has an additional build properties section the line of code needs to go in there !!!!!

###########################

**Dalvik Tweak**
1. Open up your favorite Root explorer
2. Open build.prop in a text editor
3. The line of code stating the vm growth will usually be set around 32-48 on some TF101 roms they now use 54-64 Thanks for the support devs
4. Save and exit and delete build.prop.bak if you trust the tweak
5. Reboot to Recovery
6. Wipe Cache and Dalvik-Cache
7. Reboot Enjoy

############################

To be continued......

ADDING MORE SOON BUT WANT THEM TO BE 4.0.3 SPECIFIC SO LOTS OF TRIAL AND ERROR HAPPENING
Last edited by Danzano; 10th April 2012 at 11:29 PM.
The Following 8 Users Say Thank You to Danzano For This Useful Post: [ View ]
 
 
10th January 2012, 01:52 PM |#2  
gnufabio's Avatar
Retired Recognized Developer
Flag Milan
Thanks Meter: 3,534
 
Donate to Me
More
The problem with this is that it just turns off the dalvik controlls, so it may break some apks. Nice tweak, however
The Following 2 Users Say Thank You to gnufabio For This Useful Post: [ View ]
10th January 2012, 05:23 PM |#3  
MarkyG82's Avatar
Senior Member
Thanks Meter: 96
 
More
Will give this a go later.

Is there any reason why it wouldn't work in ics?

Sent from my HTC Desire Z using xda premium
10th January 2012, 06:06 PM |#4  
M1ST4K3's Avatar
Senior Member
Flag Portugal
Thanks Meter: 39
 
More
Tried it on my phone with CM7.1 and everything is fine... I'm not sure if it improoved but I'm not getting any errors from apps...
10th January 2012, 07:25 PM |#5  
pashinator's Avatar
Senior Member
Flag Wirral
Thanks Meter: 70
 
More
i remember trying this on my gt540 (why is it now legacy device section?) and it worked great but we would have 100mb free ram at a time whereas ow i got a gig in this badboy. confirmed works.

Sent from my Transformer TF101 using xda premium
10th January 2012, 10:37 PM |#6  
Danzano's Avatar
OP Senior Member
Flag Auckland
Thanks Meter: 454
 
More
Quote:
Originally Posted by gnufabio

The problem with this is that it just turns off the dalvik controlls, so it may break some apks. Nice tweak, however

Cheers im looking into a few other tweaks and tricks at the moment will post if theres any good ones

Sent from my tf Enigmatic V1 Alpha 1.59Ghz Panda.test ( still a little crashy at this speed )
10th January 2012, 10:40 PM |#7  
Danzano's Avatar
OP Senior Member
Flag Auckland
Thanks Meter: 454
 
More
Quote:
Originally Posted by pashinator

i remember trying this on my gt540 (why is it now legacy device section?) and it worked great but we would have 100mb free ram at a time whereas ow i got a gig in this badboy. confirmed works.

Sent from my Transformer TF101 using xda premium

Haha goog to see another gt owner and yes im pretty sure it is now

Ive had people at univerrsity and a couple of mates ask if it was one of the first androids ever lol

Sent from my tf Enigmatic V1 Alpha 1.59Ghz Panda.test ( still a little crashy at this speed )
11th January 2012, 02:01 AM |#8  
dragon_76's Avatar
Senior Member
Flag Chicago, IL
Thanks Meter: 94
 
More
Quote:
Originally Posted by pashinator

i remember trying this on my gt540 (why is it now legacy device section?) and it worked great but we would have 100mb free ram at a time whereas ow i got a gig in this badboy. confirmed works.

Sent from my Transformer TF101 using xda premium

UNIX-like systems cache eveything and as memory is needed, lesser used cached items are purged. If you have a UNIX-like system that has a lot of free RAM, your system is not running at optimal performance. Empty RAM is wasted RAM.

Cheers!
-M
Xda member since 2007
The Following User Says Thank You to dragon_76 For This Useful Post: [ View ]
11th January 2012, 06:40 AM |#9  
mrevankyle's Avatar
Senior Member
Flag Victoria, BC
Thanks Meter: 540
 
More
every time i run rm /cache/dalvik-cache/* it fails but wiping the dalvik cache in CWM will do the same thing correct?
11th January 2012, 09:44 AM |#10  
Danzano's Avatar
OP Senior Member
Flag Auckland
Thanks Meter: 454
 
More
Quote:
Originally Posted by mrevankyle

every time i run rm /cache/dalvik-cache/* it fails but wiping the dalvik cache in CWM will do the same thing correct?

Correct
With mine i cleaned cache also aswell as cleared out staging but thats just me

Sent from my tf Enigmatic V1 Alpha 1.59Ghz Panda.test ( still a little crashy at this speed )
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes