yashsingh1/xdaforums huggingface dataset:
[Android General] Ticklefish:
TOAD 3.1 has just been released!

This features updated deodexing tools, some corrected method files and now includes both the 32 and 64 bit versions. Just run the batch file in the main folder the first time you run the tool. TOAD will work out which version it needs and will run that.

Simple...yet very effective!
[Android General] kingdj:
[MENTION=4315551]Ticklefish[/MENTION] can you look into this rom and try to deodex it? try it by my own but priv-app can.t be done to be deodex.looking forward for your magic touch

here is link of the rom

https://drive.google.com/drive/mobile/folders/1fi1qKtGhx948VnPwG8R0uoB490ku6ZCJ?usp=drive_open thanks in advance
[Android General] Ticklefish:
So the APK's in your priv-app folder can't be deodexed because there's no dex information in the relative VDEX files. Looking at the APK files they already have the "classes*.dex" files inside them - your priv-app folder is already deodexed. It just needs to have the "oat" folders removed from the individual app folders.

There are two APK files that weren't processed fully in your app folder. One is the "messaging.apk" which had trouble taking the deodexed files and the other is "webview.apk" which couldn't be opened.
[Android General] kingdj:
can you up the deodex file of the fw folder? is there succses to remove oat&arm folder? will test it if you can up it for me to test it.regards

and what.s mean of removed oat folder from individual app folder?
[Android General] Ticklefish:
Here you go. This ZIP should hopefully deodex your framework folder. Make sure you make a backup first and also make sure you wipe your dalvik cache after you flash it before you reboot.

Every app in your "\system\priv-app" folder has its own folder. That folder contains an "\oat" folder which contains the VDEX and ODEX files. This "\oat" folder will need to be deleted, and the dalvik cache wiped, for Android to process the dex information inside the APK files. Which will make them deodexed.
[Android General] kingdj:
so i just need to delet oat folder to make my priv app deodex and load them as deodex after removed oat folder.will report the result after try it.thanks before [MENTION=4315551]Ticklefish[/MENTION]?
[Android General] kindlebal:
Hi,

Im getting "20 was unexpected this time" error.

the window closes immediately.

I want to put 3 minit in Oxygen OS stock rom 9.0.6. on oneplus 3 pls advice.

thanks
[Android General] Ticklefish:
Hmm. Odd. Could you share your files please? I'll try them on my setup and see if I can work out what's going wrong.
[Android General] kindlebal:
Hi Thanks for the reply , I just need to add the 3 minit battery only, im sharing app, framework , priv-app and build.prop folders.

Pls find below the link.

https://wetransfer.com/downloads/bc25f5a3f9fee914d1c42a3ca21f869e20191209142122/ceb4753b61ffad06099624aed0503dba20191209142122/cb82d3

Thanks
[Android General] Ticklefish:
Your "build.prop" file has nothing in it, that's why TOAD isn't working.

I used one from another rom and was able to put this together: https://www.mediafire.com/file/5a5l1mp3nnxq5rb/TOAD_deodex_09122019-1747.zip/file

Flash it and let me know what happens. Don't forget to make a backup first!
[Android General] kindlebal:
Hi Thanks for the reply. I flashed it and it was working fine.

Pls let me know how to add 3minit battery.

I decompiled the OPSystemUI.apk and made the changes and recompiled but nothing happening

Thanks
[Android General] Ticklefish:
I've replied to this on the 3minit thread. If nothing's happening, then something went wrong with your process. Even if the mod itself doesn't work, your original battery icon should have disappeared.
[Android General] reynard1:
10-12-2019@1914 --- Deodexing Process Started

TOAD Version: 3.0.0.4

ABI detected as: "arm64"

API level detected as: "29"

"29.bat" not present
[Android General] Ticklefish:
So it's showing the wrong version number? I'll get that corrected soon. I'm planning a small update to the program to deal with bad "build.prop" files so I'll get this to the list. Thanks for letting me know!

As for API 29...this is Android Q, which can't be deodexed yet. The software tools for doing so aren't available yet, TWRP doesn't work yet, and there's a possibility that the new APEX files that Google have introduced can stop the deodexing from working anyway.
[Android General] reynard1:
I search about android q deodex and i find this

vdexExtractor

so you say :

then its fake?

and what do you mean about twrp cuz my device are runnig on android q and twrp fully work
[Android General] Ticklefish:
VdexExtractor doesn't work on Android 10 yet as it says here: https://github.com/anestisb/vdexExtractor/issues/51

