[GUIDE][Z/ZR/ZL] Deodexing 10.6.1.A.0.454 (odex.sqsh)

IgorEisberg

Senior Member
Jul 6, 2009
1,733
3,754
153
www.audiobudget.com
So, as many of you have probably seen, Sony is using a new file that stores all odex files, called "odex.sqsh".
The files in the "arm" folders of the apps are actually just symbolic links to the odex files that are in the mounted folder "odex" in system's root.
So, we must replace those symlinks with their target files. But how to extract those odex files from "odex.sqsh"?
Here's how:

SquashFS (extension "sqsh") is a compressed read-only file system for Linux, which supports file/folder permissions and is SELinux-compatible.
To extract it, you need a special tool, called SquashFS Tools.

WINDOWS:
1) Download SquashFS Tools 4.3
2) Extract the ZIP to any folder; browse to the extracted "squashfs_tools" folder.
3) Move "odex.sqsh" to the "squashfs_tools" folder.
4) Inside that folder, SHIFT + Right-click. Select the "Open command window here" option from the menu.
5) In the Command Line, write:
Code:
unsquashfs -no-xattrs odex.sqsh
6) All the odex files will be inside the "squashfs-root" folder; just move them to the "system" folder and replace the existing files.
7) Use a batch deodexer to quickly deodex the ROM, like JoelDroid Lollipop Batch Deodexer.
Done!

