[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] 5460:
Can I manually flash MIUI Incremental OTA?

When MIUI has finished downloading a Incremental OTA zip, if I press reboot and update button in System Update, it would update successfully. But if I manually reboot into Red Wolf and try to flash the Incremental OTA zip file, it says the zip file is corrupt.

Could somebody tell me that is it possible to manually flash an Incremental OTA? Because I want to add Magisk to the flashing queue, or I will have to wait for the long reboot twice.

Thanks in advance :)

Can't find how to post attachments, here is part of the log:

Starting RED WOLF TWRP 3.1.1-021-5a2f4861 on Tue Mar 3 15:32:31 1970
(pid 394)
RECOVERY_SDCARD_ON_DATA := true
I:Lun file '/sys/class/android_usb/android0/f_mass_storage/lun0/file' does not exist, USB storage mode disabled
TW_INCLUDE_CRYPTO := true
I:TW_BRIGHTNESS_PATH := /sys/class/leds/lcd-backlight/brightness
I:Found brightness file at '/sys/class/leds/lcd-backlight/brightness'
I:TWFunc::Set_Brightness: Setting brightness control to 255
I:LANG: en
Starting the UI...
setting DRM_FORMAT_RGBX8888 and GGL_PIXEL_FORMAT_RGBX_8888
cannot find/open a drm device: No such file or directory
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 (1080 x 1920)
Using fbdev graphics.
TW_SCREEN_BLANK_ON_BOOT := true
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...
....................................