TWRP isn't officially available for Android 10, according to this: https://twrp.me/site/update/2019/10/23/twrp-and-android-10.html

It's open-source so it's always possible that somebody has made it work on your rom.
[Android General] wowanbelousov:
Del
[Android General] quanqw:
I tried to deodex stock systemui in my pie s8 rom but it didn't boot.
[Android General] Ticklefish:
Can you share your history.txt file please?
[Android General] thereassaad:
Hello Tickle , any plan to add supported for super.img for 2020 devices ?

Thanksss for this tool ..
[Android General] Ticklefish:
Not really, sorry. I'm not sure how to process those files and I think it'd make this tool too complex anyway.
[Android General] quanqw:
This is log
[Android General] zsy丶2014:
Does Q now support Deodex

Does Q now support Deodex

I heard that it can be modified internally to support
[Android General] Ticklefish:
Sorry for the delay in replying. I've been very busy with work recently.

I'm not sure why your rom doesn't boot after you flash the ZIP file. Even if SystemUI.apk isn't deodexed properly the rom should still start - you just wouldn't be able to do anything once it had.

All I can suggest right now is trying without deodexing the SecSettings.apk as well. If the ZIP file flashes without any apparent issue and you still get a bootloop then it could be an issue with the ZIP file...or it could be that Samsung have done something different to the rom that we need to sort out.

There are tools available to deodex Android 10. TOAD doesn't right now but I'm working on it. With the help of [MENTION=5285430]kevintm78[/MENTION], I'm hoping to have a new update available soon!
[Android General] quanqw:
I had tried only systemui but bootloop and reboot to recovery.
[Android General] Ticklefish:
The Android 10 Challenge continues! I've been downloading lots of 10 roms to try to get something working so this tool can deodex them but I'm having trouble. Every rom I've downloaded, from AOSP to MIUI to Lineage, turned out to be deodexed. They looked like they were odexed but they actually weren't, which is a bit strange.

If anybody's feeling generous, could they please share their odexed Android 10 rom with me? They seem to be really hard to find and I can't do anything without one..

Thanks in advance! :highfive:

Sorry for the delay in replying. If you still want to tackle this, could you please share the Your_Files folder? I want to try it on my setup and see if I can work out what's going on.
[Android General] ShaDisNX255:
I can make an odexed zip for Android 10, Samsung Galaxy S9+ I hope that helps. I use SuperR's kitchen to make it, I haven't tried deodexing with it idk if it does anything to it lol
[Android General] Ticklefish:
That would be incredibly handy if you could. Every rom I've downloaded comes deodexed. I've started wondering if Android 10 can even be odexed at all!
[Android General] ShaDisNX255:
That would be very strange if it couldn't. Wasn't it Android 9 that couldn't be deodexed without causing some issues? And now Android 10 is the opposite where it works best when deodexed? It's a bit strange. But yes, let me get home, create a fw zip and upload
[Android General] quanqw:
This is my framework.

https://mega.nz/#!1A5nTRAB
[Android General] ShaDisNX255:
My FW: https://www.androidfilehost.com/?fid=4349826312261744253
[Android General] Ticklefish:
Thank you for sharing that. However....those files are also deodexed!

It doesn't look that way at first. There are a lot of ODEX and VDEX files in your rom which suggests it's odexed but the APK and JAR files they relate to contain DEX files (classes.dex, classes2.dex, etc) which means it's actually deodexed.

I'm wondering if this is standard for Android 10 roms. If so, a deodexing method would be really easy to write. All I'd need to do is write something that just deletes all the ODEX and VDEX files from a rom. Makes life really easy for me but that surely can't be all that's needed. There must be an actual odexed Android 10 rom out there somewhere. There must be!
[Android General] Ticklefish:
Thanks. I'll need a decryption key to access that file..
[Android General] ShaDisNX255:
Oh wow I actually didn't even notice. Strange too because the kitchen I'm using is actually suggesting my "ROM" is still "odexed"
[Android General] Ticklefish:
This is a puzzle. It's looking more and more like Android 10 comes deodexed as standard. Which doesn't make much sense to me as there'd be absolutely no need for all those ODEX and VDEX files to be in the roms.

