HuskyDG / magic_overlayfs

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

Failed magisk module install #62

Open seriousfreedom opened 9 months ago

seriousfreedom commented 9 months ago

Idk why there's an issue with this but module fails to create the fs as far as I can tell. I had previously got it to work but IDK what I ended up doing to accomplish that feat. Idk if this will tell you anything. I'm happy to send what ever other information you need.

Pixel 8 Pro Android 14 Stock rom

Screenshot_20240209-042043 Screenshot_20240209-042032 Screenshot_20240209-042020

CapitalF commented 7 months ago

I think I have the same issue. This might be an Android 14/Pixel 8 issue. I am on a Pixel 8, LineageOS 21/Android 14, Magisk 27.

Log below

- Copying zip to temp directory
- Installing magisk-overlayfs-release_20231002_v3.2.2.zip
- Current boot slot: _b
- Device is system-as-root
Archive:  /data/user/0/com.topjohnwu.magisk/cache/flash/install.zip
  inflating: module.prop
*******************
 Magical Overlayfs 
 by HuskyDG 
*******************
*******************
 Powered by Magisk 
*******************
Archive:  /data/user/0/com.topjohnwu.magisk/cache/flash/install.zip
  inflating: customize.sh
- Installing from Magisk app
Archive:  /data/user/0/com.topjohnwu.magisk/cache/flash/install.zip
  inflating: overlayfs_system
- Extract files
Archive:  /data/user/0/com.topjohnwu.magisk/cache/flash/install.zip
  inflating: mode.sh
  inflating: module.prop
  inflating: post-fs-data.sh
  inflating: service.sh
  inflating: uninstall.sh
  inflating: util_functions.sh
  inflating: overlayfs_system
Archive:  /data/user/0/com.topjohnwu.magisk/cache/flash/install.zip
  inflating: util_functions.sh
- Setup module
- Setup 2GB ext4 image at /data/adb/overlay
  Please wait...
100+0 records in
100+0 records out
102400 bytes (100.0KB) copied, 0.000606 seconds, 161.1MB/s
mke2fs 1.46.6 (1-Feb-2023)
128-byte inodes cannot handle dates beyond 2038 and are deprecated

Filesystem too small for a journal
Discarding device blocks: done                            
Creating filesystem with 100 1k blocks and 16 inodes

Allocating group tables: done                            
Writing inode tables: done                            
Writing superblocks and filesystem accounting information: done

/data/adb/overlay: 11/16 files (0.0% non-contiguous), 20/100 blocks
resize2fs 1.46.6 (1-Feb-2023)
Resizing the filesystem on /data/adb/overlay to 2048000 (1k) blocks.
The filesystem on /data/adb/overlay is now 2048000 (1k) blocks long.

! Setup ext4 image failed, abort
! Installation failed

This might be an selinux problem. I've got logcat warnings like this

04-15 00:27:15.628 I/mkfs.ext4(12759): type=1400 audit(0.0:1365): avc:  denied  { ioctl } for  path="/data/adb/overlay" dev="dm-43" ino=6449 ioctlcmd=0x1272 scontext=u:r:magisk:s0 tcontext=u:object_r:adb_data_file:s0 tclass=file permissive=1
04-15 00:27:15.628 I/mkfs.ext4(12759): type=1400 audit(0.0:1366): avc:  denied  { ioctl } for  path="/data/adb/overlay" dev="dm-43" ino=6449 ioctlcmd=0x1260 scontext=u:r:magisk:s0 tcontext=u:object_r:adb_data_file:s0 tclass=file permissive=1
04-15 00:27:15.628 I/mkfs.ext4(12759): type=1400 audit(0.0:1367): avc:  denied  { ioctl } for  path="/data/adb/overlay" dev="dm-43" ino=6449 ioctlcmd=0x204 scontext=u:r:magisk:s0 tcontext=u:object_r:adb_data_file:s0 tclass=file permissive=1