yashsingh1/xdaforums huggingface dataset:
[Android Software Development] expeacer:
No win for me... First problem I got missing files error, because all *.bat renamed to ~*.bat, but the missing files check searching the old named files. If i remove the namecheck, or just rename files, I got same error.

After some test, I figured out, it don't want execute .bat files. When the Ctrl+Alt+S screen appered, I went out the /tools folder, opened a Command prompt, and I typed dex2jar.bat classes.dex, after clicked OK, the jd-gui opened, and the script finished successfully - but I have only java source, nor smali and resources in my output folder.
[Android Software Development] broodplank1337:
About the first problem you're right, I fixed it in new commit.

In the latest build (github) there is only the dex2jar.bat file left in use, the rest is integrated in the app.

and make sure you clone the whole repo, not only the au3 file

and btw, do you have android-sdk installed? I don't know if it required actually, it might be required, i have to find out to make sure
[Android Software Development] sniper:
When I get back on I'll see if I can do it. I do have the Android sdk and the java jdk installed by the way.

Click here for custom mods for your E4GT
[Android Software Development] expeacer:
Yep, Android-SDK installed for me.

I made a video from my problem, i think now you can understand it:

http://www.youtube.com/watch?v=c53ufZA1Crk
[Android Software Development] broodplank1337:
Thanks for the vid. It looked like those tools didnt execute at all.. maybe its win8. Ill check it on a vm!
[Android Software Development] rayiskon:
As always great work brood, the tool made it to xda tv

https://www.youtube.com/watch?v=hYUcWoXaC04&feature=youtube_gdata_player
[Android Software Development] mixtapes08:
this will be totally awesome if you can compile an apk from source... no need to have a linux machine...
[Android Software Development] broodplank1337:
Whooo even on xda tv, didnt know that. Awesome!
[Android Software Development] eitama:
My small comment :)

Stop using RAR, it's not open-source. Start using 7z. :)
[Android Software Development] MegaWath:
I have this error when I try to port chrome.apk to an Eclipse project..

(but is a beta so..) :(
[Android Software Development] broodplank1337:
I actually use 7z :eek: (7za.exe), I'm not using rar ;)

It will be fixed soon, I'm working on it, I done like 5 commits after the 0.9 Release, so if you want to have the latest version, please look at my github:

https://github.com/broodplank/APKtoJava
[Android Software Development] oSandmaNo:
I think he meant 7z format ;)

Thanks for the tool anyway. Il test it tomorrow. :)
[Android Software Development] jerdog:
Moving to Android Software Development
[Android Software Development] emd2009:
Can't wait for the next update!
[Android Software Development] rtfpessoa:
Can you fix the: "Subscript used with non-Array variable"

And release a new version?
[Android Software Development] emd2009:
Nope.
[Android Software Development] Nucleotide:
Fantastic tool. Well done. Can't wait for future updates. :)
[Android Software Development] ken2802:
would it possible to rewrite device specific apps to work on other device with it?

e.g Touchwiz music player
[Android Software Development] broodplank1337:
Check my Github for the latest commit! (RC1 - Pre-Release)

A lot has been updated since the 0.9 release:

https://github.com/broodplank/APKtoJava
[Android Software Development] emd2009:
How can we download RC 1
[Android Software Development] broodplank1337:
Press the zip button on the repository page and extract it.

Then run the exe
[Android Software Development] Lashy:
Nice will be giving this a go later:victory:
[Android Software Development] broodplank1337:
Release Candidate 1 has been released! BIG Update!

Changes (commits):

1 2 3 4 5 6 7 8 9
[Android Software Development] sniper:
Sweet! I'll be trying it out in a minute :) thanks

Click here for custom mods for your E4GT
[Android Software Development] emd2009:
RC1 works great!

Just wish the java files wouldn't have so many errors in eclipse
[Android Software Development] broodplank1337:
Good! And yes, I know. its annoying. Its because all names are changed. Making it unable to recompile without modifying the source. But luckily the code stays intact besides the names. So a great learning source.
[Android Software Development] sniper:
Ya, that was one thing I was wondering. I thought I did something wrong because eclipse spewed out a few million errors at me :p

Click here for custom mods for your E4GT
[Android Software Development] broodplank1337:
Unfortunately but actually also luckily you can't compile the eclipse output very easily. it would be to easy to steal stuff from people
[Android Software Development] lontu:
Hi Brood,

Great tool...can you please make SGS3 launcher compatible to GB with this tool?

thanks
[Android Software Development] broodplank1337:
You might be able to if you do a hell lot of porting and have loads of java knowledge, you can't just do it with this tool, that would be just to easy..

btw,

RC2 Pre-Release Commit

"Added an alternative way of making the java code (JAD), All options are

now working. Finally able to control JD-GUI completely. updated help

file and splash."

https://github.com/broodplank/APKtoJava/commit/a6c6e80bfb68e0bc5bd6233b173cdd0cfa5ddc49

it's a Pre-Release, but it's finally becoming something :D
[Android Software Development] jwds1978:
I'm getting the attached error. The file doesn't exist in the tools folder when I checked it using Explorer.

__EDIT__

I'm not seeing the attachment here, so I've uploaded it elsewhere as well; view it here.
[Android Software Development] broodplank1337:
That's strange, I thought I fixed that bug completely. Someone else reported it as the dex2jar.bat just didn't run, I think the same thing happened at your computer. I just haven't found out yet what it actually is, the thing that always can occur errors, is a wrong working directory, tbh I've set all working directories to the tools dir. but apparently java doesn't want that. So I guess it should be in the bin directory of java or so. I have no clue so far ;) (also can't test it because it works normal for me)
[Android Software Development] rtfpessoa:
Any way to avoid a lot of jave code fail?

No app were compilable.

So much errors.
[Android Software Development] harshadura:
awesome stuff
[Android Software Development] reekotubbs:
I checked the OP and it shows RC2, but there is no download available for it.
[Android Software Development] jwds1978:
You can download as .TAR.GZ or .ZIP or from https://github.com/broodplank/APKtoJava
[Android Software Development] net.cat:
Using the J GUI method it doesn't extract any java file :(
[Android Software Development] reekotubbs:
Thanks.
[Android Software Development] broodplank1337:
hmm. this reminds me I made a small commit today but didn't sync it

Check my github:

https://github.com/broodplank/APKtoJava/commit/51aaa4e23a742c274423c5196c27ec22c40eb5a8

https://github.com/broodplank/APKtoJava/commit/6a2fb009cbe77d44a2bd2765dc08c8e037b33393 (watch this one if you just want to replace the exe)
[Android Software Development] net.cat:
It might be related to the fact that there are multiple packets! I'll try the links u suggest! Thanks!

Sent from my GT-I9300
[Android Software Development] Dri94:
Hey, tried out this program and this is the error im getting

APK to Java RC1 Initialized....
------------------------------------------

- Extracting APK...
- Extracting APK Done!
- Decompiling Resources...
- Decompiling Resources Done!
- Copying to output dir...
- Copying to output dir Done!

ERROR: No classes.dex file found! Aborting...

Decompilation has been aborted due to missing classes.dex file!

- Cleaning Up...
- Cleaning Done!

EDIT: nevermind, it was just aht apk

thanks for the great !
[Android Software Development] broodplank1337:
RC2 has been released!

Added more options, this version is really coming closer to a v1.0 final version. :D

Changes:

1 2 3
[Android Software Development] Ibn Saeed:
Thanks for this tool

I tried to decompile an apk as a test run, used RC2

Here is the result window:

It did show the resources folder but i could not find the java file inside

---------- Post added at 08:03 AM ---------- Previous post was at 07:51 AM ----------

Oddly enough it worked the 2nd time. This time i opted to create an eclipse project
[Android Software Development] broodplank1337:
I've experienced the same thing once, I think it's the interval.

Try to raise the interval in the preferences menu, default is 250, try 500 for example

next version will also have STDERR/OUT and zip support, like this:
[Android Software Development] Ibn Saeed:
Bug Report : RC2

This only happens after you successfully decompile an apk

and then if you go to File -> Restart

the app tries to restart and it shows the following message