Maybe I need to find a folder dump from a stock Nexus rom. I haven't found one yet but that would help. If that's deodexed as well, then we'd have an answer. Kinda.
[Android General] kevintm78:
The same thread that mega link was posted in from my last pm has links (some are dead though) to many firmwares since that's what's required when submitting a bug report. Most are Samsung firmwares though so maybe not much help.

It's starting to look like a very small portion of the android population that would even need to deodex, if any, and even the seasoned developers/modders that had been needing a way to deodex android 10 were just assuming that it needed to be deodex to work on it. I certainly would have thought this was the case.

When I get home I'll take the testing a step further with the phone I have that's running 10 on it to see just how necessary those odex files are and what the hell they are doing besides taking up space. I still have the oat folder removed from SystemUI but I'll do a factory reset instead of just the dalvik-cache/cache wipes. If it still boots without optimizing or taking longer to boot up I'll just keep removing odex files until it either finally starts optimizing, no longer boots, or I have a fully deodexed system.

Either way, it's been a fun puzzle to help with even if there may be a few pieces missing from the box.
[Android General] quanqw:
I'm so sorry. https://mega.nz/#!1A5nTRAB!U0W0-nKbEWPMeQXcPqsZSlBCKNIQjFeiw7HeDs0vYFA
[Android General] Ticklefish:
Thanks for all your help with this. I'll be away from the computer for a few days. I'm having a short holiday with the family (although I've no idea what we'll actually do since most of the country seems to be on lockdown..) so I'll take another look at this when I get back.

I might have to write a method file for 10 just removes the VDEX & ODEX files from those apps that are already deodexed. It won't achieve much but at least it'll be a start. Until I can find an actual odexed rom there isn't much else I can do..

Thanks for that. I ran this on my copy of TOAD and I've uploaded the result here: https://www.androidfilehost.com/?fid=4349826312261749958

Everything looks okay as far as I can tell. The script in the ZIP file is fine and there's nothing unusual in the files you provided so it should work.

If it doesn't, please let me know what actually happens. The worst that should happen is that the rom will boot but SystemUI won't. You'll see your wallpaper and an error message but no status bar. If the rom doesn't boot at all then something's gone wrong that I don't quite understand. In this case it's worth double-checking that you have busybox installed (which isn't mentioned in the OP...whoops). It's also worth manually wiping your Dalvik cache in your recovery before flashing the ZIP.

Let me know what happens!
[Android General] drzainzaffar:
I tried everything im failing to deodex samsung oreo 8.1.0 it always gets stuck at the samsung logo during boot any help guys?
[Android General] hahmad78:
Sorry to disturb, but just a question,

I want to deodex lg pie rom, in oreo, i only put app, priv-app and framework,

But in pie,i will have to place vendor folder along with these too?
[Android General] hahmad78:
in frameowork folder, boot arM folder i think, keep it from stock,

I DONT REEMBER EXACTLY, SORRY
[Android General] Stefke93:
No way to start tool, just open window in one second and exit itself.. same on Win10 and Win8.1
[Android General] jaran kepang:
hello bro..i did this but still cant boot.my device is samsung note fe..i need modified services.jar.

did u make other change to make it boot ?
[Android General] Ticklefish:
Could you please share your files? I can try it on my setup and see what I can do. I'll need your history.txt as well.
[Android General] jaran kepang:
the whole framework or only services.jar ?

i only take services.jar from toad.zip then place to my rom,,try not touch other services.* (failed), trying delete services.odex and .vdex (failed) , trying delete all services.* except .jar also failed..

this for framework from toad,i didnt make any change just flash it.then not boot..also just put services.jar still same

https://mega.nz/file/dU11TYSY#Q3RlOubWvtfni6h5bfCY4HU5Adt4PZX7tyPLeuQERaE

i only need secure folder work again..this so difficult since i leave development more than 2 years..hehe

thanks for feedback

---------- Post added at 09:40 PM ---------- Previous post was at 09:33 PM ----------

all dex file in services is decompiled to smali without error..and i already ported note 8 rom to note fe..i take some smali(services.jar) file from note fe to note 8..and recompiled without error..its booted normaly..but i need to run on stock because i cant fix secure folder in ported rom
[Android General] Ticklefish:
This is a bit of a puzzle, to be honest. Your JAR seems to be properly deodexed, especially since it decompiles. In theory the file should work.

I'm not sure what's going on. I suspect that Samsung have added something that essentially detects if anything's changed. They do have a tendency to do stuff like that. What I'd like to do is have a look at the whole rom and see if there's anything I can work out. Is there anywhere I can download it from?

