软件与参考

apktool https://ibotpeaches.github.io/Apktool/
jadx https://github.com/skylot/jadx
bytecode-viewer https://github.com/Konloch/bytecode-viewer
JDK https://www.oracle.com/technetwork/java/javase/downloads/index.html
Android Studio & Android SDK https://developer.android.com/studio/
Android NDK https://developer.android.com/ndk/downloads/
IDA https://www.hex-rays.com/products/ida/
ApkStudio https://surendrajat.github.io/ApkStudio/
ApkStudio https://github.com/vaibhavpandeyvpz/apkstudio/releases
uber-apk-signer https://github.com/patrickfav/uber-apk-signer
smali https://github.com/JesusFreke/smali

MacOS也可以用brew安装部分软件

1
2
3
brew install android-platform-tools
brew install android-ndk
brew install android-sdk

常用命令

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
adb shell
adb push ./xxx /storage/emulated/legacy/Download
adb pull /data/data/com.xxx.yyy/
adb pull /data/app/com.xxx.yyy/base.apk

adb forward tcp:8000 jdwp:PID
adb forward tcp:23946 tcp:23946
adb forward --remove tcp:23946

apktool b -o ./xxx_repack.apk ./xxx
apktool d xxx.apk

keytool -genkey -v -keystore xxx.keystore -alias alias_name -keyalg RSA -keysize 2048 -validity 10000
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore xxx.keystore xxx.apk alias_name

IDA:
adb push ./android_x86_server /data
android shell: /data/android_x86_server