[Magisk] Madreverse:
Hey everyone :)

I'm a still kind of new in this so excuse me if I sound basic or ignorant.

I've managed to successfully root my Huawei P8 (Marshmallow), install and update de SuperSU and it's binary when it asked me to (SuperSU-v2.79-201612051815) but I'm facing an issue in installing Magisk. I've been reading a lot in XDA and other places but I can't seem to resolve anything.

I get the error 1 when installing the v12 in the recovery program TWRP:

Updater process ended with ERROR: 1

Error installing zip file '/sdcard/Download/Magisk-v12.0.zip'

The following is the recovery log:

__bionic_open_tzdata: couldn't find any tzdata when looking for localtime!

__bionic_open_tzdata: couldn't find any tzdata when looking for GMT!

__bionic_open_tzdata: couldn't find any tzdata when looking for posixrules!

Starting TWRP 3.0.2-0 on Mon Apr 17 21:20:46 2017

(pid 2290)

RECOVERY_SDCARD_ON_DATA := true

TW_NO_USB_STORAGE := true

I:TW_BRIGHTNESS_PATH := /sys/class/leds/lcd_backlight0/brightness

I:Found brightness file at '/sys/class/leds/lcd_backlight0/brightness'

I:TWFunc::Set_Brightness: Setting brightness control to 255

I:LANG: en

Starting the UI...setting DRM_FORMAT_RGB565 and GGL_PIXEL_FORMAT_RGB_565

Skipping drm graphics -- not present in build tree

fb0 reports (possibly inaccurate):

vi.bits_per_pixel = 32

vi.red.offset = 0 .length = 8

vi.green.offset = 8 .length = 8

vi.blue.offset = 16 .length = 8

setting GGL_PIXEL_FORMAT_RGBA_8888

double buffered

framebuffer: 0 (720 x 1280)

Using fbdev graphics.

I:TWFunc::Set_Brightness: Setting brightness control to 255

I:Loading package: splash (/twres/splash.xml)

I:Load XML directly

I:PageManager::LoadFileToBuffer loading filename: '/twres/splash.xml' directly

I:Checking resolution...

I:Scaling theme width 0.666667x and height 0.666667x, offsets x: 0 y: 0

I:Loading resources...

I:Loading variables...

I:Loading mouse cursor...

I:Loading pages...

I:Loading page splash

I:Switching packages (splash)

=> Linking mtab

=> Processing recovery.fstab

I:Processing '/cache'

I:Processing '/boot'

I:Processing '/data'

I:Setting up '/data' as data/media emulated storage.

I:Created '/sdcard' folder.

I:mount -o bind '/data/media' '/sdcard' process ended with RC=0

I:mount -o bind '/data/media/0' '/sdcard' process ended with RC=0

I:Processing '/misc'

I:Processing '/recovery'

I:Processing '/system'

I:Processing '/external_sd'

I:Created '/external_sd' folder.

I:Backup folder set to '/data/media/0/TWRP/BACKUPS/W3D7N15730003478'

I:Settings storage is '/data/media/0'

Updating partition details...

I:Data backup size is 3817MB, free: 1837MB.

I:Unable to mount '/external_sd'

I:Actual block device: '', current file system: 'vfat'

...done

I:Unmounting main partitions...

Partition Logs:

/cache | /dev/block/mmcblk0p34 | Size: 247MB Used: 0MB Free: 247MB Backup Size: 0MB

Flags: Can_Be_Mounted Can_Be_Wiped Can_Be_Backed_Up Wipe_During_Factory_Reset Wipe_Available_in_GUI IsPresent

Primary_Block_Device: /dev/block/mmcblk0p34

Display_Name: Cache

Storage_Name: Cache

Backup_Path: /cache

Backup_Name: cache

Backup_Display_Name: Cache

Storage_Path: /cache

Current_File_System: ext4

Fstab_File_System: ext4

Backup_Method: files

/boot | /dev/block/mmcblk0p27 | Size: 24MB

Flags: Can_Be_Backed_Up IsPresent Can_Flash_Img

Primary_Block_Device: /dev/block/mmcblk0p27

Display_Name: Boot

Storage_Name: boot

Backup_Path: /boot

Backup_Name: boot

Backup_Display_Name: Boot

Storage_Path: /boot

Current_File_System: emmc

Fstab_File_System: emmc

Backup_Method: dd

/data | /dev/block/mmcblk0p40 | Size: 10645MB Used: 3817MB Free: 1837MB Backup Size: 3817MB

Flags: Can_Be_Mounted Can_Be_Wiped Can_Be_Backed_Up Wipe_During_Factory_Reset Wipe_Available_in_GUI IsPresent Has_Data_Media Can_Encrypt_Backup Use_Userdata_Encryption Is_Storage Is_Settings_Storage

Symlink_Path: /data/media/0

Symlink_Mount_Point: /sdcard

Primary_Block_Device: /dev/block/mmcblk0p40

Display_Name: Data

Storage_Name: Internal Storage

Backup_Path: /data

Backup_Name: data

Backup_Display_Name: Data

Storage_Path: /data/media/0

Current_File_System: ext4

Fstab_File_System: ext4

Backup_Method: files

MTP_Storage_ID: 65537

/misc | /dev/block/mmcblk0p19 | Size: 2MB

Flags: IsPresent

Primary_Block_Device: /dev/block/mmcblk0p19

Display_Name: misc

Storage_Name: misc

Backup_Path: /misc

Backup_Name: misc

Backup_Display_Name: misc

Storage_Path: /misc

Current_File_System: emmc

Fstab_File_System: emmc

Backup_Method: dd

/recovery | /dev/block/mmcblk0p28 | Size: 64MB

Flags: IsPresent Can_Flash_Img

Primary_Block_Device: /dev/block/mmcblk0p28

Display_Name: Recovery

Storage_Name: recovery

Backup_Path: /recovery

Backup_Name: recovery

Backup_Display_Name: Recovery

Storage_Path: /recovery

Current_File_System: emmc

Fstab_File_System: emmc

Backup_Method: dd

/system | /dev/block/mmcblk0p38 | Size: 2479MB Used: 2152MB Free: 326MB Backup Size: 2152MB

Flags: Can_Be_Mounted Can_Be_Wiped Can_Be_Backed_Up Wipe_Available_in_GUI IsPresent

Primary_Block_Device: /dev/block/mmcblk0p38

Display_Name: System

Storage_Name: System

Backup_Path: /system

Backup_Name: system

Backup_Display_Name: System

Storage_Path: /system

Current_File_System: ext4

Fstab_File_System: ext4

Backup_Method: files

/external_sd | | Size: 0MB Used: 0MB Free: 0MB Backup Size: 0MB

Flags: Can_Be_Mounted Can_Be_Wiped Wipe_Available_in_GUI Removable Is_Storage

Primary_Block_Device: /dev/block/mmcblk1p1

Display_Name: external_sd

Storage_Name: external_sd

Backup_Path: /external_sd

Backup_Name: external_sd

Backup_Display_Name: external_sd

Storage_Path: /external_sd

Current_File_System: vfat

Fstab_File_System: vfat

Backup_Method: files

MTP_Storage_ID: 65538

I:Loading package: TWRP (/data/media/0/TWRP/theme/ui.zip)

I:Loading zip theme

I:Loading package: TWRP (/twres/ui.xml)

I:Load XML directly

I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/uk.xml' directly

I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/tr.xml' directly

I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/sv.xml' directly

I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/sl.xml' directly

I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/sk.xml' directly

I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/ru.xml' directly

I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/pt_BR.xml' directly

I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/pl.xml' directly

I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/nl.xml' directly

I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/it.xml' directly

I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/hu.xml' directly

I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/fr.xml' directly

I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/es.xml' directly

I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/en.xml' directly

I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/el.xml' directly

I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/de.xml' directly

I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/cz.xml' directly

I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/en.xml' directly

parsing languageFile

parsing languageFile done

I:PageManager::LoadFileToBuffer loading filename: '/twres/ui.xml' directly

I:Checking resolution...

I:Scaling theme width 0.666667x and height 0.666667x, offsets x: 0 y: 0

I:Loading resources...

I:Failed to load image from indeterminate013, error -1

I:Loading variables...

I:Loading mouse cursor...

I:Loading pages...

I:Including file: /twres/portrait.xml...

I:PageManager::LoadFileToBuffer loading filename: '/twres/portrait.xml' directly

I:Loading resources...

I:Loading variables...

I:Loading mouse cursor...

I:Loading pages...

I:Loading page main

I:Loading page main2

I:Loading page install

I:Loading page flash_confirm

I:Loading page flash_zip

I:Loading page flash_done

I:Loading page flashimage_confirm

I:Loading page clear_vars

I:Loading page confirm_action

I:Loading page action_page

I:Loading page singleaction_page

I:Loading page action_complete

I:Loading page filecheck

I:Loading page rebootcheck

I:Loading page wipe

I:Loading page advancedwipe

I:Loading page formatdata

I:Loading page formatdata_confirm

I:Loading page checkpartitionlist

I:Loading page partitionoptions

I:Loading page refreshfilesystem

I:Loading page selectfilesystem

I:Loading page backup

I:Loading page backup_options

I:Loading page backupname1

I:Loading page backupname2

I:Loading page backupencryption

I:Loading page backupencryption2

I:Loading page checkbackuppassword

I:Loading page backup_run

I:Loading page restore

I:Unable to open '/data/media/0/TWRP/BACKUPS/W3D7N15730003478'

I:Loading page restore_read

I:Loading page restore_decrypt

I:Loading page try_restore_decrypt

I:Loading page restore_select

I:Loading page renamebackup

I:Loading page restore_run

I:Loading page mount

I:Loading page usb_mount

I:Loading page usb_umount

I:Loading page system_readonly_check

I:Loading page reboot

I:Loading page system_readonly

I:Loading page settings

I:Loading page settings_timezone

I:Loading page settings_screen

I:Loading page settings_vibration

I:Loading page settings_language

I:Loading page advanced

I:Loading page partsdcardsel

I:Loading page partsdcardcheck

I:Loading page partsdcard

I:Loading page htcdumlock

I:Loading page lock

I:Loading page filemanagerlist

I:Loading page filemanageroptions

I:Loading page choosedestinationfolder

I:Loading page filemanagerrenamefile

I:Loading page filemanagerrenamefolder

I:Loading page filemanagerchmod

I:Loading page filemanagerconfirm

I:Loading page filemanageraction

I:Loading page decrypt

I:Loading page decrypt_pattern

I:Loading page trydecrypt

I:Loading page terminalcommand

I:Loading page sideload

I:Loading page fixcontexts

I:Loading page installsu

I:Loading page slideout

I:Loading page select_storage

I:Loading page select_language

I:Set page: 'clear_vars'

I:Set page: 'main2'

I:Switching packages (TWRP)

SELinux contexts loaded from /file_contexts

Full SELinux support is present.

Startup Commands:

hw.lcd.density=320

ro.bt.bdaddr_path=/data/misc/bluedroid/macbt

ro.sf.lcd_density=320

ro.adb.secure=0

ro.com.android.dateformat=MM-dd-yyyy

ro.com.android.dataroaming=true

ro.ril.ecclist=112,911,*911

ro.sys.umsdirtyratio=2

ro.boot.mode=normal

ro.boot.selinux=permissive

ro.boot.hardware=hi6210sft

ro.boot.serialno=W3D7N15730003478

ro.hwui.path_cache_size=32

ro.hwui.layer_cache_size=48

ro.hwui.shape_cache_size=2

ro.hwui.texture_cache_size=72

ro.hwui.gradient_cache_size=1

ro.hwui.r_buffer_cache_size=8

ro.hwui.drop_shadow_cache_size=6

ro.hwui.text_large_cache_width=2048

ro.hwui.text_small_cache_width=1024

ro.hwui.text_large_cache_height=1024

ro.hwui.text_small_cache_height=1024

ro.hwui.texture_cache_flushrate=0.4

ro.omni.device=hi6210sft

ro.twrp.boot=1

ro.twrp.version=3.0.2-0

ro.wifi.channels=

ro.allow.mock.location=1

ro.board.boardid=0719

ro.board.modemid=3db54500

ro.board.platform=hi6210sft

ro.board.boardname=ALICE_TL21_VC

ro.build.id=LYZ28N

ro.build.date=vie abr 8 23:43:27 CEST 2016

ro.build.date.utc=0

ro.build.host=Devel

ro.build.tags=test-keys

ro.build.type=eng

ro.build.user=edu

ro.build.flavor=aosp_hi6210sft-eng

ro.build.display.id=aosp_hi6210sft-eng 5.1.1 LYZ28N f0fa443f0a test-keys

ro.build.product=hi6210sft

ro.build.version.sdk=22

ro.build.version.base_os=

ro.build.version.release=5.1.1

ro.build.version.codename=REL

ro.build.version.incremental=f0fa443f0a

ro.build.version.all_codenames=REL

ro.build.version.security_patch=2015-11-01

ro.build.multicust=false

ro.build.description=aosp_hi6210sft-eng 5.1.1 LYZ28N f0fa443f0a test-keys

ro.build.fingerprint=Android/aosp_hi6210sft/hi6210sft:5.1.1/LYZ28N/f0fa443f0a:eng/test-keys

ro.build.update_version=V1_0

ro.build.characteristics=default

ro.confg.hw_fastbootversion=DailyBuild_201702231810_FASTBOOT

ro.image=recoveryimage

ro.config.hw_emerg=on

ro.config.ringtone=Orion.ogg

ro.config.alarm_alert=Argon.ogg

ro.config.hw_music_lp=true

ro.config.keypasstouser=true

ro.config.notification_sound=pixiedust.ogg

ro.dalvik.vm.native.bridge=0

ro.kernel.android.checkjni=1

ro.secure=0

ro.zygote=zygote64_32

ro.boardid.product=5801

ro.carrier=unknown

ro.product.cpu.abi=arm64-v8a

ro.product.cpu.abilist=arm64-v8a,armeabi-v7a,armeabi

ro.product.cpu.abilist32=armeabi-v7a,armeabi

ro.product.cpu.abilist64=arm64-v8a

ro.product.name=aosp_hi6210sft

ro.product.board=hi6210sft

ro.product.brand=Android

ro.product.model=AOSP by XePeleato

ro.product.device=hi6210sft

ro.product.locale.region=US

ro.product.locale.language=en

ro.product.platform.pseudonym=1ARB9CV

ro.product.manufacturer=Huawei

ro.runmode=normal

ro.baseband=unknown

ro.bootmode=normal

ro.hardware=hi6210sft

ro.opengles.version=131072

ro.revision=0

ro.serialno=W3D7N15730003478

ro.telephony.ril_class=HuaweiRIL

ro.telephony.default_network=9

ro.bootloader=unknown

ro.debuggable=1

ro.factorytest=0

ro.projectmenu.chargemaxlevel=73

ro.projectmenu.chargeminlevel=58

ro.balong_debug.port_num=7

ro.projectmenuact.v8r2=true

net.bt.name=Android

net.change=net.bt.name

ril.gsm.rssi=-1

ril.gsm.deviceid=-1

ril.cdma.rssi=-1

ril.cdma.deviceid=-1

ril.hw_modem0.rssi=-1

ril.hw_modem0.deviceid=000000000000000

ril.hw_modem1.rssi=-1

ril.hw_modem1.deviceid=000000000000000

sys.usb.config=manufacture,adb

init.svc.adbd=running

init.svc.healthd=running

init.svc.ueventd=running

init.svc.recovery=running

init.svc.set_permissive=stopped

qemu.hw.mainkeys=0

twrp.crash_counter=0

twrp.action_complete=0

debug.sf.no_hw_vsync=1

debug.hwui.render_dirty_regions=false

bastet.service.enable=true

dalvik.vm.isa.arm.features=div

dalvik.vm.isa.arm64.features=default

dalvik.vm.checkjni=false

dalvik.vm.heapsize=512m

dalvik.vm.dex2oat-Xms=64m

dalvik.vm.dex2oat-Xmx=512m

dalvik.vm.dex2oat-filter=interpret-only

dalvik.vm.stack-trace-file=/data/anr/traces.txt

dalvik.vm.image-dex2oat-Xms=64m

dalvik.vm.image-dex2oat-Xmx=64m

dalvik.vm.image-dex2oat-filter=verify-none

persist.sys.usb.config=adb

persist.sys.pgps.config=1

persist.sys.dalvik.vm.lib.2=libart.so

persist.sys.strictmode.disable=true

persist.sys.powerup_reason=NORMAL

service.adb.root=1

audioril.lib=libhuawei-audio-ril.so

keyguard.no_require_sim=true

telephony.lteOnGsmDevice=1

telephony.lteOnCdmaDevice=0

I:Copying file /cache/recovery/log to /cache/recovery/last_log

tw_get_context got selinux context: u:object_r:media_rw_data_file:s0

I:Got default contexts and file mode for storage files.

I:Attempt to load settings from settings file...

I:InfoManager loading from '/data/media/0/TWRP/.twrps'.

I:Backup folder set to '/data/media/0/TWRP/BACKUPS/W3D7N15730003478'

I:Copying file /etc/recovery.fstab to /cache/recovery/recovery.fstab

I:Version number saved to '/cache/recovery/.version'

I:Unable to mount '/external_sd'

I:Actual block device: '', current file system: 'vfat'

