topjohnwu / Magisk

The Magic Mask for Android
GNU General Public License v3.0
47.59k stars 12.08k forks source link

Lenovo Tab3-710F - Fails to find boot image during installation. #24

Closed IzaacJ closed 7 years ago

IzaacJ commented 7 years ago

Recovery log information:

Installing zip file '/external_sd/Magisk-v9.zip'
Checking for MD5 file...
Skipping MD5 check: no MD5 file found
I:Zip does not contain SELinux file_contexts file in its root.
I:Legacy property environment initialized.
Archive:  /external_sd/Magisk-v9.zip
  inflating: META-INF/MANIFEST.MF
  inflating: META-INF/CERT.SF
  inflating: META-INF/CERT.RSA
  inflating: META-INF/com/google/android/update-binary
  inflating: META-INF/com/google/android/updater-script
  inflating: arm/bootimgtools
  inflating: arm/busybox
  inflating: arm/magiskhide
  inflating: arm/resetprop
  inflating: arm/sepolicy-inject
  inflating: arm64/bootimgtools
  inflating: arm64/busybox
  inflating: arm64/magiskhide
  inflating: arm64/resetprop
  inflating: arm64/sepolicy-inject
  inflating: chromeos/futility
  inflating: chromeos/kernel.keyblock
  inflating: chromeos/kernel_data_key.vbprivk
  inflating: common/custom_ramdisk_patch.sh
  inflating: common/file_contexts_image
  inflating: common/init.magisk.rc
  inflating: common/magic_mask.sh
  inflating: common/magiskhide/add
  inflating: common/magiskhide/list
  inflating: common/magiskhide/rm
  inflating: x64/bootimgtools
  inflating: x64/busybox
  inflating: x64/magiskhide
  inflating: x64/resetprop
  inflating: x64/sepolicy-inject
  inflating: x86/bootimgtools
  inflating: x86/busybox
  inflating: x86/magiskhide
  inflating: x86/resetprop
  inflating: x86/sepolicy-inject
*****************************
Magisk v9 Boot Image Patcher
*****************************
- Mounting /system(ro), /cache, /data
- Device platform: arm
chmod: /futility: No such file or directory
sh: missing ]
! Unable to detect boot image
Updater process ended with ERROR: 1
I:Legacy property environment disabled.
Error installing zip file '/external_sd/Magisk-v9.zip'
Updating partition details...
I:Data backup size is 4031MB, free: 487MB.
I:Unable to mount '/sd-ext'
I:Actual block device: '', current file system: 'ext4'
I:Unable to mount '/usbotg'
I:Actual block device: '', current file system: 'auto'
...done
I:Set page: 'flash_done'
I:operation_end - status=1

Boot partition information:

/boot | /dev/bootimg | Size: 16MB
   Flags: Can_Be_Backed_Up IsPresent Can_Flash_Img 
   Primary_Block_Device: /dev/bootimg
   Display_Name: Boot/Kernel [boot]
   Storage_Name: boot
   Backup_Path: /boot
   Backup_Name: boot
   Backup_Display_Name: Boot/Kernel [boot]
   Storage_Path: /boot
   Current_File_System: emmc
   Fstab_File_System: emmc
   Backup_Method: dd

Attached files: Full recovery.txt Stock boot image

topjohnwu commented 7 years ago

If you flash Magisk in the recovery, it should be able to find the boot image. The current v9 zip has a typo in the script which causes that functionality to be broken. Please wait for the next release, thanks!

IzaacJ commented 7 years ago

This issue has been present for the past few releases. phusson on xda has tried to help me by fixing typos in the script w/o success.

IzaacJ commented 7 years ago

Still not working.

* Magisk v13.1 Installer
************************
- Mounting /system, /vendor, /cache, /data
- Device platform: arm
- Constructing environment
- Creating /data/magisk.img
Creating filesystem with parameters:
    Size: 67108864
    Block size: 4096
    Blocks per group: 32768
    Inodes per group: 4096
    Inode size: 256
    Journal blocks: 1024
    Label: 
    Blocks: 16384
    Block groups: 1
    Reserved block group size: 7
Created filesystem with 11/4096 inodes and 1294/16384 blocks
- Mounting /data/magisk.img to /magisk
- Found Boot Image: /dev/bootimg
sh: gid=0(root): unknown operand
Bad mode
- Unpacking boot image
mmap failed with 12: Out of memory

MagiskBoot v13.1(1310) (by topjohnwu) - Boot Image Modification Tool

! Unable to unpack boot image
Updater process ended with ERROR: 1
I:Legacy property environment disabled.
Error installing zip file '/sdcard/Zips/Magisk-v13.1.zip'
Updating partition details...
I:Data backup size is 165MB, free: 4897MB.
I:Unable to mount '/external_sd'
I:Actual block device: '', current file system: 'auto'
I:Unable to mount '/sd-ext'
I:Actual block device: '', current file system: 'ext4'
I:Unable to mount '/usbotg'
I:Actual block device: '', current file system: 'auto'
...done
I:Set page: 'flash_done'
I:operation_end - status=1
I:Set page: 'clear_vars'
I:Set page: 'install'
I:Set page: 'main'
I:Set page: 'clear_vars'
I:Set page: 'main2'
I:Set page: 'advanced'
I:Set page: 'confirm_action'
I:Set page: 'action_page'
I:operation_start: 'Copy Log'
I:Copying file /tmp/recovery.log to /data/media/0/recovery.log

Stock boot image is still the one above. Just flashed the device with all stock except recovery, which is TWRP 3.0.2.

@topjohnwu reopen this?