If i close the app and then start it up again manually, it works.

=============================================================================================================

=============================================================================================================

---------- Post added at 02:17 PM ---------- Previous post was at 02:02 PM ----------

=============================================================================================================

=============================================================================================================

Bug Report : RC2

Decompilation Preferences :

Error Message:
[Android Software Development] broodplank1337:
Thanks for reporting. the first error is kinda lame but i know how to fix

and the second error, I know how to resolve but it's strange that it shows, the command I use StringRegExp, returns an array, then if i call the array like $namearray[0] (which should be the first entry for the array) then it doesn't work (atleast it has always worked at my pc, but somehow other people only get errors with it). So I guess i will remove the [x] part from it (actually this should break it but it fixes it :S).

Thanks ;)
[Android Software Development] Ibn Saeed:
Here is what i have noticed with the 2nd bug. [non-Array]. When it shows up and when it doesn't.

I noticed that the filename of the apk had spaces in it and that is what breaks the decompilation process, atleast on my side.

For e.g.

There is a space after "someapp" and before the version number "1.2".

I removed the space and renamed the file

And this time around it decompiled successfully.

Result:

After renaming, and removing all spaces in the filename of the apk to be decompiled.

I guess you have to have some check in place to validate the correct format of filename passed...

either ask the user to rename the filename

or

have the ability to handle filenames with spaces.

---------- Post added at 03:08 PM ---------- Previous post was at 02:45 PM ----------

Follow up on Bug : [Error: Subscript used with non-Array variable.]

It seems that the filename should not contain any special characters as well.

For e.g if the filename contains " & " in the filename, the above error message will appear [non-Array].

If you remove the " & " from the filename and decompile the same app, it get sucessfully decompiled.

I havent tested out any other characters apart from space and & sign.
[Android Software Development] broodplank1337:
Thanks for your analysis :) I know that spaces are always trouble makers, but didn't know about the special char. I will build in a check for spaces (and special chars) in the apk name as well. currently only have it in the destination dir.

Good work, thanks ^^
[Android Software Development] Ibn Saeed:
Tested an app with proguard obfuscation applied.

The decompiled java classes are all obfuscated , such as :

The decompiled app is pretty much useless if there some kind of obfuscation applied since neither the java files make sense and the xml
[Android Software Development] broodplank1337:
Luckily not all apks have that, also I think it's all about the actual code (despite the strange names), to learn from it, not to copy it whole and compile it again.

But of course obfuscation will make it a lot harder, You can never get the 100% actual java code (else it wouldn't be so obfuscated after all)

btw, can you show me some code? as you say the code didn't make sense whatsoever. is it just screwed up or really unreadable at all?
[Android Software Development] legionfx:
you sir are a bloody genius!
[Android Software Development] coolsandie:
I guess that a.java, b.java, c.java etc. are some sort of codes for ads it seems. I just decompiled an ad-supported apk and converted into Eclipse project, got the output as Eclipse project tree, but src folder was empty. I also found a zip file called "v" inside the Tools folder, in which all contents of src was there, the java codes. ;)

But the gen folder was empty, where the BuildConfig.java and R.java are present :(
[Android Software Development] plikmuny:
how to convert jar to apk ? pls help me.

i want to run a java app on SGS II running android v4.1.2.

need ur help desperately pls...
[Android Software Development] yani2000:
Well... I also wanted to to see a linux port like many others before.

I ran this on my VM with Win7 and in v0.9 and RC2 I got the same error: "Invalid input file tools\classes-dex2jar.jar"

And then the app just sits there and I have to kill it manually.

I also have good news for the linux peeps out there:

It ain't ultra pretty and slick like this app but it gets the job done:

Get dex2jar and JD-GUI.

Extract the "classes.dex" file from your .apk file.

In dex2jar folder there will be "dex2jar.sh" run it with: "sh dex2jar.sh classes.dex"

Then in JD-GUI folder run "jd-gui" and open the just made "classes_dex2jar.jar" file.

Done!

Simple as pie!
[Android Software Development] ewoks:
quick notice.. maybe I am wrong but if source has some other package other then com.blahblahblah.* for example ch.bblaah.* the other is forgotten in generated Eclipse project..

Huge thanks for effort.. Keep on rolling
[Android Software Development] FlorisNL:
Hey brood,

got a problem with extracting an apk, an timetable app I made for my school. Because I am experienced with Java I want to convert it. But it gives me an error: after starting it it gives me this error first:

and after that it is stuck at this log:

I have to close it with task manager after that, and nothing is in my output folder.

HELP? You are a hero btw, I always knew that :)
[Android Software Development] broodplank1337:
Sorry guys, have been working on some other projects, I will try to fix the bugs ASAP!

(to temp fix bugs, use JAD)

Just posted an early RC3 (next version is 1.0 btw)

https://github.com/broodplank/APKtoJava/commit/420d09807e05b5cfdd574791ddeac22f6b0a0faa
[Android Software Development] FlorisNL:
hey,

So i used the app and I edited the .java file, but can I convert it back to an APK now? with the edited .java file? thanks.
[Android Software Development] TearsDontFalls:
I tried alot different apks(all with classes.dex files and res) and also with RC1 and RC2, but it never sucessful created me a eclipse project, I always get this in the log: http://pastebin.com/CcEYVVp9

Have someone a fix for that?
[Android Software Development] t4ure4n:
Great work.. keep it up.

Looking forward to the version 1.0
[Android Software Development] crazygooyu:
amazing project:)
[Android Software Development] juancollado2003:
ERROR: No classes.dex file found! Aborting...

well I was getting ERROR: No classes.dex file found! Aborting... and many others and I get it over just by rename the apk with non space
[Android Software Development] t4ure4n:
Any chance we are going to see an update?
[Android Software Development] tharani29:
I am getting this error
[Android Software Development] FlorisNL:
So... when is the update coming?
[Android Software Development] Ibn Saeed:
Any update ?
[Android Software Development] mimmog:
The eclipse project into src directory has not file...why ?
[Android Software Development] broodplank1337:
Sorry for the frozen state in development, I have 2 weeks holiday now so I will start coding APK to Java again.
[Android Software Development] flagello79:
Hi, first of all.... HAPPY NEW YEAR!!!!! :)

Probably this is a stupid question but i'm a newbie.

I used the software to create an eclipse project of third part apps that have a bug,

but when import them on eclipse i've more error on project three... it's normal?

How i can find the eventual libraries or necessary dependecies?

thx for your patience :)
[Android Software Development] MegaWath:
I'm not a Developer, but I think they can be C++ lines, wrote with NDK (I'm trying to guess XD)
[Android Software Development] oxu:
How can i bac to apk files i have eclipseproject,javacode,resource,smalicode and what's next
[Android Software Development] _FroX_:
Is possible use this program to decompile framework.jar? I was trying but it get me an error, only few files converted to java.
[Android Software Development] ewoks:
news

hi developers,

any news? too busy for project right now or..?
[Android Software Development] -SmithTech-:
Missing Tools Error

I keep getting missing tools folder error.

Ive tried in Win 7, tried in compatibility mode, tried moving to root of c: in case it was a space in path issue.

Also tried under wine in linux, always the same error.

Any way to add an option to browse for the tools folder?
[Android Software Development] -SmithTech-:
Need Working Project

Can anyone decompile this apk to a working project?

I've emailed the developer several times and haven't gotten a reply, would like to fix some of the issues and change the color scheme to holo.

https://dl.dropbox.com/u/8241158/Check-In Droid 2_2.1.3.apk
[Android Software Development] negamann303:
One way to do it is to copy the .dex from the apk to the tools folder, then drag the .dex on top of dex2jar.bat. This should create classes-dex2jar.jar. Then I just open APKtoJava.exe and select the original apk. hacky but it works
[Android Software Development] mcbyte_it:
I tried decompiling (to an Eclipse project) an APK which has many packages with different starting initials (com.*, it.*, de.*), the final eclipse project had only the com.* subset of the source files.

maybe you have it coded somewhere to copy only "com.*" to the destination folder?

