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
Related
Hi!.i was rying to reverse engineer an app.ihave managed to convert it to a jar file and decompile it using JD(via dex2jar)ihave also tried apktool but it converts it to smali code..and its not readable at all :/.my question is:
after i got the .Java files and loaded them to netbeans...made the changes..how should i compile it back to an apk? thanks
marko.gangsta said:
Hi!.i was rying to reverse engineer an app.ihave managed to convert it to a jar file and decompile it using JD(via dex2jar)ihave also tried apktool but it converts it to smali code..and its not readable at all :/.my question is:
after i got the .Java files and loaded them to netbeans...made the changes..how should i compile it back to an apk? thanks
Click to expand...
Click to collapse
As far as I know you can't. You will have to reference the java code to smali in the apk
Sent from my ADR6350 using XDA Premium App
is this the only way? i just cant modify anything in the smali files they are very confusing..the only problem i get when im compiling the jar is that netbeans cant find the Android SDK like: android.view.WindowManager;.and as far as i know netbeans doesnt support android.any help?
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!
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 ?
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
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 ?