[General Questions and Answers] hamza600130:
i patched my boot image via magisk and when i try to flash it, it ends up in a bootloop

i HAVE unlocked my bootloader,

please someone help!!!😭😭😭😭 im frustrated

my log file looks like this

- Device platform: arm64-v8a

- Installing: 27.0 (27000)

- Copying image to cache

- Unpacking boot image

Parsing boot image: [/data/user_de/0/com.topjohnwu.magisk/install/boot.img]

HEADER_VER [0]

KERNEL_SZ [11759436]

RAMDISK_SZ [1161921]

SECOND_SZ [0]

EXTRA_SZ [0]

OS_VERSION [8.1.0]

OS_PATCH_LEVEL [2019-05]

PAGESIZE [2048]

NAME []

CMDLINE [bootopt=64S3,32N2,64N2 product.version=PD1818C_A_1.10.17 fingerprint.abbr=8.1.0/O11019 buildvariant=user]

CHECKSUM [1113d715a1ea0406419b833ecdb2898b5ef18745000000000000000000000000]

KERNEL_DTB_SZ [88118]

KERNEL_FMT [gzip]

RAMDISK_FMT [gzip]

AVB1_SIGNED

- Checking ramdisk status

Loading cpio: [ramdisk.cpio]

- Stock boot image detected

- Patching ramdisk

- Pre-init storage partition: cache

Loading cpio: [ramdisk.cpio]

Add file [init] (100750)

Create directory [overlay.d] (0750)

Create directory [overlay.d/sbin] (0750)

Add file [overlay.d/sbin/magisk32.xz] (100644)

Add file [overlay.d/sbin/magisk64.xz] (100644)

Add file [overlay.d/sbin/stub.xz] (100644)

Patch with flag KEEPVERITY=[false] KEEPFORCEENCRYPT=[true]

Found fstab file [fstab.enableswap]

Loading cpio: [ramdisk.cpio.orig]

Backup [init] -> [.backup/init.xz]

Record new entry: [overlay.d] -> [.backup/.rmlist]

Record new entry: [overlay.d/sbin] -> [.backup/.rmlist]

Record new entry: [overlay.d/sbin/magisk32.xz] -> [.backup/.rmlist]

Record new entry: [overlay.d/sbin/magisk64.xz] -> [.backup/.rmlist]

Record new entry: [overlay.d/sbin/stub.xz] -> [.backup/.rmlist]

Backup [verity_key] -> [.backup/verity_key.xz]

Create directory [.backup] (0000)

Add file [.backup/.magisk] (100000)

Dumping cpio: [ramdisk.cpio]

Loading dtbs from [kernel_dtb]

Loading dtbs from [kernel_dtb]

Remove pattern [,verify]

Remove pattern [,verify]

- Patch fstab in boot image kernel_dtb

- Repacking boot image

Parsing boot image: [/data/user_de/0/com.topjohnwu.magisk/install/boot.img]

HEADER_VER [0]

KERNEL_SZ [11759436]

RAMDISK_SZ [1161921]

SECOND_SZ [0]

EXTRA_SZ [0]

OS_VERSION [8.1.0]

OS_PATCH_LEVEL [2019-05]

PAGESIZE [2048]

NAME []

CMDLINE [bootopt=64S3,32N2,64N2 product.version=PD1818C_A_1.10.17 fingerprint.abbr=8.1.0/O11019 buildvariant=user]

CHECKSUM [1113d715a1ea0406419b833ecdb2898b5ef18745000000000000000000000000]

KERNEL_DTB_SZ [88118]

KERNEL_FMT [gzip]

RAMDISK_FMT [gzip]

AVB1_SIGNED

Repack to boot image: [new-boot.img]

HEADER_VER [0]

KERNEL_SZ [11759436]

RAMDISK_SZ [1520486]

SECOND_SZ [0]

EXTRA_SZ [0]

OS_VERSION [8.1.0]

OS_PATCH_LEVEL [2019-05]

PAGESIZE [2048]

NAME []

CMDLINE [bootopt=64S3,32N2,64N2 product.version=PD1818C_A_1.10.17 fingerprint.abbr=8.1.0/O11019 buildvariant=user]

CHECKSUM [0ff266078b46976d690de3ca9da49e265f9a6c95000000000000000000000000]

****************************

Output file is written to

/storage/emulated/0/Download/magisk_patched-27000_SNmaW.img

****************************

cp: can't preserve ownership of 'busybox': Operation not permitted

cp: can't preserve ownership of 'magisk32': Operation not permitted

cp: can't preserve ownership of 'magisk64': Operation not permitted

cp: can't preserve ownership of 'magiskboot': Operation not permitted

cp: can't preserve ownership of 'magiskinit': Operation not permitted

cp: can't preserve ownership of 'magiskpolicy': Operation not permitted

- All done!