i used dex2jar manually to get the rest of the files.
[Android Software Development] krabappel2548:
Any news about this wonderful project? :)
[Android Software Development] adlx.xda:
If the project is abandoned or stalling, maybe it would benefit from being open sourced ;)

Sent from my Galaxy Nexus
[Android Software Development] exadeci:
Well it's open source https://github.com/broodplank/APKtoJava/blob/master/APKtoJava.au3
[Android Software Development] adlx.xda:
Damn it, you're right! I should have read better ;). Thanks
[Android Software Development] Unjustified Dev:
Cool

Tried this on 4.2.2 and it does work had to open readme and compiled it works perfect very fast simple gui and its clearly one of the best tools i have ever used. I did compile it from github in case anybody wonders thanks again.
[Android Software Development] Maxx247:
mcafee says virus found

[MENTION=225651]op[/MENTION] help me :(

when extracting file mcafee automatically deletes apktojava.exe becoz it detects as virus !

i really want this tool :p as i want to learn android app dev.

thanks !
[Android Software Development] Unjustified Dev:
I feel you I never would use McAfee but its hard to disable it there's guides online that helped.
[Android Software Development] Maxx247:
is there any way to ignore that file from auto scan while extracting ?

i didnt find any useful results on google !

thanks!

hit th@nk$ if i h€lp€d !!

sent f®om the a©ei
[Android Software Development] Unjustified Dev:
I never found a way. I use Microsoft essentials.
[Android Software Development] Maxx247:
[MENTION=4354408]broodplank1337[/MENTION] i m getting error while decompilng process

and

:confused: help please..

hit th@nk$ if i h€lp€d !!

sent f®om the a©ei
[Android Software Development] Maxx247:
anyone dont know about my problem ??

hit th@nk$ if i h€lp€d !!

sent f®om the a©ei
[Android Software Development] opdrago:
can i take a phone based on java 2.0 and use converted apk on it?
[Android Software Development] Jarmezrocks:
Yes but not using this tool I suggest you use this guys website ;):good:

Convert j2me MIDP (jad) into Android package (apk)

Basically any java app can be packaged and he claims even to be Google Market compliant which is pretty awesome! You do need to install his shared library, but pretty much should allow full execution of Java coded apps.

To the OP, I am pretty certain you can compile your AU3 AutoIT code by using a non-UPx compiler. It is the UPx compiler that throws the false negatives in these scenarios. Mainly because hackers use compiled scripts for viruses etc. Even hacking the exe post compilation to remove the AutoIT IDs still does not stop it from being falsely flagged.

AutoIT is fantastic! I love it. Have you got the AutoIT Studio dude? Are you on the forums? Hit me up. BTW nice project you have here. I am downloading it to try. Have you managed to successfully get an eclispe package to load? I have yet to get any decompiled .JAVA code to execute inside the JAVA/eclipse VM?? Its ****ting me to tears.

If you need a hand with your AutoIT stuff I would be happy to share idea. I was working on something similar. But my app is based on the notions of batch building from a configuration file. As in pumping out large numbers of similar coded app but each app different i.e Batch jon for wallpapers......try 180 odd wallpapers. Yeah I cringed too! lol AutoIT my saviour!
[Android Software Development] AdamOutler:
[MENTION=4354408]broodplank1337[/MENTION] I was trying to run this under wine and it had a problem while selecting the file

AutoIt Error
Line 1261 (File "Z:\home\adam\Desktop\Untitled Folder 5\APKtoJava.exe");

Error: The requested action with this object has failed.

can you figure this out? Generally hard-coded paths cause problems.

here's the output from Wine

adam@adam-desktop:~/Desktop/a2j$ wine ./APKtoJava.exe
fixme:shell:ShellDispatch_QueryInterface not implemented for {7fd52380-4e07-101b-ae2d-08002b2ec713} (unknown)
fixme:shell:ShellDispatch_QueryInterface not implemented for {0000010a-0000-0000-c000-000000000046} (unknown)
fixme:shell:FolderImpl_ParseName (0x17b148,L"Framaroot.apk",0x90ecd4)
fixme:win:LockWindowUpdate ((nil)), partial stub!