__bionic_open_tzdata: couldn't find any tzdata when looking for CST6CDT,M3.2.0,M11.1.0!

__bionic_open_tzdata: couldn't find any tzdata when looking for posixrules!

I:TWFunc::Set_Brightness: Setting brightness control to 255

I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/en.xml' directly

parsing languageFile

parsing languageFile done

I:Translating partition display names

I:Backup folder set to '/data/media/0/TWRP/BACKUPS/W3D7N15730003478'

I:Enabling MTP during startup

I:Starting MTP

Starting MTP

I:sending message to add 65537 '/data/media/0' 'Internal Storage'

I:Message sent, add storage ID: 65537

MTP Enabled

I:Check_Lifetime_Writes result: '12026376'

I:Switching packages (TWRP)

I:Set page: 'main'

I:Set page: 'clear_vars'

I:Set page: 'main2'

created new mtpserver object

MtpServer::run fd: 20

mtppipe add storage 65537 '/data/media/0'

MtpStorage id: 65537 path: /data/media/0

I:Set page: 'install'

I:Set page: 'flash_confirm'

I:Set page: 'flash_zip'

I:operation_start: 'Flashing'

Installing zip file '/sdcard/Download/Magisk-v12.0.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: /sdcard/Download/Magisk-v12.0.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/busybox

inflating: arm/magiskboot

inflating: arm/magiskhide

inflating: arm/magiskpolicy

inflating: arm/resetprop

inflating: arm/su

inflating: arm64/busybox

inflating: arm64/magiskboot

inflating: arm64/magiskhide

inflating: arm64/magiskpolicy

inflating: arm64/resetprop

inflating: arm64/su

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/magisk.apk

inflating: common/magiskhide/add

inflating: common/magiskhide/disable

inflating: common/magiskhide/enable

inflating: common/magiskhide/list

inflating: common/magiskhide/rm

inflating: x64/busybox

inflating: x64/magiskboot

inflating: x64/magiskhide

inflating: x64/magiskpolicy

inflating: x64/resetprop

inflating: x64/su

inflating: x86/busybox

inflating: x86/magiskboot

inflating: x86/magiskhide

inflating: x86/magiskpolicy

inflating: x86/resetprop

inflating: x86/su

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

Magisk v12.0 Boot Image Patcher

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

- Mounting /system(ro), /cache, /data

- Device platform: arm64

- 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/block/mmcblk0p27

- Unpacking boot image

MagiskBoot (by topjohnwu) - Boot Image Modification Tool

Parsing boot image: [/dev/block/mmcblk0p27]

IMG [AOSP]

KERNEL [19745368] @ 0x07480000

RAMDISK [3518780] @ 0x0f000000

SECOND [0] @ 0x08300000

DTB [0] @ 0x09e00000

PAGESIZE [2048]

NAME []

CMDLINE [hisi_dma_print=0 vmalloc=384M maxcpus=8 coherent_pool=512K no_irq_affinity androidboot.selinux=enforcing ate_enable=true]

COMPRESSION [gzip]

Decompressing to [ramdisk.cpio]

- Checking patch status

MagiskBoot (by topjohnwu) - Boot Image Modification Tool

Loading cpio: [ramdisk.cpio]

- SuperSU patched boot detected!

- Adding ramdisk patch script for SuperSU

- We are using SuperSU's own tools, mounting su.img

losetup: /data/su.img

- Mounting /data/su.img to /su

- Restoring ramdisk backup with sukernel

sukernel v2.79 (ndk:arm64-v8a) - Copyright (C) 2014-2016 - Chainfire

Loading from [ramdisk.cpio] ...

Archive does not contain backup

! Cannot restore from ramdisk

- Finding stock boot image backup with sukernel

sukernel v2.79 (ndk:arm64-v8a) - Copyright (C) 2014-2016 - Chainfire

Loading from [ramdisk.cpio] ...

Loading from cpio:[init.rc] ...

Finding [^# SuperSU:STOCK:]

-Found@0697 [# SuperSU:STOCK:df24454eef3291f966c4648426b9858822e5bb76]

Stock boot image backup missing

! Cannot find stock boot image backup

Updater process ended with ERROR: 1

I:Legacy property environment disabled.

Error installing zip file '/sdcard/Download/Magisk-v12.0.zip'

Updating partition details...

I:Data backup size is 3881MB, free: 1832MB.

I:Unable to mount '/external_sd'

I:Actual block device: '', current file system: 'vfat'

...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

Any help would be very appreciated!