mirror of
https://github.com/iAmInActions/random-scripts.git
synced 2026-01-15 13:40:05 +00:00
A set of utility scripts for copying apps and files between adb-capable phones using a computer. Preserves the path and attributes.
23 lines
417 B
Bash
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
|
|
|