I'm sure you're probably doing all this but can you just confirm that you're doing the following when you're using the file on its own:

Deleting all the services.odex and services.vdex in the framework folder and sub-folders

Set the right permissions for the new services.jar

Clear the Dalvik cache
[Android General] jaran kepang:
thanks for the reply,

yes i already doing what u said.i also try clean flash and still same,,

also try use only app and priv-app deodexed its booting but nothing hapen with the phone..only black screen and power button working..may be system ui app not loaded properly..

https://xdaforums.com/note-fe/development/stock-rom-galaxy-note-fe-n935fxxs5csf1-t3966731

im sory but i dont have internet quota to upload the whole rom..hehe..no free wifi in my place..but i also try with that rom..that rom is working in my phone but if i deodex with toad its not booting..thank you
[Android General] avaie:
Can Services.Jar be deodexed? I will appreciate it. Would TOAD deodex Android 9 frameworks?

https://www.sendspace.com/file/f75sn9
[Android General] avidichard:
Just saying that Windows 10 says that TOAD 3.1 has a very dagerous Trojan. I ran it anyways and ignored the warning, but I thing someone should check that out and correct this issue. Testing with v7.0 with a stock system.img extracted content. No news for now if it works but stuck at file 1 or 116 for 5 minutes and blanck grey screen with just a blinking cursor.
[Android General] persona78:
Can´t use - vírus detected!

Hi!

I try to use it but windows goes like a christmas tree! With all popup alarms!!!

Check image bellow!

I think is your bat to exe encription, maybe have a trojan and infected your code.

