[Hardware Hacking General] wladimir_tm:
Xiaomi Mi 4i (ferrari) msm8916

---------------------------

device info:

command: cat /system/build.prop
# begin build properties
# autogenerated by buildinfo.sh
ro.build.id=LRX22G
ro.build.display.id=LRX22G
ro.build.version.incremental=V6.5.5.0.LXIMICD
ro.build.version.sdk=21
ro.build.version.codename=REL
ro.build.version.all_codenames=REL
ro.build.version.release=5.0.2
ro.build.date=Wed May 20 22:03:06 CST 2015
ro.build.date.utc=1432130586
ro.build.type=user
ro.build.user=builder
ro.build.host=zc-miui-ota-bd29.bj
ro.build.tags=release-keys
ro.product.model=Mi 4i
ro.product.brand=Xiaomi
ro.product.name=ferrari
ro.product.device=ferrari
ro.product.mod_device=ferrari_global
ro.product.board=
# ro.product.cpu.abi and ro.product.cpu.abi2 are obsolete,
# use ro.product.cpu.abilist instead.
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.locale.language=en
ro.product.locale.region=GB
ro.wifi.channels=
ro.board.platform=msm8916
# ro.build.product is obsolete; use ro.product.device
ro.build.product=ferrari
# Do not try to parse description, fingerprint, or thumbprint
ro.build.description=ferrari-user 5.0.2 LRX22G V6.5.5.0.LXIMICD release-keys
ro.build.fingerprint=Xiaomi/ferrari/ferrari:5.0.2/LRX22G/V6.5.5.0.LXIMICD:user/release-keys
ro.build.characteristics=nosdcard
# end build properties
---------------------------

additional:

---------------------------
command: cat /proc/cpuinfo
Processor	: AArch64 Processor rev 1 (aarch64)
processor	: 0
processor	: 1
processor	: 2
processor	: 3
processor	: 4
processor	: 5
processor	: 6
processor	: 7
Features	: fp asimd aes pmull sha1 sha2 crc32
CPU implementer	: 0x41
CPU architecture: 8
CPU variant	: 0x0
CPU part	: 0xd03
CPU revision	: 1

Hardware	: Qualcomm Technologies, Inc MSM8939
---------------------------
command: cat /proc/meminfo
MemTotal: 1933116 kB
MemFree: 37768 kB
Buffers: 36408 kB
Cached: 829816 kB
SwapCached: 5612 kB
Active: 539012 kB
Inactive: 892876 kB
Active(anon): 296708 kB
Inactive(anon): 271648 kB
Active(file): 242304 kB
Inactive(file): 621228 kB
Unevictable: 2316 kB
Mlocked: 0 kB
SwapTotal: 1048560 kB
SwapFree: 1023608 kB
Dirty: 0 kB
Writeback: 0 kB
AnonPages: 567988 kB
Mapped: 268244 kB
Shmem: 372 kB
Slab: 75964 kB
SReclaimable: 23684 kB
SUnreclaim: 52280 kB
KernelStack: 23744 kB
PageTables: 24964 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 2015116 kB
Committed_AS: 38794300 kB
VmallocTotal: 251658176 kB
VmallocUsed: 91948 kB
VmallocChunk: 251458980 kB
---------------------------
command: cat /proc/swaps
Filename	Type	Size	Used	Priority
/dev/block/zram0 partition	262140	0	0
/dev/block/zram1 partition	262140	0	1
/dev/block/zram2 partition	262140	0	2
/dev/block/zram3 partition	262140	24952	3
---------------------------
root@ferrari:/ # cat /proc/modules
cat /proc/modules
wlan 4062562 0 - Live 0x0000000000000000 (O)
root@ferrari:/ #
root@ferrari:/ # ls -l /sys/bus/i2c/drivers/
ls -l /sys/bus/i2c/drivers/
drwxr-xr-x root root 2015-09-07 17:01 akm09911
drwxr-xr-x root root 2015-09-07 17:01 akm8963
drwxr-xr-x root root 2015-09-07 17:01 apds993x
drwxr-xr-x root root 2015-09-07 17:01 atmel_mxt_ts_336t
drwxr-xr-x root root 2015-09-07 17:01 bma2x2-accel
drwxr-xr-x root root 2015-09-07 17:01 cm36686
drwxr-xr-x root root 2015-09-07 17:01 dummy
drwxr-xr-x root root 2015-09-07 17:01 fan53555-regulator
drwxr-xr-x root root 2015-09-07 17:01 ft5x46_i2c
drwxr-xr-x root root 2015-09-07 17:01 lis3dh_acc
drwxr-xr-x root root 2015-09-07 17:01 lm3533
drwxr-xr-x root root 2015-09-07 17:01 mmc3416x
drwxr-xr-x root root 2015-09-07 17:01 mpu6050
drwxr-xr-x root root 2015-09-07 17:01 ms-msg21xx
drwxr-xr-x root root 2015-09-07 17:01 msm_eeprom
drwxr-xr-x root root 2015-09-07 17:01 mt9m114
drwxr-xr-x root root 2015-09-07 17:01 ncp6335d-regulator
drwxr-xr-x root root 2015-09-07 17:01 smb1360-chg-fg
drwxr-xr-x root root 2015-09-07 17:01 st-sensor-hub-i2c
drwxr-xr-x root root 2015-09-07 17:01 tabla-i2c-core
drwxr-xr-x root root 2015-09-07 17:01 tfa98xx
drwxr-xr-x root root 2015-09-07 17:01 wcd9xxx-i2c-core
root@ferrari:/ #

partitions info:

---------------------------
command: mount
rootfs / rootfs ro,relatime 0 0
tmpfs /dev tmpfs rw,seclabel,nosuid,relatime,size=950172k,nr_inodes=237543,mode=755 0 0
devpts /dev/pts devpts rw,seclabel,relatime,mode=600 0 0
none /dev/memcg cgroup rw,relatime,memory 0 0
none /dev/cpuctl cgroup rw,relatime,cpu 0 0
adb /dev/usb-ffs/adb functionfs rw,relatime 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,seclabel,relatime 0 0
selinuxfs /sys/fs/selinux selinuxfs rw,relatime 0 0
debugfs /sys/kernel/debug debugfs rw,relatime 0 0
none /sys/fs/cgroup tmpfs rw,seclabel,relatime,size=950172k,nr_inodes=237543,mode=750,gid=1000 0 0
none /sys/fs/cgroup/memory cgroup rw,relatime,memory 0 0
pstore /sys/fs/pstore pstore rw,relatime 0 0
none /acct cgroup rw,relatime,cpuacct 0 0
tmpfs /mnt/asec tmpfs rw,seclabel,relatime,size=950172k,nr_inodes=237543,mode=755,gid=1000 0 0
tmpfs /mnt/obb tmpfs rw,seclabel,relatime,size=950172k,nr_inodes=237543,mode=755,gid=1000 0 0
/dev/block/bootdevice/by-name/system /system ext4 ro,seclabel,relatime,discard,data=ordered 0 0
/dev/block/bootdevice/by-name/userdata /data ext4 rw,seclabel,nosuid,nodev,relatime,discard,noauto_da_alloc,data=ordered 0 0
/dev/block/bootdevice/by-name/cache /cache ext4 rw,seclabel,nosuid,nodev,relatime,data=ordered 0 0
/dev/block/bootdevice/by-name/persist /persist ext4 rw,seclabel,nosuid,nodev,relatime,data=ordered 0 0
/dev/block/bootdevice/by-name/modem /firmware vfat ro,context=u:object_r:firmware_file:s0,relatime,uid=1000,gid=1000,fmask=0337,dmask=0227,codepage=437,iocharset=iso8859-1,shortname=lower,errors=remount-ro 0 0
/dev/fuse /storage/uicc0 fuse rw,nosuid,nodev,relatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0
/dev/fuse /mnt/shell/emulated fuse rw,nosuid,nodev,relatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0
/dev/fuse /mnt/shell/emulated/0 fuse rw,nosuid,nodev,relatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0
tmpfs /storage/emulated tmpfs rw,seclabel,nosuid,nodev,relatime,size=950172k,nr_inodes=237543,mode=050,gid=1028 0 0
/dev/fuse /storage/emulated/0 fuse rw,nosuid,nodev,relatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0
/dev/fuse /storage/emulated/0/Android/obb fuse rw,nosuid,nodev,relatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0
/dev/fuse /storage/emulated/legacy fuse rw,nosuid,nodev,relatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0
/dev/fuse /storage/emulated/legacy/Android/obb fuse rw,nosuid,nodev,relatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0
---------------------------
command: df
/sys/fs/cgroup/memory: Permission denied
Filesystem Size Used Free Blksize
/dev 927.9M 64.0K 927.8M 4096
/sys/fs/cgroup 927.9M 0.0K 927.9M 4096
/mnt/asec 927.9M 0.0K 927.9M 4096
/mnt/obb 927.9M 0.0K 927.9M 4096
/system 1.6G 1.3G 289.7M 4096
/data 11.9G 1.7G 10.2G 4096
/cache 372.0M 256.0K 371.7M 4096
/persist 27.5M 96.0K 27.4M 4096
/firmware 64.0M 50.0M 14.0M 16384
/mnt/shell/emulated 11.9G 1.7G 10.2G 4096
/mnt/shell/emulated/0 11.9G 1.7G 10.2G 4096
---------------------------
command: cat /proc/partitions
major minor #blocks name

253 0 262144 zram0
253 1 262144 zram1
253 2 262144 zram2
253 3 262144 zram3
179 0 15267840 mmcblk0
179 1 2048 mmcblk0p1
179 2 2048 mmcblk0p2
179 3 1024 mmcblk0p3
179 4 1024 mmcblk0p4
179 5 1024 mmcblk0p5
179 6 1024 mmcblk0p6
179 7 8 mmcblk0p7
179 8 1024 mmcblk0p8
179 9 1024 mmcblk0p9
179 10 1024 mmcblk0p10
179 11 4096 mmcblk0p11
179 12 4096 mmcblk0p12
179 13 1024 mmcblk0p13
179 14 12263 mmcblk0p14
179 15 4096 mmcblk0p15
179 16 8192 mmcblk0p16
179 17 512 mmcblk0p17
179 18 32 mmcblk0p18
179 19 19936 mmcblk0p19
179 20 1536 mmcblk0p20
179 21 1536 mmcblk0p21
179 22 1 mmcblk0p22
179 23 29695 mmcblk0p23
179 24 32768 mmcblk0p24
179 25 1536 mmcblk0p25
179 26 31232 mmcblk0p26
179 27 32768 mmcblk0p27
179 28 65536 mmcblk0p28
179 29 65536 mmcblk0p29
179 30 32768 mmcblk0p30
179 31 32768 mmcblk0p31
179 32 32768 mmcblk0p32
179 33 32768 mmcblk0p33
179 34 1703936 mmcblk0p34
179 35 393216 mmcblk0p35
179 36 12711919 mmcblk0p36
179 64 4096 mmcblk0rpmb
---------------------------
command: ls -l /dev/block/platform/7824900.sdhci/by-name
lrwxrwxrwx root root 2015-09-07 15:55 DDR -> /dev/block/mmcblk0p10
lrwxrwxrwx root root 2015-09-07 15:55 aboot -> /dev/block/mmcblk0p11
lrwxrwxrwx root root 2015-09-07 15:55 abootbak -> /dev/block/mmcblk0p12
lrwxrwxrwx root root 2015-09-07 15:55 bk1 -> /dev/block/mmcblk0p14
lrwxrwxrwx root root 2015-09-07 15:55 bk2 -> /dev/block/mmcblk0p19
lrwxrwxrwx root root 2015-09-07 15:55 bk3 -> /dev/block/mmcblk0p23
lrwxrwxrwx root root 2015-09-07 15:55 bk4 -> /dev/block/mmcblk0p24
lrwxrwxrwx root root 2015-09-07 15:55 bk5 -> /dev/block/mmcblk0p26
lrwxrwxrwx root root 2015-09-07 15:55 bk6 -> /dev/block/mmcblk0p27
lrwxrwxrwx root root 2015-09-07 15:55 boot -> /dev/block/mmcblk0p30
lrwxrwxrwx root root 2015-09-07 15:55 cache -> /dev/block/mmcblk0p35
lrwxrwxrwx root root 2015-09-07 15:55 config -> /dev/block/mmcblk0p18
lrwxrwxrwx root root 2015-09-07 15:55 fsc -> /dev/block/mmcblk0p22
lrwxrwxrwx root root 2015-09-07 15:55 fsg -> /dev/block/mmcblk0p25
lrwxrwxrwx root root 2015-09-07 15:55 hyp -> /dev/block/mmcblk0p8
lrwxrwxrwx root root 2015-09-07 15:55 hypbak -> /dev/block/mmcblk0p9
lrwxrwxrwx root root 2015-09-07 15:55 keystore -> /dev/block/mmcblk0p17
lrwxrwxrwx root root 2015-09-07 15:55 logo -> /dev/block/mmcblk0p16
lrwxrwxrwx root root 2015-09-07 15:55 misc -> /dev/block/mmcblk0p15
lrwxrwxrwx root root 2015-09-07 15:55 modem -> /dev/block/mmcblk0p29
lrwxrwxrwx root root 2015-09-07 15:55 modemst1 -> /dev/block/mmcblk0p20
lrwxrwxrwx root root 2015-09-07 15:55 modemst2 -> /dev/block/mmcblk0p21
lrwxrwxrwx root root 2015-09-07 15:55 oem -> /dev/block/mmcblk0p28
lrwxrwxrwx root root 2015-09-07 15:55 oops -> /dev/block/mmcblk0p33
lrwxrwxrwx root root 2015-09-07 15:55 persist -> /dev/block/mmcblk0p32
lrwxrwxrwx root root 2015-09-07 15:55 recovery -> /dev/block/mmcblk0p31
lrwxrwxrwx root root 2015-09-07 15:55 rpm -> /dev/block/mmcblk0p3
lrwxrwxrwx root root 2015-09-07 15:55 rpmbak -> /dev/block/mmcblk0p4
lrwxrwxrwx root root 2015-09-07 15:55 sbl1 -> /dev/block/mmcblk0p1
lrwxrwxrwx root root 2015-09-07 15:55 sbl1bak -> /dev/block/mmcblk0p2
lrwxrwxrwx root root 2015-09-07 15:55 sec -> /dev/block/mmcblk0p13
lrwxrwxrwx root root 2015-09-07 15:55 ssd -> /dev/block/mmcblk0p7
lrwxrwxrwx root root 2015-09-07 15:55 system -> /dev/block/mmcblk0p34
lrwxrwxrwx root root 2015-09-07 15:55 tz -> /dev/block/mmcblk0p5
lrwxrwxrwx root root 2015-09-07 15:55 tzbak -> /dev/block/mmcblk0p6
lrwxrwxrwx root root 2015-09-07 15:55 userdata -> /dev/block/mmcblk0p36
---------------------------
root@ferrari:/ # /data/local/tmp/static/partx -s /dev/block/mmcblk0
/data/local/tmp/static/partx -s /dev/block/mmcblk0
NR START END SECTORS SIZE NAME UUID
1 34 4129 4096 2M sbl1 88c50f13-517a-4ead-3dcf-0062152e4071
2 4130 8225 4096 2M sbl1bak 959c1238-4c08-cde3-8b96-adf07167cf6f
3 8226 10273 2048 1M rpm acad9e19-c2ce-2b2c-4ece-99fa79e84206
4 10274 12321 2048 1M rpmbak 70c0b06d-9993-83a9-0efd-1f37d7522c5d
5 12322 14369 2048 1M tz 1b03b513-748e-c9b1-42d0-a05291589a22
6 14370 16417 2048 1M tzbak ee7fc829-862e-bd2b-e993-e4c782242a96
7 16418 16433 16 8K ssd aa4b51bc-f620-9460-ea89-afa13cca11c4
8 16434 18481 2048 1M hyp 450e93ed-9c4c-b1f0-f506-02e98c99b860
9 18482 20529 2048 1M hypbak 94839332-3b9c-2c03-f4fe-74945e04320b
10 20530 22577 2048 1M DDR 4cc6cd8b-7449-6f1b-a821-1dbdb80e71d3
11 22578 30769 8192 4M aboot a34b57e0-600b-01c3-2a05-c2438215ec07
12 30770 38961 8192 4M abootbak 50943994-8500-422c-5984-d0dc46c03261
13 38962 41009 2048 1M sec 3604cd7f-e0c0-0358-dcd9-4832ed0326c3
14 41010 65535 24526 12M bk1 fb6e4709-4ef1-b289-1380-213caa9f26df
15 65536 73727 8192 4M misc 6d159550-d41b-1b74-2d31-e4a33d200bfd
16 73728 90111 16384 8M logo 968c9918-bb29-f077-09ab-c5d93b3921eb
17 90112 91135 1024 512K keystore ea4734b7-e3d4-9896-06f2-4a4af98276bf
18 91136 91199 64 32K config 60f48c17-29f1-d50f-fe87-34b2dab2fe0c
19 91200 131071 39872 19.5M bk2 faa6dd54-e147-89e6-5c4c-8d35097a17b2
20 131072 134143 3072 1.5M modemst1 6d7a1bd3-393a-05bb-6df6-954008ae0142
21 134144 137215 3072 1.5M modemst2 b8f6f919-d630-d1d3-2ead-f30d7a55bf1b
22 137216 137217 2 1K fsc 12746fe0-76e7-59df-3041-104833f9144c
23 137218 196607 59390 29M bk3 af58fdf6-e5d1-a4ce-b71c-513fac0d6c57
24 196608 262143 65536 32M bk4 49c48e27-725c-2269-4289-8576782b1f30
25 262144 265215 3072 1.5M fsg 33b59f56-02d5-8162-4414-3a1ed4ca89bf
26 265216 327679 62464 30.5M bk5 26255ab9-e30a-cbfd-901d-fe91c59f4845
27 327680 393215 65536 32M bk6 95d9fca4-26e1-b4fd-e973-8477cf779cc0
28 393216 524287 131072 64M oem b99fd144-0a85-0bc5-ac29-641018e1d0fb
29 524288 655359 131072 64M modem aad4d97b-6879-6daa-be35-d39071977ac3
30 655360 720895 65536 32M boot 6848b0e4-9d99-c3aa-c165-2e068b336103
31 720896 786431 65536 32M recovery fe87ee96-5999-8821-90ff-0f75ed1a97bc
32 786432 851967 65536 32M persist d12f3336-3d31-a96e-6d68-9c0abdb37e9a
33 851968 917503 65536 32M oops d29fa05d-029b-8d07-8cae-177dd288e190
34 917504 4325375 3407872 1.6G system e9f88ccd-faa5-f531-333a-75360184b803
35 4325376 5111807 786432 384M cache b624e84c-0897-67d0-cedc-b2d0cb3e5354
36 5111808 30535646 25423839 12.1G userdata 09d41259-2507-e8df-f2ce-f55ca14d93fb
root@ferrari:/ #

fastboot info:

==========
USB\VID_18D1&PID_D00D&REV_0100
USB\VID_18D1&PID_D00D
==========
C:\Users\Admin>fastboot devices
7167ccf1 fastboot
C:\Users\Admin>fastboot getvar all
all:
finished. total time: -0.000s
C:\Users\Admin>fastboot getvar serialno
serialno: 7167ccf1
finished. total time: 0.000s
C:\Users\Admin>fastboot getvar version
version: LA.ferrari-l.00110.0-71-gd69c31b
finished. total time: 0.000s
C:\Users\Admin>fastboot getvar product
product: MSM8916
finished. total time: 0.000s
C:\Users\Admin>fastboot oem device-info
...
(bootloader) Device tampered: false
(bootloader) Device unlocked: false
(bootloader) Charger screen enabled: false
(bootloader) Display panel:
OKAY [ 0.016s]
finished. total time: 0.016s
C:\Users\Admin>fastboot getvar secure
secure:
finished. total time: -0.000s
C:\Users\Admin>

additionally: mmcblk0info.txt created from TWRP by recovery script for collecting the partitions info (mmcblk0part_info2.zip)