Created
November 27, 2018 03:27
-
-
Save Sloaix/b469393c6226f9eef5fa63bb321c96d7 to your computer and use it in GitHub Desktop.
pull android apk from device
This file contains 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
#! /usr/local/bin/fish | |
set packages (adb shell pm list packages | awk -F':' '{print $2}'); | |
for pkg in $packages; | |
set apk_path (adb shell pm path $pkg | awk -F':' '{print $2}'); | |
set path ~/Desktop/apks/$pkg.apk | |
echo $path | |
adb pull $apk_path $path | |
end; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment