Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation Failed: | Boot image kernel_dtb was patched by old (unsupported) Magisk #9

Open
mohit0121 opened this issue Aug 28, 2024 · 0 comments

Comments

@mohit0121
Copy link

mohit0121 commented Aug 28, 2024

`- Copying zip to temp directory

  • Installing Magisk-Autoboot-v2.0.0-simple.zip
    Archive: /data/user/0/com.topjohnwu.magisk/cache/flash/install.zip
    inflating: module.prop

Magisk Autoboot
by anasfanani


Archive: /data/user/0/com.topjohnwu.magisk/cache/flash/install.zip
inflating: customize.sh


Powered by Magisk


  • Extracting module files
    Archive: /data/user/0/com.topjohnwu.magisk/cache/flash/install.zip
    inflating: LICENSE
    inflating: uninstall.sh
    inflating: CHANGELOG.txt
    inflating: module.prop
    inflating: README.md
    creating: scripts/
    creating: scripts/files/
    inflating: scripts/files/autoboot.sh
    inflating: scripts/files/init.autoboot.rc
    inflating: scripts/boot_patch.sh
    creating: scripts/chromeos/
    inflating: scripts/chromeos/kernel_data_key.vbprivk
    inflating: scripts/chromeos/futility
    inflating: scripts/chromeos/kernel.keyblock
    inflating: scripts/util_functions.sh
    inflating: customize.sh
    inflating: update.json
  • Magisk Autoboot Installer
  • Target image: /dev/block/mmcblk0p21
  • Device platform: arm64-v8a
  • Backup current boot image
  • Save 'backup_boot.img' at module directory
    Parsing boot image: [/dev/block/mmcblk0p21]
    HEADER_VER [0]
    KERNEL_SZ [31019883]
    RAMDISK_SZ [2293748]
    SECOND_SZ [0]
    EXTRA_SZ [0]
    OS_VERSION [8.1.0]
    OS_PATCH_LEVEL [2019-10]
    PAGESIZE [2048]
    NAME []
    CMDLINE [console=ttyHSL0,115200,n8 androidboot.console=ttyHSL0 androidboot.hardware=qcom msm_rtb.filter=0x237 ehci-hcd.park=3 lpm_levels.sleep_disabled=1 androidboot.bootdevice=7824900.sdhci earlycon=msm_hsl_uart,0x78af000 buildvariant=user]
    CHECKSUM [338164ee204f218c732402932d345713113e2f15000000000000000000000000]
  • Unpacking boot image
    KERNEL_DTB_SZ [20997004]
    KERNEL_FMT [gzip]
    RAMDISK_FMT [gzip]
  • Checking ramdisk status
    Loading cpio: [ramdisk.cpio]
  • Magisk patched boot image detected
  • Patching ramdisk
    Loading cpio: [ramdisk.cpio]
    Create directory [overlay.d] (0750)
    Create directory [overlay.d/sbin] (0750)
    Add entry [overlay.d/init.autoboot.rc] (0700)
    Add entry [overlay.d/sbin/autoboot.sh] (0700)
    Dump cpio: [ramdisk.cpio]
    MagiskBoot - Boot Image Modification Tool

Usage: /data/adb/magisk/magiskboot [args...]

Supported actions:
unpack [-n] [-h]
Unpack to, if available, kernel, kernel_dtb, ramdisk.cpio,
second, dtb, extra, and recovery_dtbo into current directory.
If '-n' is provided, it will not attempt to decompress kernel or
ramdisk.cpio from their original formats.
If '-h' is provided, it will dump header info to 'header',
which will be parsed when repacking.
Return values:
0:valid 1:error 2:chromeos

repack [-n] [outbootimg]
Repack boot image components from current directory
to [outbootimg], or new-boot.img if not specified.
If '-n' is provided, it will not attempt to recompress ramdisk.cpio,
otherwise it will compress ramdisk.cpio and kernel with the same format
as in if the file provided is not already compressed.
If env variable PATCHVBMETAFLAG is set to true, all disable flags will
be set in the vbmeta header.

hexpatch
Search in , and replace with

cpio [commands...]
Do cpio commands to (modifications are done in-place)
Each command is a single argument, add quotes for each command
Supported commands:
exists ENTRY
Return 0 if ENTRY exists, else return 1
rm [-r] ENTRY
Remove ENTRY, specify [-r] to remove recursively
mkdir MODE ENTRY
Create directory ENTRY in permissions MODE
ln TARGET ENTRY
Create a symlink to TARGET with the name ENTRY
mv SOURCE DEST
Move SOURCE to DEST
add MODE ENTRY INFILE
Add INFILE as ENTRY in permissions MODE; replaces ENTRY if exists
extract [ENTRY OUT]
Extract ENTRY to OUT, or extract all entries to current directory
test
Test the current cpio's status
Return value is 0 or bitwise or-ed of following values:
0x1:Magisk 0x2:unsupported 0x4:Sony
patch
Apply ramdisk patches
Configure with env variables: KEEPVERITY KEEPFORCEENCRYPT
backup ORIG
Create ramdisk backups from ORIG
restore
Restore ramdisk from ramdisk backup stored within incpio
sha1
Print stock boot SHA1 if previously backed up in ramdisk

dtb [args...]
Do dtb related actions to
Supported actions:
print [-f]
Print all contents of dtb for debugging
Specify [-f] to only print fstab nodes
patch
Search for fstab and remove verity/avb
Modifications are done directly to the file in-place
Configure with env variables: KEEPVERITY

split
Split image.*-dtb into kernel + kernel_dtb

sha1
Print the SHA1 checksum for

cleanup
Cleanup the current working directory

compress[=format] [outfile]
Compress with [format] (default: gzip), optionally to [outfile]
/[outfile] can be '-' to be STDIN/STDOUT
Supported formats: gzip zopfli xz lzma bzip2 lz4 lz4_legacy lz4_lg

decompress [outfile]
Detect format and decompress , optionally to [outfile]
/[outfile] can be '-' to be STDIN/STDOUT
Supported formats: gzip zopfli xz lzma bzip2 lz4 lz4_legacy lz4_lg

! Boot image kernel_dtb was patched by old (unsupported) Magisk
! Please try again with unpatched boot image
! Installation failed
`
PS: Magisk is installed via the boot partition

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant