yashsingh1/xdaforums huggingface dataset:
[Sony Cross-Device General] munjeni:
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!
[Sony Cross-Device General] IgorEisberg:
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.
[Sony Cross-Device General] munjeni:
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
[Sony Cross-Device General] STRYDER~007:
[MENTION=1879618]laguCool[/MENTION] is it possible for you or anyone here who has deodexed, to upload your deodexed system dump of Xperia Z? I would like to port some updated system apps to other Xperia devices.. :)
[Sony Cross-Device General] kodein:
how to create flashable zip?
[Sony Cross-Device General] Pandemic:
Use google to search the guide howto !

I dont know exactly the link ;)

Your question have totally nothing todo with this thread !!!
[Sony Cross-Device General] xkeita:
I unsquashed odex files in Xperia ZL and Tablet Z but when I try to replace files (inside Android) i'm getting an error which won't let me replace the files and doing it via file manager in recovery (twrp) gives the same result. Should I assume that I need to create a package to flash the uncompressed odex files?
[Sony Cross-Device General] IgorEisberg:
1) It's intended for experienced users.

2) It's intended for creating custom ROMs or porting apps.

Yep, the Play Store is pretty much broken. A whole bunch of apps are "not supported" and it installs Facebook 5 instead of 31 or 32 or whatever. Can't even send an app download request from my PC to the phone and Android Device Manager can't get the device location... Installing from APK works though...
[Sony Cross-Device General] munjeni:
Yes, do you have idea what might be a problem with this? Is this playstore bug or it is deodex bug? For example, when I deodex only apks (all) but NOT deodex frameworks, everything is working (including playstore)! I tried to indentify problem but nothing in logcat related to the problem :(
[Sony Cross-Device General] IgorEisberg:
Hmm I deleted only the "/framework" folder and flashed back the stock odex "/framework" folder, set permissions and SELinux labels, then cleared cache and dalvik-cache.

Everything booted normally (the apps were re-optimized) but the Play Store still says "This app is incompatible with your device." for a bunch of basic apps that worked before Lollipop, like Facebook Messanger.

So when you say "when I deodex only apks (all) but NOT deodex frameworks, everything is working", how? Nothing changed for me...
[Sony Cross-Device General] IgorEisberg:
I restored everything to stock odex except I left the deodexed "services.jar". Play Store is still dead.

Now I made a flashable zip with only the stock services.jar+services.odex, flash it, and voila, Play Store resurrected.

This is bad, because services.jar HAS to be deodexed in order to remove signature checking for custom apps.
[Sony Cross-Device General] munjeni:
Strange but during my testing framework by framework I ended into end and nothing worked by deleting only dalvik-cache and cache but after "wipe data factory reset" everything started working, strange since I cleared dalvik and cache between every jar replace! :(, I lost 3 hours with stupid crazypop
[Sony Cross-Device General] IgorEisberg:
I'm glad to announce that I've fixed the problem. We can all deodex our frameworks now as long as we want and keep the Play Store working perfectly and OpenGL gives no more problems. No, it's not a Lollipop bug. Yes, it's a bug with oat2dex. No data is missing, it's just misplaced. I'll write a post about this issue and hopefully it gets fixed in oat2dex also. One of the most stupid bugs I've ever seen.

EDIT:

http://xdaforums.com/crossdevice-dev/sony/bug-report-oat2dex-breaks-opengl-play-t3120144/
[Sony Cross-Device General] serajr:
IaguCool... first of all, amazing tool, thank you!!!

It is possible to get services.jar properly deodexed with working Play Store, proofs you can see here. Provided services.jar inside both fw zips are patched with "no signature verification" and have proper "GL_ES_VERSION" set (the Play Store issue)!!

The culprit is the baksmali, It is messing up things inside some smali files (known issue even for JesusFreke, here - see #8 and #19)!!
[Sony Cross-Device General] IgorEisberg:
I already found a workaround. The key is: Double-D (Deodex twice) ;)

http://xdaforums.com/crossdevice-dev/sony/bug-report-oat2dex-breaks-opengl-play-t3120144
[Sony Cross-Device General] serajr:
Exactly... ;)
[Sony Cross-Device General] munjeni:
Dude, you are genius! :good:
[Sony Cross-Device General] IgorEisberg:
Glad to be helpful ;)
[Sony Cross-Device General] xkeita:
Finally deodexed my phone, if you use JoelDroid's tool remember to place SemcGenericUxpRes folder into either app or priv-app so it gets deodexed and after that place it back into framework folder :P, also don't erase boot.oat/boot.arm, from arm folder in framework, it will make some trouble. many thanks :D only xperiatabletz to go!
[Sony Cross-Device General] IgorEisberg:
Why would it make trouble? They are re-created to dalvik-cache anyway so what's the use?

