Samstag, 27. Oktober 2018

More on the Xiaomi Black Shark

Here is some other Stuff i already figured out.

The Xiaomi Black Shark is no ordinary booting Phone.
It is one of the A/B Phones. Here is some stuff from the TWRP Compile thread on this:


Thanks to Dees_Troy for the Post


Installing / Flashing TWRP on A/B devices:

Since all known A/B devices do not have a separate recovery partition, you will eventually have to flash TWRP to the boot partition. On the Pixel 1 and 2, we use fastboot boot to temporarily boot TWRP without flashing TWRP. We are then supplying a zip to allow users to flash TWRP to both slots. You can download one of these zips from our website and update the zip as needed to support your devices. Eventually we will add tools to TWRP to allow users to flash recoveries on these devices without needing to use zips.

Recently, I worked on the Razer Phone. The Razer Phone unfortunately does not support fastboot boot. Instead, users have to determine their currently active boot slot using
Code:
adb shell getprop ro.boot.slot_suffix
then use
Code:
fastboot --set-active=_a
to switch slots to the inactive slot. From here, the user can
Code:
fastboot flash boot twrp.img && fastboot reboot
to get into TWRP. Once in TWRP they can then go to the reboot page and change back to their originally active slot, make a backup, then install TWRP. Using the inactive slot allows users to get a good, unmodified backup of their device before installing TWRP.


adb shell getprop ro.boot.slot_suffix gives me back

shark:/ $ getprop ro.boot.slot_suffix
_a


With digging around a bit more in the adb shell i got this.

cd /dev/block/bootdevice/by-name/

ls -lisa


