decompile apk and add in a sdk - Android Q&A, Help & Troubleshooting

I created an app in appsgeyser. I am still learning eclipse but went the fast route. I wanted to monetize the app but appsgeyser requires you to link your account with them and get 100 daily downloads in order to monetize it.
I found a tool here http://forum.xda-developers.com/showthread.php?t=1310151 which allows me to decompile the apk and make edits to the app.
What I want to know is where would I install the sdk? I basically want to install the sdk in the decompiled app then recompile it.
Any help would be much appreciated.

Related

Development software

What software do you guys recommend to start out developing? I'm just planning on starting simple with modifying apks and such. I assume I'd need some sort of java sdk to edit .smali and another program for xml editing. What are some good free software programs to do this?
you will want apk manager - for modifying existing apks
gimp for modifying images
android sdk
and possibly eclipse if you intend to start making your own applications (you will need java jdk to use eclipse)
notepad++ for xml editing
^^ this is what i use then again i am still a novice at development
How about .smali?
http://forum.xda-developers.com/showthread.php?p=4152564#post4152564
http://code.google.com/p/smali/

Problem modifying apk

Hi, i am trying to modify the classes.dex file in an apk but it is giving me problems.
if i decompile the apk and recompile it after modifying the app installs but crashes after one minute. also some functionality in the app is also lost.but when i binary edited the classes.dex file and replaced it in the apk ( i have used different methods for replacing the .dex such as direct replacing in archive and replacing in the decompiled archive) the app doesn't install and the phone or emulator reboots. i have done this with other apps and they are working fine after editing so i couldn't understand what's going wrong. please help
You should use a decompiler and achive to the java code. Than you can easily modify and recompile the app. You will need an Linux virtual machine to do this.
In linux, after you found you .apk file use this to decompile it to a .jar file. http://siis.cse.psu.edu/ded/installation.html. After that, you can use http://java.decompiler.free.fr/?q=jdgui to browse the code. With this method you will need a Linux machine and would give you the best result.
If you want to use windows, follow this tutorial http://androidorigin.blogspot.com/2011/02/dex-format-to-jar-format.html but I warn you, its likely to be faulty.
Hope this will help you.
thanks for replying
i used apktool to decompile and modify the smali code. i had even tried converting the smali code to java but no help.the problem is that the recompiled app runs only for one minute and then crashes without any error message even logcat log is not of help it just says that the process xxx has died but no err msg or exception is logged. if i replace the classes.dex with the patched one and then re-sign it it does not install and crashes the emulator but when i again decompile and then recompile the modified file it return to the same old problem of crashing. do you know how apktool packages the compiled files?
You should follow one of the tutorials posted in my last post. I did not used apktool and I don't know how it works.c the method with that decompiler will work. If you want your application signed just sign it as a normal one.
this particular apk loses about 20-30 kb in filesize on decompiling and then recompiling with apktool while this is not seen in any other apk. maybe this means that this file has some overlay data that goes missing on modifying and creats problems.7-zip is unable to show any extra data in the file.does anyone know how to add and extract overlay data on/from an apk?

[Q] Need help with help apktool

Hi! I have been trying to set up apktool but im not sure if i did it rigth. I installed the android sdk and java runtime. I installed apktool and apk multitool. Tried some guides on how to decompile an apk but always got some errors. Do someone know of a good guide on how to set up apktool?
Anything will be helpful! i deleted all of the files for the apktool and apk manager but left installes the android sdk and the java runtime. Thanks

[Q] Editing apps with apktool

Hello everyone, I have been reading this forum for some time and decided to register. It's a great resource site with amazing info.
I have been playing with apktool to learn how apps are made. Decompiled following the guide from this forum.
However I can't find what I'm looking for in the apps. For example, it's easy to edit the drawable folders of the apps and change the images.
I took some apps that gather feeds from news sites and I tried to find where are the feeds URLs coded or embedded inside the apps files, and could not find any info at all. No URLs at all. I opened the XMLs, and other files inside res, lib or smali folders, opened a lot of the files with Notepad++ and I can't find any information about it, or any place where the app connects to the website.
Is it possible to access that info when we decompile with apktool?
I also watched a lot of videos in YouTube, on how to edit apps with apktool, and all of them explain how to change the images, but nothing else.
Is it only possible to edit the theme/design of an app, when we decompile with apktool? Or can we go further and change something else?
Any help appreciated.
Ok, after further research, and some trial and error, it seems apktool only does a very superficial decompile of the apk. It won't give you the actual source code of the app. So you can only do some very basic changes to the app, like images and such. However it is a very good first step to decompile the app.
I realized we need to use other tools to create and decompile the .jar files. I will keep experimenting.
Apktool can also be used in reverse engineering apps. But not intended for piracy use
Sent From My Samsung Galaxy Y s5360

Tool for Decompiling and Compiling Apk Files

is there any easy tool just like a Apk Manager which can compile and decompile apk files with just one click ? i'v tried Apk tool, but it's not very user friendly. Apk Manager is very good, but it's outdated now . i wish their will some other easy tool too for compiling, decompiling and signing of Apk files
vishav420 said:
is there any easy tool just like a Apk Manager which can compile and decompile apk files with just one click ? i'v tried Apk tool, but it's not very user friendly. Apk Manager is very good, but it's outdated now . i wish their will some other easy tool too for compiling, decompiling and signing of Apk files
Click to expand...
Click to collapse
try tickle my android by ticklefish http://forum.xda-developers.com/showthread.php?t=1633333

Categories

Resources