[Xiaomi Redmi Note 4 Questions & Answers] edwardenglish:
Ok I tried to manually install my update file but it didn't work. Can somebody help me?

1. I am on unlocked and rooted snapdragon

2. downloaded latest update file as zip from xiaomi homepage (version: V8.5.8.0.NCFMIED (MIUI8))

3. I placed the file onto the internal memory

4. rebooted into TWRP recovery version 3.1.1.0.9

5. wiped System, Cache and Dalvik

6. started to install zip update file

7. it failed, please see the log (it contains the log about the wipe too!):

I:Set page: 'wipe'
I:Set page: 'advancedwipe'
I:Set page: 'action_page'
I:operation_start: 'Format'
I:wipe list 'DALVIK;/system;/cache;'
I:wipe_path 'DALVIK'
Wiping Dalvik Cache Directories...
Cleaned: /data/dalvik-cache...
-- Dalvik Cache Directories Wipe Complete!
I:wipe_path '/system'
Formatting System using make_ext4fs...
Creating filesystem with parameters:
Size: 3221225472
Block size: 4096
Blocks per group: 32768
Inodes per group: 8192
Inode size: 256
Journal blocks: 12288
Label:
Blocks: 786432
Block groups: 24
Reserved block group size: 191
Created filesystem with 11/196608 inodes and 25785/786432 blocks
warning: wipe_block_device: Wipe via secure discard failed, used discard instead

I:wipe_path '/cache'
Formatting Cache using make_ext4fs...
Creating filesystem with parameters:
Size: 268435456
Block size: 4096
Blocks per group: 32768
Inodes per group: 8192
Inode size: 256
Journal blocks: 1024
Label:
Blocks: 65536
Block groups: 2
Reserved block group size: 15
Created filesystem with 11/16384 inodes and 2089/65536 blocks
warning: wipe_block_device: Wipe via secure discard failed, used discard instead

I:Recreating /cache/recovery folder.
I:Copying file /etc/recovery.fstab to /cache/recovery/recovery.fstab
I:Version number saved to '/cache/recovery/.version'
Updating partition details...
I:Data backup size is 3185MB, free: 39876MB.
I:Unable to mount '/usb-otg'
I:Actual block device: '', current file system: 'auto'
...done
I:Set page: 'action_complete'
I:operation_end - status=0
I:Set page: 'clear_vars'
I:Set page: 'advancedwipe'
I:Set page: 'wipe'
I:Set page: 'main'
I:Set page: 'clear_vars'
I:Set page: 'main2'
I:Set page: 'install'
I:Set overlay: 'select_storage'
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 '/sdcard/Daten/miui_HMNote4XGlobal_V8.5.8.0.NCFMIED_9bbf8ced00_7.0.zip'
Checking for MD5 file...
Skipping MD5 check: no MD5 file found
I:Update binary zip
I:Zip does not contain SELinux file_contexts file in its root.
I:Legacy property environment initialized.
Updating package '/sdcard/Daten/miui_HMNote4XGlobal_V8.5.8.0.NCFMIED_9bbf8ced00_7.0.zip' ...
__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!
Starting updater on Tue Sep 26 13:35:07 2017
============= emmc ===============
name: HCG8a4
manfid: 0x000090
date: 02/2017
cid: 90014a484347386134a232980a162400
csd: d02701328f5903ffffffffef8a400000
oemid: 0x014a
erase_size: 524288
preferred_erase_size: 524288
stat: 12753 158 233701 4480 428 14530 7033952 37820 0 3820 42300

============= prop ===============
ro.build.fingerprint=Xiaomi/omni_mido/mido:6.0.1/MOB30M/2:eng/test-keys
ro.build.version.release=6.0.1
ro.build.version.incremental=2
ro.build.product=mido
ro.product.device=mido
ro.product.mod_device=unknown
ro.miui.ui.version.name=unknown

