yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] russel5:
[MENTION=4482551]joeldroid[/MENTION]

My system - Win7x64 - java8u40x64

when i run your program it allways ask what program i need to open java.exe. if i close this message program run, java detected, path set correctly. when i choose folder with ROM's files i see masages with java.exe again. when i close this message - deodex fail

with java 7u75x64 all works as it should

can you fix this?

thanks

Nvm

I used this fix http://xdaforums.com/showpost.php?p=58854905&postcount=137
[Android Software/Hacking General [Developers Only]] Vinesandroid:
Let's play with new version 2.4

I have tried this tool with v2.3 .. and deodex official FW i9500 Lollipop.. everything's simple. work like a charm..

but . some apps crash after deodex.

apps that crashing after deodex by. v2.3

1. SamsungLink_2.0

2. SamsungLinkPlatform

3. Phonesky get error (can't login)

4. GMSCore (fixed by install manually from file.apk)

5. StoryAlbum2013_L

6. StoryAlbumWidget

7. PlusOne/Google+ (fixed by install manually from file.apk)

8. Maps (fixed by install manually from file.apk)

9. SCONE_Android_ProxyService_Lib a.k.a Samsung Link Platform Connectivity

I will try with new version v2.4 . I hope it will work fine.
[Android Software/Hacking General [Developers Only]] edzamber:
Same for le with i9505 LTE and Lollipop i9505XXUHOB7
[Android Software/Hacking General [Developers Only]] juanpirulo:
Now i ve got this message.
[Android Software/Hacking General [Developers Only]] joeldroid:
Guys,

Please give me some time.

I'm stuck with some personal issues plus I will be away from home this weekend.

I promise to get these things sorted once I'm back I have already fixed most of the java issues and java detection problems as boot.oat decoding issues.

I will post version 2.5 as soon as I get back.

Cheers.
[Android Software/Hacking General [Developers Only]] juanpirulo:
No worries man, take your time. Meanwhile i get it working sussesfully. But i really dont know what i did. Cheers.
[Android Software/Hacking General [Developers Only]] bobfrantic:
Just curious what people are using to extract the folders app, framework, and priv-app from the system.img.ext4 in the roms for deodexing.
[Android Software/Hacking General [Developers Only]] aoprea:
mee too i deodex FW G900FD Lollipop.. everything's simple. work like a charm..

I use v. 2.4

after deodex i replaced in zip rom app, priv-app and framework folders

but . some apps crash after deodex.

Google Play services, com.google.process.gapps, SamsungLink_2.0, SamsungLinkPlatform, Phonesky, GMSCore, location etc...

i use c:\Program Files\Java\jre1.8.0_40\bin\ variable path
[Android Software/Hacking General [Developers Only]] juanpirulo:
- extract system.sin from ftf.

- convert system.sin in system.ext4 with flastool (sin editor, extract data)

- open system.ext4 with ext2explore tool and save the folders you want

Cheers
[Android Software/Hacking General [Developers Only]] juanpirulo:
Another question, someone can help me how i should set permissions with chmod on Ubuntu on lollipop? I mean after deodex in App folder now there is one folder for each App, I know how to set permission like " sudo chmod 755 -R .* " for the folders but how i do it to set all the apks at the same time inside the folders? . Also some apks goes with the lib so, do I have to set 644 also for the libs?. Cheers
[Android Software/Hacking General [Developers Only]] carl1961:
extract zip , copy system.img.ext4 to folder and run the system.img.ext4.bat
[Android Software/Hacking General [Developers Only]] tomkins0752:
I was getting this error with the files I pulled from my Moto X on 5.1.

I copied them all again, and tried all over, and I'm not having that error anymore.

Just double check to make sure none of your files got corrupted.
[Android Software/Hacking General [Developers Only]] bobfrantic:
This is brilliant, saves a few steps to get the files and works for cache and hidden stuff too... :D thanks a ton
[Android Software/Hacking General [Developers Only]] carl1961:
[MENTION=5575828]Walter.White[/MENTION] sent me the link ,

ImgExtractor_1_3_6 to unpack X.X.ext4 images (I made the bat files for easy running) original thread (where I got tool)
[Android Software/Hacking General [Developers Only]] Calaisz17:
boot extraction falied
[Android Software/Hacking General [Developers Only]] devilmaycry2020:
i run JoelDroidLollipopBatchDeodexer.exe and got this popup dialog.

what's wrong with LBD2.4 ? before 2.3 i haven't got this message. please help
[Android Software/Hacking General [Developers Only]] carl1961:
I got that same thing

your envirmental path is set to the wrong java bin file

you need SDK

when I set path to ;C:\Program Files\Java\jdk1.8.0_40\bin

JoelDroidLollipopBatchDeodexer.exe worked great on the AT&T note 3

lolipop
[Android Software/Hacking General [Developers Only]] devilmaycry2020:
I installed JDK and set path but it didn't work. please help, before i didn't change anything in path but still work. why ?

---------- Post added at 09:45 PM ---------- Previous post was at 08:48 PM ----------

this one helped me solve my problem. thank you very much
[Android Software/Hacking General [Developers Only]] juanpirulo:
Anyone can hep me telling me how to set permissions to the whole lollipop system folder after deodexing?. Cheers
[Android Software/Hacking General [Developers Only]] AndroPlus:
[MENTION=4482551]joeldroid[/MENTION]

Thank you for your great tool!

I deodexed Xperia Z3 5.0.2 but some apps like phone and NFC service crashed.

Xperia system has "SemcGenericUxpRes" in framework directory and it wasn't deodexed,

so maybe this is the cause of the problem.

Could you see if it can be fixed when you have enough time?

Here is system/app, priv-app and framework from Xperia Z3 5.0.2.

https://drive.google.com/file/d/0B4fBjQuS8IxPOFd3bFFqY1hjOEE/view?usp=sharing

Thank you.
[Android Software/Hacking General [Developers Only]] carl1961:
yes I had to remove that also and I put (windows 7 64bit system)

C:\Program Files\Java\jdk1.8.0_40\bin
[Android Software/Hacking General [Developers Only]] lost101:
[MENTION=4482551]joeldroid[/MENTION] - Thanks for making this utility. I may have identified an issue with Motorola Stock ROMs, and it's happening with all Deodex tools I try.

I can use your tool to entirely deodex a Moto G (2013) Stock ROM without error. No ARM folder remains in framework, and I am not aware of any left over files.

The ROM will boot and everything works with the exception that certain apps are now incompatible according to Google Play. Some apps affected are Google Chrome, Firefox, and Google Earth. The first two are not listed at all when searched for. The apps can still be side-loaded and work without problem.

I suspect this issue will affect other Motorola phones.
[Android Software/Hacking General [Developers Only]] Jonny:
Any chance you could add 64-bit system support? Currently the tool only checks for /arm folder and ignores /arm64 so for devices like the HTC One M9 it doesn't deodex the 64 bit apps.
[Android Software/Hacking General [Developers Only]] darkera13:
Change arm64 to arm and try, almost apps should work.
[Android Software/Hacking General [Developers Only]] Jonny:
That's what I have been doing, however it's a pain to rename every arm64 folder in a ROM with 300+ system apps [emoji14]

Native arm64 support would be great.
[Android Software/Hacking General [Developers Only]] darkera13:
You should write a batch/shell script to do this job :)
[Android Software/Hacking General [Developers Only]] Kamy:
How about Total Commander. That's what I used to rename all folders.
[Android Software/Hacking General [Developers Only]] Gunthermic:
Very excited to have this..

Have spent the last 3 hours, attemptign to get this beast working. Had jre 1.6 and 1.7 installed and working just fine. Since I do other ROM's, Tons of inverting..

Windows 7..

Version 2.5 says jre 1.7(64bit) installed, but always boot.ot extraction failed...

Removed all jre... Only installed 1.8... Well can still do android SDK functions, Compile Apk's. But now this app doesnt even see java installed anymore...

I will continue.. But maybe after readign all these problems.. may you can display Java Path Vairable: and show what you are reading.. (gettignas a result).. cuz this is going onto to be crazy. All other java need apps aprear to be functioning.. but this one is being a stuburn child...

so even before when it detected Java 1.7.. it always did a boot.ot extractoin error.

Nexus6 - Android 5.1

My varibale Path:

C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files (x86)\Intel\Services\IPT\;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files (x86)\Toshiba\Bluetooth Toshiba Stack\sys\;C:\Program Files (x86)\Toshiba\Bluetooth Toshiba Stack\sys\x64\;C:\Android\android-sdk\tools;C:\Android\android-sdk\platform-tools;C:\Zapps\WinMerge;C:\ZApps\TortoiseSVN\bin;C:\Program Files (x86)\Java\jre1.8.0_40\bin;C:\Program Files (x86)\Java\jdk1.8.0_40\bin
[Android Software/Hacking General [Developers Only]] carl1961:
you have two Java bin folder and each one most likly has a java.exe try deleting the C:\Program Files (x86)\Java\jre1.8.0_40\bin; and keep the JDK
[Android Software/Hacking General [Developers Only]] starbucks2010:
I don't think that all these issues are Java related. The problem must be somewhere else.

These screen shots are taken from my colleague's PC which never had any Java installed on it, and everything went just fine.

I tried on my PC with every Java version possible installed (JRE 1.7, 1.8, JDK 1.8, etc) and it never worked.

I hope that Joel can figure it out what is wrong.
[Android Software/Hacking General [Developers Only]] starbucks2010:
Finally I make it working.

This is what I did:

- check what Java versions you have installed on your PC. I had JRE 1.7, JRE 1.8 and SDK 1.8 - it did not work

- I uninstalled JRE 1.8 and it JoelDroid worked as it should. In the Java Version it says "Not Installed" but don't worry, is working.

- open Java Config and check in Java Tab that only Java 1.7 is selected in both (User and System) subtabs

PS. I updated Java to 1.8 and is still working. So, the most important thing is to have only one version of Java on your PC.

Good luck.
[Android Software/Hacking General [Developers Only]] hispanico957:
Just a first question for a noob... if i want Deodex a firmware sony. I have firmware like this D5803_23.1.A.0.690_Customized_NCB.ftf.

In Op i see..... Unzip the Odexed rom zip, to say D:\MyRom (for example)

So i dont understand the right way ..

Thank

Hispa
[Android Software/Hacking General [Developers Only]] ogunja:
Let's step.

First you must draw the FW FTF, system.sin and then extract the system folders, frameworks and priv-app.

I hope the tool work for you.

Create the location C: \ xxxxxx and place the 3 folders

Open JoelDroid tool for deodexar files.

Sorry my English using google translator.
[Android Software/Hacking General [Developers Only]] hispanico957:
Thank... but i don't undertsand

Hispa
[Android Software/Hacking General [Developers Only]] carl1961:
You have to unpack the firmware and then get the app,priv-app and framework folders the point this deodexer.
[Android Software/Hacking General [Developers Only]] hispanico957:
Ok with flashtool i extract system.ext4 from system.sin... but to unpack system.ext4 ??

Thank

Hispa

Update i use ext2explore.exe and extract all files... now ?
[Android Software/Hacking General [Developers Only]] lost101:
If your a Windows user, you can user the img extractor included here: http://xdaforums.com/showthread.php?t=2663029

In Linux, you can possibly use: tar -xvf system.ext4 system
[Android Software/Hacking General [Developers Only]] carl1961:
I use this one

It is on xda but here is mine with bat file. Just unzip and put your image in same folder and double click the bat file with same name as your image.

