[SCRIPT TO ODEX] Universal Odex Script Version 6.4.2 (02-19-2014)(MM-dd-yyyy) - Android Software/Hacking General [Developers Only]

Would you like to speed up your rom, more stability, more battery life, no lag to open system app and better ram utilization? Now you can! (Only For Rooted Phone And Deodexed Rom)
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 my Universal Odex Script Version 6.4.2 created by me (for base I used script dexo from Universal Dexo 3.1).
I worked 8 mounth to modifie and complete this script to make it "Universal" and now I want to share it with you.
The difference between by my script and the orginal is:
- Added Commands To Odex What Do You Want
- You Can Do It Without Computer
- More Universal Than Original
- Very Simple To Use
- This Script Is Supported By Me And I Add New Features On Every Update
- Flashable Zip By Recovery
- All Tools Included In My Zip
What is ODEX and DEODEX?
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 (less costumization for dev because is to difficult mod an odex file) and for this reason you press thank and download my work!
Another explanation is this:
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 [email protected]@[email protected], but with odex file you have File.apk in system/app and File.odex in system/app
My script DO (it depends by option):
- odex framework
- odex app in system
- odex app in preload (if your phone has preload partition for device like Galaxy S2)
- odex app in data
- remove classes.dex from framework, app in system, app in preload and app in data
- zipalign from app in system, app in preload and app in data
- remove libs from app in system and app in preload because are useless (android wants libs in system/lib not in the apk) to make more free space to odex
- delete dalvik of system, of preload, of data and of framework from data/dalvik-cache
How to odex:
- download file
- go to recovery
- install zip
- reboot
- open terminal emulator (will be installed automaticaly)
- type su to obtain root permission
- type dexo -h to show possible commands for your phone
- type dexo -one of the option that you have decided
Type 'dexo -(one of the option that you have decided) -log' to create a log on sdcard
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 -pa (odex preload partition)
+ dexo -cpa (odex only specific app in preload
+ dexo -all (odex all rom) (bootstrap, framework, system, preload) (NOT DATA!)
+ dexo -dat (odex app in data)
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 Dialer.apk
To Use dexo -cpa you must create a file called cpa.txt in your sdcard
In this file you write the name of apk that you want to odex, like this:
Browser.apk Mms.apk Gmail.apk Vending.apk
IMPORTANT TO ODEX YOUR ROM
To Odex Bootstrap (Command 'dexo -bs') You Must Have At Least 10% Of Free Space In System.
To Odex Framework (Command 'dexo -fr') You Must Have At Least 15% Of Free Space In System.
To Odex System Apps (Command 'dexo -sys') You Must Have At Least 20% Of Free Space In System.
To Odex Preload Apps (Command 'dexo -pa') You Must Have At Least 25% Of Free Space In Preload.
For More Info Contact Me By Email: [email protected]
WORKING IN ALL ROM (Froyo, GingerBread, IceCreamSandwich and JellyBean) NOT KITKAT
AOSP
AOKP
CM
PA
PAC
BASE STOCK
ALL!
Changelog:
Universal Odex Version 6.4.2
- Fixed Minor Bug
----------------------------------
Universal Odex Version 6.4.1
- Fixed Bugs Of V6.4
----------------------------------
Universal Odex Version 6.4
- Important Update
- Updated Terminal Emulator
- Remove Possibility To Odex KitKat
- Added Script To Remove Useless Odex In Data/App
----------------------------------
Universal Odex Version 6.3.1
- Minor Bugs Fixed
- CSA Fixed
- Skip Odex Of Jkay Deluxe Settings
----------------------------------
Universal Odex Version 6.3
- A Lot Of Bugs Fixed
----------------------------------
Universal Odex Version 6.2
- Added 1 New Command To Odex Your Rom
> Now You Can Odex:
+ Only Specific Preload Apps ('dexo -cpa')
----------------------------------
Universal Odex Version 6.1 Private
- Fixed Minor Bug
- Rewritten Script
- Changed Command 'dexo -psa' In 'dexo -pa'
----------------------------------
Universal Odex Version 6.0 Private
- Added Controll Of Free Space In System
- Added New Command To Activate Log
> Type 'dexo -(one of the option that you have decided) -log'
----------------------------------
Universal Odex Version 5.2 Private
- Removed 'fixbox' Script Because Now There Aren't Necessary Symlink Of BusyBox
- Added Check Of Root Permission
- Updated Command 'dexo -all' To Odex Also Preload Apps
----------------------------------
Universal Odex Version 5.1
- Fixed Bug Of Odex System And Preload
----------------------------------
Universal Odex Version 5.0
- Added 1 New Command To Odex Your Rom
> Now You Can Odex:
+ Only Preload Apps ('dexo -psa') (if your phone has preload partition)
- Skipped Odex Of RootExplorer If Is Installed In System Or Preload Or Data (beacause old version can't be odexed and i prefer old version)
- Fixed A Lot Of Bug
- Changed A Little Bit The Interface
- More Universal Now
- Add New Script (Type 'fixbox') To Fix Error Of Busybox (Like clear: not found)
----------------------------------
Universal Odex Version 4.2.3
- Added 1 New Command To Odex Your Rom
> Now You Can Odex:
+ App In Data ('dexo -dat')
----------------------------------
Universal Odex Version 4.2.2
- Fixed Grep Of 'dexo -csa' And 'dexo -fcs'
----------------------------------
Universal Odex Version 4.2.1
- Fixed Bug Of Commands 'dexo -csa' And 'dexo -fcs'
----------------------------------
Universal Odex Version 4.2 Beta
- Added 2 New Command To Odex Your Rom
> Now You Can Odex:
+ Only Specific App ('dexo -csa')
+ Framework With Specific App ('dexo -fcs')
----------------------------------
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.1
- More Compatible
----------------------------------
Universal Odex Version 4.1.1
- Fixed Remove Temp File
- Fixed Zipalign For ICS And JB
- System Now Is Mounted By Busybox
- Add Info For Android JB 4.3 And KLP 5.0
- System Apps Now Have The BCP For Odex
----------------------------------
Universal Odex Version 4.0.1
- Edited Script To Fix Some Words
----------------------------------
Universal Odex Version 4.0
- Added 4 New Command To Odex Your Rom:
> Now You Can Odex:
+ Only Bootstrap ('dexo -bs')
+ Bootstrap and Framework ('dexo -fr')
+ Only System Apps ('dexo -sys')
+ All Rom ('dexo -all')
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 Dexo Version 3.1)
- @MatrixDJ96 (Creator Of Universal Odex Version 6.2)
- MrTony68 (Beta Tester)
- @angel.sea (For Support)
- You (For Your Download)
Download link:
Universal Odex Script
++++++++++++++++++++++++++++++++++++++++++++++++
ENJOY WITH MORE STABILITY, SPEED AND BATTERY LIFE!!!
Please, Give Me A Thank If You Like My Work And Give Feedback About Odex
By MatrixDJ96

Important
During the odexing process some apps will go in force close. It's normal
After reboot you can lost widget and google account. It's normal

Other......

i tried you tool today. It was scary to see all the apps force close.
Is it possible to run the the tool in TWRP?
I have two feature requests.
#1 create a log file
#2 since a system app need its libraries in /system/libs we can remove them from the apk. doing this will give even more free space. as far as i know there is only one app (titanium backup) that breaks when removing the libs.

Success fully odexed my galaxy wonder. Its really give me more ram free. Without side effect!
Sent from my GT-I8150 using xda premium

UnitedOceanic said:
i tried you tool today. It was scary to see all the apps force close.
Is it possible to run the the tool in TWRP?
I have two feature requests.
#1 create a log file
#2 since a system app need its libraries in /system/libs we can remove them from the apk. doing this will give even more free space. as far as i know there is only one app (titanium backup) that breaks when removing the libs.
Click to expand...
Click to collapse
Yes I think that you can do it in TWRP and... Fantatics Ideas!! Remove lib i add this in new version
Ps:in v6 i add checking for root permission, checking free space in system and add log.. Now I'm testing and in a few days i share it with you

How long does it take to boot after odexing all? Mine sat about the boot animation for 10-15 minutes before I restored a nandroid.
Sent from my SPH-L900 using xda premium

sorry just download your zip file. but when I try to install it rhough normal reovery, it always show install aborted (both enable and disable signature). maybe I miss something?
my ROM is 4.1.2 odex and AOSP. thanks

in odex rom, no more dalvik cache but it will have odex file for each apps. i wonder where will the odex store? can it be move to somewhere else?
Because i using sd2ext and my dalvik cache already move to ext partition.

Natedog1 said:
How long does it take to boot after odexing all? Mine sat about the boot animation for 10-15 minutes before I restored a nandroid.
Sent from my SPH-L900 using xda premium
Click to expand...
Click to collapse
It dipends... If you have installed a lot if apps it takes 10/15 min but if there aren't a lot of apps the boot takes 2/3min

Normal recpvery is stock? Because you must use CWM or TWPR

jasonkhoo87 said:
in odex rom, no more dalvik cache but it will have odex file for each apps. i wonder where will the odex store? can it be move to somewhere else?
Because i using sd2ext and my dalvik cache already move to ext partition.
Click to expand...
Click to collapse
When you have a deodex app in system you have:
/system/app/Phone.apk
/data/dalvik-cache/[email protected]@[email protected]
When you have odexed app in system you have:
/system/app/Phone.apk
/system/app/Phone.odex
So you mustn't change location of odex file because if you moved odex file in sd-ext (manually with symlink) you'd lose the benefit of odex (no more speed)

MatrixDJ96 said:
When you have a deodex app in system you have:
/system/app/Phone.apk
/data/dalvik-cache/[email protected]@[email protected]
When you have odexed app in system you have:
/system/app/Phone.apk
/system/app/Phone.odex
So you mustn't change location of odex file because if you moved odex file in sd-ext (manually with symlink) you'd lose the benefit of odex (no more speed)
Click to expand...
Click to collapse
Now i understand, i think for now its very risky for me.. because i have a lot of apps, worry that when i convert to odex, my internal cannot support all odex files put inside same partition...

MatrixDJ96 said:
Normal recpvery is stock? Because you must use CWM or TWPR
Click to expand...
Click to collapse
ah no wonder. yup i'm using normal recovery. since my android is less popular china brand, haven't found CWM or TWPR for mine.
will try it later after found CWM.
thanks mate

MatrixDJ96 said:
It dipends... If you have installed a lot if apps it takes 10/15 min but if there aren't a lot of apps the boot takes 2/3min
Click to expand...
Click to collapse
OK thanks. I will try it again later and give it more time to boot.
Sent from my SPH-L900 using xda premium

Thanks, ran the script on my old Frosty GN2 rom with xposed framework and it worked great. I did the dexo -all, do I still need to do the -dat option? Thanks again.
Noellenchris
EDIT: I see after browsing the file system that I will need to do the dexo -dat also as they are not odex'd. I will give this a shot as well and see how it goes. Still seems nice, it did update my apps on 2nd boot as well, wonder if it will keep doing that on each reboot.

can you make deodex tool

Hi,
So basically, I just used the dexo -all to Odex all of the following options?

Simone said:
Hi,
So basically, I just used the dexo -all to Odex all of the following options?
Click to expand...
Click to collapse
All without odex data app

MatrixDJ96 said:
All without odex data app
Click to expand...
Click to collapse
Successfully did it. Thanks.

Related

Moved

http://forum.xda-developers.com/showthread.php?t=2390162
Good work,but why not making a deodexer?
Many Greeeeetz!!!
For deodex you must use a computer
Inviato dal mio GT-S5570
I know that.
Many Greeeeetz!!!
And i think that odex is better than deodex
Inviato dal mio GT-S5570
Didn't work for me always get error
Sent from my GT-S5360 using xda app-developers app
@ Post above..i think its for ADB
"theviper" said:
Didn't work for me always get error
Sent from my GT-S5360 using xda app-developers app
Click to expand...
Click to collapse
My script will re-odex any completely deodex rom, but it depends on the modifications the dev has done to their ROM. If framework.jar is missing "preloaded-classes", the script will abort because preloaded-classes is needed for odex ROMs to boot. "Preloaded-classes gets accidentally compiled into classes.dex by sloppy devs.
Framework.jar should only be modified using baksmali and smali, never apktool or any other tool.
The bad framework.jar, its classes.dex contains the code and instructions for preloaded-classes already. So when you odex, framework.odex contains preloaded-classes and classes.dex codes - which causes the system not to boot. Odex files should only contain classes.dex code.
Impossible to grep preload-classes?
How to resolve? Try this:
Take a fresh framework.jar and baksmali it. Edit it. Then smali. This will ensure preloaded-classes were untouched, as baksmali is smart enough to leave it alone.
Another alternative is to pull classes.dex from fresh framework.jar and baksmali it. Smali when finished and insert back into jar file.
Then, when you odex, framework.jar will contain only preloaded-classes and framework.odex is the optimized classes.dex."
Mods done to framework.jar would no longer be available, all dependencies on those mods would of course be broken.
Inviato dal mio GT-S5570
@op - ur script worked like a charm..
but I faced vibrations while rebooting when odexing comleted..
I just pulled out the battry and rebooted again..
Update v4.2.3
Changelog:
Universal Odex Script Version 4.2.3
- Add Command dexo -dat To Odex App In Data
The new script worked perfectly on cm7. Thanks
Sent from my GT-S5360 using xda app-developers app
MatrixDJ96 said:
Update v4.2.3
Changelog:
Universal Odex Script Version 4.2.3
- Add Command dexo -dat To Odex App In Data
Click to expand...
Click to collapse
can i remove terminal app from package..and enter the odex command via adb?
ronnieryan said:
can i remove terminal app from package..and enter the odex command via adb?
Click to expand...
Click to collapse
Sure!!
Sent from my GT-S5570
Tried and working on SGY with "Perfection rom" :cyclops:
Thank you very much, grazie mille :good:
Awesome thanx a lot
Sent from my GT-S5360 using xda premium
******* !!!!! Great work !!!!!*******
thanks
Update v5.0
Changelog:
Universal Odex Version 5.0
- Add Command dexo -psa To Odex App In Preload (if your phone has preload partition)
- Skip Odex Of RootExplorer If Is Installed In System Or Preload Or Data (beacause old version can't be odexed and i prefer old version)
- Fixed A Lot Of Bug
- Changed The Interface
- Complete Universal Now
- Add New Script (Type 'fixbox') To Fix Error Of Busybox (Like clear: not found)
- Simple To Use
Update v5.1
Changelog:
Universal Odex Version 5.1
- Fixed Bug Of Odex System And Preload
Works gr8 with my Galaxy Pocket and Galaxy Y with CM7 :good::good::good:
New Update!
Changelog:
Universal Odex Version 6.2
- Added 1 New Command To Odex Your Rom
> Now You Can Odex:
+ Only Specific Preload Apps ('dexo -cpa')
- Fixed Minor Bug
- Rewritten Script
- Changed Command 'dexo -psa' In 'dexo -pa'
- Added Controll Of Free Space In System
- Added New Command To Activate Log
> Type 'dexo -(one of the option that you have decided) -log'
- Removed 'fixbox' Script Because Now There Aren't Necessary Symlink Of BusyBox
- Added Check Of Root Permission
- Updated Command 'dexo -all' To Odex Also Preload Apps
MatrixDJ96 said:
New Update!
Changelog:
Universal Odex Version 6.2
- Added 1 New Command To Odex Your Rom
> Now You Can Odex:
+ Only Specific Preload Apps ('dexo -cpa')
- Fixed Minor Bug
- Rewritten Script
- Changed Command 'dexo -psa' In 'dexo -pa'
- Added Controll Of Free Space In System
- Added New Command To Activate Log
> Type 'dexo -(one of the option that you have decided) -log'
- Removed 'fixbox' Script Because Now There Aren't Necessary Symlink Of BusyBox
- Added Check Of Root Permission
- Updated Command 'dexo -all' To Odex Also Preload Apps
Click to expand...
Click to collapse
Can I use this script on my Stock rom DDMD1.

(UPDATE 12/10/13)[SCRIPT TO ODEX] Universal Odex Script Version 6.3

Source..... http://forum.xda-developers.com/showthread.php?t=2360074
Would you like to speed up your rom, more stability, more battery life and no lag to open system app? Now you can! (Only For Rooted Phone)[/SIZE][/COLOR]
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 my Universal Odex Script Version 6.3 created by MatrixDJ96 (for base he used script dexo from Universal Dexo 3.1).
He worked 5 mounth to modify and complete this script to make it "Universal" and now I want to share it with you.
The difference between by my script and the orginal is:
- Added Commands To Odex What Do You Want
- You Can Do It Without Computer
- More Universal Than Original
- Very Simple To Use
- This Script Is Supported By Me And I Add New Features On Every Update
- Flashable Zip By Recovery
- All Tools Included In My Zip
What is ODEX and DEODEX?
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 (less costumization for dev because is to difficult mod an odex file) and for this reason you press thank and download my work!
Another explanation is this:
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 [email protected]@[email protected], but with odex file you have File.apk in system/app and File.odex in system/app
My script DO (it depends by option):
- odex bootstrap
- odex framework
- odex app in system
- odex app in preload (if your phone has preload partition for device like Galaxy S3)
- odex app in data
- remove classes.dex from framework, app in system, app in preload and app in data
- zipalign from app in system, app in preload and app in data
- remove libs from app in system and app in preload because are useless (android wants libs in system/lib not in the apk) to make more free space to odex
- delete dalvik of system, of preload, of data and of framework from data/dalvik-cache
How to odex:
- download file
- go to recovery
- install zip
- reboot
- open terminal emulator (will be installed automaticaly)
- type su to obtain root permission
- type dexo -h to show possible commands for your phone
- type dexo -one of the option that you have decided
Type 'dexo -(one of the option that you have decided) -log' to create a log on sdcard
--- The phone will be rebooted automatically! ---
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 -pa (odex preload partition)
+ dexo -cpa (odex only specific app in preload
+ dexo -all (odex all rom) (bootstrap, framework, system, preload) (NOT DATA!)
+ dexo -dat (odex app in data)
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 Dialer.apk
To Use dexo -cpa you must create a file called cpa.txt in your sdcard
In this file you write the name of apk that you want to odex, like this:
Browser.apk Mms.apk Gmail.apk Vending.apk
IMPORTANT TO ODEX YOUR ROM
To Odex Bootstrap (Command 'dexo -bs') You Must Have At Least 10% Of Free Space In System.
To Odex Framework (Command 'dexo -fr') You Must Have At Least 15% Of Free Space In System.
To Odex System Apps (Command 'dexo -sys') You Must Have At Least 20% Of Free Space In System.
To Odex Preload Apps (Command 'dexo -pa') You Must Have At Least 25% Of Free Space In Preload.
For More Info Contact Him By Email: [email protected]
WORKING IN ALL ROM (Froyo, GingerBread, IceCreamSandwich and JellBean)
AOSP
AOKP
CM
PAC
BASE STOCK
ALL!
Changelog:
Universal Odex Version 6.3
- A Lot Of Bugs Fixed
----------------------------------
Universal Odex Version 6.2
- Added 1 New Command To Odex Your Rom
> Now You Can Odex:
+ Only Specific Preload Apps ('dexo -cpa')
----------------------------------
Universal Odex Version 6.1 Private
- Fixed Minor Bug
- Rewritten Script
- Changed Command 'dexo -psa' In 'dexo -pa'
----------------------------------
Universal Odex Version 6.0 Private
- Added Controll Of Free Space In System
- Added New Command To Activate Log
> Type 'dexo -(one of the option that you have decided) -log'
----------------------------------
Universal Odex Version 5.2 Private
- Removed 'fixbox' Script Because Now There Aren't Necessary Symlink Of BusyBox
- Added Check Of Root Permission
- Updated Command 'dexo -all' To Odex Also Preload Apps
----------------------------------
Universal Odex Version 5.1
- Fixed Bug Of Odex System And Preload
----------------------------------
Universal Odex Version 5.0
- Added 1 New Command To Odex Your Rom
> Now You Can Odex:
+ Only Preload Apps ('dexo -psa') (if your phone has preload partition)
- Skipped Odex Of RootExplorer If Is Installed In System Or Preload Or Data (beacause old version can't be odexed and i prefer old version)
- Fixed A Lot Of Bug
- Changed A Little Bit The Interface
- More Universal Now
- Add New Script (Type 'fixbox') To Fix Error Of Busybox (Like clear: not found)
----------------------------------
Universal Odex Version 4.2.3
- Added 1 New Command To Odex Your Rom
> Now You Can Odex:
+ App In Data ('dexo -dat')
----------------------------------
Universal Odex Version 4.2.2
- Fixed Grep Of 'dexo -csa' And 'dexo -fcs'
----------------------------------
Universal Odex Version 4.2.1
- Fixed Bug Of Commands 'dexo -csa' And 'dexo -fcs'
----------------------------------
Universal Odex Version 4.2 Beta
- Added 2 New Command To Odex Your Rom
> Now You Can Odex:
+ Only Specific App ('dexo -csa')
+ Framework With Specific App ('dexo -fcs')
----------------------------------
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.1
- More Compatible
----------------------------------
Universal Odex Version 4.1.1
- Fixed Remove Temp File
- Fixed Zipalign For ICS And JB
- System Now Is Mounted By Busybox
- Add Info For Android JB 4.3 And KLP 5.0
- System Apps Now Have The BCP For Odex
----------------------------------
Universal Odex Version 4.0.1
- Edited Script To Fix Some Words
----------------------------------
Universal Odex Version 4.0
- Added 4 New Command To Odex Your Rom:
> Now You Can Odex:
+ Only Bootstrap ('dexo -bs')
+ Bootstrap and Framework ('dexo -fr')
+ Only System Apps ('dexo -sys')
+ All Rom ('dexo -all')
Old Changelog:
Revision 19
- fixed bug when script can't grep preloaded-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 Dexo Version 3.1)
- @MatrixDJ96 (Creator Of Universal Odex Version 6.2)
- MrTony68 (Beta Tester)
- @angel.sea (For Support)
- You (For Your Download)
Download link:
https://googledrive.com/host/0B2ftBoBlBHTIWVZITGRMenpQeWM
++++++++++++++++++++++++++++++++++++++++++++++++
ENJOY WITH MORE STABILITY, SPEED AND BATTERY LIFE!!!
Please, Give Me A Thank If You Like My Work And Give Feedback About Odex
By MatrixDJ96
Sorry mate, I did not understand head or tail from it.
Test it guys and then report here
iyengar said:
Sorry mate, I did not understand head or tail from it.
Click to expand...
Click to collapse
It will again odex your rom to improve performance like stock which is already odexed
Only for custom roms.
san122 said:
Only for custom roms.
Click to expand...
Click to collapse
hello sir
can you add a link of my original thread?
thanks
Update please
try n giv reviews
Thread updated added source
wat happen to my dialer
lost all my files
san122 said:
Thread updated added source
Click to expand...
Click to collapse
Thanks
san122 said:
Thread updated added source
Click to expand...
Click to collapse
New Update

[ODEX][SCRIPT] Odexer Tool 1.6 (11-04-2014)(MM-dd-yyyy)

Would you like to increase stability and battery life, to don't have lag to open system app and to have better ram utilization? Now you can! (Only for rooted phone and deodexed ROM)
This is possible with Odexer Tool created by myself.
I've worked a lot of time to create this script and I want to share it with you.
What is ODEX and DEODEX?
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.
My explanation is this:
If you odex the rom, you'll have more space in data (this is important because if you don't have partition ext4 in sdcard, you won't have too free space), you'll increase battery life, you'll have more stability and perfomance (the ROM is more faster to load system and app) but it's too difficult to modifie apk after odex (you can't mod APKs if there isn't classes.dex inside before deodex it).
In fact 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/[email protected]@[email protected], but with odex file you have File.apk in system/app and File.odex in system/app
Stock ROMs are all odexed to have this features and my script allow you to re-add these on your custom ROM.
With these explanations you can understand that:
Odexed ROM = Faster, more stability and battery life, less ram utilization but difficult customization of APKs and a little bit slower boot
Deodexed ROM = Slower, less stability and battery life, more ram utilization but easy customization of APKs and a little bit faster boot
If you run this script with "Remove classes.dex: Disabled", your rom will be odexed without difficult customization of APKs but remember to re-odex it after mod.
My script does (it depends by option):
- Odex framework (of course also bootstrap)
- Odex app in system/app
- Odex app in system/priv-app (if you have android kitkat)
- Remove classes.dex from jar/apk (if you enable this option)
All commands of my script:
+ frame [odex all framework]
+ sysapp [odex all system apps]
+ all [odex framework and system apps]
+ set [change settings of the script]
+ exit [exit from the script]
+ easter egg [nothing important]
WORKING WITH FOLLOWING ANDROID VERSIONS
- Froyo
- GingerBread
- Honeycomb
- IceCreamSandwich
- JellBean
- KitKat
- NO LOLLIPOP (for now)
Credits:
- @MatrixDJ96 (Me)
- MrTony68 (Beta Tester)
- @Thyrus (Beta Tester)
- @angel.sea (For Support)
- Stericson (For BusyBox)
TO DEVELOPES
If you want to use or add this script on your ROM, you MUST give me credit in your thread.
Thanks for the cooperation
Follow me here: Odexer Tool Official Community
ENJOY WITH ODEXER TOOL!!!
Please, give me a thanks if you like my work
By MatrixDJ96
CHANGELOGS:
*** Odexer Tool 1.6 ***
- Fixed TOO MANY bugs
-----------------------------------
*** Odexer Tool 1.5 TEST ***
- Fixed bugs
-----------------------------------
*** Odexer Tool 1.4 ***
- Reworked a lot of the script
- Fixed some bugs
- Added ability to start directly odex (for ex. now you can start it with 'odex all' without type before only 'odex' and after the command)
- Added support of X86 (Mips not support yet)
-----------------------------------
*** Odexer Tool 1.3 TEST ***
- Added check of root
- Reworked completely the script
- Fixed a lot of bugs
- Removed creation of update.zip (removed option)
- Only for ARMEABI
-----------------------------------
*** Odexer Tool 1.2 ***
- Fixed creation of flashable zip in some device
- Fixed a lot of bugs
- More compatible
-----------------------------------
*** Odexer Tool 1.1.1 ***
- Fixed "elif syntax error"
-----------------------------------
*** Odexer Tool 1.1 ***
- Fixed creation of flashable zip in some device
- Disabled command to change settings with kitkat
- Fixed minor bugs
-----------------------------------
*** Odexer Tool 1.0 ***
- First stable version
HOW TO FIX 'Android is upgrading...' FOR ANDROID VERSION 2.2 TO 4.3.1 :
*** Remove files classes.dex from APKs/JARs in /system/app and /system/framework that have classes.dex ***
IMPORTANT TO ODEX KITKAT ROM:
*** The options "Remove classes.dex" must be disabled (the script autodetect it and disable this option automatically) ***
HOW TO ODEX YOUR ROM:
To odex framework you must have at least 14% of free space in system.
To odex system apps you must have at least 24% of free space in system.
To odex all system you must have at least 31% of free space in system.
IT'S BETTER DOING A NANDROID BACKUP BEFORE BUT IT'S UP TO YOU
1 - Download Odexer Tool
2 - Reboot into recovery
3 - Install Odexer Tool
4 - Reboot into system
5 - Open Terminal Emulator (will be installed automaticaly)
6 - Type su to obtain root permission
7 - Type odex and enjoy!
I hope that all are clear
+++++++++++++++++++++++++++++++++
Download link:
Odexer Tool
+++++++++++++++++++++++++++++++++
v1.5 released but need test
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Great tool and nice to see you here @MatrixDJ96! I just have once question, is odex file (smali) completely removed from the deodex apk files, once I read on another thread that smali files would be still remained within the apk which makes the total size of one apk+odex bigger than original ones.
kmokhtar79 said:
Great tool and nice to see you here @MatrixDJ96! I just have once question, is odex file (smali) completely removed from the deodex apk files, once I read on another thread that smali files would be still remained within the apk which makes the total size of one apk+odex bigger than original ones.
Click to expand...
Click to collapse
From first version of Android to JB 4.3.1 you could remove classes.dex from APKs to gain free space and don't show android is upgrading on every boot but on android 4.4+ use must have APKs with classes.dex inside and if you want file odex external like File.apk, File.odex because Dalvik (classes.dex and not only odexed file) is necessary if you want to change runtime to art
Nice I would try odexing my rom then. Thanks
Wich one works on N9005? X86 or Armeabi?
shapk said:
Wich one works on N9005? X86 or Armeabi?
Click to expand...
Click to collapse
armeabi....
why it's written 1.5 on the picture?????
anyway your 1.2 version work well...will try the 1.4 but not sure if it's does something on already odex rom...
rayman95 said:
armeabi....
why it's written 1.5 on the picture?????
anyway your 1.2 version work well...will try the 1.4 but not sure if it's does something on already odex rom...
Click to expand...
Click to collapse
Try v1.5 please
On deodexed rom of course
I try v1.5 now
1.5 working fine
Sent from my SM-N9005 using Tapatalk
1.5 work perfectly. Thanks
V1.5 is ok?
Do i Download it?
Sent from my SM-N9005 using Tapatalk
roozbeh158 said:
V1.5 is ok?
Do i Download it?
Sent from my SM-N9005 using Tapatalk
Click to expand...
Click to collapse
Is OK but need test (for now all results are perfect)
try it now on temasek rom....
MatrixDJ96 said:
Odexed ROM = Faster, ...
Click to expand...
Click to collapse
I have never seen a table of benchmark results comparing Odexed to Deodexed, but i guess if speed really makes at least a tiny noticeable difference then it should show up in benchmarks. Does anybody have such a comparison to show order of magnitude of difference?

[ROM][G900FD][DUOS][ALEXNDR] * CQD1 * DevBase v4.3 * Multi CSC, Safe De-Bloat

Important notes for Developers / ROM Chefs !!!
This ROM is NOT based on any other custom ROM. My work contains many original ideas and innovations that I introduced as the first in the ROM development (see "Changelist" in post #2). Of course, it does not mean that I do not need to thank anyone - there are a lot of people who helped / inspired me anyhow (see "Credits").
I will risk the statement that at this moment my "DevBase" is the most tuned and nuanced custom ROM available at XDA Forum
I agree to use any part of my work to create other custom ROMs, but it would be great if you add me to the credits
Hello
I have decided to create a pure base, which can be a pattern for ROM Chefs (not only for beginners) ROM is initially safe de-bloated (read below what does it exactly mean), but all features are present and works!
ROM can be installed by normal users as well. If you like a little de-bloated ROMs, clean, but with all working features - there is no better alternative I think
ROM contains my extended CSC package, which I called G900FDAXX (this is a combination OXE, OJV + some additional). Final list of available CSC is as follows:
CAC, CAU, ECT, ILO, KSA, LEB, LYS, SEK, SER, SKZ, THR, TMC, WTL, XEO, XSG
NEW !!! I present you new, unique option: "Keep current CSC", so you can install my DevBase keeping your original CSC. My DevBase contains all possible CSCs from G900FD variant so there is no need to worry about it
How does it work? This option detects your current CSC and automatically applies it during install.
NOTE: Do not use so called "Superwipes" and/or additional /system formats, otherwise "Keep current CSC" option will not work properly. Please read THIS for explanation.
How can I check my current CSC?
Install Phone INFO app from Play Store and check your CSC. If you are using stock ROM and everything is ok with your CSC - all CSC fields in Phone Info app should display the same CSC, as below (otherwise, you probably forgot about wipe data when you were installing ROM with another CSC).
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
How can I change my current CSC?
Q: Recently I tested several ROMs, in result of it my CSC has changed. I would like to install your DevBase, but first I want to restore my country's original CSC. What should I do?
No special/additional steps are needed. Just install my DevBase with edited options.prop file placed on internal sdcard or extSdCard -> type CSC=[your_csc] instead of CSC=KCSC. Remember to perform "Wipe data" in the recovery before install. Note that sometimes additional reboot is required after completing pre-configuration steps to display your CSC correctly in Phone Info app).
ALEXNDR.G900FDXXS1CQD1:
1. Base:
- Odexed (original stock files) + stock kernel
- Multi CSC (list of natively supported CSC as above) (*)
- Removed SecurityLogAgent (annoying on rooted phones)
- Rooted systemlessly (Magisk v13 or SuperSU 2.82) (*)
- All original features are present and works
- No visual changes (100% stock look)
- Safe De-Bloated (more info below)
What does it mean and why is it called "safe"?
- ONLY apps available in stores are removed from DevBase, so you can easy (re)install any of these app if you like
- ONLY pre-installed system apps are removed, DevBase installer never touch any updated app nor app installed manually from store
Thus, the following conclusions can be drawn:
1. If you install my DevBase directly over stock ROM without performing "Wipe data" - in most cases almost all these apps will remain untouched, because almost all apps have been updated already (stored on /data). But then you will be able to remove any useless app using the "Application manager", like any other app. Removed manually app will not appear again until you use my DevBase while updating.
2. If you perform "Wipe data" while installing my DevBase - then all apps listed below will be removed. If you would like to use any of these apps - just install it manually from appropriate store. Installed manually app will not be removed during the next DevBase update.
Removed apps list:
ChatON
Chrome
Drive
Dropbox
Flipboard
Google+ / Photos
Group Camcorder
Group Play
Hangouts
Play Books
Play Games
Play Movies
Play Music
Play Newsstand
Smart Remote
2. Modded systemlessly - contains SYSTEMLESS DevBase
- All mods known from previous DevBase versions (up to v3.x) are applied systemlessly - all modified files (including modded apps) are placed in /data/devbase/system instead of physical /system partition. Mods section (#4) has been updated to install mods to /data/devbase/system/(priv-)app if systemless DevBase has been detected (otherwise will be installed as usual, to /system). Init.d support has been removed as it is deprecated (use post-fs-data.d or su.d instead). For more information, guides, tips & tricks - see SYSTEMLESS DevBase.
(*) - these options can be controlled by editing options.prop file (you can find such file in ZIP's root directory). Just place modified options.prop file (use e.g. Notepad++ to edit) in the root directory of internal emulated scdard (/data/media/0) or extSdCard (recommended if you plan to format internal emulated sdcard) and then start the installation. More info below:
#
# DevBase by ALEXNDR (_alexndr @ XDA)
#
# Configuration file to allow customize the installation.
#
# File inside the ZIP installer is just for reference - please do not modify it!
# If you want to change some options listed below - copy this file, then edit it using
# e.g. Notepad++ (do not use Windows Notepad!), then place your modified options.prop file
# in the root directory of internal emulated scdard (/data/media/0) or in the root directory
# of extSdCard (recommended if you plan to format internal emulated sdcard) and then start
# the installation.
#
# TIP: You do not need to repeat this step every next update I will release. As long as your
# customized options.prop file is present in the (ext)SdCard - future DevBase installers will
# "read in your mind" that you want to install with such options again.
#
# I agree to use any part of my work to create more advanced custom ROM,
# but it would be great if you add me to the credits
# Enable root access with the selected method. Allowed values:
# magisk - install Magisk & MagiskSU as root solution (default)
# supersu - install SuperSU as root solution, without Magisk
# noroot - do not root device (NOTE: you will get unmodified ROM!)
root=magisk
# CSC Selection. Allowed values:
# KCSC - Keep current CSC, recommended in most cases (automatic selection or copy your current CSC contents).
# You can force the use of natively supported CSC by typing (use UPPERCASE!): CAC, CAU, ECT, ILO, KSA, LEB,
# LYS, SEK, SER, SKZ, THR, TMC, WTL, XEO, XSG
CSC=KCSC
NEW !!! Starting from DevBase v3.0 there is a new customization method - you can change frequently switched root options just by renaming installer's ZIP file name (instead of editing options.prop file). Currently supported "strings" in the file name: "magisk", "supersu", "noroot":
Case 1 (default) - install the ROM with Magisk & MagiskSU as root solution
(just flash ZIP file "as it is")
Case 2 - install the ROM with SuperSU as root solution, without Magisk
(place "supersu" string anywhere in the ZIP file name, e.g. "G900FDxxx_DevBase_v4.x_supersu.zip")
Case 3 - do not root device (NOTE: you will get unmodified ROM!)
(place "noroot" string anywhere in the ZIP file name, e.g. "G900FDxxx_DevBase_v4.x_noroot.zip")
Installation:
CWM / TWRP recovery (KNOX 0x1) - open file using "Install (Zip)" option and confirm operation. If you want to perform "clean install' - perform "wipe data/factory reset" BEFORE flashing Zip! I highly recommend you to update bootloader/modem also to the newest versions available in post #3, to avoid potential bugs/issues.
Wipe data is NOT required if you are coming from stock ROM or a previous version of my DevBase (if you leave "Keep current CSC" option untouched in /options.prop or if you choose same CSC as you are currently using). In other cases - wipe data is highly recommended!
I do not recommend using any additional superwipes or formats before install my DevBase (my installer cleans your system well enough!).
Credits:
@Chainfire for systemless SuperSU and a lot of inspiration
@topjohnwu for Magisk, Xposed, another inspiration & some binaries used separately
@wanam for Xposed framework used in older DevBase versions
@amarullz for Aroma Installer used in older DevBase versions
@svadev & @_riddle for deodexed tools/binaries used in older DevBase versions
Hit Thanks button if you like my work. If you really appreciate my work - feel free to buy me a beer
DOWNLOADS
Download ROM:
>> G900FDXXS1CQD1_DevBase_v4.3.zip << (Android 6.0.1, updated Jul-04-2017, more info in post #300)
>> Recent ROM versions for SM-G900FD <<
Note:
Check MD5 sum BEFORE flash (useful TOOL), because flashing damaged or incomplete ZIP files could (soft) brick your phone! Correct MD5 sum is shown on the AndroidFileHost website while downloading.
Changelog
v4.3 (starting from G900FDXXS1CQD1 DevBase):
- "root.supersu" & "root.magisk" variables in the options.prop file have been replaced by one "root" variable (dropped possibility to install both -
SuperSU & Magisk - due to the fact that Magisk v13+ does not support SuperSU as root solution)
- SYSTEMLESS DevBase updated to v1.9 (see changelog HERE)
v4.2 (not released for G900FD):
- Added possibility to add systemlessly NEW apps to /data/devbase/system/(priv-)app (up to 5 apps in "app" & 5 apps in "priv-app"). The only condition is that you need to rename its directories to CustomApp[1...5] (e.g. CustomApp1, CustomApp2, etc..). These apps will remain even if you flash a new DevBase as corresponding dummy directories will exist in future DevBase updates
- In case of DevBase update or re-installation - installer will not remove your custom entries in /data/devbase/system/build.prop and in *.xml files placed in /data/devbase/system/csc
- SYSTEMLESS DevBase updated to v1.6 v1.8 (see changelog HERE)
v4.1 (not released for G900FD):
- Added full Magisk support - MagiskSU is now default root solution (ROM should pass SafetyNet with Magisk Hide enabled in settings)
- Since systemless Xposed does not need to be re-installed every new DevBase I will release (in case of using the same root solution) - it makes no sense to keep it anymore as installation option
- SYSTEMLESS DevBase updated to v1.5 (see changelog HERE)
v4.0 (not released for G900FD):
- A huge step in the systemless direction! DevBase installer now installs pure odexed stock ROM (just slightly debloated), then systemless SuperSU, then systemless DevBase, then (optionally) systemless Xposed
- All Knox related applications are available again (except SecurityLogAgent, to prevent annoying security alerts)
- Fake KNOX 0x0 status (check it in PhoneINFO app) - most of Knox related apps should work again, like in case of untouched KNOX flag
- All mods known from previous DevBase versions (up to v3.x) now are applied systemlessly - all modified files (including modded apps) are placed in /data/devbase/system instead of physical /system partition. Mods section (#4) has been updated to install mods to /data/devbase/system/(priv-)app if systemless DevBase has been detected (otherwise will be installed as usual, to /system)
- Deodex on-the-fly feature has been removed. If you really need deodexed ROM - you can install someone else's deodexed ROM, then systemless DevBase as an overlay
- Init.d support has been removed as it is deprecated (use su.d instead)
v3.8 (starting from G900FDXXS1CPH1 DevBase):
- Added hexpatch to root_from function (support for SM-N930x, thanks to @Chainfire)
v3.7 (starting from G900FDXXU1CPF4 DevBase):
- Another major improvement/bugfix in deodex_from function (full support for 64 bit OS)
v3.6 (starting from G900FDXXU1CPE1 DevBase):
- Major improvement/bugfix in deodex_from function (added "-g" switch to zip command - finally no issues in case of deodexed Android 6.0.1)
v3.5 (starting from G900FDXXU1CPE1 DevBase):
- Improved root_from function (Android 5.1+) - added "setprop selinux.reload_policy 1" removal from init.rc (thanks to @Chainfire)
- Fixed bug in new alghoritm for checking whether stock recovery should be installed or not (introduced in v3.4)
- Added new functionality - installer will store a copy of patched stock kernel in /data for those who flashed custom kernel but for some reasons want to revert to the stock kernel (Android 5.1+)
v3.4 (not released for G900FD):
- Completely changed alghoritm for checking whether stock recovery should be installed or not (it applies to FlashFire users). Now it depends on previously used recovery (instead of checking KNOX flag which was not 100% reliable across devices/recoveries)
v3.32 (starting from G900FDXXU1CPE1 DevBase):
- Updated set_csc, kcsc_backup, kcsc_restore functions to support more devices
- Updated partition detection algorithm to support more devices
- Fixed path to options.prop file placed in external sdcard in case of updating Marshmallow while using FlashFire
- Minor intaller's optimizations/bugfixes
v3.31 (not released for G900FD):
- Potential fix for reported problems with root (rare cases)
v3.3 (starting from G900FDXXS1BPD3 DevBase):
- Improved method of reading options from ZIP file name (previous was directory/path sensitive also)
- Added support to mod_csc function for other than UNIX text format (it's a little ridiculous, but in case of some CSCs - original /system/csc/other.xml file has Windows or MAC text format!)
- Initial support for options.prop file in CRLF text format (DOS/Windows)
v3.21 (not released for G900FD):
- Fixed installer's issue if there is a [space] present in ZIP filename or a directory containing DevBase (see #1728)
v3.2 (not released for G900FD):
- Another improvements in add_initd function (details - see v1.3)
- Improvements in set_perm, set_perm_rec and root_from functions (recovery-independent structure)
- Improvements in deodex_from function related to Android MM
- New get_con function in the main sh script (useful for devs)
- BusyBox updated to 1.22.1 (bionic) [no, this is NOT a mistake!]
- Minor intaller's optimizations/bugfixes
v3.1 (not released for G900FD):
- Significantly improved "add_initd" function in the update-binary shell script. Added support for (probably) all available Samsung's platforms (e.g. Exynos) and all available firmwares (based on Android 4.4+)
- In case of installation with Xposed framework installer checks if Xposed Installer app is present in /data/app and installs it automatically if necessary
- Minor intaller's optimizations/improvements
v3.0 (starting from G900FDXXS1BPC3 DevBase):
- Entire installer has been re-written from the scratch! All "magic" moved to update-binary which is a shell script. It opens up new possibilities never possible before!
- Introduced new customization method - you can change most frequently switched options just by renaming installer's ZIP file name. Currently supported "strings" in the file name:
"noroot" (means "do not root"), "deodex", "xposed", "initd" (no other comments are required, I hope..)
- Starting from v3.0 init.d support is disabled by default
v2.3 (not released for G900FD):
- Added option to install suitable Xposed framework in one step while installing DevBase (for maximum comfort). There is a new xframework.sh script - device independent structure and full Android 5.1+/6.0+ support. Backup method is compatible with well known Xposed uninstallers (tested with @wanam's)
v2.2 (not released for G900FD):
- Significantly improved root_supersu.sh script - device independent structure and full Android 5.1+/6.0+ suport including on the fly kernel/ramdisk/sepolicy patching if necessary. SU binaries are still copied to /system as it is the best choice in case of custom ROMs
- Changed order of performed operations in the updater-script due to new root_supersu.sh script advantages
- Installer wipes partitions designated for RAW content (e.g. kernel / recovery image) before writing to them
- Minor additions in dex_injector.sh script related to Android 6.0+
v2.11 (not released for G900FD):
- Fixed some minor installer's issues ("set_perm" function in set_csc.sh did not work correctly while using wildcards in the path (it was exclusively FlashFire issue! no problem with TWRP / CWM). Fortunately - only /system/etc/csc_*.txt were really "affected" - it didn't cause real issues as these files are empty)
v2.1 (not released for G900FD):
- As some people felt a bit disapointed / worried about DevBase v2.0 ROM file size - finally I have decided to debloat stock system.img (in same way as in v1.x => "Safe De-Bloat") and remove option to install all available bloatware. ROM file size has been reduced from about ~1.6GB to about ~1.3GB. Note for Devs / Chefs: Do not use Windows tools - you need Linux with "selinux" package installed (to handle SELinux contexts) to mount (rw) system.img safely. If you want to add / change any system content this way - remember about proper chown/chmod/chcon
- Added device check during install as flashing directly to EMMC block is potentially more risky for "other" devices. Installer will abort installation if device is not N910F (trlte(xx)). If you want to try this ROM on other N4 devices - you need to remove this check manually from updater-script (it is more conscious procedure)
v2.0 (not released for G900FD):
- Completely new concept of ROM development that makes it easy to build most tuned and nuanced custom ROMs. No more arduous manual analysis or (often) invalid permissions / SELinux contexts taken from a kitchen. The main idea is to flash original, stock /system image as EMMC block (in same way as PC Odin does) instead of extracting ZIP's contents to mounted partition, then setting permissions, then creating symlinks, etc. However, it requires more knowledge related to sh scripts as ALL necessary changes need to be done on the fly, while installing (e.g. by injecting modified classes.dex and/or modified images/xmls to /res/../* into an apk). There are no limits, all depends on your creativity!
- One common ZIP installer for Odexed and Deodexed ROM - you can control it by new "deodexed.rom" entry in options.prop (there is new dex_injector.sh script which can deodex on the fly the whole ROM using previously processed classes.dex files)
- ROM is still Safe De-Bloated by default but removing bloatware during install is not mandatory - you can control it by new "safe.debloat" entry in options.prop (there is new protection included to avoid overfilling /system in case of large size of additional MODs and/or large multi CSC package)
- Major improvements in csc_detect.sh script - it is able to detect previous CSC even in cases of flashing over e.g. CM based ROM and/or previously formatted system partition. However, if detected CSC is NOT included in my multi CSC package, in both mentioned cases it is still not possible to keep detected CSC (as there is no CSC related content to backup / restore)
- Improvements in all sh scripts - additional "metadata" entries in updater-script (related to processed contents) are not required
- Improvements in root_supersu.sh script - it is suitable for 32 and 64 bit OS
- Added full zip support from the command line
v1.x (initial version, further improvements, up to G900FDXXU1BOJ1 DevBase):
- Built without using a kitchen. All set_metadata* / symlink entries are result of arduous manual analysis. For more info about the method - see hidden content for Devs / Chefs in THIS thread.
- New customization method without using Aroma (options.prop)
- Many useful scripts for easy installation: CSC applying/autodetection, backup/restore of security files, backup/restore of existing CSC package, XML modding on the fly, root, init.d support
- Many small changes and improvements "in the meantime" which I simply do not remember...
- Safe De-Bloated (see post #1 for details)
DOWNLOADS
Useful PC Odin flashable files:
>> Recent bootloader versions for SM-G900FD <<
>> Recent modem versions for SM-G900FD <<
>> Recent kernel versions for SM-G900FD <<
(suitable kernel is already included in my ROM)
Note:
To update bootloader and/or modem you have to power off the phone, wait min 10 seconds and then go directly to Download Mode using Vol_down+Home+Power key combination. Load bootloader using BL button and/or modem using CP button in PC Odin. Push "Start".
DOWNLOADS
Optional MODs
I put some of my favorite MOD's - especially for normal users who want to use my rom - as it is. These modifications I have done personally using (bak)smali tools - these are NOT "borrowed" from other custom rom, nor from someone else's thread (thanks to @majdinj & @tdunham for their excellent modding guides). All files are TWRP / CWM / FlashFire flashable ZIPs:
1. Modified Camera app:
- Full functionality of the Camera app in low battery
2. Modified Phone app:
- Disabled increasing ringtone
3. Modified Messages app:
- Disabled SMS to MMS auto-converting
- Increased SMS/MMS recipient limit (10 -> 1000)
- Increased SMS/MMS hour limit (100 -> 1000)
- Disabled SMS / MMS log history in call logs
- Disabled SMS delivery notifications (*)
(*) If you long press a message you can still check if the message has been delivered or not, we do not need to see and hear notifications for every sms. It's annoying to me!
>> MODs for G900FD (Marshmallow) <<
>> MODs for G900FD (Lollipop) <<
In case of MODs installed to /system - you can restore original apk using backup stored in /data/backup/alexndr
Nice work
Have you found much difference between the G900F and G900FD firmwares?
For example, would it be easy enough to patch a F firmware to work on FD?
Only FD S5???
djb77 said:
Nice work
Have you found much difference between the G900F and G900FD firmwares?
For example, would it be easy enough to patch a F firmware to work on FD?
Click to expand...
Click to collapse
No, it's not easy as FD kernel and many FD apps have some special features included to support dual sim (e.g. Messages app from G900F works with G900FD but doesn't recognize many dual SIM operations).
core720 said:
Only FD S5???
Click to expand...
Click to collapse
I have no experience with MD variant. I bought G900FD variant 3 days ago
Maybe it is enough to replace the kernel and the modem to work properly in Brazil...
_alexndr said:
No, it's not easy as FD kernel and many FD apps have some special features included to support dual sim (e.g. Messages app from G900F works with G900FD but doesn't recognize many dual SIM operations).
Click to expand...
Click to collapse
Cool, thanks for that info. If it was possible I would integrate FD support into TGP, but it doesn't sound as easy as the other variants.
alexndr Thank you for your work
deodexed clearance
_alexndr said:
Download ROM:
>> G900FDXXU1BOF1_DevBase_alexndr.zip << (Android 5.0, updated Jun-27-2015)
>> Recent ROM versions for SM-G900FD <<
Note:
Check MD5 sum BEFORE flash (useful TOOL), because flashing damaged or incomplete ZIP files could (soft) brick your phone! Correct MD5 sum is shown on the AndroidFileHost website while downloading.
Download Deodexed ROM:
Note:
Deodexed ROM might be potentially less stable due to performing additional actions using tools that are still under early development (thanks to @_riddle & @svadev). If you do not know why do you really need deodexed ROM then it means you do not really need it! Please do not report bugs without the information that you are using deodexed version.
>> Recent Deodexed ROM versions for SM-G900FD <<
Click to expand...
Click to collapse
Finally some new action abt this awesome phone, so 1st of all let me say thank you!!!!
Second, I just want to clear something about the deodexed version of this rom. You said might be unstable due....
Unstable ight come from the fact that you have used those scripts to deodex it? Or due the fact that some apps might not work on deodexed roms? im a bit confused abt that afirmation.
Anyway Im downloading both versions for testing and I will try to use them for couple of days before posting up again for info.
chasemyass said:
Finally some new action abt this awesome phone, so 1st of all let me say thank you!!!!
Second, I just want to clear something about the deodexed version of this rom. You said might be unstable due....
Unstable ight come from the fact that you have used those scripts to deodex it? Or due the fact that some apps might not work on deodexed roms? im a bit confused abt that afirmation.
Anyway Im downloading both versions for testing and I will try to use them for couple of days before posting up again for info.
Click to expand...
Click to collapse
Testing started...
I was on android 4.4.2 as you can see from my BB from screenshot and used FlashFire to flash the odexed version and all my installed apps remained, but (there is always a but isnt it? ) phone was working in slow motion and the google didnt wanted to upgrade play services since i was coming from an older version (didnt received any error) so my next logical reaction was tdo a factory reset from recovery.
After that everythings works awesome so far. I will keep you guys updated if anything needs to get noticed here.
Congratz again and ty for this rom
Sent from my SM-G900FD
chasemyass said:
Finally some new action abt this awesome phone, so 1st of all let me say thank you!!!!
Second, I just want to clear something about the deodexed version of this rom. You said might be unstable due....
Unstable ight come from the fact that you have used those scripts to deodex it? [...]
Click to expand...
Click to collapse
Yes, exactly As I have mentioned already - these tools are under early development. Potentially problems may occur but not necessarily
BTW - I'm on deodexed for 3 days (just for testing) - no problems so far
chasemyass said:
Testing started...
I was on android 4.4.2 as you can see from my BB from screenshot and used FlashFire to flash the odexed version and all my installed apps remained, but (there is always a but isnt it? ) phone was working in slow motion and the google didnt wanted to upgrade play services since i was coming from an older version (didnt received any error) so my next logical reaction was tdo a factory reset from recovery.
After that everythings works awesome so far. I will keep you guys updated if anything needs to get noticed here.
Congratz again and ty for this rom
Sent from my SM-G900FD
Click to expand...
Click to collapse
I highly recommend you to update BL / CP also (note that BL / CP contains also a part of radio firmware -> NON-HLOS.bin / modem.bin).
It is not good combination: Lollipop ROM + KitKat baseband (NON-HLOS+modem)
_alexndr said:
Yes, exactly As I have mentioned already - these tools are under early development. Potentially problems may occur but not necessarily
BTW - I'm on deodexed for 3 days (just for testing) - no problems so far
I highly recommend you to update BL / CP also (note that BL / CP contains also a part of radio firmware -> NON-HLOS.bin / modem.bin).
It is not good combination: Lollipop ROM + KitKat baseband (NON-HLOS+modem)
Click to expand...
Click to collapse
Hmm I will try, but if I will do that, will I loose root? And what will be so problematic regarding kk bb with lp rom cooked over? No need to explain, just pass a link so I can see by myself. Thx
Sent from my SM-G900FD
chasemyass said:
Hmm I will try, but if I will do that, will I loose root? And what will be so problematic regarding kk bb with lp rom cooked over? No need to explain, just pass a link so I can see by myself. Thx
Sent from my SM-G900FD
Click to expand...
Click to collapse
No, you will not lose root
There were a lot of problems reported in G900F in case of using the newest firmware + an older modem/baseband (e.g. lost of wifi passwords every reboot).
I'm not sure if there are same problems in G900FD, but devices are very similar so could be...
_alexndr said:
No, you will not lose root
There were a lot of problems reported in G900F in case of using the newest firmware + an older modem/baseband (e.g. lost of wifi passwords every reboot).
I'm not sure if there are same problems in G900FD, but devices are very similar so could be...
Click to expand...
Click to collapse
I will test and report here then. As I will test a bit more with this setup... Thank you mate!
EDIT: Bug confirmed. Wifi psswd lost after reboot when using KK baseband, duh!
Sent from my SM-G900FD
thanks for this rom
I found one bug on deodex version
when I set alarm and turn it off the alarm icon still appear on statusbar
chasemyass said:
I will test and report here then. As I will test a bit more with this setup... Thank you mate!
EDIT: Bug confirmed. Wifi psswd lost after reboot when using KK baseband, duh!
Click to expand...
Click to collapse
So please update bootloader + modem to the newest version (BOF1 + BOE2) and should be ok
iNTER5LOve said:
thanks for this rom
I found one bug on deodex version
when I set alarm and turn it off the alarm icon still appear on statusbar
Click to expand...
Click to collapse
Strange, no problem here on deodexed. Try to backup your apps & data and then perform wipe data / factory reset from recovery
(note that deodexed version needs about 10 minutes for first boot after performing wipe data)
_alexndr said:
So please update bootloader + modem to the newest version (BOF1 + BOE2) and should be ok
Strange, no problem here on deodexed. Try to backup your apps & data and then perform wipe data / factory reset from recovery
(note that deodexed version needs about 10 minutes for first boot after performing wipe data)
Click to expand...
Click to collapse
my fault
its wanam xposed issue not your rom :good:
Hello!
My phone says in About menu 900FD, but on the download screen: 900MD. Is it normal? I have bought it as 900FD.
Now I'm on a deodexed stock ROM (installed with FlashFire to save KNOX0x0). Do I need clean install the DevBase ROM, or simply dirty flash is enough?
G.
Georgie9117 said:
Hello!
[1] My phone says in About menu G900FD, but on the download mode: G900MD. Is it normal? I have bought it as G900FD.
[2] Now I'm on a deodexed stock ROM (installed with FlashFire to save KNOX0x0). Do I need clean install the DevBase ROM, or simply dirty flash is enough?
Click to expand...
Click to collapse
[1] Don't worry, same here. I was also confused due to this info in DM, but did some test that confirmed it is definitely G900FD. See attachments G900MD doesn't support e.g. LTE800 (band 20) while G900FD support it. No comments are required
[2] Dirty flash SHOULD be enought.. I could guarantee that wipe data will not be necessary only in case of flashing over pure stock installed via PC Odin or FlashFire

[All ROMs] [BuildProp] [DEBLOAT] Android Acceleration Strip - Performance

MOVED TO - https://forum.xda-developers.com/android/software-hacking/roms-android-acceleration-strip-t3848806
What does this do?
This flashable ZIP file attempts to speed up Android OS by implementing tweaks and removing programs that the average Android user may not utilize. It adds build.prop tweaks and removes a lot of applications installed in system/app and system/priv-app. This means that this ZIP file will free up space in your hard drive and increase performance since not as many apps will be running in the background.
This zip file will manipulate/edit...
system/etc/init.d
build.prop
Installed Android applications
Hosts file
Before doing anything, be sure to backup with recovery since things might go wrong.
How to install/update:
1. Download ZIP
2. Boot into recovery mode and make a BACKUP first!
3. Flash my ZIP file
4. After the process, delete/wipe dalvik-cache and cache partitions
5. Done! Now boot into the system and wait for the boot process to take you to lock screen
6. Open Settings > Apps > : (3 dots on the top right corner) > Reset app preferences (If you do not have this step, you can skip)
7. Done! After flashing, I recommend calibrating battery (you do not need to do this every update!)
For updates, just download the updated ZIP and flash it! Easy peasy.
Common Issues:
Boot Loops
Black Screen on Startup
Phone won't boot
Settings do not respond when opened
Certain apps lost functionality
Spam messages saying: "Unfortunately android.app has stopped working"
Any issue that comes up, restore it from backup. Usually, uninstalled system apps are what cause these issues. To prevent these issues, you will need to remove some lines in the updater-script in my ZIP and reflash it.
Compatibility:
This ZIP file should be compatible with all ROMs (even stock), mods, devices and Android versions, but it was specifically tested and built around an S7 Edge using stock.
Tested to be working on LineageOS 16.0 S7 Edge Build 2 17.09.2018
My Device Info:
Samsung S7 Edge - G935W8
Superman ROM v3.0.1 OREO
SuperStock Kernel v3.1.0
Nova Launcher v6.0beta4
Ultimate Performance Mod v13
Bett3r Battery and Performance Mod v1.7
Changelog:
1.5beta2 *UNTESTED*
- Fixed the HOSTS file
. - Remove invalid rows
. - Added 13,000 new lines (now containing over 61,000 lines!)
. - Removed useless lines
. - Sorted alphabetically
. - Removed empty lines
1.5beta *UNTESTED*
- Added a LOT more Init.d tweaks (increases performance by managing cpu and ram better and many more)
- Added a LOT more BuildProp tweaks (increase performance)
- Added a hosts file (contains over 48,000 lines!) that blocks malware and ads, thus increasing speed
1.4.1
- Tested and fixed some issues. Includes all changes below.
- Ignore the error, "failed to mount /cache". It will function regardless
1.4beta3 *UNTESTED*
- This version has not yet been tested so it might not work and will probably give an error 7 in TWRP (if it does not give an error, please let me know)
- Included v1.3.3 changes
1.4beta2 *UNTESTED*
- This version has not yet been tested so it might not work and will probably give an error 7 in TWRP (if it does not give an error, please let me know)
- Added buildprop tweaks
- Does not include v1.3.3 changes
1.4beta *UNTESTED*
- This version has not yet been tested so it might not work and will probably give an error 7 in TWRP (if it does not give an error, please let me know)
- Added init.d tweaks
- Does not include v1.3.3 changes
1.3.3
- Added ADAPT SOUND and PRINTERS to debloat list
1.3.2
- Added a build prop tweak to utilize hyperthreading
1.3.1
- Added more apps to debloat list. Expect more apps to be added in the future
1.3
- Added more to debloat list
- Added buildprop tweaks
- This should fix error 7 in TWRP
- COMING SOON: Init.d tweaks
1.2.1
- I'll add build.prop and init.d tweaks when I can
- More apps to added to debloat. BACKUP
- After flashing be sure to wipe cache and dalvik
1.2 - DO NOT DOWNLOAD. ERROR IN UPDATER-SCRIPT. FIXING IN v1.3
- Added init.d tweaks
- Added BuildProp tweaks
- Added more to debloat list
1.1
-Added more to debloat list, be sure to backup just in case anything goes wrong!
1.0
- Init
Permissions:
- Feel free to take anything from the zip file, however, you must credit me as creator.
- If you are reuploading this on another website, add a link to this xda thread.
I do unzip, delete some script i use, zip again, try flash then error in flashing.
Try to flash the original but no change anything.
Can u explain more detail please? Sorry bad english i'm from indonesia.
Love flasing said:
I do unzip, delete some script i use, zip again, try flash then error in flashing.
Try to flash the original but no change anything.
Can u explain more detail please? Sorry bad english i'm from indonesia.
Click to expand...
Click to collapse
version 1.3 is working and I haven't tested 1.4beta. Try flashing 1.3.2
If you removed some stuff it is likely you accidentally removed important pieces of code check the lines to make sure that you did not remove the ; symbol
Thanks sir dev! My 1gb ram exmobile now blazing fast!
Samir96 said:
Thanks sir dev! My 1gb ram exmobile now blazing fast!
Click to expand...
Click to collapse
https://forum.xda-developers.com/an...tion-strip-t3848806/post77762441#post77762441
If you want more speed, this is the more updated version FYI ^^^

Categories

Resources