file_contexts is not in package
Target: xiaomi/mido/mido:7.0/NRD90M/V8.5.8.0.NCFMIED:user/release-keys
Target: xiaomi/mido/mido:7.0/NRD90M/V8.5.8.0.NCFMIED:user/release-keys
MountFn took 00s.
MountFn took 00s.
package_extract_dir took 11s.
package_extract_dir took 11s.
SetMetadataFn took 01s.
SetMetadataFn took 01s.
package_extract_file took 01s.
Patching firmware images...
package_extract_file took 01s.
Patching firmware images...
int prepare_partitions(enum boot_update_stage, const char *): Preparing for primary partition update
'apdp' partition not backup - skip safe update
'keystore' partition not backup - skip safe update
'msadp' partition not backup - skip safe update
package_extract_file took 00s.
package_extract_file took 00s.
package_extract_file took 00s.
package_extract_file took 00s.
package_extract_file took 00s.
package_extract_file took 00s.
package_extract_file took 00s.
package_extract_file took 00s.
package_extract_file took 00s.
package_extract_file took 00s.
package_extract_file took 00s.
package_extract_file took 00s.
package_extract_file took 00s.
package_extract_file took 00s.
package_extract_file took 00s.
package_extract_file took 00s.
package_extract_file took 00s.
package_extract_file took 00s.
int prepare_partitions(enum boot_update_stage, const char *): Preparing for backup partition update
package_extract_file took 00s.
package_extract_file took 00s.
package_extract_file took 00s.
package_extract_file took 00s.
package_extract_file took 00s.
package_extract_file took 00s.
package_extract_file took 00s.
package_extract_file took 00s.
package_extract_file took 00s.
package_extract_file took 00s.
package_extract_file took 00s.
package_extract_file took 00s.
package_extract_file took 00s.
package_extract_file took 00s.
package_extract_file took 00s.
package_extract_file took 00s.
package_extract_file took 00s.
package_extract_file took 00s.
int prepare_partitions(enum boot_update_stage, const char *): Finalizing partitions
package_extract_file took 05s.
package_extract_file took 05s.
package_extract_file took 01s.
package_extract_file took 01s.
unmount of /firmware failed; no such volume
unmount of /firmware failed; no such volume
mount: failed to mount /dev/block/bootdevice/by-name/sec at /firmware: Invalid argument
mount: failed to mount /dev/block/bootdevice/by-name/sec at /firmware: Invalid argumentMountFn took 00s.

MountFn took 00s.
package_extract_file: can't open /firmware/image/sec.dat for write: No such file or directory
package_extract_file took 00s.
package_extract_file took 00s.
unmount of /firmware failed; no such volume
unmount of /firmware failed; no such volume
package_extract_file took 00s.
package_extract_file took 00s.
SetMetadataFn took 00s.
SetMetadataFn took 00s.
about to run program [/cache/miui_update] with 1 args
[RELINK] Relink ...
RunProgramFn took 00s.
RunProgramFn took 00s.
Patching system image unconditionally...
performing update
Patching system image unconditionally...
package_extract_file took 00s.
package_extract_file took 00s.
blockimg version is 4
maximum stash entries 0
creating stash /cache/recovery/2bdde8504898ccfcd2c59f20bb8c9c25f73bb524/
254492672 bytes free on /cache (0 needed)
erasing 184138 blocks
writing 576394 blocks of new data
zeroing 1024 blocks
zeroing 1024 blocks
zeroing 1024 blocks
zeroing 1024 blocks
zeroing 1024 blocks
zeroing 1024 blocks
zeroing 1024 blocks
zeroing 1024 blocks
zeroing 1024 blocks
zeroing 1024 blocks
zeroing 1024 blocks
zeroing 1024 blocks
zeroing 1024 blocks
zeroing 1024 blocks
zeroing 1024 blocks
zeroing 1024 blocks
zeroing 1024 blocks
zeroing 1024 blocks
zeroing 1024 blocks
zeroing 1024 blocks
zeroing 1024 blocks
zeroing 1024 blocks
zeroing 1024 blocks
zeroing 1024 blocks
zeroing 1024 blocks
zeroing 300 blocks
wrote 602294 blocks; expected 602294
stashed 0 blocks
max alloc needed was 4096
deleting stash 2bdde8504898ccfcd2c59f20bb8c9c25f73bb524
bytes_written_system: 2466996224
bytes_stashed_system: 0
Perform Block Image Update took 33s.
unmounting /cust succeeded
script succeeded: result was [1.000000]device name: /dev/block/bootdevice/by-name/system
Filesystem volume name: system
Last mounted on: <not availabel>
Filesystem UUID: da594c53-9beb-f85c-85c5-cedf76546f7a
Filesystem magic number: 0xEF53
Filesystem revision #: 1 (dynamic)
Filesystem flags: unsigned_directory_hash
Filesystem features: has_journal ext_attr resize_inode filetype extents sparse_super large_file gdt_csum
Default mount options: (none)
Filesystem state: clean
Errors behavior: Remount read-only
Filesystem os type: Linux
Inode count: 193920
Block count: 774155
Reserved block count: 0
Free blocks: 197468
Free inodes: 186465
First block: 0
Block size: 4096
Reserved GDT blocks: 191
Blocks per group: 32768
Inodes per group: 8080
Inode blocks per group: 505
Last mount time: n/a
Last write time: Wed Dec 31 19:00:00 1969
Mount count: 0
Maximum mount count: 10
Last checked: Wed Dec 31 19:00:00 1969
Check interval: 0 (<none>)
Reserved blocks uid: 0 (user root)
Reserved blocks gid: 0 (group root)
First inode: 11
Inode size: 256
Required extra isize: 28
Desired extra isize: 28
Journal inode: 8
Default directory hash: tea
Journal backup: inode blocks
Failed to unlink '/cache/otad/otad.log'
I:Updater process ended with RC=0
I:Legacy property environment disabled.
I:Install took 53 second(s).
Updating partition details...
I:Data backup size is 3185MB, free: 39876MB.
I:Unable to mount '/usb-otg'
I:Actual block device: '', current file system: 'auto'
...done

Anybody ???

I had to restore my backup to get back into the system.