diff --git a/droidclone/apps/list.txt b/droidclone/apps/list.txt new file mode 100644 index 0000000..613a97b --- /dev/null +++ b/droidclone/apps/list.txt @@ -0,0 +1,4 @@ +org.telegram.messenger +com.ecosia.android +com.discord +free.rm.skytube.oss diff --git a/droidclone/apps/pull-apps.sh b/droidclone/apps/pull-apps.sh new file mode 100644 index 0000000..1aeac93 --- /dev/null +++ b/droidclone/apps/pull-apps.sh @@ -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 + diff --git a/droidclone/data/pull-sd-content.sh b/droidclone/data/pull-sd-content.sh new file mode 100644 index 0000000..337e87f --- /dev/null +++ b/droidclone/data/pull-sd-content.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +mkdir sdcard >/dev/null + +adb pull "/sdcard/" sdcard/ diff --git a/droidclone/data/push-sd-content.sh b/droidclone/data/push-sd-content.sh new file mode 100644 index 0000000..5edbdfe --- /dev/null +++ b/droidclone/data/push-sd-content.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +adb push "sdcard" "/"