Actually, boot.oat actually may conflict with the deodexed JARs.
[Sony Cross-Device General] xkeita:
Don't know bro, when flashing (cleaning dalvik-cache) I erased arm folder from framework/ and it bootlooped, then I manually created the folder putting both boot.* files and it booted nice and smooth. :eek: I have no tried to boot cleaning dalvik-cache and testing with only either boot.arm or boot.oat in folder.
[Sony Cross-Device General] IgorEisberg:
So basically you did something wrong, because after deodexing, there should be absolutely no odex/oat/art file on your device left. Those files are recreated to dalvik-cache by Android when you see "Optimizing app X of Y".

Also people who say that deodexing slows down Android are wrong, they have no clue how it works. The only thing that deodexing causes is extending the first-boot time (and the booting time when you clear dalvik-cache) because it requires Android to create the odex files instead of just copying them from system to dalvik-cache (hence you see the "optimizing app" message only with deodexed apps. Other than that, there is no performance impact. Clearing dalvik-cache is rarely needed anyway, and when it's really required, Android does that automatically (like when you flash a new framework.jar)
[Sony Cross-Device General] xkeita:
Will try deleting, I manually did changes instead of creating a zip so everything is erased and replaced, just when booting I encountered that bootloop that was fixed by re-adding those previously mentioned files to /system/framework/arm/ folder... Bro btw, a question, I'm on Xperia ZL and when booting android instead of generating .odex files on dalvik-cache it generates .dex files I have been searching for dex2oat tool in filesystem and can't seem to find it... Would that cause the problem with the optimized files? Aside from that everything else is working fine so far.
[Sony Cross-Device General] IgorEisberg:
Dalvik-cache can't contain dex files. The fact that you see ".dex" doesn't mean it's a dex file. Dex files need to be compiled to ELF (it's Linux's equivalent to Windows's EXE/DLL executables/libraries). If you look at the signature of a true dex file (like "classes.dex" of any APK) with a Hex editor you'll see "dex". In those "dex" files you see in dalvik-cache the signature is ELF. Those are odex files. Compiled Linux executables. An "odex" ROM is basically a pre-compiled/pre-optimized ROM.
[Sony Cross-Device General] xkeita:
Oh you're right! Thanks for pointing that out and guiding me, I was trying to fix the OpenGL problem. In kitkat and previous it was more like copy folders and let the program do everything and everything will work... Thanks for the help and guidance :victory: Happy modding :o
[Sony Cross-Device General] IgorEisberg:
You too mate!
[Sony Cross-Device General] Alex_rac:
flash a deodexed stock rom on xperia tablet z

[MENTION=1879618]IaguCool[/MENTION]

Hi

I want deodex the system of my xperia tablet z

I've followed these steps :

1) copied the system folder to my pc

2) unsquashed the odex.sqsh file with your tool

3) overwrite the *.odex files in system folder

4) deodexed the apps/framework files using "JoelDroid Lollipop Batch Deodexer V 2.5"

5) deleted the app,priv-app and framework folders in my phone and flashed the deodexed ones ( I' ve even deleted the odex.sqsh)

after doing so i get bootloop :eek:

I've tryed many times with the same result

can you help me find whats wrong?
[Sony Cross-Device General] IgorEisberg:
I don't have a Tablet Z to test on.
[Sony Cross-Device General] Alex_rac:
the system is almost the same as the xperia z
[Sony Cross-Device General] IgorEisberg:
I also don't have a Z to test on.

Deodexing is one thing. Seeing if it actually works on the device is another.
[Sony Cross-Device General] Alex_rac:
undestood...

anyone managed to do it?
[Sony Cross-Device General] sourabhp:
How to push the deodexed files into the system ?? its not going to be just a simple copy paste using file manager

Also SemcGenericUxpRes and chromecustomizations files are not deodexed using LBD 2.5 tool
[Sony Cross-Device General] anagramgenius:
Make a flashable zip.

Move those apk files in app or priv-app folders and deodex them. Then copy them to their original folders.
[Sony Cross-Device General] sourabhp:
I have already deodexed the files using LBD 2.5 but i dont know how to create flashable zip for LP. I have zip for KK but it wont work.

cant just copy paste as it will be end up in bootloop. read above someone has already done it and caused bootloops
[Sony Cross-Device General] anagramgenius:
Copy pasting is a bad idea. If you have recovery installed, take a backup and try experimenting or just search it the forum about creating flashable zip.
[Sony Cross-Device General] sourabhp:
there are some tools to create flashable zips but people have reported bootloops and symlinking issues. so i guess its not full featured.

Also I am a noob so no know-how on java linux etc

I want to push deodexed files into system
[Sony Cross-Device General] PrithviChibber:
I have got the "squashfs-root" folder, now I paste this in system folder of the phone?

And for 7) Use a batch deodexer to quickly deodex the ROM, like JoelDroid Lollipop Batch Deodexer.

How do I select the phone system path for this?
[Sony Cross-Device General] taammanhoi:
Z 5.1.1 Firmware now release！

I unpack "system.sin" , see two sqsh files - "odex.app.sqsh" and "odex.priv-app.sqsh".

Use this tool to extract odex files, but not work！
[Sony Cross-Device General] IgorEisberg:
Sad to hear that, but I just unpacked and deodexed Z 5.1.1 a hour ago and everything went smoothly.
[Sony Cross-Device General] taammanhoi:
I re-download the tool, work now！

Thank for your tool:good:
[Sony Cross-Device General] sontran_vietnam:
I really want to deodex my Z on 5.1.1 now. What should i do ? Please someone show me and help me.
[Sony Cross-Device General] IgorEisberg:
You have instructions on the main post, what else do you want?
[Sony Cross-Device General] sontran_vietnam:
i mean if someone already do this mod, can you upload it in here ^^
[Sony Cross-Device General] xkeita:
[MENTION=1879618]IaguCool[/MENTION] does the oat2dex bug affects android 5.1.1? I tried to deodex .222 with the latest version of oat2dex which supposedly fixed this bug on an Xperia ZL but got bootloop after replacing files.
[Sony Cross-Device General] IgorEisberg:
There's no 5.1.1 for my Z1 yet.
[Sony Cross-Device General] xkeita:
[MENTION=1879618]IaguCool[/MENTION]

Trying to deodex this (Android 5.1.1 on Xperia ZL) there is something bothering me,

First: there are two odex.sqsh files (app and priv-app) so, there's no folder with odex files for framework when decompressing both.

Second: The odex files in system app and priv-app folders are exactly the same weight as the ones in odex.sqsh files... So basically there's no symlink between them, just a copy of the same files... Wasn't sqsh supposed to be used to make the rom more light? :confused:

Edit: After testing and manually replacing files I found that the framework folder is giving problems which is leading to bootloop (even after replacing the whole folder), other deodexed folders (app and priv-app) are working without a single problem. Still can't fix it though.

Edit 2: Getting FC when answering a call, must be due to partially deodexed framework though
[Sony Cross-Device General] xkeita:
So any idea on how to properly deodex 5.1(.1)?
[Sony Cross-Device General] Wolfbreak:
Is there a faster Method to Deodex? I am trying to Deodex MM Beta from Xperia Z3 and unsquash works fine. The Problem is i need to create arm Folder, delete oat Folder and place the right odex in arm Folder for about 500 Folders and all manually. Cant we do this faster with a batch File or something. How you guys doing it? If i do all manually i need hours.
[Sony Cross-Device General] Marília de Oliveira:
Also I am trying more ta a little tricky :rolleyes:
[Sony Cross-Device General] Wolfbreak:
I already found the solution. Lordroid Deodex Tool or Script posted in Cross Section which moves odex automatically and then you can use Sva Tool for MM also to deodex.
[Sony Cross-Device General] PDesire:
Thanks for this Tutorial OP

Will be very needed in future of Development :)

I totally hate SquashFS (On RemixOS, on Android X86 and on Sony ROM, all the same ****)

Your PDesire
[Sony Cross-Device General] Ticklefish:
Can anybody share their odex.sqsh file please? I haven't got them on my phone and there's a few things I need to check out for a deodexing tool of mine.

(Apologies for the excess spaces in this post, IE is having major problems with this forum at the moment.)
[Sony Cross-Device General] Marília de Oliveira:
You can share the link please?
[Sony Cross-Device General] Marília de Oliveira:
Hello, I try to make the process with odex.app and gave this error which can be? I did with priv app and framework and everything worked. :)
[Sony Cross-Device General] Marília de Oliveira:
Made here in the marshmallow, more if give wipe dalvik cache give bootloping, what should I do?
[Sony Cross-Device General] Ticklefish:
I'm a bit puzzled by all this.

I've just flashed a stock MM rom for my Z3c and I'm planning to deodex SystemUI.apk.

There's a "SystemUI.odex" in "system/priv-app/SystemUI/oat/arm/", which I can turn into smali without any trouble.

There's also one in "system/odex.priv-app/arm", which I haven't tried turning into smali but it is the same size so I suspect I probably could.

And, according to this thread, I have another in "odex.priv-app.sqsh".

Does anybody know why there are three, or what the difference is between them?

Or which ones I can safely delete to be able to push my deodexed SystemUI.apk without it FC'ing? :confused:

This was all so much simpler in Gingerbread..lol
[Sony Cross-Device General] Marília de Oliveira:
Are you saying that there are three equal applications? I'm with z3c also ffiz the guide usually including my ui only ui deodex :good:
[Sony Cross-Device General] Ticklefish:
There's only APK...but there seems to be three ODEX files...

Normally, I'd just delete the SystemUI/oat/arm/SystemUI.odex file and flash my deodexed APK. But I'm not sure what that odex.priv-app.sqsh folder is for.. Or the SQSH file.

I'm really hoping I don't need to deodex the whole priv-app folder when I only want SystemUI.odex deodexed..
[Sony Cross-Device General] Marília de Oliveira:
Inside the extensions are the sqsh arm and inside the arm the odex for each application you do the deodex in mm you need to unpack the sqsh and put the odex in corresponding folders i.e.

System/ota/arm/odex

but this odex needs to be removed from inside the sqsh if not you will suffer with CF or even loop :D
[Sony Cross-Device General] PiSpecialist:
What is the difference between extracted odex from sqsh and the odex inside system/priv-app/..../oat/arm? And why we should deodex with sqsh files?
[Sony Cross-Device General] PiSpecialist:
Did you fixed it? Extracted all . Odex from odex.system.sqsh, placed them in the corresponding directory and deadexed but always give me a bootloping. Any idea. thanks
[Sony Cross-Device General] ticktock666:
just saw this thread, I'm on MM for the 6502 Z2 and I've noticed the same thing (3 copies of odex files), so I usually use the ones inside the apk folder, deodex the rom, flash and delete the other ones and everything seems to work normally.

what's been driving me nuts is that if I go into /data/app , I'll find folders for every app that I installed, with odex files included, is this normal ?
[Greenify] chrcol:
Greenify suddenly started going crazy on my phone.

To give you an idea how bad it is.

The screen was red hot to touch.

Battery had dropped to 72% whilst plugged into usb in the space of 5 minutes.

Greenify process showing constant 70+% usage.

Here is what is happening now, if I reboot the phone, things seem normal, cpu usage is ok.

If I then load the greenify app, cpu usage goes crazy, if I close the app using the back button, the cpu usage does NOT recover, stays crazy.

I tried disabling auto hibernation which has no effect.

If I force close the app via long press back (wanam xposed) cpu usage recovers, but will go crazy again the moment I relaunch the gui.

I have s5 901f, touchwiz 4.4, xposed installed and using module, all experimental features enabled.

The last actions I did before this issue occured was to greenify instagram, and also force hibernate airdroid, since then this behaviour has persisted. I tried degreenifying both instagram and airdroid to no effect.

I suspect some data greenify uses is corrupt so I will try to full wipe the app and restore it either from a backup or configuring it from scratch.
[Greenify] chrcol:
Confirmed is ok after wiping and restoring backup.
[Greenify] oasisfeng:
Sorry to hear that. If that happens again, could you please capture a logcat for me to further analyze this issue.
[YU Yureka Q&A, Help & Troubleshooting] sal_rc:
Im on blisspop ROM(5.1)

The issue I'm facing is pictures taken with flash are kinda dark i.e., flash timing is incorrect

Is there any fix for it, I've tried other camera apps too but no luck.
[YU Yureka Q&A, Help & Troubleshooting] aathesh:
camera prob on bliss 3.2

I am using bliss 3.1 . camera quality has gone extremely poor. Images taken with flash is very dark... Anyone pls help.
[YU Yureka Q&A, Help & Troubleshooting] rishabhaj1:
Use this apk (stock camera app) of YU yureka.

Link-https://docs.google.com/file/d/0B1r0RX-XRreBbVlPZV9NSFhUWkk/edit?usp=docslist_api
[Android Q&A, Help & Troubleshooting] osm0sis:
All TK GApps (formerly Official PA GApps) discussion will take place here to keep the main thread operational as a release thread for TKruzze and remove the needless clutter.

