Quantcast
Channel: xda-developers - Galaxy Y Duos S6102 Android Development
Viewing all articles
Browse latest Browse all 112

[SCRIPT TO ODEX] Universal Odex Script Version 4.2.2 (02-07-2013)

$
0
0
Would you like more performance for your rom? Now you can! Only For Rooted Phone!!!!!!!!!!!!!!!!!!!!!!!


IF YOU TRIED AN OLD VERSION AND YOUR PHONE STUCK IN BOOTLOOP, YOU SHOULD DOWNLOAD LAST VERSION AND YOU SHOULD TRY AGAIN


This is possible with Universal Odex v4.2.2 created by me (for base I use script dexo from Universal Dexo 3.1).
I work four month to complete this script and now I want to share it with you.
The difference between by my script and the orginal is:
YOU CAN DO IT BY PHONE WITHOUT COMPUTER AND IT IS EASY TO USE!


What is ODEX and DEODEX?
If you odex the rom, you'll have also more space in data (this is important because if you don't have partition ext4 in sdcard, you won't have too free space), increase battery life, more stability and increase perfomance( the Rom is more faster to load system and app) but you can't modifie apk after odex (you can't mod program with classes.dex).
Infact ODEX is an OPTIMIZED-DEX and Android load system and app faster than deodexed(DEOPTIMIZED-DEX) app and system.
When you have a deodex file (a lot of roms are deodexed) you have File.apk in system/app and in data/dalvik-cache system@app@File.apk@classes.dex, but with odex file you have File.apk in system/app and File.odex in system/app.
Another explanation is this:
In Android file system, applications come in packages with the extension .apk. These application packages, or APKs contain certain .odex files whose supposed function is to save space. These odex files are actually collections of parts of an application that are optimized before booting. Doing so speeds up the boot process, as it preloads part of an application. On the other hand, it also makes hacking those applicationsdifficult because a part of the coding has already been extracted to another location before execution.
THEN COMES DEODEX
Deodexing is basically repackaging of these APKs in a certain way, such that they are reassembled into classes.dex files. By doing that, all pieces of an application package are put together back in one place, thus eliminating theworry of a modified APK conflicting with some separate odexed parts.
In summary, Deodexed ROMs (or APKs) have all their application packages put back together in one place, allowing for easy modification such as theming. Since no pieces of code are coming from any external location, custom ROMs or APKs are always deodexed to ensure integrity. So:
Odex = +speed -customization
Deodex = -speed +customization
I think that you like more speed and less customization :) and for this reason you press thank and download my work!


My script DO (it depends by option):
- odex bootstrap
- odex framework
- odex app in system
- remove classes.dex from framework and app in system
- zipalign from app in system
- delete dalvik of system and framework from data


How to odex:
- download file
- go to recovery
- install zip
- reboot
- open terminal emulator (will be installed automaticaly)
- type su
- type dexo -h to show command
- type dexo - (one of six option that you have decided)
- await

--- The phone will be rebooted! ---

Command For Dexo:
+ dexo -bs (odex only boot file, bootstrap, of framework)
+ dexo -fr (odex all framework)
+ dexo -csa (odex only specific app in system
+ dexo -sys (odex all app in system)
+ dexo -fcs (odex all framework and specific app in system)
+ dexo -all (odex all rom)

To Use dexo -csa and dexo -fcs you must create a file called csa.txt in your sdcard
In this file you write the name of apk that you want to odex, like this:
Phone.apk Browser.apk Mms.apk


IMPORTANT FOR GALAXY Y DUOS
To Odex Only Bootstrap You Must Have At Least 25 mb Free In System (Command 'dexo -bs')
To Odex Only Bootstrap and Framework You Must Have At Least 30 mb Free In System (Command 'dexo -fr')
To Odex Only System Apps You Must Have At Least 35 mb Free In System (Command 'dexo -sys')
To Odex All Rom You Must Have At Least 50 mb Free In System (Command 'dexo -all')


For Help You Can Type 'dexo -h' To Show Info

WORKING IN ALL ROM (Froyo, GingerBread, IceCreamSandwich and JellBean)
AOKP
CM 7-9-10
BASE STOCK
ALL!!!!!!!


Changelog:
Universal Odex Version 4.2.2
- Fixed grep of -csa and -fcs
------------------------------------
Unversal Odex Version 4.2.1
- Dexo -csa and Dexo -fcs now work for ics and jb
-------------------------------------
Universal Odex Version 4.2 Beta
- Added 2 New Command for dexo
> Now You Can Odex:
Only Specific App
Framework With Specific App
-------------------------------------
Universal Odex Version 4.1.3
- Fixed BootLoop On Device Like Galaxy S2 (Fixed Permission)
-------------------------------------
Universal Odex Version 4.1.2
- Updated Android Terminal Emulator
-------------------------------------
Universal Odex Version 4.1.1 New
- More Compatible
-------------------------------------
Universal Odex Version 4.1.1
- Fixed Remove Temp File
- Fixed Zipalign For ICS And JB
- System Now Is Mounted By Busybox
- BOOTCLASSPATH Now Is Always Setted (The Script Mustn't Fail)
- Add Info For Android JB 4.3 And KLP 5.0
- System Apps Now Have The BCP For Odex
--------------------------------------
Universal Odex Version 4.0 New
- Edited Script To Fix Some Words
--------------------------------------
Universal Odex Version 4.0
- Added 4 new option to odex Rom:
> Now You Can Odex:
Only Bootstrap
Bootstrap and Framework
Only System Apps
All Rom

Old Changelog:
Revision 19
- fixed bug when script can't preload
-classes (now if failed busybox will be restored)
Revision 18
- Initial Public Release


To Devs
If you want to use this script to odex your ROM, please give me credit in your ROM thread.
Thanks for the cooperation


Credits:
- Tommy Nguyen (for Universal Odex Version 3.1)
- MatrixDJ96 (for Mega Mod, Flash Zip)
- My father
- You (For Your Download)

Download link:
https://googledrive.com/host/0B2ftBo...VZITGRMenpQeWM

++++++++++++++++++++++++++++++++++++++++++++++++++ +++++++++

ENJOY WITH YOUR PERFORMANCE AND STABILITY!!!

Please, Give Me A Thank If You Like My Work And Give Feedback About Odex


By MatrixDJ96

Viewing all articles
Browse latest Browse all 112

Trending Articles