**************************[Red Wolf]: Welcome! ^_^
[Version]: 3.1.1
[Build]: 021
**************************Full SELinux support is present.
Startup Commands:
ro.dalvik.vm.native.bridge=0
dalvik.vm.isa.arm.variant=cortex-a53
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-Xms=64m
dalvik.vm.dex2oat-Xmx=512m
dalvik.vm.appimageformat=lz4
dalvik.vm.usejitprofiles=true
dalvik.vm.stack-trace-file=/data/anr/traces.txt
dalvik.vm.image-dex2oat-Xms=64m
dalvik.vm.image-dex2oat-Xmx=64m
ro.config.ringtone=omni_ringtone1.ogg
ro.config.alarm_alert=omni_alarm1.ogg
ro.config.notification_sound=omni_notification1.ogg
ro.crypto.state=encrypted
ro.crypto.fs_crypto_blkdev=/dev/block/dm-0
pm.dexopt.boot=verify-profile
pm.dexopt.ab-ota=speed-profile
pm.dexopt.install=interpret-only
pm.dexopt.core-app=speed
pm.dexopt.bg-dexopt=speed-profile
pm.dexopt.first-boot=interpret-only
pm.dexopt.shared-apk=speed
pm.dexopt.nsys-library=speed
pm.dexopt.forced-dexopt=speed
ro.adb.secure=0
ro.com.google.clientidbase=android-google
ro.com.android.dataroaming=false
ro.com.android.wifi-watchlist=GoogleGuest
ro.url.legal=*/intl/%s/mobile/android/basic/phone-legal.html
ro.boot.emmc=true
ro.boot.selinux=permissive
ro.boot.baseband=msm
ro.boot.hardware=qcom
ro.boot.serialno=*
ro.boot.keymaster=1
ro.boot.bootdevice=7824900.sdhci
ro.boot.secureboot=1
ro.boot.veritymode=enforcing
ro.boot.boot_reason=
ro.boot.verifiedbootstate=orange
ro.miui.has_cust_partition=true
ro.omni.device=mido
ro.omni.version=7.1.2-20171119-mido-HOMEMADE
ro.twrp.boot=1
ro.twrp.version=3.1.1
ro.wifi.channels=
ro.allow.mock.location=0
ro.board.platform=msm8953
ro.build.id=NJH47F
ro.build.date=Sun Nov 19 20:09:44 CET 2017
ro.build.date.utc=0
ro.build.host=teamhorizon
ro.build.tags=test-keys
ro.build.type=userdebug
ro.build.user=dadi11
ro.build.flavor=omni_mido-userdebug
ro.build.display.id=omni_mido-userdebug 7.1.2 NJH47F eng.dadi11.20171119.200944 test-keys
ro.build.product=mido
ro.build.selinux=1
ro.build.version.sdk=25
ro.build.version.base_os=
ro.build.version.release=7.1.2
ro.build.version.codename=REL
ro.build.version.incremental=eng.dadi11.20171119.200944
ro.build.version.preview_sdk=0
ro.build.version.all_codenames=REL
ro.build.version.security_patch=2017-10-05
ro.build.description=omni_mido-userdebug 7.1.2 NJH47F eng.dadi11.20171119.200944 test-keys
ro.build.characteristics=default
ro.secure=0
ro.zygote=zygote32
ro.carrier=unknown
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_mido
ro.product.board=MSM8953
ro.product.brand=Xiaomi
ro.product.model=Redmi Note 4
ro.product.device=mido
ro.product.locale=en-US
ro.product.manufacturer=Xiaomi
ro.baseband=msm
ro.bootmode=unknown
ro.hardware=qcom
ro.revision=0
ro.serialno=*
ro.bootimage.build.date=Sun Nov 19 20:09:44 CET 2017
ro.bootimage.build.date.utc=1511118584
ro.bootloader=unknown
ro.debuggable=1
ro.modversion=OmniROM-7.1.2-20171119-mido-HOMEMADE
ro.recovery_id=0x37839981564cdf7d854273cdffc0598805fd5a3a000000000000000000000000
ro.setupwizard.enterprise_mode=1
init.svc.adbd=running
init.svc.healthd=running
init.svc.ueventd=running
init.svc.recovery=running
init.svc.sbinqseecomd=running
init.svc.set_permissive=stopped
twrp.crash_counter=0
twrp.action_complete=0
keyguard.no_require_sim=true
security.perf_harden=1
debug.atrace.tags.enableflags=0
sys.usb.ffs.ready=1
net.bt.name=Android
net.change=net.bt.name
sys.usb.state=adb
sys.keymaster.loaded=true
sys.listeners.registered=true
persist.sys.usb.config=adb
persist.sys.dalvik.vm.lib.2=libart.so
sys.usb.config=adb

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/WOLF/.wolfs'.
I:Backup folder set to '/data/media/0/WOLF/.ZALOHY/a0ed9a610604'
I:Copying file /etc/recovery.fstab to /cache/recovery/recovery.fstab
I:Version number saved to '/cache/recovery/.version'
I:Unable to mount '/sdcard1'
I:Actual block device: '', current file system: 'auto'
I:Unable to mount '/usb-otg'
I:Actual block device: '', current file system: 'auto'
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/WOLF/.ZALOHY/a0ed9a610604'
I:TWFunc::Fixup_Time: Pre-fix date and time: 1970-03-03--23-32-59
I:TWFunc::Fixup_Time: Setting time offset from file /sys/class/rtc/rtc0/since_epoch
I:TWFunc::Fixup_Time: will attempt to use the ats files now.
I:TWFunc::Fixup_Time: Setting time offset from file /data/time/ats_2, offset 1508628612115
I:TWFunc::Fixup_Time: Date and time corrected: 2017-12-22--23-03-11
I:Starting MTP
I:[MTP] Starting MTP
I:sending message to add 65537 '/data/media/0' 'Internal Storage'
I:Message sent, add storage ID: 65537
MTP is enabled
I:ROM Status: AL1512-mido-build-20171214003432
I:Switching packages (TWRP)
I:Set page: 'main'
I:Set page: 'clear_vars'
I:Set page: 'main2'
I:[MTP] created new mtpserver object
I:[MTP] MtpServer::run fd: 24
I:[MTP] mtppipe add storage 65537 '/data/media/0'
I:[MTP] MtpStorage id: 65537 path: /data/media/0
I:Set page: 'advanced'
I:Set overlay: 'dialog_advanced_actions_warning'
I:Set page: 'wolf_project_extra_****'
I:Set overlay: ''
I:Set page: 'advanced'
I:Set page: 'main'
I:Set page: 'clear_vars'
I:Set page: 'main2'
I:Set page: 'install'
I:Set page: 'flash_confirm'
I:Set page: 'flash_zip'
I:operation_start: 'Flashing'
Installing zip file '/sdcard/downloaded_rom/miui-blockota-mido-7.12.14-7.12.21-ecc3dd0f84-7.0.zip'
Checking for Digest file...
Skipping Digest check: no Digest file found
minzip: Not a Zip archive (found 0x8fcf777b)
minzip: Parsing archive 0x75b0f1ebd8 failed
Zip file is corrupt!
Error installing zip file '/sdcard/downloaded_rom/miui-blockota-mido-7.12.14-7.12.21-ecc3dd0f84-7.0.zip'
cat: can't open '/tmp/redwolf/compress': No such file or directory
12019 blocks
Screenshot was saved to /sdcard/WOLF.res/Wolf.images/Screenshot_2017-12-22-23-04-14.png
Updating partition details...
I:Data backup size is 8548MB, free: 41177MB.
I:Unable to mount '/sdcard1'
I:Actual block device: '', current file system: 'auto'
I:Unable to mount '/usb-otg'
I:Actual block device: '', current file system: 'auto'
...done
I:Set page: 'flash_done'
I:operation_end - status=1
I:operation_start: 'Disable Install Led'
I:operation_end - status=0
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