drwxr-xr-x 2 root root 1580 1970-01-01 22:00 .
drwxr-xr-x 4 root root 1740 1970-01-01 22:00 ..
lrwxrwxrwx 1 root root   15 1970-01-01 22:00 ALIGN_TO_128K_1 -> /dev/block/sdd1
lrwxrwxrwx 1 root root   15 1970-01-01 22:00 ALIGN_TO_128K_2 -> /dev/block/sdf1
lrwxrwxrwx 1 root root   16 1970-01-01 22:00 ImageFv -> /dev/block/sde51
lrwxrwxrwx 1 root root   15 1970-01-01 22:00 abl_a -> /dev/block/sde8
lrwxrwxrwx 1 root root   16 1970-01-01 22:00 abl_b -> /dev/block/sde27
lrwxrwxrwx 1 root root   15 1970-01-01 22:00 aop_a -> /dev/block/sde1
lrwxrwxrwx 1 root root   16 1970-01-01 22:00 aop_b -> /dev/block/sde20
lrwxrwxrwx 1 root root   16 1970-01-01 22:00 apdp -> /dev/block/sde42
lrwxrwxrwx 1 root root   15 1970-01-01 22:00 bluetooth_a -> /dev/block/sde5
lrwxrwxrwx 1 root root   16 1970-01-01 22:00 bluetooth_b -> /dev/block/sde24
lrwxrwxrwx 1 root root   16 1970-01-01 22:00 boot_a -> /dev/block/sde11
lrwxrwxrwx 1 root root   16 1970-01-01 22:00 boot_b -> /dev/block/sde30
lrwxrwxrwx 1 root root   15 1970-01-01 22:00 cdt -> /dev/block/sdd2
lrwxrwxrwx 1 root root   16 1970-01-01 22:00 cmnlib64_a -> /dev/block/sde13
lrwxrwxrwx 1 root root   16 1970-01-01 22:00 cmnlib64_b -> /dev/block/sde32
lrwxrwxrwx 1 root root   16 1970-01-01 22:00 cmnlib_a -> /dev/block/sde12
lrwxrwxrwx 1 root root   16 1970-01-01 22:00 cmnlib_b -> /dev/block/sde31
lrwxrwxrwx 1 root root   16 1970-01-01 22:00 custom_a -> /dev/block/sde19
lrwxrwxrwx 1 root root   16 1970-01-01 22:00 custom_b -> /dev/block/sde38
lrwxrwxrwx 1 root root   15 1970-01-01 22:00 ddr -> /dev/block/sdd3
lrwxrwxrwx 1 root root   16 1970-01-01 22:00 devcfg_a -> /dev/block/sde14
lrwxrwxrwx 1 root root   16 1970-01-01 22:00 devcfg_b -> /dev/block/sde33
lrwxrwxrwx 1 root root   16 1970-01-01 22:00 devinfo -> /dev/block/sde40
lrwxrwxrwx 1 root root   16 1970-01-01 22:00 dip -> /dev/block/sde41
lrwxrwxrwx 1 root root   15 1970-01-01 22:00 dsp_a -> /dev/block/sde9
lrwxrwxrwx 1 root root   16 1970-01-01 22:00 dsp_b -> /dev/block/sde28
lrwxrwxrwx 1 root root   16 1970-01-01 22:00 dtbo_a -> /dev/block/sde17
lrwxrwxrwx 1 root root   16 1970-01-01 22:00 dtbo_b -> /dev/block/sde36
lrwxrwxrwx 1 root root   15 1970-01-01 22:00 frp -> /dev/block/sda5
lrwxrwxrwx 1 root root   15 1970-01-01 22:00 fsc -> /dev/block/sdf5
lrwxrwxrwx 1 root root   15 1970-01-01 22:00 fsg -> /dev/block/sdf4
lrwxrwxrwx 1 root root   15 1970-01-01 22:00 hyp_a -> /dev/block/sde3
lrwxrwxrwx 1 root root   16 1970-01-01 22:00 hyp_b -> /dev/block/sde22
lrwxrwxrwx 1 root root   16 1970-01-01 22:00 junklog -> /dev/block/sda12
lrwxrwxrwx 1 root root   16 1970-01-01 22:00 keymaster_a -> /dev/block/sde10
lrwxrwxrwx 1 root root   16 1970-01-01 22:00 keymaster_b -> /dev/block/sde29
lrwxrwxrwx 1 root root   15 1970-01-01 22:00 keystore -> /dev/block/sda4
lrwxrwxrwx 1 root root   16 1970-01-01 22:00 limits -> /dev/block/sde46
lrwxrwxrwx 1 root root   16 1970-01-01 22:00 logdump -> /dev/block/sde50
lrwxrwxrwx 1 root root   16 1970-01-01 22:00 logfs -> /dev/block/sde48
lrwxrwxrwx 1 root root   15 1970-01-01 22:00 mdtp_a -> /dev/block/sde7
lrwxrwxrwx 1 root root   16 1970-01-01 22:00 mdtp_b -> /dev/block/sde26
lrwxrwxrwx 1 root root   15 1970-01-01 22:00 mdtpsecapp_a -> /dev/block/sde6
lrwxrwxrwx 1 root root   16 1970-01-01 22:00 mdtpsecapp_b -> /dev/block/sde25
lrwxrwxrwx 1 root root   15 1970-01-01 22:00 misc -> /dev/block/sda3
lrwxrwxrwx 1 root root   15 1970-01-01 22:00 modem_a -> /dev/block/sde4
lrwxrwxrwx 1 root root   16 1970-01-01 22:00 modem_b -> /dev/block/sde23
lrwxrwxrwx 1 root root   15 1970-01-01 22:00 modemst1 -> /dev/block/sdf2
lrwxrwxrwx 1 root root   15 1970-01-01 22:00 modemst2 -> /dev/block/sdf3
lrwxrwxrwx 1 root root   16 1970-01-01 22:00 msadp -> /dev/block/sde43
lrwxrwxrwx 1 root root   16 1970-01-01 22:00 oeminfo -> /dev/block/sda10
lrwxrwxrwx 1 root root   15 1970-01-01 22:00 persist -> /dev/block/sda2
lrwxrwxrwx 1 root root   16 1970-01-01 22:00 pstore -> /dev/block/sda11
lrwxrwxrwx 1 root root   16 1970-01-01 22:00 qupfw_a -> /dev/block/sde15
lrwxrwxrwx 1 root root   16 1970-01-01 22:00 qupfw_b -> /dev/block/sde34
lrwxrwxrwx 1 root root   16 1970-01-01 22:00 ramdump -> /dev/block/sda13
lrwxrwxrwx 1 root root   16 1970-01-01 22:00 sec -> /dev/block/sde39
lrwxrwxrwx 1 root root   16 1970-01-01 22:00 splash -> /dev/block/sde45
lrwxrwxrwx 1 root root   16 1970-01-01 22:00 spunvm -> /dev/block/sde44
lrwxrwxrwx 1 root root   15 1970-01-01 22:00 ssd -> /dev/block/sda1
lrwxrwxrwx 1 root root   16 1970-01-01 22:00 sti -> /dev/block/sde49
lrwxrwxrwx 1 root root   16 1970-01-01 22:00 storsec_a -> /dev/block/sde18
lrwxrwxrwx 1 root root   16 1970-01-01 22:00 storsec_b -> /dev/block/sde37
lrwxrwxrwx 1 root root   15 1970-01-01 22:00 system_a -> /dev/block/sda6
lrwxrwxrwx 1 root root   15 1970-01-01 22:00 system_b -> /dev/block/sda7
lrwxrwxrwx 1 root root   16 1970-01-01 22:00 toolsfv -> /dev/block/sde47
lrwxrwxrwx 1 root root   15 1970-01-01 22:00 tz_a -> /dev/block/sde2
lrwxrwxrwx 1 root root   16 1970-01-01 22:00 tz_b -> /dev/block/sde21
lrwxrwxrwx 1 root root   16 1970-01-01 22:00 userdata -> /dev/block/sda14
lrwxrwxrwx 1 root root   16 1970-01-01 22:00 vbmeta_a -> /dev/block/sde16
lrwxrwxrwx 1 root root   16 1970-01-01 22:00 vbmeta_b -> /dev/block/sde35
lrwxrwxrwx 1 root root   15 1970-01-01 22:00 vendor_a -> /dev/block/sda8
lrwxrwxrwx 1 root root   15 1970-01-01 22:00 vendor_b -> /dev/block/sda9
lrwxrwxrwx 1 root root   15 1970-01-01 22:00 xbl_a -> /dev/block/sdb1
lrwxrwxrwx 1 root root   15 1970-01-01 22:00 xbl_b -> /dev/block/sdc1
lrwxrwxrwx 1 root root   15 1970-01-01 22:00 xbl_config_a -> /dev/block/sdb2
lrwxrwxrwx 1 root root   15 1970-01-01 22:00 xbl_config_b -> /dev/block/sdc2
This might come in hand for those able to compile TWRP.

More Files can be found in the Google Drive right here

/vendor/etc/fstab.qcom

Filetree with all accessible Files and Locations from ADB




Keine Kommentare:

Kommentar veröffentlichen