Giter Club home page Giter Club logo

android_apk_tool's Introduction

android_apk_tool

Android Apk Deompile and resign tools

NOTICE:

When use jarsigner to resign the new apk, it should use Java 1.6, 1.7 has some problems. export JAVA_HOME=/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/

Decompile apk

./apktool D name.apk

Build apk

./apktool B name/

dex2jar

sh /path/to/dex2jar-version/d2j-dex2jar.sh /path/to/someApk.apk

If you are still using the old version dex2jar-0.0.9.15, then use

cd dex2jar-0.0.9.15 
./dex2jar.sh classes.dex

Generate the keystore

keytool -genkey -v -keystore android_apk_tool.keystore -alias android_apk_tool -keyalg RSA -keysize 2048 -validity 1000000

alias:android_apk_tool pass:pjq.me

Resign APK

cd resign_tool
./resign_apk.sh path_to_apk.apk

Generate the keystore

keytool -genkey -v -keystore android_apk_tool.keystore -alias android_apk_tool -keyalg RSA -keysize 2048 -validity 1000000

alias:android_apk_tool pass:pjq.me

Resign APK

cd resign_tool
./resign_apk.sh path_to_apk.apk

adbw.sh

adb wrapper bash script for the situation when more than one devices are connected.

./adbw.sh logcat 
./adbw.sh install path_to_apk.apk

Or you can move the adbw.sh to /usr/local/bin, this would be better

cp adbw.sh /usr/local/bin/adbw

Usage:

pengjianqings-iMac:android_apk_tool pengjianqing$ adbw logcat
Find more than one device:
1:192.168.56.101:5555   device
2:0149B33D1600C014  device
Please select your devices: 2

jd-gui

Lunch the jd-gui to read the jar file generated by dex2jar

jenv

tool to setup the Java home

https://github.com/gcuisinier/jenv

Reference

android_apk_tool's People

Contributors

jianqingpengsap avatar pjq avatar

Watchers

VincentFeng 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.