• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root DIY: How To Decompile An Apk

Okie I just didn't understand what to name the path. I need to pick up a computer for repair but I'll try after that and then we can go from there. Thanks for the guide and the help!
 
Okie I just didn't understand what to name the path. I need to pick up a computer for repair but I'll try after that and then we can go from there. Thanks for the guide and the help!
Amended steps in above post and thread. Sorry. Just wanted you to be able to get started while I type it up.
 
Its all good. I'm not gonna be able to get back to it til either late tonight or tomorrow afternoon
 
so still having an issue with getting it to recognize that java is installed and getting the adb to work....i dont know what im missing. when oyu set the path is it 2 seperate paths or is it "C:\AndroidSDK\tools and C:\AndroidSDK\platform-tools" exactly?
 
so still having an issue with getting it to recognize that java is installed and getting the adb to work....i dont know what im missing. when oyu set the path is it 2 seperate paths or is it "C:\AndroidSDK\tools and C:\AndroidSDK\platform-tools" exactly?
Two separate paths.
And I had issues with Java as well. I had to redownload.
With adb, really all you have to do is plug phone into computer as though you were charging it.
 
so still having an issue with getting it to recognize that java is installed and getting the adb to work....i dont know what im missing. when oyu set the path is it 2 seperate paths or is it "C:\AndroidSDK\tools and C:\AndroidSDK\platform-tools" exactly?
Edited thread #1
 
i managed to mess around with it enough and i think i got it to work but im gonna wait til im more awake before i really check it out. when you set the paths you seperate them with a semi colon and then restart the computer. or at least thats what worked for me. also, even tho it wasnt recognizing java, i ran "adb devices" in cmd and it showed my phone, so i ran the script and it worked. thanks for sticking with me and helping me figure it out. when im more awake ill really check it out
 
Not a problem. I have edited post #1 to reflect the changes needed to do this properly.

That's what I am here for. Thank you for allowing me to assist you.
 
ok so we have successfully decompiled, poked around a little bit and recompiled our first apk. i figured out what the issue with java was. basically if you are running a 64bit OS then you need to install the 64bit version of java. the apk manager looks in /Program Files/ regardless of the computer being 32 or 64 bit so that is where java needs to be. im kicking myself since it was such a simple thing.

next on the menu would be where i would need to go to figure out how exactly to edit. what language is it all in etc. i know that andorid is written in java and i need to learn a bit of xml but i guess im asking what direction to head to get it all to quit looking like greek?

EDIT: also, i set a variable path for java. idk if that helped or not but its there lol
 
Sorry I can't help you there. It looks Greek to me as well. In order to edit, xml, I know the default is windows explorer but you need to right click on the xml and pick open with - notepad. Then you will be able to edit. But the rest I am unfamiliar with.

EDIT: Java has its own path already but nothing wrong with having it twice.
 
i was just adding that i made a path. i didnt think it helped. the plus side is im hopefully going to venture into writing java which means that ill be able to do more then a few tweaks here and there when it comes to decompiling. so it wont look like greek for long XD. also notepad++ works great for looking at just about any code you can think of, but im sure ya already know that :P
 
Just was saying that adding another path doesn't hurt...lol

I myself, am just starting in the wonderful world of Java. So, I'm right there with you.
 
Just was saying that adding another path doesn't hurt...lol

I myself, am just starting in the wonderful world of Java. So, I'm right there with you.

i still have a semester or 2 and a few other languages to learn like C# and Javascript but i cant wait to get my hands dirty with some android coding.
 
I keep getting "mode" is not recognized as a operable batch program. Same as "java" and "adb".

Not a problem.

Make sure if you are running a 64 bit windows 7 OS that you download the Java version of 64 bit. That does seem to be the issue with most. Was my issue and Ralkkai issue too.

EDIT: edited OP to reflect lastest version of JAVA.
 
basically you have to make sure you have whatever version of Java that will install in your Program Files folder so if you are on Windows 7 64 bit per say and you have Program Files and Program Files(x86) you need to install Java to the Program Files. most other cases of 32 and 64 bit versions of software really doesnt matter with Windows but this is a case where it does. then if you follow his directions you should get your apk to decompile
 
Installed it to Program Files checked and it was there but still getting: 'mode' is not recognized as an internal or external command,
operable program or batch file.
'java' is not recognized as an internal or external command,
operable program or batch file.
'adb' is not recognized as an internal or external command,
operable program or batch file.
 
From command line u should able to the adb and itll tell u of its installed and if it recognizes ur phone. I wish they made it easier for us to figure this stuff out lol
 
Back
Top Bottom