:( :( :(
[Android General] CXZa:
Re:	Can´t use - vírus detected!

The bat to exe programs are also used by some lame virus makers, and therefore they should not be used. This Ticklefish's Toad bat has nothing bad stuff in it and it's even looks nice. Formatted and all. No benefit of turning it into an exe. Same goes for others. Browsers just refuse the downloads and antivirus goes berserk...

Also his TickleMyAndroid bat looks okay to me... longish - maybe I missed something...? ;)
[Android General] persona78:
But the one i download is a .exe not .bat!

Can you give a link for .bat?

Thanks
[Android General] CXZa:
%temp%
[Android General] persona78:
I can´t download to execute! Defender wipe automaticaly!

So i can´t go to %temp% to check it!
[Android General] persona78:
I was start to try but still need the "Method_Files" folder and the "Tool_Files" folder, it have files that we need to work, right?

Can you zip them and send?

i will group them in a directory, it shold work with bat, i think...
[Android General] CXZa:
PM sent. Just replaced the bat2exe files with zero size ones, otherwise it's the same...
[Android General] persona78:
Thanks!

I will check.
[Android General] persona78:
Thanks mate but is the same as in main post... :/

It is bloked and can download informing that is vírus...

check image.
[Android General] CXZa:
Hmm... could it be that even the file names are blacklisted? Weird...

Or is there something else in it?

Okay, here is the same thing as a zip file. How does your antivirus reacts now?

https://mega.nz/file/ul1W1ZbL#qfK9MTpzgzNNyzuvX1_Ff5YrbwqVhkBwYYcMwYWj0tA
[Android General] persona78:
Now it download but...it say that can´t work on my PC and to contact the builder... :|
[Android General] persona78:
I try to isolate de vdexExtractor, is the only funtion i want but i think is missing something, i change to vdexExtractor.exe, the one i add give API to, try the bat file.

Can you help me?
[Android General] CXZa:
Naturally I didn't modify other guy's work to another working version.

Those exe files are now zero in length, you must change the bat that is calling them.

Just overwrite the TOAD.bat with that extracted batch script I posted...

That vdexExtractor doesn't give any info how to use?

Maybe this gives some clues...
[Android General] CXZa:
I have difficulties in understanding your question really. This vdexExtractor is new to me. I still use Nougat myself. IDK, your version is the latest (ver. 0.6.0) but it seems that it stil has some issues with 10 and maybe pie too...

https://github.com/anestisb/vdexExtractor/issues/
[Android General] persona78:
Thanks.
[Android General] Hnojohn:
Download link

Uhhmm.. where's the download link??

Edit: found it, sorry I didnt pay attention..
[Android General] 5im:
@Hnojohn Where is it? I don t see the download link?!:oops:
[Android General] Mik-el:
@Hnojohn @5im @Ticklefish I can't find the download link too...
[Android General] Ticklefish:
Hi, it looks like xda have removed the DOWNLOAD tab as part of their latest redesign. Which means the EXE file has gone. That's annoying. I do have a backup on a thumb drive somewhere but it's going to be a while before I can get to it. Possibly a few weeks even!

Does anybody have a copy of the latest version that they can upload? They'd be my favourite people of the year if they do!
[Android General] MysticEnforcer:
TOAD - The Open-Source Android Deodexer by Ticklefish
[Android General] Ticklefish:
It's been literally a year since this was posted and I never even noticed! That's very rude of me and I must apologise.

Thank you for the upload. That's very kind indeed.

However I think I may put this project on hold. When I was last able to work on it I was trying to sort out deodexing Android 10 and we're a bit past that now. Plus the fact that nobody's posted in a year says this isn't a massively popular tool..
[Android General] ShaDisNX255:
Well, I think for the most part some important files already come deodexed on newer Android versions, or I don't know if that's a Samsung thing.
[Android General] Exameden:
Are you sure your uploads are malware free? The 3.1 one gives a massive number of hits at virustotal that make a false positive less likely. I'm sure you have good intentions, but If it's the hosting service trying to charge with wrapping the file in ad-supported files, consider moving elsewhere.
[Android General] pendor24:
downloads from xda are safe.

even more so for recognized devs.

your virus messages are fake.
[Android General] Ticklefish:
I ain't got time to rhyme..

Anyway..VDEX files came about on 8.0 but Android only started using them in 8.1. Which is why 27.bat uses a different method to 26.bat.

In 8.0, we can safely ignore those files and just concentrate on the ODEX files instead.

So making it smaller worked? I..I have no idea why that would be. But if it works, it works!

I guess I'd better change the other Methods to 512m as well.

When it stops working, what actually happens? Does the window close? Do you get an error?

On my PC, I can do everything I'm actually supposed to be doing at work while it's running and there's no problem.
[Android General] levone1:
1024 might work too...
[MENTION=4315551]Ticklefish[/MENTION] - tried flashing zip today, it doesn't flash. I looked in updater script, but couldn't see anything obvioius. Anyway, I copied folders manually in recovery, and didn't boot. I tried copying apks manually, and working fine, so I suspect framework(?)... Checked through log, and no errors. Everything similar to what I posted above, ".. everything ok". Only thing I see that is different than what I'm used to is that framework.jar is still only 310b. Typically that's a pretty big file deodexed, but I also see that there's no framework odex or vdex files, so maybe Sony just changed how they do things... Going to keep experimenting....
[Android General] msubhani:
App show no log of working and stopped at for example deodexing file 2/119. The app interface is blank i checked almost half an hour but app stand on the same position where left.
[Android General] mdrobiulhasan:
Another good one from you bro

Great job once again
[Android General] Ticklefish:
When you copy the files manually, do you wipe the oat folders that go with them, wipe the dalvik cache and reboot? If so that means the deodexing works, it's just an issue with the framework.jar possibly.

The updater-script is in the Tool_Files folder (TOAD copies it into the ZIP when it's made). Before the ZIP is made, TOAD copies a dummy file into the various folders. When it's flashed, the script will try to copy that file to your phone. If it succeeds, that means the entire folder must be copied. So the /app folder (for example) is deleted on the phone and copied over from the ZIP. The permissions are then set.

It's done this way so the one script can cope if the user wants to deodex only one or two folders instead of the whole rom.

I'll be honest, I've no idea why that's happening. This is only a batch file, after all. It shouldn't just stop when you do something else.

Maybe there's something your setup doesn't like about it.

Does anybody else have this issue?
[Android General] levone1:
What I did was extract the folders from the zip, and overwrite the whole folder in recovery, so it was in the phone system just as it was when created during deodex. I did wipe caches. I'll test one folder at a time....
[Android General] Ticklefish:
Overwriting the folders would keep the oat folders. And the ODEX files. Android would always go to those first when rebuilding the cache, whether the APK is deodexed or not.

Just thinking, if the framework.jar is causing issues, you can ask TOAD to deodex without processing the framework folder.
[Android General] levone1:
Ok.. I'm still not too clear on how that all works. So should I not have any folders in /framework? Just jars?

True, but my main motivation for deodex is in the framework, (disable signature verification). My target file is in services.jar, so If I can get it to boot with that deodexed, it's good for me.