Giter Site home page Giter Site logo

apk_ripper's Introduction

How to rip apps from your Android device on a Linux computer.

  • Download the apk.sh script.
  • Download the bit.sh script (found here).
  • Run the bit.sh file using bit apk.sh apk.

The following steps are if you want to decode the app and look at the underlying code. If you just want the APK, the above scripts are enough.

  • Download APKTool from here.
  • Run chmod u+x apktool.sh.
  • Open apktool.sh.
    • Remove the line that says libdir='$progdir'.
    • In the following line, remove the usage of libdir (i.e. "$libdir/$jarfile" becomes just $jarfile).
  • Save and close apktool.sh.
  • Move apktool.sh and apktool.jar into /usr/local/bin/.
    • To do this, run the command sudo cp apktool.sh /usr/local/bin, and enter your password.
    • Do the same for apktool.jar
  • Open your ~/.bashrc file, and just below the line alias apk='bash apk.sh, add the following lines
    • alias list_apk='adb shell pm list packages
    • alias decode_apk='sudo bash apktool.sh d'

How to use it

  • Connect your phone to your computer, and make sure ADB debugging is enabled on your phone.
  • List all apps installed on your phone.
    • In the terminal, run the command list_apk | grep <keyword>, where <keyword> is some word that is contained in the app's name.
    • Make sure you make the keyword clear enough to only get one result.
      • For example, "key" may work, but several apps could use the word "key," so narrow it down by using a keyword like "monkey," where it would only pertain to one app.
  • Run apk <keyword> to download the APK to your desktop.
    • You may stop here and distribute the APK as is, or you may continue on.
  • Use the command decode_apk <filename>.apk, where <filename>.apk is the name of the file generated by the previous step.
  • This will generate code that you can examine to find what you want.
    • NOTE: it will not be in human-readable Java.

apk_ripper's People

Contributors

brian-chau avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.