[Q] Deodexing problem - Sony Cross-Device General

Hello, I'm an owner of XPERIA Z1, using the latest Customized Lollipop firmware (.242), struggling very much to deodex his device. I've tried 2 different methods, which both lead to problems:
1.) Using a flashable zip provided by venkat kamesh, in this thread: link. After flashing, I don't face any prominent problems, like FCs on system apps e.t.c. But whenever I'm trying to launch any app requiring OpenGL ES 2 , I get an error message/toast notification, about that, saying that my device is incompatible. And Google Play refuses to even show these apps in the search results, listing them as incompatible.
2.) Modifying the flashable zip to use my own /app, /priv-app, /framework, and even /vendor/apps fully deodexed folders, leading to a bootloop, and refusing to show more than 2 seconds of the bootanimation before rebooting. I thought that some package may be incompatible with my firmware, but this theory can't be proved yet.
*I've tried fixing permisions using both terminaland adb using this method: link. No result either.
Is there any other solution? Thank you!

NFS_FM said:
Hello, I'm an owner of XPERIA Z1, using the latest Customized Lollipop firmware (.242), struggling very much to deodex his device. I've tried 2 different methods, which both lead to problems:
1.) Using a flashable zip provided by venkat kamesh, in this thread: link. After flashing, I don't face any prominent problems, like FCs on system apps e.t.c. But whenever I'm trying to launch any app requiring OpenGL ES 2 , I get an error message/toast notification, about that, saying that my device is incompatible. And Google Play refuses to even show these apps in the search results, listing them as incompatible.
2.) Modifying the flashable zip to use my own /app, /priv-app, /framework, and even /vendor/apps fully deodexed folders, leading to a bootloop, and refusing to show more than 2 seconds of the bootanimation before rebooting. I thought that some package may be incompatible with my firmware, but this theory can't be proved yet.
*I've tried fixing permisions using both terminaland adb using this method: link. No result either.
Is there any other solution? Thank you!
Click to expand...
Click to collapse
Are you deodexing every odexed file? I normally only deodex those files whose smali I'm going to mod. There's not much point deodexing anything else..

Ticklefish said:
Are you deodexing every odexed file? I normally only deodex those files whose smali I'm going to mod. There's not much point deodexing anything else..
Click to expand...
Click to collapse
Well yes, I just suppose that a fully odexed or deodexed system is more stable than a mix of those two.
Is there any red-line that I must not pass? Like a paricular .apk or .jar file, for example. Also on KitKat, we had to have fully deodexed system for some mods to work (like the 4K Mod by Chocolatetrain). This restriction doesn't exist on Lollipop, which utilises ARM?

