[Galaxy S 4 i9505 Original Android Development] mrzx:
Hello! Please help.

Phone Xiaomi Mi5. With stock firmware MIUI does not work to flash a custom(Mokee, Lineage, RR). But with custom, for example Mokee, can flash Miui. The fact that the main firmware I want to have MIUI.

Log attached.

[D] Initialized installer for zip file: /storage/emulated/0/data-slot-jdc.zip
[D] Installer version: 9.2.0.r25.g0638efb (v9.2.0-25-g0638efb8)
[D] [Installer] Initialization stage
[D] [Installer] Chroot creation stage
[V] Creating chroot environment
[D] Running executable: mount
mount: bad /etc/fstab: No such file or directory
[D] Running executable: mount
mount: bad /etc/fstab: No such file or directory
[D] Running executable: mount
mount: bad /etc/fstab: No such file or directory
[D] Running executable: mount
mount: bad /etc/fstab: No such file or directory
[D] Not mounting EFS partition because this is not a Samsung device
[D] [Installer] Environment set up stage
[D] [Installer] Device verification stage
[D] ro.product.device = gemini
[D] ro.build.product = gemini
[D] ro.patcher.device =
[D] Target device = gemini
[D] Boot block device: /dev/block/platform/soc/624000.ufshc/by-name/boot
[D] Recovery block device: /dev/block/platform/soc/624000.ufshc/by-name/recovery
[D] System block device: /dev/block/platform/soc/624000.ufshc/by-name/system
[D] Copied /dev/block/platform/soc/624000.ufshc/by-name/boot to the chroot
[D] Copied /dev/block/bootdevice/by-name/boot to the chroot
[D] Copied /dev/block/sde36 to the chroot
[D] Copied /dev/block/platform/soc/624000.ufshc/by-name/recovery to the chroot
[D] Copied /dev/block/bootdevice/by-name/recovery to the chroot
[D] Copied /dev/block/sde37 to the chroot
[D] Symlinked /mb/loop.system to /chroot/dev/block/platform/soc/624000.ufshc/by-name/system
[D] Symlinked /mb/loop.system to /chroot/dev/block/bootdevice/by-name/system
[D] Symlinked /mb/loop.system to /chroot/dev/block/sde39
[D] Extracting from recovery ramdisk: default.recovery.prop
[D] Extracting from recovery ramdisk: sbin/[
[D] Extracting from recovery ramdisk: sbin/[[
[D] Extracting from recovery ramdisk: sbin/adbd
[D] Extracting from recovery ramdisk: sbin/adjtimex
[D] Extracting from recovery ramdisk: sbin/arp
[D] Extracting from recovery ramdisk: sbin/ash
[D] Extracting from recovery ramdisk: sbin/awk
[D] Extracting from recovery ramdisk: sbin/base64
[D] Extracting from recovery ramdisk: sbin/basename
[D] Extracting from recovery ramdisk: sbin/bbconfig
[D] Extracting from recovery ramdisk: sbin/blkid
[D] Extracting from recovery ramdisk: sbin/blockdev
[D] Extracting from recovery ramdisk: sbin/brctl
[D] Extracting from recovery ramdisk: sbin/bu
[D] Extracting from recovery ramdisk: sbin/bunzip2
[D] Extracting from recovery ramdisk: sbin/busybox
[D] Extracting from recovery ramdisk: sbin/bzcat
[D] Extracting from recovery ramdisk: sbin/bzip2
[D] Extracting from recovery ramdisk: sbin/cal
[D] Extracting from recovery ramdisk: sbin/cat
[D] Extracting from recovery ramdisk: sbin/catv
[D] Extracting from recovery ramdisk: sbin/chattr
[D] Extracting from recovery ramdisk: sbin/chcon
[D] Extracting from recovery ramdisk: sbin/chgrp
[D] Extracting from recovery ramdisk: sbin/chmod
[D] Extracting from recovery ramdisk: sbin/chown
[D] Extracting from recovery ramdisk: sbin/chroot
[D] Extracting from recovery ramdisk: sbin/chvt
[D] Extracting from recovery ramdisk: sbin/clear
[D] Extracting from recovery ramdisk: sbin/cmp
[D] Extracting from recovery ramdisk: sbin/comm
[D] Extracting from recovery ramdisk: sbin/cp
[D] Extracting from recovery ramdisk: sbin/cpio
[D] Extracting from recovery ramdisk: sbin/crond
[D] Extracting from recovery ramdisk: sbin/crontab
[D] Extracting from recovery ramdisk: sbin/cut
[D] Extracting from recovery ramdisk: sbin/date
[D] Extracting from recovery ramdisk: sbin/dc
[D] Extracting from recovery ramdisk: sbin/dd
[D] Extracting from recovery ramdisk: sbin/deallocvt
[D] Extracting from recovery ramdisk: sbin/depmod
[D] Extracting from recovery ramdisk: sbin/devmem
[D] Extracting from recovery ramdisk: sbin/df
[D] Extracting from recovery ramdisk: sbin/diff
[D] Extracting from recovery ramdisk: sbin/dirname
[D] Extracting from recovery ramdisk: sbin/dmesg
[D] Extracting from recovery ramdisk: sbin/dnsd
[D] Extracting from recovery ramdisk: sbin/dos2unix
[D] Extracting from recovery ramdisk: sbin/du
[D] Extracting from recovery ramdisk: sbin/dump_image
[D] Extracting from recovery ramdisk: sbin/e2fsck
[D] Extracting from recovery ramdisk: sbin/echo
[D] Extracting from recovery ramdisk: sbin/ed
[D] Extracting from recovery ramdisk: sbin/egrep
[D] Extracting from recovery ramdisk: sbin/env
[D] Extracting from recovery ramdisk: sbin/erase_image
[D] Extracting from recovery ramdisk: sbin/exfat-fuse
[D] Extracting from recovery ramdisk: sbin/expand
[D] Extracting from recovery ramdisk: sbin/expr
[D] Extracting from recovery ramdisk: sbin/false
[D] Extracting from recovery ramdisk: sbin/fatlabel
[D] Extracting from recovery ramdisk: sbin/fbsplash
[D] Extracting from recovery ramdisk: sbin/fdisk
[D] Extracting from recovery ramdisk: sbin/fgconsole
[D] Extracting from recovery ramdisk: sbin/fgrep
[D] Extracting from recovery ramdisk: sbin/find
[D] Extracting from recovery ramdisk: sbin/findfs
[D] Extracting from recovery ramdisk: sbin/flash_image
[D] Extracting from recovery ramdisk: sbin/flash_lock
[D] Extracting from recovery ramdisk: sbin/flash_unlock
[D] Extracting from recovery ramdisk: sbin/flashcp
[D] Extracting from recovery ramdisk: sbin/flock
[D] Extracting from recovery ramdisk: sbin/fold
[D] Extracting from recovery ramdisk: sbin/free
[D] Extracting from recovery ramdisk: sbin/freeramdisk
[D] Extracting from recovery ramdisk: sbin/fsck.exfat
[D] Extracting from recovery ramdisk: sbin/fsck.f2fs
[D] Extracting from recovery ramdisk: sbin/fsck.fat
[D] Extracting from recovery ramdisk: sbin/fsck.ntfs
[D] Extracting from recovery ramdisk: sbin/fstrim
[D] Extracting from recovery ramdisk: sbin/fsync
[D] Extracting from recovery ramdisk: sbin/ftpget
[D] Extracting from recovery ramdisk: sbin/ftpput
[D] Extracting from recovery ramdisk: sbin/fuser
[D] Extracting from recovery ramdisk: sbin/getenforce
[D] Extracting from recovery ramdisk: sbin/getopt
[D] Extracting from recovery ramdisk: sbin/getprop
[D] Extracting from recovery ramdisk: sbin/getsebool
[D] Extracting from recovery ramdisk: sbin/grep
[D] Extracting from recovery ramdisk: sbin/groups
[D] Extracting from recovery ramdisk: sbin/gunzip
[D] Extracting from recovery ramdisk: sbin/gzip
[D] Extracting from recovery ramdisk: sbin/halt
[D] Extracting from recovery ramdisk: sbin/head
[D] Extracting from recovery ramdisk: sbin/healthd
[D] Extracting from recovery ramdisk: sbin/hexdump
[D] Extracting from recovery ramdisk: sbin/hwclock
[D] Extracting from recovery ramdisk: sbin/id
[D] Extracting from recovery ramdisk: sbin/ifconfig
[D] Extracting from recovery ramdisk: sbin/inetd
[D] Extracting from recovery ramdisk: sbin/insmod
[D] Extracting from recovery ramdisk: sbin/install
[D] Extracting from recovery ramdisk: sbin/ionice
[D] Extracting from recovery ramdisk: sbin/iostat
[D] Extracting from recovery ramdisk: sbin/ip
[D] Extracting from recovery ramdisk: sbin/kill
[D] Extracting from recovery ramdisk: sbin/killall
[D] Extracting from recovery ramdisk: sbin/killall5
[D] Extracting from recovery ramdisk: sbin/less
[D] Extracting from recovery ramdisk: sbin/libaosprecovery.so
[D] Extracting from recovery ramdisk: sbin/libbacktrace.so
[D] Extracting from recovery ramdisk: sbin/libbase.so
[D] Extracting from recovery ramdisk: sbin/libbinder.so
[D] Extracting from recovery ramdisk: sbin/libblkid.so
[D] Extracting from recovery ramdisk: sbin/libbmlutils.so
[D] Extracting from recovery ramdisk: sbin/libbootloader_message.so
[D] Extracting from recovery ramdisk: sbin/libc++.so
[D] Extracting from recovery ramdisk: sbin/libc.so
[D] Extracting from recovery ramdisk: sbin/libcrecovery.so
[D] Extracting from recovery ramdisk: sbin/libcryptfs_hw.so
[D] Extracting from recovery ramdisk: sbin/libcryptfslollipop.so
[D] Extracting from recovery ramdisk: sbin/libcrypto.so
[D] Extracting from recovery ramdisk: sbin/libcutils.so
[D] Extracting from recovery ramdisk: sbin/libdl.so
[D] Extracting from recovery ramdisk: sbin/libe4crypt.so
[D] Extracting from recovery ramdisk: sbin/libexfat_twrp.so
[D] Extracting from recovery ramdisk: sbin/libext2_blkid.so
[D] Extracting from recovery ramdisk: sbin/libext2_com_err.so
[D] Extracting from recovery ramdisk: sbin/libext2_e2p.so
[D] Extracting from recovery ramdisk: sbin/libext2_profile.so
[D] Extracting from recovery ramdisk: sbin/libext2_quota.so
[D] Extracting from recovery ramdisk: sbin/libext2_uuid.so
[D] Extracting from recovery ramdisk: sbin/libext2fs.so
[D] Extracting from recovery ramdisk: sbin/libext4_utils.so
[D] Extracting from recovery ramdisk: sbin/libf2fs.so
[D] Extracting from recovery ramdisk: sbin/libflashutils.so
[D] Extracting from recovery ramdisk: sbin/libft2.so
[D] Extracting from recovery ramdisk: sbin/libfuse.so
[D] Extracting from recovery ramdisk: sbin/libfusesideload.so
[D] Extracting from recovery ramdisk: sbin/libgatekeeper.so
[D] Extracting from recovery ramdisk: sbin/libgpt_twrp.so
[D] Extracting from recovery ramdisk: sbin/libhardware.so
[D] Extracting from recovery ramdisk: sbin/libkeymaster1.so
[D] Extracting from recovery ramdisk: sbin/libkeymaster_messages.so
[D] Extracting from recovery ramdisk: sbin/libkeystore_binder.so
[D] Extracting from recovery ramdisk: sbin/liblog.so
[D] Extracting from recovery ramdisk: sbin/liblzma.so
[D] Extracting from recovery ramdisk: sbin/libm.so
[D] Extracting from recovery ramdisk: sbin/libminadbd.so
[D] Extracting from recovery ramdisk: sbin/libminuitwrp.so
[D] Extracting from recovery ramdisk: sbin/libminzip.so
[D] Extracting from recovery ramdisk: sbin/libmmcutils.so
[D] Extracting from recovery ramdisk: sbin/libmtdutils.so
[D] Extracting from recovery ramdisk: sbin/libnetd_client.so
[D] Extracting from recovery ramdisk: sbin/libntfs-3g.so
[D] Extracting from recovery ramdisk: sbin/libopenaes.so
[D] Extracting from recovery ramdisk: sbin/libpackagelistparser.so
[D] Extracting from recovery ramdisk: sbin/libpcre.so
[D] Extracting from recovery ramdisk: sbin/libpng.so
[D] Extracting from recovery ramdisk: sbin/libprotobuf-cpp-lite.so
[D] Extracting from recovery ramdisk: sbin/libselinux.so
[D] Extracting from recovery ramdisk: sbin/libsoftkeymaster.so
[D] Extracting from recovery ramdisk: sbin/libsoftkeymasterdevice.so
[D] Extracting from recovery ramdisk: sbin/libsparse.so
[D] Extracting from recovery ramdisk: sbin/libstdc++.so
[D] Extracting from recovery ramdisk: sbin/libtar.so
[D] Extracting from recovery ramdisk: sbin/libtwadbbu.so
[D] Extracting from recovery ramdisk: sbin/libtwrpmtp.so
[D] Extracting from recovery ramdisk: sbin/libunwind.so
[D] Extracting from recovery ramdisk: sbin/libusbhost.so
[D] Extracting from recovery ramdisk: sbin/libutil-linux.so
[D] Extracting from recovery ramdisk: sbin/libutils.so
[D] Extracting from recovery ramdisk: sbin/libz.so
[D] Extracting from recovery ramdisk: sbin/linker
[D] Extracting from recovery ramdisk: sbin/linker64
[D] Extracting from recovery ramdisk: sbin/ln
[D] Extracting from recovery ramdisk: sbin/losetup
[D] Extracting from recovery ramdisk: sbin/ls
[D] Extracting from recovery ramdisk: sbin/lsattr
[D] Extracting from recovery ramdisk: sbin/lsmod
[D] Extracting from recovery ramdisk: sbin/lspci
[D] Extracting from recovery ramdisk: sbin/lsusb
[D] Extracting from recovery ramdisk: sbin/lzcat
[D] Extracting from recovery ramdisk: sbin/lzma
[D] Extracting from recovery ramdisk: sbin/lzop
[D] Extracting from recovery ramdisk: sbin/lzopcat
[D] Extracting from recovery ramdisk: sbin/make_ext4fs
[D] Extracting from recovery ramdisk: sbin/man
[D] Extracting from recovery ramdisk: sbin/matchpathcon
[D] Extracting from recovery ramdisk: sbin/md5sum
[D] Extracting from recovery ramdisk: sbin/mesg
[D] Extracting from recovery ramdisk: sbin/mkdir
[D] Extracting from recovery ramdisk: sbin/mke2fs
[D] Extracting from recovery ramdisk: sbin/mkexfatfs
[D] Extracting from recovery ramdisk: sbin/mkfifo
[D] Extracting from recovery ramdisk: sbin/mkfs.ext2
[D] Extracting from recovery ramdisk: sbin/mkfs.f2fs
[D] Extracting from recovery ramdisk: sbin/mkfs.fat
[D] Extracting from recovery ramdisk: sbin/mkfs.ntfs
[D] Extracting from recovery ramdisk: sbin/mknod
[D] Extracting from recovery ramdisk: sbin/mkswap
[D] Extracting from recovery ramdisk: sbin/mktemp
[D] Extracting from recovery ramdisk: sbin/modinfo
[D] Extracting from recovery ramdisk: sbin/modprobe
[D] Extracting from recovery ramdisk: sbin/more
[D] Extracting from recovery ramdisk: sbin/mount
[D] Extracting from recovery ramdisk: sbin/mount.ntfs
[D] Extracting from recovery ramdisk: sbin/mountpoint
[D] Extracting from recovery ramdisk: sbin/mpstat
[D] Extracting from recovery ramdisk: sbin/mv
[D] Extracting from recovery ramdisk: sbin/nanddump
[D] Extracting from recovery ramdisk: sbin/nandwrite
[D] Extracting from recovery ramdisk: sbin/nbd-client
[D] Extracting from recovery ramdisk: sbin/nc
[D] Extracting from recovery ramdisk: sbin/netstat
[D] Extracting from recovery ramdisk: sbin/nice
[D] Extracting from recovery ramdisk: sbin/nmeter
[D] Extracting from recovery ramdisk: sbin/nohup
[D] Extracting from recovery ramdisk: sbin/nslookup
[D] Extracting from recovery ramdisk: sbin/ntpd
[D] Extracting from recovery ramdisk: sbin/od
[D] Extracting from recovery ramdisk: sbin/openaes
[D] Extracting from recovery ramdisk: sbin/openvt
[D] Extracting from recovery ramdisk: sbin/patch
[D] Extracting from recovery ramdisk: sbin/permissive.sh
[D] Extracting from recovery ramdisk: sbin/pgrep
[D] Extracting from recovery ramdisk: sbin/pidof
[D] Extracting from recovery ramdisk: sbin/pigz
[D] Extracting from recovery ramdisk: sbin/ping
[D] Extracting from recovery ramdisk: sbin/pipe_progress
[D] Extracting from recovery ramdisk: sbin/pkill
[D] Extracting from recovery ramdisk: sbin/pmap
[D] Extracting from recovery ramdisk: sbin/poweroff
[D] Extracting from recovery ramdisk: sbin/printenv
[D] Extracting from recovery ramdisk: sbin/printf
[D] Extracting from recovery ramdisk: sbin/ps
[D] Extracting from recovery ramdisk: sbin/pstree
[D] Extracting from recovery ramdisk: sbin/pwd
[D] Extracting from recovery ramdisk: sbin/pwdx
[D] Extracting from recovery ramdisk: sbin/qseecomd
[D] Extracting from recovery ramdisk: sbin/rdate
[D] Extracting from recovery ramdisk: sbin/rdev
[D] Extracting from recovery ramdisk: sbin/readlink
[D] Extracting from recovery ramdisk: sbin/realpath
[D] Extracting from recovery ramdisk: sbin/reboot
[D] Extracting from recovery ramdisk: sbin/recovery
[D] Extracting from recovery ramdisk: sbin/renice
[D] Extracting from recovery ramdisk: sbin/reset
[D] Extracting from recovery ramdisk: sbin/resize
[D] Extracting from recovery ramdisk: sbin/resize2fs
[D] Extracting from recovery ramdisk: sbin/restorecon
[D] Extracting from recovery ramdisk: sbin/rev
[D] Extracting from recovery ramdisk: sbin/rm
[D] Extracting from recovery ramdisk: sbin/rmdir
[D] Extracting from recovery ramdisk: sbin/rmmod
[D] Extracting from recovery ramdisk: sbin/route
[D] Extracting from recovery ramdisk: sbin/run-parts
[D] Extracting from recovery ramdisk: sbin/runcon
[D] Extracting from recovery ramdisk: sbin/rx
[D] Extracting from recovery ramdisk: sbin/sed
[D] Extracting from recovery ramdisk: sbin/selinuxenabled
[D] Extracting from recovery ramdisk: sbin/seq
[D] Extracting from recovery ramdisk: sbin/sestatus
[D] Extracting from recovery ramdisk: sbin/setconsole
[D] Extracting from recovery ramdisk: sbin/setenforce
[D] Extracting from recovery ramdisk: sbin/setfiles
[D] Extracting from recovery ramdisk: sbin/setkeycodes
[D] Extracting from recovery ramdisk: sbin/setprop
[D] Extracting from recovery ramdisk: sbin/setsebool
[D] Extracting from recovery ramdisk: sbin/setserial
[D] Extracting from recovery ramdisk: sbin/setsid
[D] Extracting from recovery ramdisk: sbin/sh
[D] Extracting from recovery ramdisk: sbin/sha1sum
[D] Extracting from recovery ramdisk: sbin/sha256sum
[D] Extracting from recovery ramdisk: sbin/sha3sum
[D] Extracting from recovery ramdisk: sbin/sha512sum
[D] Extracting from recovery ramdisk: sbin/simg2img
[D] Extracting from recovery ramdisk: sbin/sleep
[D] Extracting from recovery ramdisk: sbin/smemcap
[D] Extracting from recovery ramdisk: sbin/sort
[D] Extracting from recovery ramdisk: sbin/split
[D] Extracting from recovery ramdisk: sbin/start
[D] Extracting from recovery ramdisk: sbin/stat
[D] Extracting from recovery ramdisk: sbin/stop
[D] Extracting from recovery ramdisk: sbin/strings
[D] Extracting from recovery ramdisk: sbin/stty
[D] Extracting from recovery ramdisk: sbin/sum
[D] Extracting from recovery ramdisk: sbin/swapoff
[D] Extracting from recovery ramdisk: sbin/swapon
[D] Extracting from recovery ramdisk: sbin/sync
[D] Extracting from recovery ramdisk: sbin/sysctl
[D] Extracting from recovery ramdisk: sbin/tac
[D] Extracting from recovery ramdisk: sbin/tail
[D] Extracting from recovery ramdisk: sbin/tar
[D] Extracting from recovery ramdisk: sbin/taskset
[D] Extracting from recovery ramdisk: sbin/teamwin
[D] Extracting from recovery ramdisk: sbin/tee
[D] Extracting from recovery ramdisk: sbin/telnet
[D] Extracting from recovery ramdisk: sbin/telnetd
[D] Extracting from recovery ramdisk: sbin/test
[D] Extracting from recovery ramdisk: sbin/tftp
[D] Extracting from recovery ramdisk: sbin/tftpd
[D] Extracting from recovery ramdisk: sbin/time
[D] Extracting from recovery ramdisk: sbin/timeout
[D] Extracting from recovery ramdisk: sbin/toolbox
[D] Extracting from recovery ramdisk: sbin/top
[D] Extracting from recovery ramdisk: sbin/touch
[D] Extracting from recovery ramdisk: sbin/tr
[D] Extracting from recovery ramdisk: sbin/traceroute
[D] Extracting from recovery ramdisk: sbin/true
[D] Extracting from recovery ramdisk: sbin/ttysize
[D] Extracting from recovery ramdisk: sbin/tune2fs
[D] Extracting from recovery ramdisk: sbin/twrp
[D] Extracting from recovery ramdisk: sbin/ueventd
[D] Extracting from recovery ramdisk: sbin/umount
[D] Extracting from recovery ramdisk: sbin/uname
[D] Extracting from recovery ramdisk: sbin/uncompress
[D] Extracting from recovery ramdisk: sbin/unexpand
[D] Extracting from recovery ramdisk: sbin/uniq
[D] Extracting from recovery ramdisk: sbin/unix2dos
[D] Extracting from recovery ramdisk: sbin/unlzma
[D] Extracting from recovery ramdisk: sbin/unlzop
[D] Extracting from recovery ramdisk: sbin/unpigz
[D] Extracting from recovery ramdisk: sbin/unxz
[D] Extracting from recovery ramdisk: sbin/unzip
[D] Extracting from recovery ramdisk: sbin/uptime
[D] Extracting from recovery ramdisk: sbin/usleep
[D] Extracting from recovery ramdisk: sbin/uudecode
[D] Extracting from recovery ramdisk: sbin/uuencode
[D] Extracting from recovery ramdisk: sbin/vi
[D] Extracting from recovery ramdisk: sbin/watch
[D] Extracting from recovery ramdisk: sbin/watchdogd
[D] Extracting from recovery ramdisk: sbin/wc
[D] Extracting from recovery ramdisk: sbin/wget
[D] Extracting from recovery ramdisk: sbin/which
[D] Extracting from recovery ramdisk: sbin/whoami
[D] Extracting from recovery ramdisk: sbin/xargs
[D] Extracting from recovery ramdisk: sbin/xz
[D] Extracting from recovery ramdisk: sbin/xzcat
[D] Extracting from recovery ramdisk: sbin/yes
[D] Extracting from recovery ramdisk: sbin/zcat
[D] [Installer] Retrieve install type stage
[V] ROM ID: data-slot-jdc
[V] - /system: /data/multiboot/data-slot-jdc/system
[V] - /cache: /cache/multiboot/data-slot-jdc/cache
[V] - /data: /data/multiboot/data-slot-jdc/data
[V] - System is image file: false
[V] - Cache is image file: false
[V] - Data is image file: false
[V] ROM ID: data-slot-jdc
[D] [Installer] Chroot set up stage
[D] Boot partition SHA512sum: d3d28e45e3a776efe895d6509130bfd21556e6faecbb53affb925fcc399d0aefb1b499434b46f9a9bd86b1c0abc9d473204f3a33ff74c4dd4055ada54cbe2754
[V] Won't switch to non-existent target ROM
[E] /file_contexts: Failed to stat: No such file or directory
[D] [Installer] Filesystem mounting stage
[D] /data/.system.img.tmp: Creating new 3221225472 ext4 image
[D] Running executable: make_ext4fs
[V] make_ext4fs: Creating filesystem with parameters:

[V] make_ext4fs: Size: 3221225472

[V] make_ext4fs: Block size: 4096

[V] make_ext4fs: Blocks per group: 32768

[V] make_ext4fs: Inodes per group: 8192

[V] make_ext4fs: Inode size: 256

[V] make_ext4fs: Journal blocks: 12288

[V] make_ext4fs: Label:

[V] make_ext4fs: Blocks: 786432

[V] make_ext4fs: Block groups: 24

[V] make_ext4fs: Reserved block group size: 191

[V] make_ext4fs: Created filesystem with 11/196608 inodes and 25785/786432 blocks

[V] Copying system to temporary image
[D] Assigning /data/.system.img.tmp to loop device /dev/block/loop1
[D] Clearing loop device /dev/block/loop1
[D] [Installer] Installation stage
[D] Property 'ro.bootloader' does not exist in recovery's default.prop
[D] - 'ro.bootloader'='unknown' will be set in chroot environment
[V] Running real update-binary
[V] Here we go!
[D] update-binary is AROMA: 0
[D] Setting legacy property: 'ro.bootloader' = 'unknown'
[D] Setting legacy property: 'dalvik.vm.stack-trace-file' = '/data/anr/traces.txt'
[D] Setting legacy property: 'net.bt.name' = 'Android'
[D] Setting legacy property: 'dalvik.vm.isa.arm.features' = 'default'
[D] Setting legacy property: 'dalvik.vm.isa.arm.variant' = 'cortex-a53'
[D] Setting legacy property: 'dalvik.vm.isa.arm64.features' = 'default'
[D] Setting legacy property: 'dalvik.vm.isa.arm64.variant' = 'kryo'
[D] Setting legacy property: 'dalvik.vm.lockprof.threshold' = '500'
[D] Setting legacy property: 'ro.omni.version' = '7.1.1-20170401-gemini-HOMEMADE'
[D] Setting legacy property: 'ro.config.alarm_alert' = 'omni_alarm1.ogg'
[D] Setting legacy property: 'ro.config.ringtone' = 'omni_ringtone1.ogg'
[D] Setting legacy property: 'ro.modversion' = 'OmniROM-7.1.1-20170401-gemini-HOMEMADE'
[D] Setting legacy property: 'ro.config.notification_sound' = 'omni_notification1.ogg'
[D] Setting legacy property: 'persist.sys.root_access' = '1'
[D] Setting legacy property: 'ro.setupwizard.enterprise_mode' = '1'
[D] Setting legacy property: 'ro.com.android.wifi-watchlist' = 'GoogleGuest'
[D] Setting legacy property: 'ro.build.display.id' = 'omni_gemini-userdebug 7.1.1 N4F26T eng.shev.20170401.122919 test-keys'
[D] Setting legacy property: 'ro.build.description' = 'omni_gemini-userdebug 7.1.1 N4F26T eng.shev.20170401.122919 test-keys'
[D] Setting legacy property: 'ro.build.version.all_codenames' = 'REL'
[D] Setting legacy property: 'ro.build.id' = 'N4F26T'
[D] Setting legacy property: 'ro.secure' = '1'
[D] Setting legacy property: 'ro.product.cpu.abi' = 'arm64-v8a'
[D] Setting legacy property: 'ro.build.date.utc' = '0'
[D] Setting legacy property: 'persist.sys.dalvik.vm.lib.2' = 'libart.so'
[D] Setting legacy property: 'ro.adb.secure' = '0'
[D] Setting legacy property: 'security.perf_harden' = '1'
[D] Setting legacy property: 'ro.build.version.incremental' = 'eng.shev.20170401.122919'
[D] Setting legacy property: 'ro.build.host' = 'Linux-Shev'
[D] Setting legacy property: 'persist.sys.usb.config' = 'adb'
[D] Setting legacy property: 'ro.build.version.security_patch' = '2017-03-05'
[D] Setting legacy property: 'ro.build.version.sdk' = '25'
[D] Setting legacy property: 'ro.build.date' = 'Сб апр 1 12:29:19 MSK 2017'
[D] Setting legacy property: 'ro.build.version.release' = '7.1.1'
[D] Setting legacy property: 'ro.allow.mock.location' = '0'
[D] Setting legacy property: 'ro.com.google.clientidbase' = 'android-google'
[D] Setting legacy property: 'ro.product.manufacturer' = 'Xiaomi'
[D] Setting legacy property: 'ro.build.tags' = 'test-keys'
[D] Setting legacy property: 'ro.debuggable' = '1'
[D] Setting legacy property: 'ro.build.version.preview_sdk' = '0'
[D] Setting legacy property: 'ro.build.version.base_os' = ''
[D] Setting legacy property: 'ro.bootimage.build.date.utc' = '1491038959'
[D] Setting legacy property: 'debug.atrace.tags.enableflags' = '0'
[D] Setting legacy property: 'ro.bootimage.build.fingerprint' = 'Xiaomi/omni_gemini/gemini:7.1.1/N4F26T/shev04011229:userdebug/test-keys'
[D] Setting legacy property: 'ro.bootimage.build.date' = 'Сб апр 1 12:29:19 MSK 2017'
[D] Setting legacy property: 'ro.build.type' = 'userdebug'
[D] Setting legacy property: 'ro.wifi.channels' = ''
[D] Setting legacy property: 'ro.product.brand' = 'Xiaomi'
[D] Setting legacy property: 'ro.product.name' = 'omni_gemini'
[D] Setting legacy property: 'ro.product.board' = 'MSM8996'
[D] Setting legacy property: 'ro.build.fingerprint' = 'Xiaomi/omni_gemini/gemini:7.1.1/N4F26T/shev04011229:userdebug/test-keys'
[D] Setting legacy property: 'ro.product.cpu.abilist' = 'armeabi-v7a,armeabi'
[D] Setting legacy property: 'ro.build.user' = 'shev'
[D] Setting legacy property: 'ro.product.cpu.abilist64' = ''
[D] Setting legacy property: 'ro.board.platform' = 'msm8996'
[D] Setting legacy property: 'ro.build.product' = 'gemini'
[D] Setting legacy property: 'ro.product.cpu.abilist32' = 'armeabi-v7a,armeabi'
[D] Setting legacy property: 'ro.product.model' = 'MI 5'
[D] Setting legacy property: 'ro.product.device' = 'gemini'
[D] Setting legacy property: 'ro.build.version.codename' = 'REL'
[D] Setting legacy property: 'ro.build.flavor' = 'omni_gemini-userdebug'
[D] Setting legacy property: 'ro.build.characteristics' = 'default'
[D] Setting legacy property: 'ro.omni.device' = 'gemini'
[D] Setting legacy property: 'ro.url.legal' = '(the link was removed)'
[D] Original properties environment: null
[D] Switched to legacy properties environment: 9,32768
Warning: No file_contextsgemini.verify_modem() failed to read current MODEM build time-stamp: 2script aborted: gemini.verify_modem() failed to read current MODEM build time-stamp: 2

[D] Updater exited with status: 7

[V] Elapsed time: 00:00:00.047
[V] Failed to run real update-binary
[D] Running executable: /update-binary-tool
[D] update-binary-tool: Successfully mounted /mb/loop.system at /system
[D] [Installer] Filesystem unmounting stage
[D] Running executable: /update-binary-tool
[D] update-binary-tool: Successfully unmounted /system
[D] Running executable: /update-binary-tool
[E] update-binary-tool: /cache: Failed to unmount: Invalid argument
[D] Running executable: /update-binary-tool
[E] update-binary-tool: /data: Failed to unmount: Invalid argument
[V] Copying temporary image to system
[D] Assigning /data/.system.img.tmp to loop device /dev/block/loop1
[D] Clearing loop device /dev/block/loop1
[D] [Installer] Cleanup stage
[V] Failed to flash zip file.
[V] Destroying chroot environment
[E] Failed to unmount /chroot/system: Invalid argument
[E] Failed to unmount /chroot/cache: Invalid argument
[E] Failed to unmount /chroot/data: Invalid argument
[E] Failed to unmount /chroot/efs: Invalid argument
[E] Failed to unmount /chroot: Device or resource busy
[D] Attempting to unmount /chroot/mb/install.zip
[D] Attempting to unmount /chroot/mb/bind.data
[D] Attempting to unmount /chroot/mb/bind.cache
[D] Attempting to unmount /chroot
[E] /efs is not mounted
[V] The log file was saved as MultiBoot.log on the internal storage.
[V] Finished cleanup