LINUX:
1) Move "odex.sqsh" to Home folder.
2) Open Terminal.
3) Write.
Code:
sudo apt-get install squashfs-tools
unsquashfs -no-xattrs ~/odex.sqsh
4) All the odex files will be inside the "squashfs-root" folder; just move them to the "system" folder and replace the existing files.
5) Use a batch deodexer to quickly deodex the ROM (personally I don't know about available Linux tools).
Done!

NOTE: Some apps might fail deodexing (about 2 apps) but that's a problem with oat2dex implementation.
 
Last edited:

IgorEisberg

Senior Member
Jul 6, 2009
1,733
3,754
153
www.audiobudget.com
I tried to deodex n got application not found and error. I didn't understand to use,how to use it ? I located apk and odex folder in C ? :confused:

Sent from my C6903 using XDA Free mobile app
It's basic and straightforward, I don't see what's the problem.
Just remember to move the apps from /vendor/app to /app
And move the contents of /framework/SemcGenericUxpRes to /framework
After deodexing, move SemcGenericUxpRes.apk back to /framework/SemcGenericUxpRes
 

dstrikersZ1

Senior Member
Oct 31, 2014
1,202
2,800
0
Jakarta
It's basic and straightforward, I don't see what's the problem.
Just remember to move the apps from /vendor/app to /app
And move the contents of /framework/SemcGenericUxpRes to /framework
After deodexing, move SemcGenericUxpRes.apk back to /framework/SemcGenericUxpRes
I used beta and error and what is version stable ?

Sent from my C6903 using XDA Free mobile app
 

dstrikersZ1

Senior Member
Oct 31, 2014
1,202
2,800
0
Jakarta
I'm not getting what you're saying. It doesn't matter which drive you use. Just make sure the folder you select inside the deodexer doesn't have a space in its path.
Example:
WRONG: "C:\My Firmware"
RIGHT: "C:\MyFirmware"
I made my own folder included app, prov-app and framework only. Is it good ?

Sent from my C6903 using XDA Free mobile app
 

munjeni

Senior Member
Jun 2, 2011
9,054
21,783
263
I spent 2 weeks in deodexing and testing, tried 3 diferent things including builtin rom dex2oat tool (reverting to boot.oat) and oat2dex (deodexing)... booth tools is not working corectly since smali and backsmalli not support LP 5.0 or 5.1 in full, there is missing something, it definitelly fail to deodex bootclasspath propertly, if you compare boot.oat from deodexed rom inside /data/dalvik-cache/arm you will notice that it missing 1MB of the things in comparation with stock boot.oat in /data/dalvik-cache/arm, diferencie is 1MB :eek: and thats realy not aceptable diferencie! Tool aka oat2dex not producing any error during deodexing, but if you deodex your framework than your playstore, opengl and many more things will not work propertly! About isues in deodexing LP you can read here https://github.com/JesusFreke/smali/issues/269 ! You will be disapointed at end, see last comment from here https://github.com/JesusFreke/smali/issues/287 , I can confirm its not working! So guys, you wasting your time definitelly.
 
Last edited:
  • Like
Reactions: Alvian_P

IgorEisberg

Senior Member
Jul 6, 2009
1,733
3,754
153
www.audiobudget.com
I spent 2 weeks in deodexing and testing, tried 3 diferent things including builtin rom dex2oat tool (reverting to boot.oat) and oat2dex (deodexing)... booth tools is not working corectly since smali and backsmalli not support LP 5.0 or 5.1 in full, there is missing something, it definitelly fail to deodex bootclasspath propertly, if you compare boot.oat from deodexed rom inside /data/dalvik-cache/arm you will notice that it missing 1MB of the things in comparation with stock boot.oat in /data/dalvik-cache/arm, diferencie is 1MB :eek: and thats realy not aceptable diferencie! Tool aka oat2dex not producing any error during deodexing, but if you deodex your framework than your playstore, opengl and many more things will not work propertly! About isues in deodexing LP you can read here https://github.com/JesusFreke/smali/issues/269 ! You will be disapointed at end, see last comment from here https://github.com/JesusFreke/smali/issues/287 , I can confirm its not working! So guys, you wasting your time definitelly.
Buddy, I'm using a deodexed stock-based ROM I made myself on my Xperia Z1, and I have absolutely no crashes. I don't know what you're talking about. And I don't use oat2dex, I just use JoelDroid's tool and be done with it.
Nothing works for Xperia C3 and Xperia T2 Ultra though.
 

munjeni

Senior Member
Jun 2, 2011
9,054
21,783
263
Buddy, I'm using a deodexed stock-based ROM I made myself on my Xperia Z1, and I have absolutely no crashes. I don't know what you're talking about. And I don't use oat2dex, I just use JoelDroid's tool and be done with it.
Nothing works for Xperia C3 and Xperia T2 Ultra though.
Yes but your rom is not fully deodexed - mean frameworks is not deodexed. I have no crashes too, but after deodexing frameworks than playstore is not working corectly, for example google earth can not be installed, opengl isues... stil no crashes after deodexing in full! For info, JoelDroid's tool use oat2dex tool!
 
Last edited:

IgorEisberg

Senior Member
Jul 6, 2009
1,733
3,754
153
www.audiobudget.com
Yes but your rom is not fully deodexed - mean frameworks is not deodexed. I have no crashes too, but after deodexing frameworks than playstore is not working corectly, for example google earth can not be installed, opengl isues... stil no crashes after deodexing in full! For info, JoelDroid's tool use oat2dex tool!
Yeah everything is deodexed, and the playstore - I actually replaced the stock play store with a newer one, and I can't install many apps on the Play Store but that's because, for some reason, Play Store shows "No carrier Sony C6902". That "No carrier" part is very important for specific apps. Don't know what to do about that right now, but most of my apps are installed from APKs anyway.
 

munjeni

Senior Member
Jun 2, 2011
9,054
21,783
263
Yeah everything is deodexed, and the playstore - I actually replaced the stock play store with a newer one, and I can't install many apps on the Play Store but that's because, for some reason, Play Store shows "No carrier Sony C6902". That "No carrier" part is very important for specific apps. Don't know what to do about that right now, but most of my apps are installed from APKs anyway.
Try google earth! ;) If no google earth on playstore or "can't install google earth from apk" than sure deodex isue on frameworks, trust me! I am playing for 2 weeks in order to indentify isue, found nothing, but thinking the same like last comment from this -> https://github.com/JesusFreke/smali/issues/287
 
Last edited: