Last active
December 10, 2024 05:49
-
-
Save palawer/2769aab28586104fe088bfc6a5d3467d to your computer and use it in GitHub Desktop.
Get apk from android device
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# More alternatives: | |
# https://github.com/mitmproxy/android-unpinner | |
# https://github.com/httptoolkit/frida-interception-and-unpinning | |
# Get apks: | |
# https://github.com/EFForg/apkeep | |
# pull apk from device | |
adb shell pm list packages | |
adb shell pm path com.example.someapp | |
adb pull /data/app/com.example.someapp.apk path/to/desired/destination | |
# if there are more than one apk, download all of them and merge | |
adb pull /data/app/~~LkDYxVZ3a2y4IQC0u0Hz5Q==/com.airbnb.android-56eUv9zFTUHdQRXowU7O6w==/base.apk ./apk_files/ | |
adb pull /data/app/~~LkDYxVZ3a2y4IQC0u0Hz5Q==/com.airbnb.android-56eUv9zFTUHdQRXowU7O6w==/split_config.arm64_v8a.apk ./apk_files/ | |
adb pull /data/app/~~LkDYxVZ3a2y4IQC0u0Hz5Q==/com.airbnb.android-56eUv9zFTUHdQRXowU7O6w==/split_config.en.apk ./apk_files/ | |
adb pull /data/app/~~LkDYxVZ3a2y4IQC0u0Hz5Q==/com.airbnb.android-56eUv9zFTUHdQRXowU7O6w==/split_config.xxhdpi.apk ./apk_files/ | |
# https://github.com/REAndroid/APKEditor/releases/tag/V1.3.9 | |
# apk_files is a folder with base and split apks | |
java -jar ~/bin/APKEditor-1.3.9.jar m -i apk_files | |
# add mitm certificate | |
apk-mitm someapp.apk --certificate ~/.mitmproxy/mitmproxy-ca-cert.pem --apktool ~/bin/apktool_2.9.3.jar | |
# push to the device | |
adb install -r someapp.apk |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment