Xiaomi Mi 5s (xiaomi-capricorn)
Xiaomi Mi 5S Running PMOS
|Chipset||Qualcomm Snapdragon 821 (MSM8996Pro)|
|CPU||Quad-core (2x2.15 GHz Kryo & 2x1.6 GHz Kryo)|
|Display||5.15 inch 1080p|
|Storage||64 GB / 128 GB|
|Memory||3 GB / 4 GB|
|Unixbench Whet/Dhry score||0.0|
- Furkan Sonkaya (sepkov)
Users owning this device
- Sepkov (Notes: 64GB Storage, 3GB Memory, Screen died mid project)
How to enter flash mode
Hold Power + Volume Down while the phone is turned off. This will make the phone boot into fastboot mode Hold Power + Volume Up while the phone is turned off. This will make the phone boot into reboot mode
You will need to unlock the bootloader in order to be able to flash anything onto the phone.
Installing TWRP before doing anything else is recommended, as it makes dealing with the phone easier later on, and allows for quick restoration by taking backups of
/boot, then flashing them back in order to restore the device to its original state. Note that this method has only been tested with LineageOS, and running its installation ZIP in TWRP after restoring the backup was necessary to get it to boot, otherwise it would just keep loading forever.
|NOTE: Flashing to the system and boot partitions will wipe the Android core but will leave all apps and user files. If you want to be able to easily restore Android, it is recommended to backup both partitions using the method above.|
|WARNING: Flashing to the data partition will erase all user data! Make sure all important files are backed up before flashing.|
$ pmbootstrap init $ pmbootstrap install
To build your own image, follow the pmbootstrap article.
Once you reach the flashing step:
- Flash the rootfs:
$ pmbootstrap flasher flash_rootfs
|NOTE: If you need more space in the rootfs, you can also flash to the data partition by appending
- Flash the kernel and initramfs to the boot partition:
$ pmbootstrap flasher flash_kernel
You can also avoid flashing them and instead, boot the kernel directly:
$ pmbootstrap flasher boot
MSM8996 common mainline kernel fork There is none currently.
- The display comes up black after initialization, works correctly after a reboot.
Currently device is failing to give ip to the usb connected computer. Under linux you can use these commands to assign ip and connect to ssh. Replace X with your usb device. To list all network adapters:
$ ip a
And to change the ip address:
$ sudo ip addr add 172.16.42.2/24 dev usbX $ sudo ip link set usbX up