[Q] How to open APKs in Eclipse? - Android Q&A, Help & Troubleshooting

We use Eclipse for making android apps. Is there any way to open APK files in Eclipse, so I can view their source folder, etc. and do any editing? I've used APK Multi tool and APK Manager, but I wanted to open an APK in Eclipse. Any help would be appreciated.
Sent from heaven!

anasdcool71 said:
We use Eclipse for making android apps. Is there any way to open APK files in Eclipse, so I can view their source folder, etc. and do any editing? I've used APK Multi tool and APK Manager, but I wanted to open an APK in Eclipse. Any help would be appreciated.
Sent from heaven!
Click to expand...
Click to collapse
Not possible, APKs are compiled code. there is no source left to see. Your best bet is to contact the developer and ask for source code

lkrasner said:
Not possible, APKs are compiled code. there is no source left to see. Your best bet is to contact the developer and ask for source code
Click to expand...
Click to collapse
Alright. Well, thanks for the help!
Sent from heaven!

Not Quite
That's false you can Indeed see the source code with a little help of dex2jar and apktool.
AND hope there is no code obfuscation like proguard.
Regards,
D'Pepino

Related

configure eclipse to use entire Android source base

How can I configure Eclipse to use the entire Android source code?
I'm working on the file settings.apk using eclipse...but with the editor, for example, I can't import "android.os.SystemProperties" (error: 'cannot be resolved').
there's a guide to configure eclipse to work on system app???
thanks!
s_dimaio said:
How can I configure Eclipse to use the entire Android source code?
I'm working on the file settings.apk using eclipse...but with the editor, for example, I can't import "android.os.SystemProperties" (error: 'cannot be resolved').
there's a guide to configure eclipse to work on system app???
thanks!
Click to expand...
Click to collapse
Same question... did you ever find an answer?
Sorry for bumping an old thread, but... might anyone have an answer for that?
Solution
Hi all,
I have found solution for this problem.
:good:

Decompile Settings.apk

Hey community, im looking to decompile Settings.apk in order to add my own features in. Basically in the same way AOKP does with its Rom Control settings. I have decompiled the apk using apktool but the xml files were not included so i could not put it into eclipse to add settings and such. can someoen tell me how to go about this?
Bump
Sent from my Galaxy Nexus using Tapatalk 2
This is a feature found in multiple roms on all devcies yet nobody can help me out ?
Sent from my Galaxy Nexus using Tapatalk 2
Doesnt eclipse need java source code?
You should use Virtuous Ten Studio to decompile the apk and make sure "Generate Java Source" is checked
for adding your own features in settings....decompile with dependencies define new header in strings.xml and give corresponding image files and create the neccesary smali files.... i don know much of programming refer this thread for basic mods............
.http://forum.xda-developers.com/showthread.php?t=1576565
Jonny said:
Doesnt eclipse need java source code?
You should use Virtuous Ten Studio to decompile the apk and make sure "Generate Java Source" is checked
Click to expand...
Click to collapse
Ok i did this. great program by the way, but its java source is just generated as .class files and no .java files. Everything else was perfect but i need the .java files to actually edit and write new methods.
ajay8055 said:
for adding your own features in settings....decompile with dependencies define new header in strings.xml and give corresponding image files and create the neccesary smali files.... i don know much of programming refer this thread for basic mods............
.http://forum.xda-developers.com/showthread.php?t=1576565
Click to expand...
Click to collapse
This explains hwo to edit the xml files in detail so thank yo for this. but it doesn thelp with adding any settings
?????
Sent from my Galaxy Nexus using Tapatalk 2

How to edit APK files

I am looking for apk editor that help me to fix some of issues on my created app for android.
Thanks in advance.
Hello, @bkgroup,
Please take a look at apktool, it is my favorite tool for .apk editing.
thenookieforlife3 said:
Hello, @bkgroup,
Please take a look at apktool, it is my favorite tool for .apk editing.
Click to expand...
Click to collapse
Thanks for quick resolution. I have heard about android app, that we can directly edit file from that. Is that android app to edit apk file is effective? does it really edit apps like apktool?
try virtuous ten studio, much better.

Re Create APK File

Hey Everyone ! Guys Firstly If I Posted In Wrong Section Im Sory For That But I Need To Some Help. I Got Source Codes Of An Android APK File I Want To Edit That As I Want. There Is "Class Files" I Have Edited In Text File And Converted Back To Class File But IDK If It Works So How Can I Edit That Codes In A Class File ? And Second After DoThat How Can I Make It APK Again I Mean How to Re Create APK File With That My Own Codes. Someone Can Help Me ? Its So Much Important , Thanks Everyone
I think, if have all necessary files, you need to compile a project from android studio.
There are several topics that will help you.
Rierei said:
I think, if have all necessary files, you need to compile a project from android studio.
There are several topics that will help you.
Click to expand...
Click to collapse
its an anroid game so animations , graphics etx hard to do so i just want to change dex file of apk , is that possible and how , i just wondwer it
umutt1905 said:
Hey Everyone ! Guys Firstly If I Posted In Wrong Section Im Sory For That But I Need To Some Help. I Got Source Codes Of An Android APK File I Want To Edit That As I Want. There Is "Class Files" I Have Edited In Text File And Converted Back To Class File But IDK If It Works So How Can I Edit That Codes In A Class File ? And Second After DoThat How Can I Make It APK Again I Mean How to Re Create APK File With That My Own Codes. Someone Can Help Me ? Its So Much Important , Thanks Everyone
Click to expand...
Click to collapse
From the way you worded it it sounds more like you have a decompiled apk, not the source code for the apk. Depending on what you want to edit you may need the actual source code to make the changes. What are you trying to do?
zelendel said:
From the way you worded it it sounds more like you have a decompiled apk, not the source code for the apk. Depending on what you want to edit you may need the actual source code to make the changes. What are you trying to do?
Click to expand...
Click to collapse
I m trying to get admin permissions by editing codes. i got some codes with dex2jar from classses.dex file . and game got commands ... some commands like give money , health , energy etc need admin or modarator permissions. for example "super("Armor", SocialEnums.UserRole.Admin);" in codes its admin but i can change it to Player so then i can use that comman.
if i cant get admin - modarator permissins then i can edit prices of items to free but as i said i need to learn how to re-create apk
umutt1905 said:
I m trying to get admin permissions by editing codes. i got some codes with dex2jar from classses.dex file . and game got commands ... some commands like give money , health , energy etc need admin or modarator permissions. for example "super("Armor", SocialEnums.UserRole.Admin);" in codes its admin but i can change it to Player so then i can use that comman.
if i cant get admin - modarator permissins then i can edit prices of items to free but as i said i need to learn how to re-create apk
Click to expand...
Click to collapse
What you are trying to do is considered cracking an app which makes it warez. This is banned on this site. You will find no help doing what you want. As for decompiling and recompiling an apk there are tut all over the site. Search and you fill find what you need. But take this as your warning. Asking for help cracking the app will get you banned. Take this as your only warning.
zelendel said:
What you are trying to do is considered cracking an app which makes it warez. This is banned on this site. You will find no help doing what you want. As for decompiling and recompiling an apk there are tut all over the site. Search and you fill find what you need. But take this as your warning. Asking for help cracking the app will get you banned. Take this as your only warning.
Click to expand...
Click to collapse
ok , thanks for warning but im working on hack so asked here. working on money hack and btw i know developers of that game so i have no bad goal to do on servers and already cant if i could get admin permissions. then can you guidance me to recomplng apk , i coudnt find on forums its so complex to find tnx

Knock code for nougat

Hi,
I was wondering if anyone with the expertise would know how to compile a module that was made for marshmallow to bring it to nougat. Sadly the developer has abandoned the project and closed the xda thread, while not responding to messages.
https://forum.xda-developers.com/xposed/modules/lp-knock-code-screen-t3272679
that is the module in question. I have tried to decompile the apk and recompile after making a few changes, however it just worsened the case.
mindzombies said:
Sadly the developer has abandoned the project and closed the xda thread, while not responding to messages.
Click to expand...
Click to collapse
Any chance you cloned its git repo? Not only he won't answer any message but he had the incredibly selfish-prick act of deleting the git repo for Knock code so no one can work on it!
acidrums4 said:
Any chance you cloned its git repo? Not only he won't answer any message but he had the incredibly selfish-prick act of deleting the git repo for Knock code so no one can work on it!
Click to expand...
Click to collapse
acidrums4 said:
so no one can work on it!
Click to expand...
Click to collapse
Nor kang it!
Sent from my lithium using XDA Labs
Yep, that is the main reason I haven't been able to work on it myself. Nor am i good enough to reverse engineer the apk.
Here you have the source code.
I haven't the ability to work on it for myself and it would be safer if someone more capable would do it, but at least i gave you the source code and hope it'a useful.
I would recommend you as well to open a new thread with the source code link on first page to get more people to work on it and hope we can get the knock code back.
Big ups, tell me if it was helpful.
https://drive.google.com/file/d/1bDILNuiQSCIOx2BXDGxpagGf6UeoerbJ/view?usp=drivesdk
Edit: remember this is a non-flashable zip, in case you were wondering, it's the apk just decompiled, unzip it and inside you have the whole amount of java files that contain the source code
You will need an app able to unzip files and read java files.
Otherwise download it to your computer (recommended)

Categories

Resources