NFS_FM said:
Well yes, I just suppose that a fully odexed or deodexed system is more stable than a mix of those two.
Is there any red-line that I must not pass? Like a paricular .apk or .jar file, for example. Also on KitKat, we had to have fully deodexed system for some mods to work (like the 4K Mod by Chocolatetrain). This restriction doesn't exist on Lollipop, which utilises ARM?
Click to expand...
Click to collapse
No. You can, in theory, deodex as many or as few APK and JAR files as you like.
The whole point of deodexing is to make it easy to change smali files. It doesn't affect stability or performance, it's solely for modding. I normally deodex SystemUI.apk, framework.jar and android.policy.jar then leave the rest of the odexed files alone.
(Well, technically a deodexed ROM takes longer to boot if the Dalvik cache has been wiped but that's about it.)
The only reason I ask is that, if you only need to deodex a few files, there are various tools available for deodexing individual files instead of whole ROM's. I could mention that Tickle My Android can do it but that'd be a bit cheeky.
Oh, looking at that 4K mod you mentioned, it doesn't actually need the whole ROM to be deodexed. But there are so many files that are being replaced that do need to be deodexed that it's probably just simpler to say the entire ROM needs to be.

Ticklefish said:
No. You can, in theory, deodex as many or as few APK and JAR files as you like.
The only reason I ask is that, if you only need to deodex a few files, there are various tools available for deodexing individual files instead of whole ROM's. I could mention that Tickle My Android can do it but that'd be a bit cheeky.
Click to expand...
Click to collapse
OK, thank you for the answer, I will try then deodexing just the essentials: SystemUI.apk, framework.jar, framework-res.apk and SemcGenericUxpRes.apk
Final question, as I see in your program's thread, Lollipop editing/deodexing is not supported yet, so do you recommend an automate tool for the deodexing process (like JoelDroidLollipopBatchDeodexe or any other), or the manual method?

NFS_FM said:
OK, thank you for the answer, I will try then deodexing just the essentials: SystemUI.apk, framework.jar, framework-res.apk and SemcGenericUxpRes.apk
Final question, as I see in your program's thread, Lollipop editing/deodexing is not supported yet, so do you recommend an automate tool for the deodexing process (like JoelDroidLollipopBatchDeodexe or any other), or the manual method?
Click to expand...
Click to collapse
TMA does support deodexing of Lollipop APK files...I just can't guarantee that it'll be able to deodex everything. Guess I need to reword the OP....lol

NFS_FM said:
OK, thank you for the answer, I will try then deodexing just the essentials: SystemUI.apk, framework.jar, framework-res.apk and SemcGenericUxpRes.apk
Final question, as I see in your program's thread, Lollipop editing/deodexing is not supported yet, so do you recommend an automate tool for the deodexing process (like JoelDroidLollipopBatchDeodexe or any other), or the manual method?
Click to expand...
Click to collapse
you also can use advance apktool (nice tool) , but you will have to update the apktool to the last one i think its the 2.0.0because is not updated.. cheers

juanpirulo said:
you also can use advance apktool (nice tool) , but you will have to update the apktool to the last one i think its the 2.0.0because is not updated.. cheers
Click to expand...
Click to collapse
Hm... I will try that too if my (already) deodexed apks won't work, thank you.

Please ask in the Q&A section for your device.
Cross device section is for development only
Thread closed

Related

[Q] Deodexed Theme Template or equivalent?

Hi all,
Wondering if anyone has made a stock theme template for the Shift? All I see are ROMs but I like to mess around with a clean stock deodexed system for a while before I flash a full ROM. I would make one myself but I'm still learning how the update-script/updater-script works. Is there one, or does everyone just flash ROMs around here? Closest I've found is the theme eraser, but that assumes you're already deodexed (no .odex removal script). Any help would be appreciated, links to guides, tutorials, how CWM works, a stock theme template, anything. And thanks in advance.
http://forum.xda-developers.com/showthread.php?t=948566
there ya go
Thank you, but this is a full ROM not a theme template.
Sent from my PG06100 using Tapatalk
Are you looking for the stock framework then?
Sent from my PG06100 using XDA App
Basically just the /system/app and /system/framework dirs deodexed. no other changes to the system folder. And a script that removes the odex files. Can that be run with just an update-script, or would it need other things?
Sent from my PG06100 using Tapatalk
Just unzip the zip file from the thread foxsdaddy67 linked & you have access to those two deodexed directories.
I guess I'm not being clear enough. I'm aware those files are there, what I don't understand is how cwm works. I'm coming from sdx where every rom, theme and mod had the same structure with only an update script in meta-inf. By testing I did find out that just having an update script works though I'm not sure if a script will run. Guess I'll have to test it.
Bottom line is that there is no flashable theme template zip, only roms, but I think I'll be fixing that shortly.
Sent from my PG06100 using Tapatalk
Tambourineman is developing for the Shift?!? THATS AWESOME!!
No, I'm not. Just an end user.

Deodexed vs odex ROM

I know that deodexed rom can easyly be themed; But is that the only benefit of them? Is there any difference in performance betwen odex and dexodexed Rom?
lascoul said:
I know that deodexed rom can easyly be themed; But is that the only benefit of them?
Click to expand...
Click to collapse
Yes.
Is there any difference in performance betwen odex and dexodexed Rom?
Click to expand...
Click to collapse
Yes. Odexed is faster. I've always had two SGS at my disposal. One with stock odexed ROM and stock kernel, and one which I have modified with all the latest "speed improvements". At one time, though, the deodexed "improved" one was almost as fast as the stock one.
Thank for your reply. I will go back to stock odexed rom with a costum kernel
There are also custom odexed now.. Simplicity, Milky's Mod ...
nice and faster than stock, Simplicity is using TW4, Milky's on modded TW3 if i'm not mistaken
moegrave said:
There are also custom odexed now.. Simplicity, Milky's Mod ...
nice and faster than stock, Simplicity is using TW4, Milky's on modded TW3 if i'm not mistaken
Click to expand...
Click to collapse
You can thank brotuck when you see him.
Sent from my GT-I9000 using XDA Premium App
You can look at my mods/explanations about ODEXED JVR ROM!
http://forum.xda-developers.com/showthread.php?t=1196391
The .odex files are precompiled .dex files which must not be compiled by the dalvik-machine so they are faster. But if you want to modify anything its easier to to it on deodexed files!
But as you can see you can make also mods for ODEXED ROMs so if this MODs are enough for you, you run faster with odexed rom
yup some guys are just to lazy to make odex versions =)
$omator said:
yup some guys are just to lazy to make odex versions =)
Click to expand...
Click to collapse
Or they have got better at it and have moved to the next level. Either way, it's more choice for us.
Sent from my GT-I9000 using XDA Premium App
better on what
$omator said:
yup some guys are just to lazy to make odex versions =)
Click to expand...
Click to collapse
i am now on stock JVR using your Mod. Big thank somator. Is it possible to enable overglow on odex Rom?
idk maybe, will try for next firmware release
$omator said:
idk maybe, will try for next firmware release
Click to expand...
Click to collapse
it will be great!
I saw under SGS2 threads that there is an utility that can ODEX your DeODEXed ROM (you need a rooted terminal of course).
Is something like this that can be done for SGS1 as well?
Or in other words: is there a straight-foward (easy) way of odexing a rom.
I'm thinking that I can take my whole /system folder (or only /system/app and /system/framework) and odex them and create a CWM package to replace the existing deodexed files. The only issue is that I did not studied enough the odexing system. I have no idea what utilities will such action require.
Any help from the experienced users around here?
To convert back from deodexed to odexed is not so easy to do.
Some have done it with scripts, some do it in ADB or use programs to do it.
Android has a basic tool called dexopt-wrapper that can create a odex file from a apk or jar file. You still need the classes.dex to be deleted from the apk or jar file when returning to odex.
My experience with it is that it sometimes converts perfectly, but sometimes it does not. Especially converting themed framework files is very hard to convert back.
never had such problems =)
$omator said:
never had such problems =)
Click to expand...
Click to collapse
Try to make a 100% working overglow mod in odex and i believe you
Hell i will even donate !

[POLL] RE: MAD Industries SYSTEMUI MODS. See [MOD] thread first

This thread picks up where "[MOD] [SYSTEMUI] Enable Wifi Toggle / Reconfigure and theme toggles [ICS Blue!]" leaves off. See post #174
Alright guys so here's the deal. The *proper* way to remove the location icon, battery full notification, and/or clock is through a smali edit. Smali files are contained in dex files and jar files. Our stock rom is an odexed rom meaning that the dex file is specifically optimized for our device; its also signed. So in order to change anything, the steps are:
1) Pull core.jar, ext.jar, framework.jar, android.policy.jar, services.jar, services.odex
2) Disassemble the services.odex file
3) Decompile smali files and compare decompiled source to smali code to find correct values
4) Make edits to smali
5) Recompile smali files
6) Repackage odex file
7) Pull signatures from original odex file
8) Use them to resign new odex file
9) Push back to phones
10) Repeat for each version of the statusbar mod
As you can see this takes a very long time and is rather tedious. Work is pretty significantly reduced by using a deodexed rom.
I would like feedback from people regarding whether beans-only support is suitable or if this project should be elevated to a full rom. I have a feeling that even if I do just these couple of edits there will be more that require deodexing the services.
More detailed POLL options
1) Continue work with Beans support only (immediate)
2) Elevate project to full ROM status and introduce a new rom to the scene (requires time and preferably a team)
3) Just do the battery full mod and the location mod and forget any other status bar icon mods. (including removing battery/clock)
4) Leave the statusbar icons alone until a source-built rom is made available
5) (forgot to include) "Hack" solutions such as removing the png files
Delete
#3
Sent from my Commodore 64..
READY.
load"*", 8,1
1
Edit: Definitely just support deodexed roms. Way too much work for odex and if people are into modding their phone they should be deodexed anyway Imo.
Sent from my SGS3
3
Sent through Mental Telepathy...or my TF201
I say just provide support for Deodexed roms (not specifically only Beans Rom though). No reason to put you through all that time and effort of working on a stock Odexed rom.
Thank you again for your work. It is certainly appreciated by us all!
Hypnosis4U2NV said:
#3
Sent from my Commodore 64..
READY.
load"*", 8,1
Click to expand...
Click to collapse
Off topic but I like that Sig was my first computer
Sent from my SCH-I535 using xda premium
1!!!
Sent from sexy a** Galaxy S III
i vote whatever is easier for you. i am sure i am with the many here who appreciate what you've done and will appreciate what you will do in the future
but i asked in another thread and just saw you mention it but i tried playing around with some xml files and wasn't able to remove clock from status bar so a how to would be greatly appreciated if you or another more qualified individual has the time. if not no worries
i say 1 LOL

