Skip to content

Instantly share code, notes, and snippets.

@Sloaix
Created November 27, 2018 03:27
Show Gist options
  • Save Sloaix/b469393c6226f9eef5fa63bb321c96d7 to your computer and use it in GitHub Desktop.
Save Sloaix/b469393c6226f9eef5fa63bb321c96d7 to your computer and use it in GitHub Desktop.
pull android apk from device
#! /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