HuskyDG / magic_overlayfs

Make system partition become read-write (it is also possible without Magisk)
739 stars 181 forks source link

Overlayfs mount causes crashdump mode #2

Closed Y-ZD-heheka closed 1 year ago

Y-ZD-heheka commented 1 year ago

After flashing magisk_overlayfs,my oneplus 9 with lineageos20 can not boot normally,the screen shows qualcomm crashdump mode。 Then i reflash boot and lineageos20,it can boot(without magisk),but when i reflash magisk in recovery mode,it boot into qualcomm crashdump mode again。

HuskyDG commented 1 year ago

Send dmesg and /proc/last_kmsg (if exists)

HuskyDG commented 1 year ago

Disable module (not remove), and execute this command:

(unshare to avoid damage mount)

unshare -m $(magisk --path)/.magisk/busybox/sh /data/adb/modules/magisk_overlayfs/post-fs-data.sh

Tell me the result

Y-ZD-heheka commented 1 year ago

Disable module (not remove), and execute this command:

(unshare to avoid damage mount)

unshare -m $(magisk --path)/.magisk/busybox/sh /data/adb/modules/magisk_overlayfs/post-fs-data.sh

Tell me the result

.\adb.exe shell OnePlus9:/ $ unshare -m $(magisk --path)/.magisk/busybox/sh /data/adb/modules/magisk_overlayfs/post-fs-data.sh /system/bin/sh: magisk: inaccessible or not found unshare: Operation not permitted

HuskyDG commented 1 year ago

Type su and paste!

Y-ZD-heheka commented 1 year ago

Type su and paste!

Tried a few times,i can not boot up with magisk flashed,i have no su,sad

HuskyDG commented 1 year ago

Try boot into safe mode

Y-ZD-heheka commented 1 year ago

Try boot into safe mode

Only after flashing the original boot.img and system package can enter the system and the data is still there. Once sideload magisk.zip in recovery mode, it shows "qualcomm crashdump mode" directly after "powered by android" and cannot enter the system to select safe mode.sad

HuskyDG commented 1 year ago

Did you have custom recovery, I can help you recover from that

HuskyDG commented 1 year ago

With Magisk Delta

Y-ZD-heheka commented 1 year ago

Did you have custom recovery, I can help you recover from that

i use the linesgeos recovery,color of purple

Y-ZD-heheka commented 1 year ago

Did you have custom recovery, I can help you recover from that

it can execute adb shell

HuskyDG commented 1 year ago

Did you have custom recovery, I can help you recover from that

i use the linesgeos recovery,color of purple

Flash Magisk Delta, and then creating these file (pick one):

/cache/.disable_magisk /persist/.disable_magisk /metada/.disable_magisk

HuskyDG commented 1 year ago

Or:

magisk --remove-modules

Y-ZD-heheka commented 1 year ago

Did you have custom recovery, I can help you recover from that

i use the linesgeos recovery,color of purple

Flash Magisk Delta, and then creating these file (pick one):

/cache/.disable_magisk /persist/.disable_magisk /metada/.disable_magisk

Cannot create ".disable_magisk" file in "recovery adb shell".

Cannot execute "magisk --remove-modules" command in "recovery adb shell". No right to operate the "/" directory.

I can't boot the system after I flashed "Magisk Delta", just like I flashed the original Magisk.

Maybe it's a problem with my hardware。I can only choose between "Magisk" and "system normal use".

HuskyDG commented 1 year ago

Did you have custom recovery, I can help you recover from that

i use the linesgeos recovery,color of purple

Flash Magisk Delta, and then creating these file (pick one): /cache/.disable_magisk /persist/.disable_magisk /metada/.disable_magisk

Cannot create ".disable_magisk" file in "recovery adb shell".

Cannot execute "magisk --remove-modules" command in "recovery adb shell". No right to operate the "/" directory.

I can't boot the system after I flashed "Magisk Delta", just like I flashed the original Magisk.

Maybe it's a problem with my hardware。I can only choose between "Magisk" and "system normal use".

In recovery mode, you must mount all partitions

HuskyDG commented 1 year ago

Cannot create ".disable_magisk" file in "recovery adb shell".

This doesn't work??

for s in cache persist metadata; do
    mount /$s
    touch /$s/.disable_magisk
done
Y-ZD-heheka commented 1 year ago

Cannot create ".disable_magisk" file in "recovery adb shell".

This doesn't work??

for s in cache persist metadata; do
    mount /$s
    touch /$s/.disable_magisk
done

OnePlus9:/ # for s in cache persist metadata; do

mount /$s
touch /$s/.disable_magisk

d> done mount: '/cache' not in fstab mount: '/persist' not in fstab touch: '/persist/.disable_magisk': No such file or directory

lineageos recovery only mount system,i will try twrp later

HuskyDG commented 1 year ago

Damn, why there is such broken recovery implementation 🤔

Y-ZD-heheka commented 1 year ago

I successfully created the ".disable_magisk" file using "TWRP" and executed the "unshare" command with "SU" privileges. Unfortunately, the "last_kmesg" file was not found under "proc".


unshare -m $(magisk --path)/.magisk/busybox/sh /data/adb/modules/magisk_overlayfs/post-fs-data.sh result:https://dpaste.org/3Gt4w


dmesg:https://dpaste.org/SiWBK

HuskyDG commented 1 year ago

I successfully created the ".disable_magisk" file using "TWRP" and executed the "unshare" command with "SU" privileges. Unfortunately, the "last_kmesg" file was not found under "proc".

unshare -m $(magisk --path)/.magisk/busybox/sh /data/adb/modules/magisk_overlayfs/post-fs-data.sh result:https://dpaste.org/3Gt4w

Send full, pls

dmesg:https://dpaste.org/SiWBK

Now send me /proc/mounts

Y-ZD-heheka commented 1 year ago

/proc/mount : https://dpaste.org/pWJaB dmesg -T full : https://dpaste.org/Aupmp

HuskyDG commented 1 year ago

Why send /proc/mounts from Recovery??????????????

Y-ZD-heheka commented 1 year ago

Why send /proc/mounts from Recovery??????????????

My fault :https://dpaste.org/NixBY

Y-ZD-heheka commented 1 year ago

My Xiaomi Mi Pad 5 pro, the original MIUI14 Android 13, using your module version 1.18, the storage space will be shown as twice, now with the 2.1 version, it will not be

HuskyDG commented 1 year ago

Try this magisk-overlayfs-release-7.zip

If there is bootloop, send /cache/overlayfs.log

Y-ZD-heheka commented 1 year ago

Try this magisk-overlayfs-release-7.zip

If there is bootloop, send /cache/overlayfs.log

this works,it is amazing!

Y-ZD-heheka commented 1 year ago

should i close this issue right now?

HuskyDG commented 1 year ago

Yes, you can

Y-ZD-heheka commented 1 year ago

Yes, you can

Many thanks!

HuskyDG commented 1 year ago

Btw you should check if it works

Y-ZD-heheka commented 1 year ago

Btw you should check if it works

Yes,with your help,a new Adreno GPU Driver module runs very well

HuskyDG commented 1 year ago

help me try with this https://github.com/HuskyDG/magisk_overlayfs/actions/runs/4091028318

Y-ZD-heheka commented 1 year ago

help me try with this https://github.com/HuskyDG/magisk_overlayfs/actions/runs/4091028318

this version works on my device, gpu driver module

HuskyDG commented 1 year ago

help me try with this https://github.com/HuskyDG/magisk_overlayfs/actions/runs/4091028318

this version works on my device

Can you send /cache/overlayfs.log?

Y-ZD-heheka commented 1 year ago

help me try with this https://github.com/HuskyDG/magisk_overlayfs/actions/runs/4091028318

this version works on my device

Can you send /cache/overlayfs.log?

oneplus 9 lineageos 20 Android 13:https://dpaste.org/kWyjD

HuskyDG commented 1 year ago

Seem fail

Y-ZD-heheka commented 1 year ago

help me try with this https://github.com/HuskyDG/magisk_overlayfs/actions/runs/4091028318

this version works on my device