How do i Deodex just one apk file?. And can i run a deodexed apk in odexed rom?

Hi all,
I have started porting my Semi-universal battery mods over to the nexus 4 ready for when I get mine. but I was wondering the two following things:
Firstly, to make the battery mods, I need the systemUI,apk to be deodexed, but if I am running a stock Odexed rom, will I still be able to place a deodexed systemUI.apk in the System/app folder and the phone still work?.
And is the a tool which lets me Deodex a single apk file, as all the ones I have found require you to deodex a whole rom.
Thanks in advance to anyone who can help
Cheers
Corey
fishingfon said:
Hi all,
I have started porting my Semi-universal battery mods over to the nexus 4 ready for when I get mine. but I was wondering the two following things:
Firstly, to make the battery mods, I need the systemUI,apk to be deodexed, but if I am running a stock Odexed rom, will I still be able to place a deodexed systemUI.apk in the System/app folder and the phone still work?.
And is the a tool which lets me Deodex a single apk file, as all the ones I have found require you to deodex a whole rom.
Thanks in advance to anyone who can help
Cheers
Corey
Click to expand...
Click to collapse
You DEODEX through JAVA, Smali and backsmali commands in Command Prompt.
I can answer the 2nd question. Not all deodexed apks can run on an odexed rom. Played around with them before and some do, some don't
Sent from my Nexus 7 using Tapatalk 2
I can confirm. Im running an Odexed rom and flashed 3 deodexed apk's today. An accuweather widget, voice mail and a transparent digital clock. All working fine
The OPs question has been misunderstood
The OP's question has been misunderstood. The question was not whether if you can run a deodexed .apk in an odexed ROM. On the contrary, the question was - can you run a odexed apk within a deodexed ROM. I stumbled onto this thread 'cuz I'm in a current situation where I'm asking the same question now.
Although I know the question the OP asks seems as if they're asking if you can place a deodexed apk within a odexed ROM, the overall question is how do you deodex a single apk to begin with?
I'm running a deodexed custom ROM on a Galaxy Note 2, however....virtually all the deodexed ROMs I've installed contain a flaw....the samsungcamera.apk is missing features. However, my default, stock ROM that I restored from my nandroid displays a complete camera full with the features I use regularly. So I was wondering....how do you deodex an apk? In other words, I have currently extracted from the stock ROM the samsungcamera.apk and its accompanying .odex file. Now I would like to join these and create a deodex version of this so I can import it into the custom ROM I'm using.
I believe the question was somewhat answered already on here. I will investigate a little further.
Thanks, guys.
[HOW TO][Windows] Manually Deodex and Odex back
As the thread is a bit "old", I suggest to update the tools in the zip, here you' cuold find the newest.
Hope this helps

