From 6667309c1a2d19dbe77d4e938b5aec320782376d Mon Sep 17 00:00:00 2001 From: stupidcomputer Date: Mon, 4 Nov 2024 00:06:45 -0600 Subject: [PATCH] declarative app installation method for phone --- boxes/phone/init/.gitignore | 1 + boxes/phone/init/apps | 18 ++++++++++++++++++ boxes/phone/init/main.sh | 6 ++++++ 3 files changed, 25 insertions(+) create mode 100644 boxes/phone/init/.gitignore create mode 100644 boxes/phone/init/apps create mode 100755 boxes/phone/init/main.sh diff --git a/boxes/phone/init/.gitignore b/boxes/phone/init/.gitignore new file mode 100644 index 0000000..a1eebe5 --- /dev/null +++ b/boxes/phone/init/.gitignore @@ -0,0 +1 @@ +app_cache/ diff --git a/boxes/phone/init/apps b/boxes/phone/init/apps new file mode 100644 index 0000000..da75f0a --- /dev/null +++ b/boxes/phone/init/apps @@ -0,0 +1,18 @@ +https://f-droid.org/repo/com.termux_1020.apk +https://f-droid.org/repo/com.termux.api_51.apk +https://f-droid.org/repo/com.termux.widget_13.apk +https://f-droid.org/repo/com.coboltforge.dontmind.multivnc_101.apk +https://f-droid.org/repo/com.kylecorry.trail_sense_124.apk +https://f-droid.org/repo/org.ligi.survivalmanual_428.apk +https://github.com/bitwarden/android/releases/download/v2024.4.0/com.x8bit.bitwarden.apk +https://f-droid.org/repo/at.bitfire.icsdroid_81.apk +https://f-droid.org/repo/ws.xsoh.etar_47.apk +https://f-droid.org/repo/at.bitfire.davdroid_404030200.apk +https://f-droid.org/repo/org.oxycblt.auxio_53.apk +https://f-droid.org/repo/de.danoeh.antennapod_3050095.apk +https://f-droid.org/repo/eu.faircode.email_2241.apk +https://f-droid.org/repo/org.koreader.launcher.fdroid_105232.apk +https://f-droid.org/repo/at.techbee.jtx_209010003.apk +https://f-droid.org/repo/mn.tck.semitone_4.apk +https://f-droid.org/repo/de.moekadu.tuner_38.apk +https://f-droid.org/repo/io.github.domi04151309.home_1100.apk diff --git a/boxes/phone/init/main.sh b/boxes/phone/init/main.sh new file mode 100755 index 0000000..a469451 --- /dev/null +++ b/boxes/phone/init/main.sh @@ -0,0 +1,6 @@ +mkdir -p app_cache +for i in $(cat apps); do + output_name=$(echo $i | awk -F'/' '{print $NF}') + curl "$i" --max-redirs 999 -L -C - -o "app_cache/$output_name" + adb install "app_cache/$output_name" +done