Regardless, please read the FAQ in the main thread before posting here since your answer is most likely already there.

Subscribe here if you have questions or would like to help those who have questions, or, you may simply subscribe to the main thread if you would only like notifications when TKruzze bumps the thread with a release post and want to avoid the stream of discussion here.

Thanks! Have fun, and help each other!

- osm0sis & TKruzze

Example .gapps-config Files Submitted by Users:

michelsberg

osm0sis

Or you may try to generate a config using the excellent AROMA-based "Universal PA GApps Customizer" interface created by [MENTION=4964524]raulx222[/MENTION].

There is an excellent help team in here but feel free to @ mention me if something needs to be brought to my attention.
[Android Q&A, Help & Troubleshooting] Sandivisi:
Something new will begin :D
[Android Q&A, Help & Troubleshooting] osm0sis:
[MENTION=4964524]raulx222[/MENTION] That's amazing, I was going to look into finishing [MENTION=4129069]hlxanthus[/MENTION]' similar work but there's no sense reinventing the wheel! How hard would it be to get this working with the "TK" official continuation of the PA GApps? :D
[Android Q&A, Help & Troubleshooting] raulx222:
Well if the update-binary is the same as original, the port can be done in 5 minutes.

Look here http://xdaforums.com/android/general/gapps-lp-gapps-pa-gapps-aroma-installer-t3010798 Scroll down to LP-GAPPS with PA GAPPS as base (last update: March, 20 2015)[discontinued]. The aroma-config from this package can be ported to any other TK based GApps very easily.

As I need to use other GApps as base to my package, I will use this GApps.

I'm working to improve my older PA GAPPS package(better look, more features) and use it with PA GApps. I can't give you an ETA of when I finish the package.
[Android Q&A, Help & Troubleshooting] osm0sis:
Thanks, if you're otherwise occupied then I'll take a look and see if I can adapt it down to just a frontend, since this is the new official package directly from TKruzze. :good:

My plan would be to link to your zip frontend in the OP here for those that prefer the visual method, and provide some links to example .gapps-config files that users post here as well, to make it easier for those who might prefer to do it by hand. :)
[Android Q&A, Help & Troubleshooting] raulx222:
The new TK GApps will be only for 5.1 ? And do you want to make a package with AROMA Installer?
[Android Q&A, Help & Troubleshooting] osm0sis:
TKruzze is starting out by supporting only 5.1.x since 4.4.x was already long deprecated and most devices are moving to 5.1.x and likely won't be left behind on 5.0.x due to the memory leak bug. :)

The idea/goal I was hoping for was not to have an AROMA GApps package per se, but an AROMA frontend to create the .gapps-config file and then run whatever TK GApps package the user had downloaded in the same directory itself. Best of both worlds. :cowboy:
[Android Q&A, Help & Troubleshooting] raulx222:
Great idea! If you don't mind, I will do it. The older PA GAPPS with AROMA was containing the whole GApps package just to have "all in one package", but you idea is better :)
[Android Q&A, Help & Troubleshooting] -m3tac0rt3x-:
Damn it, I definitely need more thanks per day!! (Will go to the phone in a gipsy) but before that... THANK YOU!

Subscribed to Q&A and also the main thread!

Welcome back [MENTION=2777334]TKruzze[/MENTION] and thank you [MENTION=4544860]osm0sis[/MENTION]!

Was really missing an all included (Stock) GApps so I can fill my system partition up!
[Android Q&A, Help & Troubleshooting] osm0sis:
Fantastic news! I look forward to it! Thanks in advance sir for the excellent work! :D

Great job! All the comments should be very helpful to new users trying to figure out the process, so thanks for taking the time! :)

I'll throw my settings in the forming pile now too; this is me trying to cram as much of the Stock package as possible into the system partition of my aging Galaxy Nexus, running AOSP Lollipop:

.gapps-config:

NoDebug
SmallBuffer

Books
Browser
Chrome
Docs
Drive
Ears
Earth
Gallery
GooglePlus
Launcher
Messenger
MMS
Movies
Music
NewsWidget
PicoTTS
PlayGames
Sheets
Slides
Studio
Talkback
Wallet
YouTube

It also reveals a secret, undocumented option for advance users that reduces the extra free space buffer calculation value from 10mb down to 2mb. To be used only if you've done the math and know you will have enough space for your other zips and system partition mods (basically GApps should be the last thing you flash)! Enjoy! ;)