NH3 Mods collection{UPDATE 9/29/14}

What's up everybody since the NH3 KitKat update came out I thought Its time to update my mods. Although these are similar this is not part of the code collection. That has been put in the grave. And it wont be resurrected. So here is NH3 mods.
What's inside.
1.4x4 4x5 3x4 Launcher
2.Transparent Accuweather
3.Transparent MultiWindow
4.Call Recording
5.Call/Msg block
6.3Minit Battery Mod Updated
7.Scrolling cache disabled
8.Battery/Usb PopUp disabled
9.3Minit QuickLaunch Panel
10.Flashlight toggle
11.Mobile data toggle
12.Screen on Sms disabled
13.Statusbar brightness adjustment
14.Home wake key disabled
15.SeLinux set to permissive by default.
16.Init.d support
17.App Ops
18.Download Booster
{V2 extra's starts here}
19.Lock/Home button activated in status bar
20.SMS TO MMS disabled on text
21.Potato Status bar Gradient
22.Theme chooser in Launcher
23.Tether unlocked
23.360 app rotation
24.Scolling wallpapers
Required:
Deodexed rom?Or remove odex files manually/Odex support coming soon.
Status bar will be black after first boot.You must set colors in gradient app.For KitKat just status bar slide transparents all the way to clear.
Get Launcher themes here (Six included in mods pack V2)
http://forum.xda-developers.com/showthread.php?t=2711245
Downloads:
http://d-h.st/Ebk
V2..
http://d-h.st/WAy
Add flashlight and mobile data toggle(flash this after mods zip has been booted)
http://d-h.st/JxR
Thanks to @gharrington for creating the 3Minit Awesomeness
3Minit Info/ http://forum.xda-developers.com/show....php?t=2799958
Once again thanks to @The Sickness for lots of reasons.
Thanks to Mariozawa for potato mods.
I'm always adding stuff to my mods pack. If I see people using these I will add whatever else I make as I make them.
Don't forget to give thanks.
Code4U said:
What's up everybody since the NH3 KitKat update came out I thought Its time to update my mods. Although these are similar this is not part of the code collection. That has been put in the grave. And it wont be resurrected. So here is NH3 mods.
What's inside.
1.4x4 4x5 3x4 Launcher
2.Transparent Accuweather
3.Transparent MultiWindow
4.Call Recording
5.Call/Sms block
6.3Minit Battery Mod Updated
7.Scrolling cache disabled
8.Battery/Usb PopUp disabled
9.3Minit QuickLaunch Panel
10.Flashlight toggle
11.Mobile data toggle
12.Screen on Sms disabled
13.Statusbar brightness adjustment
14.Home wake key disabled
15.SeLinux set to permissive by default.
16.Init.d support
17.App Ops
18.Download Booster
Required:
Deodexed Rom. Or manual removal of odex files. I might later add this to the updater.
Downloads:
http://d-h.st/Ebk
Add flashlight and mobile data toggle(flash this after mods zip has been booted)
http://d-h.st/JxR
Thanks to @gharrington for creating the 3Minit Awesomeness
3Minit Info/ http://forum.xda-developers.com/show....php?t=2799958
Once again thanks to @The Sickness for lots of reasons.
I'm always adding stuff to my mods pack. If I see people using these I will add whatever else I make as I make them.
Click to expand...
Click to collapse
Nice work bro.......
Added some cool new stuff.
Sorry, I am on stock ATT NH3, rooted do I go about installing these? Is it possible?
If not, is there a deodexed rom you suggest I can install and used with these mods?
Thank you!
sunnycheng said:
If not, is there a deodexed rom you suggest I can install and used with these mods?
Click to expand...
Click to collapse
How to deodex your stock rom. Really easy as long as you follow the guide.
Awesome work ....
Enviado desde mi SM-G900A mediante Tapatalk
thisisapoorusernamechoice said:
How to deodex your stock rom. Really easy as long as you follow the guide.
Click to expand...
Click to collapse
Thanks! I will try and see if I can install CWM first on my I537
sunnycheng said:
Thanks! I will try and see if I can install CWM first on my I537
Click to expand...
Click to collapse
You have a locked bootloader, it is not possible to install a custom recovery.
Devo7v said:
You have a locked bootloader, it is not possible to install a custom recovery.
Click to expand...
Click to collapse
Devo7v is 100% right unfortunately. That's why I've been slowly trying to learn smali editing, in order to make my stock rom look more like AOSP (and at least PRETEND I still have cyanogenmod). Anyway if you're looking to modify your phone it's probably a good idea (and often necessary) to deodex your rom, and as I said that guide I linked to couldn't be easier.
A Few Concerns;
Right now, I am using 4.4.2NE3 update. I don't fully understand, how to be able to root my device after flashing it into NH3, so heres a few questions about your mods.
Even though I'm on NE3, can I still flash your Flashlight+Mobile Data toggle.zip?
When will Odex support be enabled?
I flashed the mods and everything is working fine except for safestrap. It no longer works.
Hi there
I'm on fresh and rooted NH3.
How can I install this mods?. As far I understand I need first to deodex the rom? But in the deodexing tutorial also need to use CWM to install it?
To install it :
Copy deodex_install.zip to your sdcard
Go to CWM recovery
Flash the zip
Done
Click to expand...
Click to collapse
And after deodexing can I use the stock recovery to flash the mods?
nikolav75 said:
Hi there
I'm on fresh and rooted NH3.
How can I install this mods?. As far I understand I need first to deodex the rom? But in the deodexing tutorial also need to use CWM to install it?
And after deodexing can I use the stock recovery to flash the mods?
Click to expand...
Click to collapse
On the i537, you can flash files with SafeStrap.
How do I uninstall these mods just in case I don't want them anymore?
Thanks.
hanggaw said:
How do I uninstall these mods just in case I don't want them anymore?
Thanks.
Click to expand...
Click to collapse
Restore from a nandroid backup made before installing these mods, or go through the zip file, figure out which system .apk's and .jar's you're modifying and copy the original unmodified files from your system partition to your internal storage or SD card, then if you want to uninstall you can just replace the modified file(s) with the original
Just out of curiosity why are you still on NH3? Do you prefer kitkat over lollipop?
thisisapoorusernamechoice said:
Restore from a nandroid backup made before installing these mods, or go through the zip file, figure out which system .apk's and .jar's you're modifying and copy the original unmodified files from your system partition to your internal storage or SD card, then if you want to uninstall you can just replace the modified file(s) with the original
I was hoping it would just be like an uninstall zip like blaz1nr's tweaks/mods....I'll try them when I get the chance. Thanks.
I don't prefer kitkat over lollipop. I'd like to update whenever I can but I only have this phone and wouldn't want to be out of action for too long. The thought of having to go through Odin if the phone doesn't do well after the update is kind of intimidating to me at this point. I'll get there eventually. I like to read the posts over and over to really understand what the steps are before I do them. Right now, the confidence is just not there. Thanks for your help.
Click to expand...
Click to collapse
hanggaw said:
I don't prefer kitkat over lollipop. I'd like to update whenever I can but I only have this phone and wouldn't want to be out of action for too long. The thought of having to go through Odin if the phone doesn't do well after the update is kind of intimidating to me at this point. I'll get there eventually. I like to read the posts over and over to really understand what the steps are before I do them. Right now, the confidence is just not there. Thanks for your help.
Click to expand...
Click to collapse
I respect that, read up and make sure you understand before trying anything big, smart move. Glad I could help you
I know this is an old thread but does anybody have a mirror for the mod files?

Categories

Resources