From 7cffb76a4f65aaef9b2f8bfef48127e7afc9faa3 Mon Sep 17 00:00:00 2001 From: Gs-ygc <95555045+Gs-ygc@users.noreply.github.com> Date: Sun, 31 Mar 2024 00:30:01 +0800 Subject: [PATCH] Add the ability to mount commonly used partitions, /odm partitions, and /data/adb partitions Contains some common Android partitions, as well as ROOTED devices, usually operate the /data/adb partition, so we add the mounting of common partitions odm partitions and /data/adb partitions. --- assets/run.common | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/assets/run.common b/assets/run.common index 91447bf..811dc36 100644 --- a/assets/run.common +++ b/assets/run.common @@ -23,6 +23,11 @@ do_mounts() fi # don't mount /data to avoid data loss + if [ -d /data/adb ]; then + mkdir -p debian/data/adb/ + mount --bind /data/adb debian/data/adb/ + fi + if [ -d /system/ ]; then mkdir -p debian/system/ mount --bind /system debian/system/ @@ -33,6 +38,11 @@ do_mounts() mount --bind /vendor debian/vendor/ fi + if [ -d /odm/ ]; then + mkdir -p debian/odm/ + mount --bind /vendor debian/odm/ + fi + if [ -d /apex/ ]; then mkdir -p debian/apex/ mount --bind /apex debian/apex/