From 60328e3ecd876717a474ff71b62028323d4a8d7d Mon Sep 17 00:00:00 2001 From: An Bui <91354810+AnBui2004@users.noreply.github.com> Date: Sun, 31 May 2026 14:32:39 +0700 Subject: [PATCH 1/5] Create installer.sh --- qemu/7.2.22/installer.sh | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 qemu/7.2.22/installer.sh diff --git a/qemu/7.2.22/installer.sh b/qemu/7.2.22/installer.sh new file mode 100644 index 0000000..cb4ad07 --- /dev/null +++ b/qemu/7.2.22/installer.sh @@ -0,0 +1,36 @@ +#!/bin/bash +echo -e "\e[1;37m[!] Warning and do not ignore!" +echo -e "\e[1;37m-\e[0m" +echo -e "\e[1;37mPlease do not run any other commands when this setup begins. If you're running other commands, they haven't finished executing yet or don't want some packages to be forced to be updated when setting up, press Ctrl + C now to cancel the setup immediately." +echo -e "\e[1;37m\e[0m" +echo -e "\e[1;37mBy using Qemu in any way, you agree to the terms, policies, and other related provisions. The owner of this script is not responsible for any consequences that may arise from using Qemu or you have edited these scripts. To disagree and cancel the setup, press Ctrl + C." +echo -e "\e[1;37m-\e[0m" +echo -e "\e[1;37mAutomatically go to next step after 60 seconds or continue immediately by pressing any key and you agree to the above." +if read -r -t 60 -n 1 _; then + echo "Pressed the key and continued immediately." +else + echo "60 seconds elapsed, auto continue." +fi +clear +echo -e "\e[1;37m[i] Installing packages..." +apk update +apk add perl aria2 +clear +echo -e "\e[1;37m[i] Uninstalling current Qemu..." +rm -f /usr/local/bin/qemu-* +rm -f /usr/share/applications/qemu.desktop +rm -f /usr/share/icons/hicolor/*/qemu.png +rm -rf /usr/share/qemu +clear +echo -e "\e[1;37m[i] Downloading..." +aria2c -x 4 --async-dns=false --disable-ipv6 --check-certificate=false -o setup.tar.gz https://archive.org/download/qemu-7-2-22-for-vectras-vm-nbab/base-vectras-vm-arm64-v8a.tar.gz +clear +echo -e "\e[1;37m[i] Installing..." +tar -xzvf setup.tar.gz -C / +clear +echo -e "\e[1;37m[i] Just a sec..." +rm -f setup.tar.gz +chmod 775 /usr/local/bin/qemu* +clear +echo -e "\e[1;37m[i] Done!" +qemu-system-x86_64 -version \ No newline at end of file From 0cd712ddfc87a9f0d0db10c1334315c306b97216 Mon Sep 17 00:00:00 2001 From: An Bui <91354810+AnBui2004@users.noreply.github.com> Date: Sun, 31 May 2026 14:34:57 +0700 Subject: [PATCH 2/5] Update upgrade.sh --- qemu/7.2.22/{installer.sh => upgrade.sh} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename qemu/7.2.22/{installer.sh => upgrade.sh} (100%) diff --git a/qemu/7.2.22/installer.sh b/qemu/7.2.22/upgrade.sh similarity index 100% rename from qemu/7.2.22/installer.sh rename to qemu/7.2.22/upgrade.sh From 40dbad7f93123eed16678c5f31b15695f77a3ce5 Mon Sep 17 00:00:00 2001 From: An Bui <91354810+AnBui2004@users.noreply.github.com> Date: Sun, 31 May 2026 14:39:39 +0700 Subject: [PATCH 3/5] Update upgrade.sh --- qemu/7.2.22/upgrade.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/qemu/7.2.22/upgrade.sh b/qemu/7.2.22/upgrade.sh index cb4ad07..a4be53b 100644 --- a/qemu/7.2.22/upgrade.sh +++ b/qemu/7.2.22/upgrade.sh @@ -12,25 +12,37 @@ else echo "60 seconds elapsed, auto continue." fi clear + echo -e "\e[1;37m[i] Installing packages..." apk update apk add perl aria2 clear + +echo -e "\e[1;37m[i] Killing process..." +pkill -15 -f qemu-system- || true +sleep 1 +pkill -9 -f qemu-system- || true +clear + echo -e "\e[1;37m[i] Uninstalling current Qemu..." rm -f /usr/local/bin/qemu-* rm -f /usr/share/applications/qemu.desktop rm -f /usr/share/icons/hicolor/*/qemu.png rm -rf /usr/share/qemu clear + echo -e "\e[1;37m[i] Downloading..." aria2c -x 4 --async-dns=false --disable-ipv6 --check-certificate=false -o setup.tar.gz https://archive.org/download/qemu-7-2-22-for-vectras-vm-nbab/base-vectras-vm-arm64-v8a.tar.gz clear + echo -e "\e[1;37m[i] Installing..." tar -xzvf setup.tar.gz -C / clear + echo -e "\e[1;37m[i] Just a sec..." rm -f setup.tar.gz chmod 775 /usr/local/bin/qemu* clear + echo -e "\e[1;37m[i] Done!" qemu-system-x86_64 -version \ No newline at end of file From 849064c7ef6a1d6cee89d8bfa8505b12ab9736a9 Mon Sep 17 00:00:00 2001 From: An Bui <91354810+AnBui2004@users.noreply.github.com> Date: Sun, 31 May 2026 18:08:08 +0700 Subject: [PATCH 4/5] Added upgrade tool. --- README.md | 8 ++++++++ qemu/7.2.22/upgrade.sh | 19 ++++++++++++++++--- 2 files changed, 24 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 5b1f177..326f65e 100644 --- a/README.md +++ b/README.md @@ -76,6 +76,14 @@ We publish a **new beta release after every commit** — so you can always test [![Download Beta](https://img.shields.io/badge/Download-Beta-blue?style=for-the-badge&logo=github)](https://github.com/AnBui2004/Vectras-VM-Emu-Android/releases) +### 🔃 Upgrade tool +Upgrade or change the Qemu version you want to use without resetting the Vectras VM using the Terminal. + +QEMU 7.2.22 (for Vectras VM 4.2.2+): +```bash +apk add bash && curl -H 'Cache-Control: no-cache' -o setup.sh https://raw.githubusercontent.com/AnBui2004/Vectras-VM-Emu-Android/refs/heads/master/qemu/7.2.22/upgrade.sh & chmod +rwx setup.sh && ./setup.sh; rm setup.sh +``` + ### ⚙️ Bootstraps QEMU 11.0.0 (recommended and for Vectras VM 4.0.8+): - [For Android ARM (64-bit)](https://github.com/AnBui2004/Vectras-VM-Emu-Android/releases/download/4.0.8/base-vectras-vm-arm64-v8a.tar.gz) diff --git a/qemu/7.2.22/upgrade.sh b/qemu/7.2.22/upgrade.sh index a4be53b..2bfcada 100644 --- a/qemu/7.2.22/upgrade.sh +++ b/qemu/7.2.22/upgrade.sh @@ -1,7 +1,19 @@ #!/bin/bash -echo -e "\e[1;37m[!] Warning and do not ignore!" +clear +architecture=$(uname -m) +if [[ ! "$architecture" =~ "aarch64" ]]; then + rm -f setup.sh + echo -e "\e[1;37m[!] Unsupported architecture!" + echo -e "\e[1;37m-\e[0m" + echo -e "\e[1;37mYour device's is not supported. Your device needs to be AArch64 to install this version of Qemu." + echo -e "\e[1;37m-\e[0m" + echo -e "\e[1;37mSetup was canceled." + exit +fi + +echo -e "\e[1;37m[!] Qemu 7.2.22 upgrade tool. Warning and do not ignore!" echo -e "\e[1;37m-\e[0m" -echo -e "\e[1;37mPlease do not run any other commands when this setup begins. If you're running other commands, they haven't finished executing yet or don't want some packages to be forced to be updated when setting up, press Ctrl + C now to cancel the setup immediately." +echo -e "\e[1;37mPlease do not run any other commands when this setup begins. If you're running other commands, they haven't finished executing yet or don't want some packages to be forced to be updated when setting up. Any existing installed version of Qemu will be uninstalled. Press Ctrl + C now to cancel the setup immediately." echo -e "\e[1;37m\e[0m" echo -e "\e[1;37mBy using Qemu in any way, you agree to the terms, policies, and other related provisions. The owner of this script is not responsible for any consequences that may arise from using Qemu or you have edited these scripts. To disagree and cancel the setup, press Ctrl + C." echo -e "\e[1;37m-\e[0m" @@ -45,4 +57,5 @@ chmod 775 /usr/local/bin/qemu* clear echo -e "\e[1;37m[i] Done!" -qemu-system-x86_64 -version \ No newline at end of file +qemu-system-x86_64 -version +rm -f setup.sh \ No newline at end of file From 598542a7cb202e399695f96232367d12efe015de Mon Sep 17 00:00:00 2001 From: An Bui <91354810+AnBui2004@users.noreply.github.com> Date: Sun, 31 May 2026 18:10:13 +0700 Subject: [PATCH 5/5] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 326f65e..95049c4 100644 --- a/README.md +++ b/README.md @@ -81,7 +81,7 @@ Upgrade or change the Qemu version you want to use without resetting the Vectras QEMU 7.2.22 (for Vectras VM 4.2.2+): ```bash -apk add bash && curl -H 'Cache-Control: no-cache' -o setup.sh https://raw.githubusercontent.com/AnBui2004/Vectras-VM-Emu-Android/refs/heads/master/qemu/7.2.22/upgrade.sh & chmod +rwx setup.sh && ./setup.sh; rm setup.sh +apk add bash && curl -H 'Cache-Control: no-cache' -o setup.sh https://raw.githubusercontent.com/AnBui2004/Vectras-VM-Emu-Android/refs/heads/master/qemu/7.2.22/upgrade.sh && chmod +rwx setup.sh && ./setup.sh; rm setup.sh ``` ### ⚙️ Bootstraps