Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
mundixx
Old
(Last edited by mundixx; 5th October 2011 at 05:58 PM.)
#1  
mundixx's Avatar
Senior Member - OP
Thanks Meter 221
Posts: 704
Join Date: May 2011
Location: Cebu City, PH
Default [Tutorial][Tweak][Deodex] Disable verify-bytecode!

First of all, i take no credit for this. Thanks to nibras_reeza for this tweak! I've tested this for SGA and I can feel an even better performance boost though i'm already using Grif_07's CM7.1 Kang Beta 2! You can go to the original thread here - Get more RAM and faster responses by disabling verify-bytecode!. I've added some instructions that would be more applicable for Ace.

You'll need:
  • Terminal Emulator
  • CWM
  • Root Explorer or File Expert (or any file manager that has root access)

This tweak will give a performance boost in deodexed ROMs as much as odexing system & data apps. This is an alternative for odexing.


1) Open Terminal Emulator on phone or adb shell from PC and type the following.
Code:
su
setprop dalvik.vm.verify-bytecode false
setprop dalvik.vm.dexopt-flags v=n,o=v
reboot recovery
2) Wipe both caches and reboot system

3) Open root explorer, go to /system/ and edit build.prop in R/W mode then add these lines:
Code:
dalvik.vm.verify-bytecode = false
dalvik.vm.dexopt-flags=v=n,o=v
If lines starting with dalvik.vm.verify-bytecode or dalvik.vm.dexopt-flags exist already, please modify them as above. Note that there might be two entries for dalvik.vm.dexopt-flags; remove the second one.

4) After saving build.prop, reboot to recovery then wipe both caches again.

5) Reboot system. Done.


Quote:
Originally Posted by nibras_reeza View Post

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.

You can read more information about this on here and here.

To undo this tweak,

Type the following in Teminal Emulator.
Code:
su
setprop dalvik.vm.verify-bytecode true
reboot recovery
Then wipe both caches then reboot.
The Following 4 Users Say Thank You to mundixx For This Useful Post: [ Click to Expand ]
 
AlterJack
Old
#2  
AlterJack's Avatar
Senior Member
Thanks Meter 46
Posts: 113
Join Date: Sep 2011
Location: Panama
Anyone can comment on this tweak? I don't know about it, but it sounds a little bit extreme on the phone :S
If I said something that helped you, don't hesitate to press the little "Thanks!" button!


Thanks RobertsAccount for the awesome siggie!
 
Lovetz
Old
#3  
Lovetz's Avatar
Senior Member
Thanks Meter 1701
Posts: 1,493
Join Date: Apr 2007
Location: Petrozavodsk
Just did everything as described. Nothing bad happened. Improvements have not yet seen it.
I do not answer to PM with questions whose are answers on the forum.
Siemens C-45
SonyEricsson T-310
Sagem myx-8
Qtek 8310 (Tornado)
Toshiba Portege G900 WM6.5.x Black Edition Transcend 80x 4Gb MultiSim Silver Pic-ADor 6.16i
Samsung Galaxy Ace * CM10.1 * Transcend MicroSD 16Gb class 6
Wexler Book T7008 * ICS 4.0.3 (20120531)
Zopo zp950+ * 4.2.1 * SanDisk 32 Gb class 10
 
mundixx
Old
#4  
mundixx's Avatar
Senior Member - OP
Thanks Meter 221
Posts: 704
Join Date: May 2011
Location: Cebu City, PH
Quote:
Originally Posted by AlterJack View Post
Anyone can comment on this tweak? I don't know about it, but it sounds a little bit extreme on the phone :S
Yup, requires a bit of experience in Android tweaking.. but i can say my phone's definitely faster
 
ak1t
Old
#5  
Member
Thanks Meter 12
Posts: 53
Join Date: Mar 2011
Location: Riga
Done, can't see any changes, hope Ill see em soon
 
Lovetz
Old
#6  
Lovetz's Avatar
Senior Member
Thanks Meter 1701
Posts: 1,493
Join Date: Apr 2007
Location: Petrozavodsk
After the application of this method arises a problem: SGA freezes after extract and reinsert the SD.
Already, four people can attest.
I do not answer to PM with questions whose are answers on the forum.
Siemens C-45
SonyEricsson T-310
Sagem myx-8
Qtek 8310 (Tornado)
Toshiba Portege G900 WM6.5.x Black Edition Transcend 80x 4Gb MultiSim Silver Pic-ADor 6.16i
Samsung Galaxy Ace * CM10.1 * Transcend MicroSD 16Gb class 6
Wexler Book T7008 * ICS 4.0.3 (20120531)
Zopo zp950+ * 4.2.1 * SanDisk 32 Gb class 10
The Following User Says Thank You to Lovetz For This Useful Post: [ Click to Expand ]
 
mundixx
Old
#7  
mundixx's Avatar
Senior Member - OP
Thanks Meter 221
Posts: 704
Join Date: May 2011
Location: Cebu City, PH
Quote:
Originally Posted by Lovetz View Post
After the application of this method arises a problem: SGA freezes after extract and reinsert the SD.
Already, four people can attest.
uh oh. i did not try to extract/reinsert SD yet.
but can reboot solve the problem?
 
ak1t
Old
#8  
Member
Thanks Meter 12
Posts: 53
Join Date: Mar 2011
Location: Riga
Quote:
Originally Posted by mundixx View Post
uh oh. i did not try to extract/reinsert SD yet.
but can reboot solve the problem?
yeah reboot cures freeze, but only once, next time u extract/reinsert your SD, phone will freeze again, undoing this by using comand from first post, and replacing prop file with original made thing's worse, all apps after rebooting force closed. Reinstalling rom cured all problems.
The Following User Says Thank You to ak1t For This Useful Post: [ Click to Expand ]
 
mundixx
Old
#9  
mundixx's Avatar
Senior Member - OP
Thanks Meter 221
Posts: 704
Join Date: May 2011
Location: Cebu City, PH
Quote:
Originally Posted by ak1t View Post
yeah reboot cures freeze, but only once, next time u extract/reinsert your SD, phone will freeze again, undoing this by using comand from first post, and replacing prop file with original made thing's worse, all apps after rebooting force closed. Reinstalling rom cured all problems.
when you applied the code or restore the build.prop, did you clear both caches? that way, the system rebuilds it and prevents the force closes
 
ak1t
Old
#10  
Member
Thanks Meter 12
Posts: 53
Join Date: Mar 2011
Location: Riga
Quote:
Originally Posted by mundixx View Post
when you applied the code or restore the build.prop, did you clear both caches? that way, the system rebuilds it and prevents the force closes
sure I cleared them

The Following User Says Thank You to ak1t For This Useful Post: [ Click to Expand ]
 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...