[Completed] App code from .apk file - XDA Assist

Hi there,
It is possible to extract the app code from an .apk file? Nothing illegal, I just want to figure out how some app mechanics works because there is a game that It driving me crazy and on the Internet there isn't very much so I decided to see it by my self.
Thank you for your help.

ammone95 said:
Hi there,
It is possible to extract the app code from an .apk file? Nothing illegal, I just want to figure out how some app mechanics works because there is a game that It driving me crazy and on the Internet there isn't very much so I decided to see it by my self.
Thank you for your help.
Click to expand...
Click to collapse
Hi and welcome to XDA.
You can use something like apktool to decompile the app, modify it and recompile again.
You can learn a lot from studying the app's code but if you want to do something illegal you won't get much support for that here.

Art Vanderlay said:
Hi and welcome to XDA.
You can use something like apktool to decompile the app, modify it and recompile again.
You can learn a lot from studying the app's code but if you want to do something illegal you won't get much support for that here.
Click to expand...
Click to collapse
Thanks a lot, i'll chekout the apktool! No nothing illegal, just a little bit curious on how some app mechanics work

ammone95 said:
Thanks a lot, i'll chekout the apktool! No nothing illegal, just a little bit curious on how some app mechanics work
Click to expand...
Click to collapse
No worries :good:
Thread closed.

Related

[REQ] .apk Manager.

I'm looking for a .apk Manager.
Not for one on my phone, or to organize the apps on my phone.
What I'm looking for is a Windows application, Win7 64bit compatible, that will organize my 4.7gb worth of .apk's i have on my computer. Ideally, automatically detecting version numbers, and removing old versions of the same app etc.
Good idea, I just use appbrain on my phone.
ps: change the title to [REQ] as there is no app in here.
Sounds like someone had fun downloading a lot of apps?
britoso said:
Good idea, I just use appbrain on my phone.
ps: change the title to [REQ] as there is no app in here.
Click to expand...
Click to collapse
Ahh yes, i should have had it [REQ] vs [APP], you are right. I cannot find a way to change the thread title tho, or i would happily.
bobtentpeg said:
Sounds like someone had fun downloading a lot of apps?
Click to expand...
Click to collapse
<smirk> links are not allowed on here for that sort of thing, but sufficed to say, i use two websites to <cough> obtain <cough> my apps.
Of that 4.7gb of .apk's I'm sure at least 30-40% of that (hell quite possibly more) is outdated versions. Just too much hassle to manually sort through them all.
Re: [APP] .apk Manager.
Good idea, I just use appbrain on my phone.
ps: change the title to [REQ] as there is no app in here.
Click to expand...
Click to collapse
Ahh yes, i should have had it [REQ] vs [APP], you are right. I cannot find a way to change the thread title tho, or i would happily.
Sounds like someone had fun downloading a lot of apps?
Click to expand...
Click to collapse
links are not allowed on here for that sort of thing, but sufficed to say, i use two websites to obtain my apps.
Of that 4.7gb of .apk's I'm sure at least 30-40% of that (hell quite possibly more) is outdated versions. Just too much hassle to manually sort through them all.
Click to expand...
Click to collapse
Edit-advanced editor

[Q] Is it bad to post an apk?

If I've already uploaded an app to the Market, is it alright to post the apk here and not have to worry about people stealing it or ripping the code and making their own version of it?
Even your market version can be ripped and stolen. Its best to upload to mrket first. That way u have the name preserved.
Sent from my Epix 4G using XDA
rpimps said:
If I've already uploaded an app to the Market, is it alright to post the apk here and not have to worry about people stealing it or ripping the code and making their own version of it?
Click to expand...
Click to collapse
It can happen. I don't know of any ways to prevent it, but here's a thread for reference with some tips:
http://forum.xda-developers.com/showthread.php?t=900923
^ Yeah I saw the Davinci thread, that's what made me worried about posting it. I already published it and it's already on Androlib etc so they can't steal the package name, but I spent a lot of time on the code and don't want someone to be able to extract it and create a ripoff version of my game.
If someone downloads it from the Market, can they extract the code and edit it to create their own version of the app, or is it locked somehow?
bumpppppppp
If you post it on the market, here, or anywhere else your code is out in the open. But android is supposed to be open source anyway.
BenKranged said:
If you post it on the market, here, or anywhere else your code is out in the open. But android is supposed to be open source anyway.
Click to expand...
Click to collapse
That's android. Not his app.
Any android APK can decompiled easyly smali or Java code but so is any application on internet, there's a way you can make it hard to decompile, like use ".so" library file for all the code u wanna hide.
Sent from my LG-P500 using XDA Premium App
Hmm, so if I've already posted it in the Market, would posting the apk here basically be the same thing, and I wouldn't be hurting myself? I just want to make sure I'm not making it any easier for thieves/scammers.
In all honesty you're not gonna make it easier or harder for theives. If they want it they will do what they can to get it. Unfortunately most creations have been thought of before and made before. Even if things are slightly changed.
You got your app out there man. Just see how well it does and maybe implement the hints given
Yip, if people want to get to your code, they will, its pretty easy to nab the apk from a device once installed.

[Q] Requesting help with the acquisition of an insidious application.

Good afternoon dear forum dwellers,
I find my self facing a very steep obstacle related to an application. My agricultural family requires the application in order to conduct normal work. The issue i am faced with is two fold. I am unable to download/install the application due to either region restriction or phone restriction.
The notorious application is this: https://play.google.com/store/apps/details?id=com.yara.checkit
So i request the aid and wisdom of those of you that possess far greater abilities than i, in solving this perhaps simple conundrum. My request is the following: Would it be possible for someone to download that application and sub sequentially sent me the .APK file of it so that i may install it manually. Alternatively i am open to any and all suggestions regarding the resolution of the above issue.
Thank you for your time, and i apologies if this post is not in the correct section of the forum,
Humbly yours,
Shallowmist
(PS: I have contacted the application developer regarding the same resolution i have suggested, unfortunetly the support was.... How should i put this? The support leaves a'lot to be desired.)
Shallowmist said:
Good afternoon dear forum dwellers,
I find my self facing a very steep obstacle related to an application. My agricultural family requires the application in order to conduct normal work. The issue i am faced with is two fold. I am unable to download/install the application due to either region restriction or phone restriction.
The notorious application is this: https://play.google.com/store/apps/details?id=com.yara.checkit
So i request the aid and wisdom of those of you that possess far greater abilities than i, in solving this perhaps simple conundrum. My request is the following: Would it be possible for someone to download that application and sub sequentially sent me the .APK file of it so that i may install it manually. Alternatively i am open to any and all suggestions regarding the resolution of the above issue.
Thank you for your time, and i apologies if this post is not in the correct section of the forum,
Humbly yours,
Shallowmist
(PS: I have contacted the application developer regarding the same resolution i have suggested, unfortunetly the support was.... How should i put this? The support leaves a'lot to be desired.)
Click to expand...
Click to collapse
you could most likely use 4shared to get the apk since its free.
Trozzul said:
you could most likely use 4shared to get the apk since its free.
Click to expand...
Click to collapse
4shared but that's assuming that the application has already been uploaded to 4shared correct ?
Shallowmist said:
4shared but that's assuming that the application has already been uploaded to 4shared correct ?
Click to expand...
Click to collapse
i might be, other users upload it, if theres lots be careful what you get because people are bums and they could load it up with Ads or a survey you must do to unlock the app. so you said you talked to the app developer? why not ask him for a apk file?
Trozzul said:
i might be, other users upload it, if theres lots be careful what you get because people are bums and they could load it up with Ads or a survey you must do to unlock the app. so you said you talked to the app developer? why not ask him for a apk file?
Click to expand...
Click to collapse
I did ask them for the apk file they had no idea wtf i was talking about. I got 2 women one on the regular support line one on the "computer service desk" they seemed very surprised anyone was calling them at all, and neither wanted to help. So i don't think the support is going to be the way to go for this.
Shallowmist said:
I did ask them for the apk file they had no idea wtf i was talking about. I got 2 women one on the regular support line one on the "computer service desk" they seemed very surprised anyone was calling them at all, and neither wanted to help. So i don't think the support is going to be the way to go for this.
Click to expand...
Click to collapse
oh i see where you went, im sure someone else made the app for them. at this point this is my last thought of what you can do http://forums.crackberry.com/bb10-a...w-download-apk-file-google-play-store-820107/
im sure its the only way to get the apk.
Trozzul said:
oh i see where you went, im sure someone else made the app for them. at this point this is my last thought of what you can do http://forums.crackberry.com/bb10-a...w-download-apk-file-google-play-store-820107/
im sure its the only way to get the apk.
Click to expand...
Click to collapse
Thank you kindly for the tip, i shall try it out.

[Q] Locally-Stored Android App

I am new to the app scene. I was curious if there was a way to store apps locally, without the need of sales/Play Store/Amazon Store/etc.
I am just looking at storing it locally on a phone, or possibly a tablet, to show to potential clients. And also for portfolio purposes, down the road.
Again, I am a self-professed "noob", so all help is appreciated.
Thank you.
rkariff said:
I am new to the app scene. I was curious if there was a way to store apps locally, without the need of sales/Play Store/Amazon Store/etc.
I am just looking at storing it locally on a phone, or possibly a tablet, to show to potential clients. And also for portfolio purposes, down the road.
Again, I am a self-professed "noob", so all help is appreciated.
Thank you.
Click to expand...
Click to collapse
unless it is your personal app, you will need to get it from one of the stores at some point.
some apps can be downloaded by other means, but that is highly frowned upon, and against the rules to even discuss here (so please dont comment back on it).
if your device is rooted, you could use an app like titanium to make a backup of all the apps. then they would be saved locally, but i dont know how compatible that backup would be if you tried to restore it on other devices.
i would think if its a paid app, there is likely some entitlement verification coded into the app. so if it cant verify through one of the stores, it likely wont work properly if at all.
It would be apps that I build. So it would be for my own personal use. Like I said, it's to show potential clients. I would be using it to show how an app works, as a display to the client.
It will be my work. And it will be strictly for my clients.
All help is appreciated.
Thanks.
rkariff said:
It would be apps that I build. So it would be for my own personal use. Like I said, it's to show potential clients. I would be using it to show how an app works, as a display to the client.
It will be my work. And it will be strictly for my clients.
All help is appreciated.
Thanks.
Click to expand...
Click to collapse
once you install an app on any device, from any source, you can use
1.apk extractor
2.es file explorer
to have the apk file, which can then be run on other devices as an installer.
or, you could dowbnload the apk straight from google play, search how with the search button.
Ok help me understand this.
It will be your app. One you make for your clients. which would mean your doing all the coding and building of the app, But you dont know how to store a simple apk on your device?
zelendel said:
Ok help me understand this.
It will be your app. One you make for your clients. which would mean your doing all the coding and building of the app, But you dont know how to store a simple apk on your device?
Click to expand...
Click to collapse
Yea, that was kind of confusing me too.
If you build the app, you can store and show it on any device its compatible.
I must be missing the issue here.
Sent from my LG-VS980 using XDA Premium 4 mobile app
Yeah, like I said, I am completely new to this. I haven't even developed an app yet. I just wanted to visually, in my head, figure out how to display it to clients. I have clients. It's just a matter of developing apps, as far as coding.
I'm sorry if my questions are either dumb or easily answered. Thanks for all the help, though.
Regards.
rkariff said:
Yeah, like I said, I am completely new to this. I haven't even developed an app yet. I just wanted to visually, in my head, figure out how to display it to clients. I have clients. It's just a matter of developing apps, as far as coding.
I'm sorry if my questions are either dumb or easily answered. Thanks for all the help, though.
Regards.
Click to expand...
Click to collapse
OK man then you are getting way ahead of yourself. First your gonna need to learn a few programing languages. Like Java and C+. Hell I would even start by reading these forums for a while as you seem like you really have no idea what your getting into.
zelendel said:
OK man then you are getting way ahead of yourself. First your gonna need to learn a few programing languages. Like Java and C+. Hell I would even start by reading these forums for a while as you seem like you really have no idea what your getting into.
Click to expand...
Click to collapse
Yeah, that's what I thought. Thanks for all your help, guys.

Edit APP and Re-publish to play store

Hello,
I import product from China, they have their own APP.
I rebrand their product and sell.
How can I edit their app with my brand name and change appearance and upload back to play store to be able to install by my clients ?
Looking forward for kind help.
Thanks & Warm Regards
saurabhvasa said:
Hello,
I import product from China, they have their own APP.
I rebrand their product and sell.
How can I edit their app with my brand name and change appearance and upload back to play store to be able to install by my clients ?
Looking forward for kind help.
Thanks & Warm Regards
Click to expand...
Click to collapse
You're literally asking for help on how to steal someone else's property?
No, I have got approval from factory itself, they have Chinese manual, which i dont know .. so they said you can do it yourself and they have already given permission agreement for that.
CosmicDan said:
You're literally asking for help on how to steal someone else's property?
Click to expand...
Click to collapse
saurabhvasa said:
No, I have got approval from factory itself, they have Chinese manual, which i dont know .. so they said you can do it yourself and they have already given permission agreement for that.
Click to expand...
Click to collapse
Alright, fair enough. I've done this work myself before.
This should be relatively easy, most of the resources will be in the res folder. You'll need to use APKTool and decompile the APK, edit XML's and replace png's and such.
Sometimes they hard-code strings though and it might be in the smali files.
You will also need to change the package name though. This involves a mass find-and-replace in smali, the Android Manifest XML, and renaming the packages (folders).
You can re-sign the APK yourself with zipsigner once recompiled, that's all you need for Google Play distribution. Apart from a developer account of course.
Appreciate your reply.
But im not technically well versed with this ... any website or video tutorial where step step process is mentioned will be good for me ...
CosmicDan said:
Alright, fair enough. I've done this work myself before.
This should be relatively easy, most of the resources will be in the res folder. You'll need to use APKTool and decompile the APK, edit XML's and replace png's and such.
Sometimes they hard-code strings though and it might be in the smali files.
You will also need to change the package name though. This involves a mass find-and-replace in smali, the Android Manifest XML, and renaming the packages (folders).
You can re-sign the APK yourself with zipsigner once recompiled, that's all you need for Google Play distribution. Apart from a developer account of course.
Click to expand...
Click to collapse
saurabhvasa said:
Appreciate your reply.
But im not technically well versed with this ... any website or video tutorial where step step process is mentioned will be good for me ...
Click to expand...
Click to collapse
There are plenty out there. The key tool is called "APKTool", try googling for something like "modding resources with APKTool". You will have to learn, there is no shortcut I'm afraid!
Super .. Thanks a lot ..
CosmicDan said:
There are plenty out there. The key tool is called "APKTool", try googling for something like "modding resources with APKTool". You will have to learn, there is no shortcut I'm afraid!
Click to expand...
Click to collapse

Categories

Resources