From 78a3fe5e07af76a3f8431c6746770b6e4a5dae0c Mon Sep 17 00:00:00 2001
From: Howard Wu <40033067+Howard20181@users.noreply.github.com>
Date: Wed, 6 Mar 2024 01:13:38 +0800
Subject: [PATCH] Update docs

---
 docs/README.md          | 24 +++++++++++-------------
 scripts/install_deps.sh |  9 ---------
 2 files changed, 11 insertions(+), 22 deletions(-)

diff --git a/docs/README.md b/docs/README.md
index 7014d7a..d0f3fff 100644
--- a/docs/README.md
+++ b/docs/README.md
@@ -8,11 +8,11 @@
 
   The following dependencies are required:
 
-  | DistrOS             |                                                         |            |              |                    |               |              |
-  |:-------------------:|---------------------------------------------------------|------------|--------------|--------------------|---------------|--------------|
-  | Debian              | `lzip patchelf e2fsprogs python3 aria2 attr unzip sudo` | `whiptail` | `qemu-utils` | `python3-venv`     | `python3-pip` | `p7zip-full` |
-  | openSUSE Tumbleweed | Same as above                                           | `dialog`   | `qemu-tools` | `python3-venvctrl` | Same as above                |
-  | Arch                | Same as Debian                                          | `libnewt`  | `qemu-img`   |  Same as Debian    | `python-pip`  | `p7zip`      |
+  | DistrOS             |                            |            |                    |               |               |
+  |:-------------------:|----------------------------|------------|--------------------|---------------|---------------|
+  | Debian              | `python3 aria2 unzip sudo` | `whiptail` | `python3-venv`     | `python3-pip` | `p7zip-full`  |
+  | openSUSE Tumbleweed | Same as above              | `dialog`   | `python3-venvctrl` | Same as above | Same as above |
+  | Arch                | Same as Debian             | `libnewt`  |  Same as Debian    | `python-pip`  | `p7zip`       |
 
   The python3 library `requests` is used.
 
@@ -151,13 +151,11 @@
 
   Or you can download the built package for 12.1 and 13 for x86_64 from [this page](https://sourceforge.net/projects/wsa-mtg/files/x86_64/).
 
-- Can I switch OpenGApps to MindTheGapps and keep user data in a previous build?
+- Is it possible to migrate data from a lower version like 2305 to a newer version?
 
-  No. You should wipe data after changing the GApps brand. Otherwise, you will find that the installed GApps are not recognized.
+  This is certainly available, Microsoft's change of read-only partition from 2305's EROFS to read-only EXT4 only affects the read-only system partition.
 
-- WSA with OpenGApps integrated fails to start.
-
-  OpenGApps has not yet released a version built for Android 12L and 13, only built for Android 11, which may not be compatible and thus cause crashes. Consider switching to MindTheGapps.
+  It has no effect on the user data partition. Check the logs if there is a failure to boot.
 
 - How to install KernelSU?
 
@@ -171,10 +169,10 @@
 
 - [StoreLib](https://github.com/StoreDev/StoreLib): API for downloading WSA
 - [Magisk](https://github.com/topjohnwu/Magisk): The most famous root solution on Android
-- [The Open GApps Project](https://opengapps.org): One of the most famous Google Apps packages solution
+- ~~[The Open GApps Project](https://opengapps.org): One of the most famous Google Apps packages solution~~
 - [WSA-Kernel-SU](https://github.com/LSPosed/WSA-Kernel-SU) and [kernel-assisted-superuser](https://git.zx2c4.com/kernel-assisted-superuser/): The kernel `su` for debugging Magisk Integration
-- [WSAGAScript](https://github.com/ADeltaX/WSAGAScript): The first GApps integration script for WSA
-- [erofs-utils](https://github.com/sekaiacg/erofs-utils): Pre-build `erofs-utils` with erofsfuse enabled
+- ~~[WSAGAScript](https://github.com/ADeltaX/WSAGAScript): The first GApps integration script for WSA~~
+- ~~[erofs-utils](https://github.com/sekaiacg/erofs-utils): Pre-build `erofs-utils` with erofsfuse enabled~~
 
 _The repository is provided as a utility._
 
diff --git a/scripts/install_deps.sh b/scripts/install_deps.sh
index e0bd35b..867a80a 100755
--- a/scripts/install_deps.sh
+++ b/scripts/install_deps.sh
@@ -40,15 +40,10 @@ require_su() {
 echo "Checking and ensuring dependencies"
 check_dependencies() {
     command -v whiptail >/dev/null 2>&1 || command -v dialog >/dev/null 2>&1 || NEED_INSTALL+=("whiptail")
-    command -v lzip >/dev/null 2>&1 || NEED_INSTALL+=("lzip")
-    command -v patchelf >/dev/null 2>&1 || NEED_INSTALL+=("patchelf")
-    command -v resize2fs >/dev/null 2>&1 || NEED_INSTALL+=("e2fsprogs")
     command -v pip >/dev/null 2>&1 || NEED_INSTALL+=("python3-pip")
     command -v aria2c >/dev/null 2>&1 || NEED_INSTALL+=("aria2")
     command -v 7z >/dev/null 2>&1 || NEED_INSTALL+=("p7zip-full")
-    command -v setfattr >/dev/null 2>&1 || NEED_INSTALL+=("attr")
     command -v unzip >/dev/null 2>&1 || NEED_INSTALL+=("unzip")
-    command -v qemu-img >/dev/null 2>&1 || NEED_INSTALL+=("qemu-utils")
 }
 check_dependencies
 osrel=$(sed -n '/^ID_LIKE=/s/^.*=//p' /etc/os-release)
@@ -130,9 +125,7 @@ if [ -n "${NEED_INSTALL[*]}" ]; then
     if [ "$PM" = "zypper" ]; then
         NEED_INSTALL_FIX=${NEED_INSTALL[*]}
         {
-            NEED_INSTALL_FIX=${NEED_INSTALL_FIX//setools/setools-console} 2>&1
             NEED_INSTALL_FIX=${NEED_INSTALL_FIX//whiptail/dialog} 2>&1
-            NEED_INSTALL_FIX=${NEED_INSTALL_FIX//qemu-utils/qemu-tools} 2>&1
         } >>/dev/null
 
         readarray -td ' ' NEED_INSTALL <<<"$NEED_INSTALL_FIX "
@@ -145,7 +138,6 @@ if [ -n "${NEED_INSTALL[*]}" ]; then
         NEED_INSTALL_FIX=${NEED_INSTALL[*]}
         {
             NEED_INSTALL_FIX=${NEED_INSTALL_FIX//whiptail/libnewt} 2>&1
-            NEED_INSTALL_FIX=${NEED_INSTALL_FIX//qemu-utils/qemu-img} 2>&1
             NEED_INSTALL_FIX=${NEED_INSTALL_FIX//python3-pip/python-pip} 2>&1
             NEED_INSTALL_FIX=${NEED_INSTALL_FIX//p7zip-full/p7zip} 2>&1
         } >>/dev/null
@@ -158,7 +150,6 @@ if [ -n "${NEED_INSTALL[*]}" ]; then
             NEED_INSTALL_FIX=${NEED_INSTALL_FIX//whiptail/dialog} 2>&1
             NEED_INSTALL_FIX=${NEED_INSTALL_FIX//python3-pip/dev-python/pip} 2>&1
             NEED_INSTALL_FIX=${NEED_INSTALL_FIX//p7zip-full/p7zip} 2>&1
-            NEED_INSTALL_FIX=${NEED_INSTALL_FIX//qemu-utils/qemu} 2>&1
         } >>/dev/null
 
         readarray -td ' ' NEED_INSTALL <<<"$NEED_INSTALL_FIX "