Can you send /cache/overlayfs.log?

oneplus 9 lineageos 20 Android 13:https://dpaste.org/kWyjD

Mi Pad 5 pro MIUI14 Android13 : https://dpaste.org/DNORi

HuskyDG commented 1 year ago

https://github.com/HuskyDG/magisk_overlayfs/actions/runs/4091831635

Y-ZD-heheka commented 1 year ago

I just tried it without your module and found that the GPU driver module works as well

Y-ZD-heheka commented 1 year ago

https://github.com/HuskyDG/magisk_overlayfs/actions/runs/4091831635

oneplus 9 Lineageos20 Android13 : https://dpaste.org/E2wyd

HuskyDG commented 1 year ago

magisk-overlayfs-release-v2.3.zip

Y-ZD-heheka commented 1 year ago

magisk-overlayfs-release-v2.3.zip

After flashing this version,my oneplus 9 with lineageos20 can not boot normally,the screen shows qualcomm crashdump mode。

HuskyDG commented 1 year ago

magisk-overlayfs-release-v2.3.zip

After flashing this version,my oneplus 9 with lineageos20 can not boot normally,the screen shows qualcomm crashdump mode。

Send /cache/overlayfs.log

Y-ZD-heheka commented 1 year ago

magisk-overlayfs-release-v2.3.zip

After flashing this version,my oneplus 9 with lineageos20 can not boot normally,the screen shows qualcomm crashdump mode。

Send /cache/overlayfs.log

it contains nothing,boot after create“.disable_magisk”,dmesg:https://dpaste.org/BaHi9

HuskyDG commented 1 year ago

magisk-overlayfs-release-v2.3.zip

After flashing this version,my oneplus 9 with lineageos20 can not boot normally,the screen shows qualcomm crashdump mode。

Send /cache/overlayfs.log

it contains nothing,boot after creat“.disable_magisk”

Or execute this command (type su first):

magiskhide exec sh /data/adb/modules/magisk_overlayfs/post-fs-data.sh

This will process in isolated mount namespace and no Magisk and it will not damage the global mounts

Tell me the result.

Y-ZD-heheka commented 1 year ago
magiskhide exec sh /data/adb/modules/magisk_overlayfs/post-fs-data.sh

OnePlus9:/ # su OnePlus9:/ # magiskhide exec sh /data/adb/modules/magisk_overlayfs/post-fs-data.sh /data/adb/modules/magisk_overlayfs/post-fs-data.sh[39]: magisk: inaccessible or not found mount: tmpfs -> /mnt/overlayfs_wvnnmyolkajnzpcdxmyx mount: overlay -> /mnt/overlayfs_wvnnmyolkajnzpcdxmyx/system [lowerdir=/system,upperdir=/mnt/overlay_system/upper/system,workdir=/mnt/overlay_system/worker/system] mount: overlay -> /mnt/overlayfs_wvnnmyolkajnzpcdxmyx/system_ext [lowerdir=/system_ext,upperdir=/mnt/overlay_system/upper/system_ext,workdir=/mnt/overlay_system/worker/system_ext] mount: overlay -> /mnt/overlayfs_wvnnmyolkajnzpcdxmyx/product [lowerdir=/product,upperdir=/mnt/overlay_system/upper/product,workdir=/mnt/overlay_system/worker/product] mount: overlay -> /mnt/overlayfs_wvnnmyolkajnzpcdxmyx/vendor [lowerdir=/vendor,upperdir=/mnt/overlay_system/upper/vendor,workdir=/mnt/overlay_system/worker/vendor] mount: /vendor/firmware_mnt -> /mnt/overlayfs_wvnnmyolkajnzpcdxmyx/vendor/firmware_mnt mount: overlay -> /mnt/overlayfs_wvnnmyolkajnzpcdxmyx/vendor/dsp [lowerdir=/vendor/dsp,upperdir=/mnt/overlay_system/upper/vendor/dsp,workdir=/mnt/overlay_system/worker/vendor/dsp] mount: /vendor/bt_firmware -> /mnt/overlayfs_wvnnmyolkajnzpcdxmyx/vendor/bt_firmware mount: /mnt/overlayfs_wvnnmyolkajnzpcdxmyx/system -> /system mount: /mnt/overlayfs_wvnnmyolkajnzpcdxmyx/system_ext -> /system_ext mount: /mnt/overlayfs_wvnnmyolkajnzpcdxmyx/product -> /product mount: /mnt/overlayfs_wvnnmyolkajnzpcdxmyx/vendor -> /vendor mount: /mnt/overlayfs_wvnnmyolkajnzpcdxmyx/vendor/firmware_mnt -> /vendor/firmware_mnt mount: /mnt/overlayfs_wvnnmyolkajnzpcdxmyx/vendor/dsp -> /vendor/dsp mount: /mnt/overlayfs_wvnnmyolkajnzpcdxmyx/vendor/bt_firmware -> /vendor/bt_firmware mount done! clean up umount: /mnt/overlayfs_wvnnmyolkajnzpcdxmyx

HuskyDG commented 1 year ago

@Y-ZD-heheka send /cache/overlayfs.log?

Y-ZD-heheka commented 1 year ago

@Y-ZD-heheka send /cache/overlayfs.log?

here:https://dpaste.org/EdMQa

HuskyDG commented 1 year ago

What does it say after this: (su first)

mkdir /mnt/test
mount -o rw,loop /dev/block/loop31 /mnt/test
ls -lZ /mnt/test/upper/system
ls -lZ /mnt/test/upper/vendor
ls -lZ /mnt/test/upper/product
ls -lZ /mnt/test/upper/system_ext
ls -lZd /mnt/test/upper/system
ls -lZd /mnt/test/upper/vendor
ls -lZd /mnt/test/upper/product
ls -lZd /mnt/test/upper/system_ext
Y-ZD-heheka commented 1 year ago

What does it say after this: (su first)

mkdir /mnt/test
mount -o rw,loop /dev/block/loop31 /mnt/test
ls -lZ /mnt/test/upper/system
ls -lZ /mnt/test/upper/vendor
ls -lZ /mnt/test/upper/product
ls -lZ /mnt/test/upper/system_ext
ls -lZd /mnt/test/upper/system
ls -lZd /mnt/test/upper/vendor
ls -lZd /mnt/test/upper/product
ls -lZd /mnt/test/upper/system_ext

OnePlus9:/ # su OnePlus9:/ # mkdir /mnt/test -o rw,loop /dev/block/loop31 /mnt/test ls -lZ /mnt/test/upper/system ls -lZ /mnt/test/upper/vendor ls -lZ /mnt/test/upper/product ls -lZ /mnt/test/upper/system_ext ls -lZd /mnt/test/upper/system ls -lZd /mnt/test/upper/vendor ls -lZd /mnt/test/upper/product ls -lZd /mnt/test/upper/system_extmkdir: '/mnt/test': File exists 1|OnePlus9:/ # mount -o rw,loop /dev/block/loop31 /mnt/test mount: '/dev/block/loop31'->'/mnt/test': I/O error 1|OnePlus9:/ # ls -lZ /mnt/test/upper/system ls: /mnt/test/upper/system: No such file or directory 1|OnePlus9:/ # ls -lZ /mnt/test/upper/vendor ls: /mnt/test/upper/vendor: No such file or directory 1|OnePlus9:/ # ls -lZ /mnt/test/upper/product ls: /mnt/test/upper/product: No such file or directory 1|OnePlus9:/ # ls -lZ /mnt/test/upper/system_ext ls: /mnt/test/upper/system_ext: No such file or directory 1|OnePlus9:/ # ls -lZd /mnt/test/upper/system ls: /mnt/test/upper/system: No such file or directory 1|OnePlus9:/ # ls -lZd /mnt/test/upper/vendor ls: /mnt/test/upper/vendor: No such file or directory 1|OnePlus9:/ # ls -lZd /mnt/test/upper/product ls: /mnt/test/upper/product: No such file or directory 1|OnePlus9:/ # ls -lZd /mnt/test/upper/system_ext ls: /mnt/test/upper/system_ext: No such file or directory 1|OnePlus9:/ #