Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Android App source-code

  • 23-08-2010 02:56PM
    #1
    Registered Users, Registered Users 2 Posts: 234 ✭✭


    Hi folks,
    Quick question for anyone some-way familiar with Android(from a dev point of view)
    Is it possible to dis-assemble or view the source code of an app?
    I'm only an Android user, but there's a couple of apps i'd love to delve into to see just how they work.

    Cheers
    Smartblaa


Comments

  • Registered Users, Registered Users 2 Posts: 18,272 ✭✭✭✭Atomic Pineapple


    No, the best you can get is the class file names, not at the source code.


  • Registered Users, Registered Users 2 Posts: 329 ✭✭EasyBoy1974


    smartblaa wrote: »
    Hi folks,
    Quick question for anyone some-way familiar with Android(from a dev point of view)
    Is it possible to dis-assemble or view the source code of an app?
    I'm only an Android user, but there's a couple of apps i'd love to delve into to see just how they work.

    Cheers
    Smartblaa

    Have you seen dedexer

    http://dedexer.sourceforge.net/

    claims to disassemble dex files, but I'm not sure how much use it would be


  • Registered Users, Registered Users 2 Posts: 18,272 ✭✭✭✭Atomic Pineapple


    Have you seen dedexer

    http://dedexer.sourceforge.net/

    claims to disassemble dex files, but I'm not sure how much use it would be

    Does exactly what I said, lets you at the class file names but thats the best you'll get.
    draffodx wrote: »
    No, the best you can get is the class file names, not at the source code.


  • Registered Users, Registered Users 2 Posts: 1,112 ✭✭✭Dacelonid


    But if dedexer gives you the class files,can you not use JAD to get the java code


  • Registered Users, Registered Users 2 Posts: 18,272 ✭✭✭✭Atomic Pineapple


    Dacelonid wrote: »
    But if dedexer gives you the class files,can you not use JAD to get the java code

    I've never tried JAD.

    Worth a try.


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 280 ✭✭BeciMester


    Android apps don't compile to Java classes but to Dalvik bytecode. It's unique to Android and AFAIK there's no way as of yet to get the source back from a compiled .dex file. There is a tool called baksmali that can show you something that resembles assembly code (at least readable but you really need to know your stuff to make sense of it) but that's it. :(


Advertisement