[Magisk] NovaViper:
The error number is the same, the log looks like this:

__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 Sun Mar 5 18:56:54 2017

(pid 2840)

BOARD_HAS_NO_REAL_SDCARD := true

TW_NO_REBOOT_BOOTLOADER := true

RECOVERY_SDCARD_ON_DATA := true

TW_NO_USB_STORAGE := true

TW_HAS_DOWNLOAD_MODE := true

TW_INCLUDE_CRYPTO := true

I:TW_BRIGHTNESS_PATH := /sys/devices/13900000.dsim/backlight/panel/brightness

I:Found brightness file at '/sys/devices/13900000.dsim/backlight/panel/brightness'

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

I:LANG: en

Starting the UI...setting DRM_FORMAT_ABGR8888 and GGL_PIXEL_FORMAT_BGRA_8888, GGL_PIXEL_FORMAT may not match!

cannot find/open a drm device: No such file or directory

fb0 reports (possibly inaccurate):

vi.bits_per_pixel = 32

vi.red.offset = 16 .length = 8

vi.green.offset = 8 .length = 8

vi.blue.offset = 0 .length = 8

setting GGL_PIXEL_FORMAT_BGRA_8888

double buffered

framebuffer: 0 (1440 x 2560)

Using fbdev graphics.

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

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 1.333333x and height 1.333333x, 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 '/boot'

I:Processing '/recovery'

I:Processing '/system'

I:Processing '/data'

I:Processing '/cache'

I:Processing '/modem'

I:Processing '/efs'

I:Created '/efs' folder.

I:Processing '/usbstorage'

I:Created '/usbstorage' folder.

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:Setting up '/data' as data/media emulated storage.

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:Backup folder set to '/data/media/0/TWRP/BACKUPS/05157df5a3aee61f'

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

I:Decrypt adopted storage starting

I:PageManager::LoadFileToBuffer loading filename: '/data/system/storage.xml' directly

I:successfully loaded storage.xml

Updating partition details...

I:Data backup size is 10598MB, free: 13648MB.

I:Unable to mount '/usbstorage'

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

...done

I:Unmounting main partitions...

Partition Logs:

/boot | /dev/block/sda8 | Size: 28MB

Flags: Can_Be_Backed_Up IsPresent Can_Flash_Img

Primary_Block_Device: /dev/block/sda8

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

/recovery | /dev/block/sda9 | Size: 34MB

Flags: IsPresent Can_Flash_Img

Primary_Block_Device: /dev/block/sda9

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/sda18 | Size: 3591MB Used: 2223MB Free: 1367MB Backup Size: 2223MB

Flags: Can_Be_Mounted Can_Be_Wiped Can_Be_Backed_Up Wipe_Available_in_GUI IsPresent

Primary_Block_Device: /dev/block/sda18

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

/data | /dev/block/sda21 | Size: 25857MB Used: 10598MB Free: 13648MB Backup Size: 10598MB

Flags: Can_Be_Mounted Can_Be_Wiped Can_Be_Backed_Up Wipe_During_Factory_Reset Wipe_Available_in_GUI IsPresent Can_Be_Encrypted 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/sda21

Length: -20480

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

/cache | /dev/block/sda19 | Size: 290MB Used: 0MB Free: 290MB 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/sda19

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

/modem | /dev/block/sda11 | Size: 76MB

Flags: Can_Be_Backed_Up IsPresent

Primary_Block_Device: /dev/block/sda11

Display_Name: Modem

Storage_Name: Modem

Backup_Path: /modem

Backup_Name: modem

Backup_Display_Name: Modem

Storage_Path: /modem

Current_File_System: emmc

Fstab_File_System: emmc

Backup_Method: dd

/efs | /dev/block/sda3 | Size: 15MB Used: 2MB Free: 13MB Backup Size: 2MB

Flags: Can_Be_Mounted Can_Be_Wiped Can_Be_Backed_Up IsPresent

Primary_Block_Device: /dev/block/sda3

Display_Name: EFS

Storage_Name: EFS

Backup_Path: /efs

Backup_Name: efs

Backup_Display_Name: EFS

Storage_Path: /efs

Current_File_System: ext4

Fstab_File_System: ext4

Backup_Method: files

/usbstorage | | 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/sdd1

Alternate_Block_Device: /dev/block/sdd

Display_Name: USB Storage

Storage_Name: USB Storage

Backup_Path: /usbstorage

Backup_Name: usbstorage

Backup_Display_Name: USB Storage

Storage_Path: /usbstorage

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 1.333333x and height 1.333333x, 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/05157df5a3aee61f'

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)

Renaming regular /file_contexts -> /file_contexts.bak

Moving /prebuilt_file_contexts -> /file_contexts

SELinux contexts loaded from /file_contexts

Full SELinux support is present.

I:Not using /misc, not defined in fstab.

I:Not using /misc, not defined in fstab.

Startup Commands:

ro.sf.lcd_density=560

ro.com.google.clientidbase=android-google

ro.com.android.wifi-watchlist=GoogleGuest

ro.url.legal=http://www.google.com/intl/%s/mobile/android/basic/phone-legal.html

ro.arch=exynos7420

ro.boot.hw_rev=10

ro.boot.sec_atd.tty=/dev/ttySAC1

ro.boot.selinux=permissive

ro.boot.baseband=mdm2

ro.boot.hardware=samsungexynos7420

ro.boot.serialno=05157df5a3aee61f

ro.boot.ucs_mode=0

ro.boot.bootdevice=15570000.ufs

ro.boot.bootloader=G925PVPS4CQA2

ro.boot.fmp_config=0

ro.boot.debug_level=0x4f4c

ro.boot.warranty_bit=1

ro.boot.emmc_checksum=3

ro.boot.hmac_mismatch=0

ro.boot.odin_download=1

ro.boot.security_mode=1526595585

ro.boot.boot_salescode=

ro.boot.cp_debug_level=0x55FF

ro.hwui.fbo_cache_size=16

ro.hwui.path_cache_size=16

ro.hwui.layer_cache_size=58

ro.hwui.shape_cache_size=4

ro.hwui.texture_cache_size=88

ro.hwui.gradient_cache_size=2

ro.hwui.r_buffer_cache_size=8

ro.hwui.drop_shadow_cache_size=6

ro.hwui.text_large_cache_width=4096

ro.hwui.text_small_cache_width=1024

ro.hwui.text_large_cache_height=2048

ro.hwui.text_small_cache_height=1024

ro.hwui.texture_cache_flushrate=0.4

ro.omni.device=zeroltespr

ro.omni.version=6.0.1-20160526-zeroltespr-HOMEMADE

ro.twrp.boot=1

ro.twrp.version=3.0.2-0

ro.wifi.channels=

ro.allow.mock.location=1

ro.board.platform=exynos7420

ro.build.id=MOB30J

ro.build.date=Thu May 26 07:49:08 EDT 2016

ro.build.date.utc=0

ro.build.host=build

ro.build.tags=test-keys

ro.build.type=eng

ro.build.user=jenkins

ro.build.flavor=omni_zeroltespr-eng

ro.build.display.id=omni_zeroltespr-eng 6.0.1 MOB30J 2 test-keys

ro.build.product=zeroltespr

ro.build.version.sdk=23

ro.build.version.base_os=

ro.build.version.release=6.0.1

ro.build.version.codename=REL

ro.build.version.incremental=2

ro.build.version.preview_sdk=0

ro.build.version.all_codenames=REL

ro.build.version.security_patch=2016-05-01

ro.build.description=omni_zeroltespr-eng 6.0.1 MOB30J 2 test-keys

ro.build.fingerprint=samsung/omni_zeroltespr/zeroltespr:6.0.1/MOB30J/2:eng/test-keys

ro.build.characteristics=default

ro.kernel.android.checkjni=1

ro.secure=0

ro.zygote.disable_gl_preload=1

ro.product.cpu.abi=arm64-v8a

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

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

ro.product.cpu.abilist64=

ro.product.name=omni_zeroltespr

ro.product.board=samsungexynos7420

ro.product.brand=samsung

ro.product.model=SM-G925P

ro.product.device=zeroltespr

ro.product.manufacturer=samsung

ro.baseband=mdm2

ro.bootmode=unknown

ro.chipname=exynos7420

ro.hardware=samsungexynos7420

ro.revision=0

ro.serialno=05157df5a3aee61f

ro.bootimage.build.date=Thu May 26 07:49:22 EDT 2016

ro.bootimage.build.date.utc=1464263362

ro.bootimage.build.fingerprint=samsung/omni_zeroltespr/zeroltespr:6.0.1/MOB30J/2:eng/test-keys

ro.bootloader=G925PVPS4CQA2

ro.debuggable=1

ro.modversion=OmniROM-6.0.1-20160526-zeroltespr-HOMEMADE

ro.setupwizard.enterprise_mode=1

ro.lcd_brightness=162

ro.lcd_min_brightness=0

net.bt.name=Android

net.change=net.bt.name

sys.usb.state=mtp,adb

sys.usb.config=mtp,adb

sys.usb.configfs=0

init.svc.adbd=stopping

init.svc.healthd=running

init.svc.ueventd=running

init.svc.recovery=running

init.svc.set_permissive=stopped

twrp.crash_counter=0

twrp.action_complete=0

debug.atrace.tags.enableflags=0

dalvik.vm.isa.arm.variant=generic

dalvik.vm.isa.arm.features=default

dalvik.vm.isa.arm64.variant=generic

dalvik.vm.isa.arm64.features=default

dalvik.vm.usejit=true

dalvik.vm.lockprof.threshold=500

dalvik.vm.dex2oat-filter=verify-at-runtime

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

dalvik.vm.image-dex2oat-filter=verify-at-runtime

persist.sys.usb.config=mtp,adb

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

persist.sys.root_access=1

service.adb.root=1

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 '/usbstorage/TWRP/BACKUPS/05157df5a3aee61f'

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

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

I:Unable to mount '/usbstorage'

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 35

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 '/usbstorage/TWRP/BACKUPS/05157df5a3aee61f'

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: '4839060'

I:Switching packages (TWRP)

I:Set page: 'main'

I:Set page: 'clear_vars'

I:Set page: 'main2'

Using '/dev/mtp_usb' for MTP device.

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 overlay: 'select_storage'

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

I:DataManager::SetBackupFolder zip path was /usbstorage changing to /sdcard, /usbstorage

I:Unable to mount '/usbstorage'

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

I:Unable to mount '/usbstorage'

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

I:Backup folder set to '/usbstorage/TWRP/BACKUPS/05157df5a3aee61f'

I:Set overlay: ''

I:Set page: 'clear_vars'

I:Set page: 'install'

I:Set page: 'flash_confirm'

I:Set page: 'flash_zip'

I:operation_start: 'Flashing'

Installing zip file '/usbstorage/Magisk-v12-170304.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: /usbstorage/Magisk-v12-170304.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/magiskboot

inflating: arm/magiskhide

inflating: arm/resetprop

inflating: arm/sepolicy-inject

inflating: arm/su

inflating: arm64/bootimgtools

inflating: arm64/busybox

inflating: arm64/magiskboot

inflating: arm64/magiskhide

inflating: arm64/resetprop

inflating: arm64/sepolicy-inject

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: common/magisksu.sh

inflating: x64/bootimgtools

inflating: x64/busybox

inflating: x64/magiskboot

inflating: x64/magiskhide

inflating: x64/resetprop

inflating: x64/sepolicy-inject

inflating: x64/su

inflating: x86/bootimgtools

inflating: x86/busybox

inflating: x86/magiskboot

inflating: x86/magiskhide

inflating: x86/resetprop

inflating: x86/sepolicy-inject

inflating: x86/su

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

Magisk v170304 Boot Image Patcher

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

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

- Device platform: arm64

- Constructing environment

/tmp/updater: line 333: CPPATH: not found

- /data/magisk.img detected!

- Mounting /data/magisk.img to /magisk

- Found Boot Image: /dev/block/sda8

- Unpacking boot image

IMG [AOSP]

KERNEL [22636540] @ 0x10008000

RAMDISK [5381588] @ 0x31000000

SECOND [0] @ 0x10f00000

DTB [1069056] @ 0x30000100

PAGESIZE [2048]

NAME []

CMDLINE []

COMPRESSION [gzip]

19863 blocks

- SuperSU patched boot detected!

- Adding auto patch script for SuperSU

losetup: /data/su.img

- Mounting /data/su.img to /su

- Using sukernel to restore ramdisk

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

Loading from [/tmp/boottmp/bootunpack/ramdisk] ...

Archive does not contain backup

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

Loading from [/tmp/boottmp/bootunpack/ramdisk] ...

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

Finding [^# SuperSU:STOCK:]

-Found@1669 [# SuperSU:STOCK:d446c5a10de12001f4bfe98fdeb5f534a1a0cf3f]

Stock boot image backup missing

! Unable to restore ramdisk

Updater process ended with ERROR: 1

I:Legacy property environment disabled.

Error installing zip file '/usbstorage/Magisk-v12-170304.zip'

Updating partition details...

I:Data backup size is 10597MB, free: 13649MB.

...done

I:Set page: 'flash_done'

I:operation_end - status=1

I:Set overlay: 'slideout'

I:Set overlay: ''

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 /usbstorage/recovery.log