Files
random-scripts/droidclone/apps/pull-apps.sh
iAmInAction 803431985e Add droidclone
A set of utility scripts for copying apps and files between adb-capable phones using a computer. Preserves the path and attributes.
2023-07-08 15:18:19 +00:00

23 lines
417 B
Bash

#!/bin/bash
txtfile=$(cat list.txt)
echo "Android App pull"
echo "(c) 2023 mueller_minki; Licensed under GPL3"
mkdir out >/dev/null
for i in $txtfile
do
echo "Getting location of $i..."
apkpath=$(adb shell pm path "$i" | grep -oP "^package:\K.*")
echo "Localising finished."
mkdir "out/$i"
for p in $apkpath
do
echo "Pulling $p"
adb pull "$p" "out/$i"
echo "Pulling finished."
done
done