Dropbox

https://www.dropbox.com/s/jq3n6l6j9eaolvo/ImgExtractor_1_3_6.zip?dl=0

Or mega

https://mega.co.nz/#!KUNRDLJA!JxWnaqq37V16FMNXAGpa6KpbaJoYHYripnlgxeVzT5Q
[Android Software/Hacking General [Developers Only]] hispanico957:
Ok Thank...now i have DeOdexing all my rom: app, framework, priv-app and vendor ... now to build my flashabel zip ??

Hispa
[Android Software/Hacking General [Developers Only]] carl1961:
Find a rom that is for your phone and use it for the meta-info
[Android Software/Hacking General [Developers Only]] hispanico957:
Ok understand... so at this moment i have build my deodexed rom, but last thing... i read on many posts roms Zipaligned.... so to make this for all apk ??

Hispa
[Android Software/Hacking General [Developers Only]] jitz975:
This tool will automatically zipalign all apks :good: :) check op..
[Android Software/Hacking General [Developers Only]] starbucks2010:
After deodexing the system folder, I ended up with half of framework jar's having 309 bytes.

Before building your ROM, check your framework folder file size.

I used Lollipop 5.0.1 BOC6 for SG Note Edge.
[Android Software/Hacking General [Developers Only]] juanpirulo:
[MENTION=5169444]AndroPlus[/MENTION] Did you get to resolve this problem with the SemcGenericUxpRes file?. cheers
[Android Software/Hacking General [Developers Only]] AndroPlus:
I moved it to /app, then deodexed and it's working (at least booting).
[Android Software/Hacking General [Developers Only]] kentandrei:
thanks to this :) solves my prob in logsprovider.apk :good:

hoping for nxt update to add more options live decompile/recompile
[Android Software/Hacking General [Developers Only]] juanpirulo:
Thats what i did toó. What about gsmcore.apk? Seraj said it must have clas.dex2 and 3 and with this tool just got one clas inside. Cheers
[Android Software/Hacking General [Developers Only]] AndroPlus:
I don't have gsmcore.apk...

I can find GmsCore.apk instead, but it has only GmsCore.odex.
[Android Software/Hacking General [Developers Only]] Borz93:
Do you not have problems with some applications in Google play after deodex? I think that is for deodex gmsCore.apk or other application related to Google Play Services.
[Android Software/Hacking General [Developers Only]] juanpirulo:
I meant that apk. I just confused why seraj said has to be a classes2.dex and classes3.dex inside this apk, he get it with SVAdeodexforart tool and he said he could only get it with this tool, so i am Little confused if this apk should be deodex like this or not. Anyway yours with joeldroid is working well? any problema? because the one by seraj ( http://xdaforums.com/z3-compact/development/23-0-1-5-77-debloated-deodexed-zipalign-t3015281 )has some problems. cheers
[Android Software/Hacking General [Developers Only]] AndroPlus:
I don't have problem with Play service.

I had some FC instead (maybe extracted files weren't good) and fixed with this command:

http://xdaforums.com/showpost.php?p=59909092&postcount=35
[Android Software/Hacking General [Developers Only]] juanpirulo:
could it be because didnt you deodex the vendor/App /chromecustomizations and vendor/App/ims? . Also i put it to deodex on App forder. cheers

edit . I realised that inside ims/lib/arm there is two lib files which i can ´t save to my pc with ext2explore.exe I dont know why . i will try to get the system files throught Linux. cheers

Also with bootinfo and nfcnci happend the same so i thing you miss this libs when you deodexed your system as me.

ok I ve got the libs from the system/lib and vendor/lib and replaced on my deodex system zip thanks [MENTION=5169444]AndroPlus[/MENTION]
[Android Software/Hacking General [Developers Only]] juanpirulo:
[MENTION=5169444]AndroPlus[/MENTION] this is the explanation from seraj about the gmscore.apk http://xdaforums.com/showthread.php?p=59982501.cheers

---------- Post added at 08:52 PM ---------- Previous post was at 08:11 PM ----------

[MENTION=4482551]joeldroid[/MENTION], is it your tool running the last basmali versión? if not could you update your tool? we need it because of the gmscore.apk the explanation is here http://xdaforums.com/showthread.php?p=59982501. cheers
[Android Software/Hacking General [Developers Only]] Er. Aditya:
cant get pass through this
[Android Software/Hacking General [Developers Only]] starbucks2010:
Uninstall Java v1.8 and install v1.7. Don't forget to check the Environment variables after the installation of v1.7.

Good luck.
[Android Software/Hacking General [Developers Only]] ticktock666:
see below
[Android Software/Hacking General [Developers Only]] ticktock666:
I'm having the same issue, and the app almost messed me up

When I started the app for the first time, it showed me the "open with" window asking what I want to use to open "java.exe", I admit I was careless and clicked on the Java icon from the list of programs (I thought it was asking what to use to open a jar file), which made Java the default opener for "exe" files (in my defence I did this @ 5:30 in the morning)

I was able to reverse this easily, but later on when I tired to use the app, it would not work (see attached pics), since I always got a popup asking me what program to use to open "java.exe", and once I click "cancel" the program would abort (see pic 02)

I'm now downloading JRE 1.7, and I made sure I don't have 2 versions of Java installed (never understood why they did it this way in the first place), I'll have to try again tomorrow and report.

[MENTION=5169444]AndroPlus[/MENTION] : do we need to deodex gmscore.apk ? can't we just get it from the gapps bundle and slam it there ? would that work ?

I'm asking because I have a Z2 D6502 and when I tried to flash one of the deodexed mods floating around I got constant google error, so I'm trying to get rid of that

Edit : after some experimentation, you don't need to uninstall 1.8, just edit the PATH variables after installing 1.7 (remove 1.8 path and replace with 1.7 path) then the app will work, once you are done you can reverse the edit and go back to using 1.8, for security reasons.

using this method I was able to deodex my rom, which wasn't any good since I still got FCs (google, download agent, phone), so I'm considering replacing folder-by-folder to see how many apps I can get to deodex before the rom becomes unstable.
[Android Software/Hacking General [Developers Only]] esps:
You need to rewrite "Path" on windows system
[Android Software/Hacking General [Developers Only]] juanpirulo:
Did you deodex semcgenericuprex.apk? Because i had to move from framework folder to app folder to got it. Also there are a couple apks on vendor/app, i moved also to app folder to deodex, this two apks got a broken simlinks libraries, that you can get on vendor/lib. Cheers
[Android Software/Hacking General [Developers Only]] ticktock666:
Cheers for the pointers about the apk and the libs, didn't know about them

I understand the "move to app folder" part to get the apps deodexed, but I'm confused about the lib part, can you please explain ? do I need to copy lib files with "ims" in their names into the "ims" folder ? I'm not very good with this symlink stuff, also would [MENTION=5169444]AndroPlus[/MENTION] commands to fix broken symlinks earlier in this thread do the trick ?

Edit : [MENTION=5169444]AndroPlus[/MENTION] is for fixing the libs erros, so this one is done I guess

The only problem left is the google services crashes, if I don't deodex /framework folder things work normally, but if I do I get these errors :

04-12 01:59:44.856 7793 7793 E AndroidRuntime: Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.gms.common.app.GmsApplication" on path: DexPathList[[zip file "/system/framework/com.android.location.provider.jar", zip file "/system/framework/com.android.media.remotedisplay.jar", zip file "/system/priv-app/GmsCore/GmsCore.apk"],nativeLibraryDirectories=[/system/priv-app/GmsCore/lib/arm, /vendor/lib, /system/lib]]

I'm considering not deodexing those files from the /framework folder, but I'm not sure what can happen from running a 99% deodexed rom, is it more unstablle than a fully odexed/deodexed rom ?

Edit 2 : deodexed the /framework folder again, but solved the google FCs by downloading latest apk of google play services and manually installing that, and now the errors are gone
[Android Software/Hacking General [Developers Only]] GT-VICTORY:
it's great work!

there is new version for oat2dex.jar (v07),plz update your tools , tks!

oat2dex.jar (v07):http://xdaforums.com/galaxy-s5/general/tool-deodex-tool-android-l-t2972025
[Android Software/Hacking General [Developers Only]] DarkAngel:
If I may make a suggestion to add to the OG post, this actually happened to me verbatim except at 3 A.M LOL. I quickly remedied my mistake with a quick registry mod.

I had gotten the same errors as ticktock666 had in his three pictures here:

I then did as BigBot96 had stated back in page #13.......

Doing as suggested has solved my problem and I have the latest Java JDK 1.8 ( 64 bit ) and .NET Framework 4.5 installed. I never reverted back to 1.7. It never occurred to me to even check as mentioned above as it has always been in my PATH since I have been modding.

Just wanted to make a suggestion for the OG post as I have read many complaints on it already......

:good:
[Android Software/Hacking General [Developers Only]] OMJ:
[MENTION=4482551]joeldroid[/MENTION] 1st, thanks for this great tool...any update on a 64bit version?

thx
[Android Software/Hacking General [Developers Only]] joeldroid:
64 bit is ready and up for testing I'll release it in a couple of days...
[Android Software/Hacking General [Developers Only]] juanpirulo:
[MENTION=4482551]joeldroid[/MENTION] could you tell me if your tool is updated with the las baskmali and oat2dex. V7?. Cheers
[Android Software/Hacking General [Developers Only]] joeldroid:
I don't think so, could you send me the threads for the oat2dex v7 and baksmali v7 so I could update the tools?
[Android Software/Hacking General [Developers Only]] juanpirulo:
http://xdaforums.com/showthread.php?p=60060894

http://xdaforums.com/showthread.php?p=59983730
[Android Software/Hacking General [Developers Only]] joeldroid:
New version released

new version released, please check and post (any) issues.

Make sure you take a nandroid backup before flashing the deodexed apps.

There is a ignore list in applicationfolder/tools/DeodexIgnoreList.txt add any app FOLDER NAME if you want to exclude anything from the deodex process.
[Android Software/Hacking General [Developers Only]] chas123:
[MENTION=4482551]joeldroid[/MENTION] Thanks for all your hard work on this. Just try the new version on a HTC 64 bit M9 rom. It freezes after the boot.oat extraction and outputs a log (attached)
[Android Software/Hacking General [Developers Only]] berryman13:
I'm like 99% sure 2 posts above yours the dev said it will be a few days.
[Android Software/Hacking General [Developers Only]] carl1961:
It is already on OP
[Android Software/Hacking General [Developers Only]] ticktock666:
new version not working for me, the app just crashes on startup

I've copied the oat2dex.jar from the 2.5beta to the 2.4 folder and the program seems to still be working, gonna try it tonight
[Android Software/Hacking General [Developers Only]] Prior_Ori:
Here is my log. does not work as expected. 2.5
[Android Software/Hacking General [Developers Only]] joeldroid:
Working for me

Guys It is working for me...

I'm not sure why it may be a problem for you???

Are you running this as administrator?

Try in D drive some file permissions?
[Android Software/Hacking General [Developers Only]] Prior_Ori:
ok, what is?
[Android Software/Hacking General [Developers Only]] berryman13:
Thread title now says Development Stopped, is that true Joel?
[Android Software/Hacking General [Developers Only]] purian23:
He updated the OP with his reasons.

Good luck Joel, real life endeavors must come first.
[Android Software/Hacking General [Developers Only]] Hen Ry:
I have problems with the Path, Windows 8.1