mirror of
https://github.com/iAmInActions/random-scripts.git
synced 2024-11-23 20:50:13 +00:00
Add droidclone
A set of utility scripts for copying apps and files between adb-capable phones using a computer. Preserves the path and attributes.
This commit is contained in:
parent
aae0945c85
commit
803431985e
4
droidclone/apps/list.txt
Normal file
4
droidclone/apps/list.txt
Normal file
@ -0,0 +1,4 @@
|
||||
org.telegram.messenger
|
||||
com.ecosia.android
|
||||
com.discord
|
||||
free.rm.skytube.oss
|
22
droidclone/apps/pull-apps.sh
Normal file
22
droidclone/apps/pull-apps.sh
Normal file
@ -0,0 +1,22 @@
|
||||
#!/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
|
||||
|
5
droidclone/data/pull-sd-content.sh
Normal file
5
droidclone/data/pull-sd-content.sh
Normal file
@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
mkdir sdcard >/dev/null
|
||||
|
||||
adb pull "/sdcard/" sdcard/
|
3
droidclone/data/push-sd-content.sh
Normal file
3
droidclone/data/push-sd-content.sh
Normal file
@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
adb push "sdcard" "/"
|
Loading…
Reference in New Issue
Block a user