how can get the exact source code from an apk - C++ or Other Android Development Languages

please help me there is an apk i need to add a feature to but i don't have the source code.. i tried different compilers but they are giving me something different .

There is no source code in apk file. Such file contains only compiled files, which you may try to decompile using decompiler. You will never get exact code because some information is lost during compilation process (eg. code comments).

thanks for that brother

Apart from cracking, what can be the real use ?

Related

[Q] Decompile, Edit Code and Re-compile to APK for android

Hello everyone
I have a question, first look at what I did.
I want to edit code of apk.
First, I use dex2jar. I can convert from APK to JAR file.
Second, I use JD. I can convert from JAR to Java source code.
Then I am trying to import these code into eclipse (or other editors) but it is not working.
Is there any possible way to edit the code?
I know we can edit smali but I think it is so much difficult.
I would be easier if I can edit in java source code and compile again to APK.
Thanks
Please use the Q&A Forum for questions Thanks
Moving to Q&A
It's not that easy. You can decompile (dex2jar & jd) the code to read it, do some research, etc. but this is a one way trip. If you want to modify something you will have to learn smali.
so, you mean the only way to modify code is smali?

[Q] Files which should exist in the java code

Hey guys,
recently i was trying to look in the code of ingress and i noticed that some files in some directories are not available in the java code (jdgui) but they exist after decompiling in .smali. How does this work? How can i see the java of this smali? Has anyone got an idea?
Directory:
Ingress_1_20_0-disasm\smali\com\nianticproject\ingress\shared\f\t.smali
ProHex said:
Hey guys,
recently i was trying to look in the code of ingress and i noticed that some files in some directories are not available in the java code (jdgui) but they exist after decompiling in .smali. How does this work? How can i see the java of this smali? Has anyone got an idea?
Directory:
Ingress_1_20_0-disasm\smali\com\nianticproject\ingress\shared\f\t.smali
Click to expand...
Click to collapse
You would need to see the pre-compiled source code. Most likely not going to happen unless the app is open source
Wayne Tech S-III
You can try Broodplank's 'Apk to Java'. It will decompile the apk into Eclipse project like tree with Java codes. But as a downside the source codes gives errors and it most probably won't compile too.
Sent via Phone

[Q] Modifying Smali Code and recompile it.

I have read all the threads on the topic of decompiling APK file and recompiling it, and so far I am successful in decompiling and recompiling it.And now I want to make some changes in smali files like change package name and remove some features, But I don't know smali language, so Is there a way that I can convert smali files into Android JAVA project which I can import into Eclipse or I must have to learn smali language to achieve what I want.
Thanks in Advance
decompilerr said:
I have read all the threads on the topic of decompiling APK file and recompiling it, and so far I am successful in decompiling and recompiling it.And now I want to make some changes in smali files like change package name and remove some features, But I don't know smali language, so Is there a way that I can convert smali files into Android JAVA project which I can import into Eclipse or I must have to learn smali language to achieve what I want.
Thanks in Advance
Click to expand...
Click to collapse
It can be done with smali also ....
Only thing is you need to be tricky ....[emoji6]
Am not writing the procedure here coz changing package name doesn't sounds good for me [emoji1] I always respect efforts of original developers (some kangers always do change name and remove some features and claim the apk as theirs in generally am saying don't get hurted )
So I just want to confirm that changing package name and removing some features is possible via smali editing no need to convert the apk to java source .......
Press Thanks Button If You like My Work & Posts?

[Help] IDE for edit code Android System

Hi all,
I'm a new bie in Platform Android Development, i have a problem, hope you help me resolve it.
I downloaded source code Android System to build my own ROM, i use Notepad++ to edit code, but it not easy, and i want to add source code to a IDE for edit code easily. But i didnt find an IDE for it.
Any one used it?

Where are the website addresses in apk source code?

Hi, I'm trying to change the website addresses in an apk called popcorn time so that i could change the movie sources. But i have no clue which part of the source has the addresses. The tool i used is apk multi-tool. Also the app is open source. Thanks

Categories

Resources