java decompiler required for android phone - General Questions and Answers

I want to decompile .class file to .java file in my android mobile. i tried 5-6 apps from playstore but it's not working.
Please suggest me any app and procedure also

Related

Android Reverse Toolkit

I want to share my Tool I made yesterday in a couple of hours. I was just sad about all the steps which have to be done until you have a proper codebase of an android app (apk) so I automated some processes.
You might think "this guy have only 1 post I can't trust him !!!" I would probably think the same but I'm here on xda actually pretty long but just read as anonymous user without an account and now I just wanted to give something back so I created an account.
My Tool includes following thirdparty software:
jad (decompile .class files)
dex2Jar (converts apk files into .class files)
apktool Decompile (is used for extracting resources and Smali code)
apktool build (is used to build the smali code into an apk again)
testsign.jar (is used to sign the build apk file)
Features:
Decompile assets
Decompile resources
Decompile smali files
Decompile java files
Build apk from smali source
Sign build apk
Nice gui with drag and drop
The application is written in java so it should probably work on all operating system (not sure because jad isnt written in java so I have to use os specific files)
Screenshot:
i.imgur.com/U85AU.png
Virustotal
virustotal.com/file/69601c98a25edf2fcb22b94fb58863848a4cd4a7ee0a39b4ad40de54c086f102/analysis/1358111315/
Download: ul.to/5hy2wf9x
Awesome tool! Tested it and works perfectly! Thank you!

[Q] Problem Modding APK

Hello guys,
I am modding an apk to bypass an update check.
I have this outdated APK that functions fine since the URL and query and site address remains same but whenever it checks for and update it crashes. The thing is the developer made it topnotch but since then left and his site was recently taken down so check update query crashes it totally. What I need to do is update just the one function where it brings up the GUI after start. Otherwise it keeps saying download update or crashes randomly at time of starting up.
Now I have been browsing for a day or two for all the tutorials and right now I`m hell lot of confused. I have downloaded many tools and dependencies but I dont know how to proceed. I will tell you guys what I have and what I need.
I have de-compiled the APK using "dex2jar", I had a .JAR file which I decomplied using JD-GUI-Windows now after saving source I have .ZIP file in which I made the necessary editing. Next I downlaoded APKTool.JAR and extracted resource files and XML files that can be read in text editor. Along with some .SMALI files.
Now I am not familier with SMALI language at all and editing in it seems rather complicated and on the other side I have the .JAR file that decomlied all the classes just fine.
MY QUESTION IS:
How do I recompile the files I have ? I have the main coding extraced using dex2jar so in java format and JD-Gui to in .ZIP files, and resources/XML files also decoded using APKTools. What do I do next to recompile the APK ?
In short I have plain text based java source code and plain text XML and other resource file. How do I recompile it ?

Use Apktool in my ap

Hi dear friends
I want to write an app like app cloner
to decompile and recompile I think apktool is best library
Unfurtunatley I'm not android expert and I don't know what package of apktool I need.
I decompile and recompile with apktool using c++ and apktool.jar obtained from apktool site in windows app but I don't know how to use this jar file in my android project code
I write this but i dont know what I missed it partialy decompile apk and throw force close dialog and debugger dont show what the error is
brut.androlib.ApkDecoder decoder=new ApkDecoder();
decoder.setApkFile(new File( arrlist.get(position).app.publicSourceDir));
File out=getApplicationContext().getDir(arrlist.get(position).app.packageName, Context.MODE_PRIVATE);
decoder.setOutDir(out);
decoder.decode();
Any help apperciated

Baksmali In Android

I'm making a program which will extract a Apk and modify some Smali code and again recompile it.
Apk Editor is good but I want the function in my app anybody can help ?

decompile and desugar java bytecode

i need to do pentesting for developer, but all my decompiling tools failed to show proper code, take a look at my issue on github, what issue i'm facing :
https://github.com/leibnitz27/cfr/issues/235
Is there option in some others java bytecode decompilers which can decompile and desugar lambda, so it displays proper code. I wasn't been able to do pentest because of this, i can't read code, not even try to exploit it at all.
The Java bytecode decompiler in IntelliJ IDEA is a built-in tool that allows you to read compiled bytecode as if it were human-readable Java code.
jwoegerbauer said:
The Java bytecode decompiler in IntelliJ IDEA is a built-in tool that allows you to read compiled bytecode as if it were human-readable Java code.
Click to expand...
Click to collapse
just checked (IntelliJ IDEA), and tried, still no luck, as i know it uses Fernlower, which i already tried. (i have problems, with improper decopmilaton/desugaring java bytecode, and it throws multiple .class files with $$Lambda$ extention)
and this is my first time to see this retrolambda, for which i never heard before.
i wish i could decompile it manually, but i can't as before 2 days i didn't knew what is retrolambda, let alone manually decompile it.
resources, how i can manually decompile and understand retrolambda, are welcome, i will check in their git repository if i can find anything, some instrutions.

Categories

Resources