News for hackers. Stuff that matters.
Re:Introducing Apk2Gold, an easy and comprehensive Android A... by dschuler on Friday January 25, 2013 @06:59PM (#5118514)
I'm amazed at how many comments there are in line with "OMG this is amazing, now I can decompile thousands of apps blah blah". I write Android apps all day long, but I have yet to find a (legitimate) need to decompile someone else's apps. I suspect all this decompiling, repackaging, and re-signing is designed for people to strip license checks, remove ads, add some other nonsense, and repackage the whole deal for distribution on 3rd-party app stores or websites, without the consent of any of the original developers. I've seen this with my own apps, which are repackaged with different resources, while keeping the code mostly intact. The result is then re-published by someone else. Instead of spending so much energy ripping off other apps, why not create something new? We certainly haven't exhausted what's possible in terms of app breadth and quality.
Re:Introducing Apk2Gold, an easy and comprehensive Android A... by daeken on Friday January 25, 2013 @07:23PM (#5118597)
I wrote the first native Dalvik decompiler, and it wasn't used for any of the things you mention. Decompilers of this sort are tremendously useful tools in security work.
Re:Introducing Apk2Gold, an easy and comprehensive Android A... by lxdvs on Friday January 25, 2013 @07:57PM (#5118718)
As I noted in the Github Readme, this tool will not generate code that you will able to REcompile. My tool does a lot of things, but straight-up repackaging/ripping off other people's apps is exactly what apk2gold is bad at.
Re:Introducing Apk2Gold, an easy and comprehensive Android A... by javajosh on Friday January 25, 2013 @07:20PM (#5118582)
Word. But that said, one totally legit use is learning from other coders. I figure as long as you learn from and don't just rip off stuff, apk decoding could enable an almost front-end-web level of collaborative learning.
Re:Introducing Apk2Gold, an easy and comprehensive Android A... by megablast on Friday January 25, 2013 @07:45PM (#5118672)
I guess someone could use it to check that assets were not being stolen, by the creator of the app.
Re:Introducing Apk2Gold, an easy and comprehensive Android A... by nviennot on Friday January 25, 2013 @04:31PM (#5117767)
Haha... I like this :)

So for you guys that are using this to decompile, say 450,000 android apps in a row, I highly recommend to use:

    ulimit -m $((1024*1024))
These tools sometimes flip out, both dex2jar, and jd-core.
Re:Introducing Apk2Gold, an easy and comprehensive Android A... by lxdvs on Friday January 25, 2013 @04:54PM (#5117905)
would have been impossible without your work :) thanks man
Re:Introducing Apk2Gold, an easy and comprehensive Android A... by nviennot on Friday January 25, 2013 @05:10PM (#5117983)
I can't wait to be able to release the sources of this bad boy:

http://viennot.biz/google-play-crawler-dashboard.png

http://viennot.biz/google-play-search.png

Expect it in April :)

EDIT: Notice in the search screenshot how I'm missing the R references. This problem is addressed by lxdvs in Apk2Gold.

Re:Introducing Apk2Gold, an easy and comprehensive Android A... by plasma on Friday January 25, 2013 @07:23PM (#5118594)
What analytics app is that in the dashboard screenshot?
Re:Introducing Apk2Gold, an easy and comprehensive Android A... by brian_cloutier on Monday January 28, 2013 @04:01PM (#5130604)
Re:Introducing Apk2Gold, an easy and comprehensive Android A... by lxdvs on Friday January 25, 2013 @05:26PM (#5118066)
Oh, wow, this is great. &term=SECRET+KEY&...
Re:Introducing Apk2Gold, an easy and comprehensive Android A... by nviennot on Friday January 25, 2013 @05:37PM (#5118117)
[deleted]

edit: removed, some people might get offended.

Re:Introducing Apk2Gold, an easy and comprehensive Android A... by lxdvs on Friday January 25, 2013 @06:02PM (#5118245)
just like that.
Re:Introducing Apk2Gold, an easy and comprehensive Android A... by bvdbijl on Sunday January 27, 2013 @05:00AM (#5123799)
This is amazing, nice job.
Re:Introducing Apk2Gold, an easy and comprehensive Android A... by wting on Friday January 25, 2013 @04:49PM (#5117869)
I'll definitely check this out, thanks lxdvs! I've been doing some research into Android apps and agree that the jumping through all the hoops with dex2jar, jd-gui (which fails to work for me on Linux), etc manually has been a pain.

Another similar tool you might want to look into is Androguard: https://code.google.com/p/androguard/

Re:Introducing Apk2Gold, an easy and comprehensive Android A... by lxdvs on Friday January 25, 2013 @04:56PM (#5117914)
thats totally sweet. Actually had not seen that, which is surprising considering the research I've been doing for this project. Thanks for the heads up!
Re:Introducing Apk2Gold, an easy and comprehensive Android A... by iBotPeaches on Friday January 25, 2013 @05:44PM (#5118160)
Well once v1.5.2 is out. You can trash that 8mb apktool.jar. I got Proguard in v1.5.2 so the jar is only 2.2mb, on top of a lot of fixes.
Re:Introducing Apk2Gold, an easy and comprehensive Android A... by lxdvs on Friday January 25, 2013 @06:51PM (#5118478)
I'm into it. Considering including apktool as submodule and building alongside.
Re:Introducing Apk2Gold, an easy and comprehensive Android A... by testimoney on Friday January 25, 2013 @04:00PM (#5117599)
Does this decompile to the exact code the developer wrote (without comments etc...) ? Or does this decompile to a usable Java code ?
Re:Introducing Apk2Gold, an easy and comprehensive Android A... by lxdvs on Friday January 25, 2013 @04:04PM (#5117619)
It doesn't even decompile to "useable" code, but it does compile to code that will give you the gist of what what the intention was and what the actual commands are.

Decompilation to java is still a lossy process; if you want a non-lossy process you can check out APKTool which will encode/decode Smali (a Dalvik VM representation/assembly lang). But then you have to learn Smali...

Re:Introducing Apk2Gold, an easy and comprehensive Android A... by dpeck on Friday January 25, 2013 @05:18PM (#5118035)
You say that as if its a bad thing, smali is a pleasure to read/reverse compared to a lot of other "assembly".

On top of that, using this approach you can edit and rebuild the apk. jd-gui and company are nice, but often times I prefer to just skip ahead to the smali and really know whats going on.

Re:Introducing Apk2Gold, an easy and comprehensive Android A... by lxdvs on Friday January 25, 2013 @05:38PM (#5118122)
Totally agree with everything you just said! I'm not down on Smali; obviously its incredibly powerful because you can tweak and baksmali. I just personally have no need to modify and rebuild Dalvik.
Re:Introducing Apk2Gold, an easy and comprehensive Android A... by crowell on Friday January 25, 2013 @03:22PM (#5117417)
very cool. How does the output compare with something like Virtuous 10 Studio?
Re:Introducing Apk2Gold, an easy and comprehensive Android A... by lxdvs on Friday January 25, 2013 @03:37PM (#5117496)
So I have not actually used V10S (dont have a windows machine for one thing), but my impression is that it was only for smali code. This decompiles to Java, and its for Linux/OSX.

I would say that V10S is for small modification/hax, and java decompilation is for understanding how people did things/what they are doing.

Also becoming a smali god is hard.

Re:Introducing Apk2Gold, an easy and comprehensive Android A... by crowell on Saturday January 26, 2013 @12:27PM (#5120986)
V10S goes to java as well. I've really enjoyed using it and the work flow is quite nice.