Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
View Poll Results: Do you think this is helpful?
Yes 15 100.00%
No 0 0%
Voters: 15. You may not vote on this poll

 
Post Reply+
Tip us?
 
airfluip1
Old
(Last edited by airfluip1; 24th June 2012 at 04:41 PM.) Reason: New Version/ Wow!
#1  
airfluip1's Avatar
Senior Member - OP
Thanks Meter 622
Posts: 1,616
Join Date: Feb 2011
Default [TWEAK PACKAGE][MTD-Roms]|6/16/2012|Dalvik Optimizer (Formerly Odexer)

DON'T FLASH ON CM9 YET, OP WILL BE UPDATED WHEN YOU CAN

Dalvik Optimizer Beta 0.1
Note: This WILL work with Team Win Recovery Project 2.x(TWRP Touch Recovery) and ClockWorkMod (CWM)


Disclaimer

This is for the Galaxy S 4G, or SGH-T959V, if you don't own this phone, don't use this.I am not responsible if you hard or soft brick (damage/make unusable) your phone in any way. I suggest that you know how to flash recovery zips like roms and such, and have a way to recover like a backup or have the original rom in case something doesn't work or interrupts your flash. I also am not responsible but I'll feel bad for you if you get a heart attack, seizure, or any medical illness because of this flash. e.g, If the phone is too fast for you. I don't care if you go crazy and spend all your time on this phone causing you to break up with your wife, husband, children, family, girlfriend, boyfriend, or fiance. I will laugh at you if you start to make out with your phone though .

What is this?

This is an optimizer that improves the performance of an MTD roms like CyanogenMod 7, or moKeeOS, or DianXinOS, or Shendu OS, or JoyOS, or MIUI, or any other Team Acid, Team Kick Ass or Team NoOb.LuLz MTD rom that may release in the future.

What does this do?

1. This Re-Odexes your system.
-An Odex file is basically a dalvik executable that the phone reads upon boot. Stock roms like those released from Google, or Samsung are Odexed (as far as I know). Custom roms are often De-odexed in order to make their roms customizeable from the developer's point of view. Note: This will not effect Theme-Chooser or any other built in theming app
2. It changes the Dalvik VM heap size to 128m.
-This is the maximum allowable memory for each Dalvik Virtual Machine heap. Basically, increasing the size prevents your phone from having to clear it so often which runs your battery(the default size is 42m I believe).
3. I don't know yet, this is just the beta, this may be the final release, but I'll probably add more.

Advantages
1. Boot time is decreased
2. Scrolling is faster, less lag
3. Better battery life
4. Faster phone(quadrant scores may actually be lower)
5. More /data space because dalvik doesn't have to use /data to copy the classes.dex files over for itself.

Disadvantages
1. If you were to dump your system partition and edit apk files, you'd have to reodex them for certain modifications. This is a lengthy and tedious process usually, unless you use a program, which still takes >25 minutes unless you have a computer with a boat load of ram. (Those are usually pretty expensive)

Credits
1. zman0900 from the epic4g forum- I ported his odexer
2. Team Acid - CM7
3. Team Kick Ass - Motivation for the whole community
4. Google - Android
5. Samsung - This phone
6. My dad - Buying me this phone.
Attached Files
File Type: zip Dalvik Optimizer-MTD.zip - [Click for QR Code] (952.6 KB, 532 views)
We Have JB

Android Phones List
HTC DREAM- Feb 2009
CM6.1 Android 2.2.1 Froyo
Retired-Cracked LCD/Broken SD Reader

SAMSUNG SGH-T959V- Feb 2011
CyanogenMod 10 Build 2
Current Device

My Help
AOSP GB Theme
AOSPStyle
Galaxy S 4G CyanogenMod Odexer
The Following 15 Users Say Thank You to airfluip1 For This Useful Post: [ Click to Expand ]
 
sklassy
Old
#2  
sklassy's Avatar
Member
Thanks Meter 7
Posts: 95
Join Date: Nov 2010
Location: Salem
does this fix the camera?
 
justcallmeb
Old
#3  
Junior Member
Thanks Meter 1
Posts: 29
Join Date: Jun 2008
Quote:
Originally Posted by sklassy View Post
does this fix the camera?
No.

Sent from my SGH-T959V using XDA
 
ipaq_101
Old
#4  
Senior Member
Thanks Meter 124
Posts: 477
Join Date: Sep 2011
Airfluip can you please explain the benefits of odexing?

I have never understood it even after reading about it online.

Sent from my SGH-T959V using xda premium
 
FBis251
Old
(Last edited by FBis251; 26th May 2012 at 02:03 AM.)
#5  
FBis251's Avatar
Recognized Contributor
Thanks Meter 3054
Posts: 2,993
Join Date: Mar 2011

 
DONATE TO ME
Did you create this tool? If not you should put this in the general forum instead.

EDIT

For those of you who don't know about dex files
http://www.talkandroid.com/guides/mi...e-explanation/
The Following 4 Users Say Thank You to FBis251 For This Useful Post: [ Click to Expand ]
 
airfluip1
Old
#6  
airfluip1's Avatar
Senior Member - OP
Thanks Meter 622
Posts: 1,616
Join Date: Feb 2011
Yeah, but I based it of other scripts I had seen.

Sent from my SGH-T959V using xda premium
We Have JB

Android Phones List
HTC DREAM- Feb 2009
CM6.1 Android 2.2.1 Froyo
Retired-Cracked LCD/Broken SD Reader

SAMSUNG SGH-T959V- Feb 2011
CyanogenMod 10 Build 2
Current Device

My Help
AOSP GB Theme
AOSPStyle
Galaxy S 4G CyanogenMod Odexer
 
AntonX
Old
#7  
Senior Member
Thanks Meter 395
Posts: 246
Join Date: Nov 2006
The main benefit in ODEXing for our phone, which has very limited /data partition, is that all system apps and the framework itself are already precompiled and ODEX files are left in /system. They don't take space in Dalvik cache in /data. In the end you can leave more of your apps in /data and not move them to SD so they load faster.
The Following 6 Users Say Thank You to AntonX For This Useful Post: [ Click to Expand ]
 
airfluip1
Old
#8  
airfluip1's Avatar
Senior Member - OP
Thanks Meter 622
Posts: 1,616
Join Date: Feb 2011
Also faster boot time,

Battery and speed is better too.

My findings are, dalvik doesn't have to crack open every app, also dex is dalvik executable. Odex is optimized hence the "o"

Sent from my SGH-T959V using xda premium
We Have JB

Android Phones List
HTC DREAM- Feb 2009
CM6.1 Android 2.2.1 Froyo
Retired-Cracked LCD/Broken SD Reader

SAMSUNG SGH-T959V- Feb 2011
CyanogenMod 10 Build 2
Current Device

My Help
AOSP GB Theme
AOSPStyle
Galaxy S 4G CyanogenMod Odexer
The Following User Says Thank You to airfluip1 For This Useful Post: [ Click to Expand ]
 
john9
Old
#9  
Account currently disabled
Thanks Meter 263
Posts: 1,592
Join Date: Oct 2011
I have learned a lot of practical things, thank you!
The Following User Says Thank You to john9 For This Useful Post: [ Click to Expand ]
 
htaak
Old
#10  
htaak's Avatar
Senior Member
Thanks Meter 109
Posts: 292
Join Date: Aug 2011
Location: Ore Chasm - Pandora
Worked for me. Boot-up is noticeably faster. Thank you.
AOKP - Unofficial

The Following User Says Thank You to htaak 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...