doc:appunti:hardware:blackview_bv5300
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
doc:appunti:hardware:blackview_bv5300 [2023/08/28 15:11] – [Rooting] niccolo | doc:appunti:hardware:blackview_bv5300 [2024/02/27 10:57] – [Getting the scatter file] niccolo | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Blackview BV5300 Android Phone (rooting) ====== | ====== Blackview BV5300 Android Phone (rooting) ====== | ||
+ | |||
+ | I purchased this phone from Amazon in August 2023 for about **113 €**, to use as [[..: | ||
+ | |||
+ | {{.: | ||
+ | |||
+ | ^ Model | Blackview BV5300 | ||
+ | ^ Size | 161.5 x 77.6 x 15 mm, weight 280 g | | ||
+ | ^ RAM | 4.0 Gb | | ||
+ | ^ CPU | MediaTek Helio A22 (MT6761) - ARM Cortex-A53 2.0 GHz, 4 core | | ||
+ | ^ GPU | PowerVR GE8300 | ||
+ | ^ Internal Memory | ||
+ | ^ Screen | ||
+ | ^ Battery | ||
+ | ^ Connector | ||
+ | ^ Android version | ||
+ | ^ A/B (Seamless) System Updates | ||
+ | ^ Anti-Rollback Protection | ||
+ | |||
+ | {{.: | ||
+ | {{.: | ||
+ | {{.: | ||
+ | {{.: | ||
===== Getting the scatter file ===== | ===== Getting the scatter file ===== | ||
Line 17: | Line 39: | ||
* Using **SP_Flash_Tool_v5.2228_Linux**: | * Using **SP_Flash_Tool_v5.2228_Linux**: | ||
- | * Run **flash_tool.sh** | + | * Run **flash_tool.sh** |
+ | * In the **Download** tab, **Scatter-loading File**: choose any scatter file you have on your hard disk (this step is required to unlock the Readback function below). | ||
+ | * Click on the **Readback** | ||
* Add **two regions** to be read-back: | * Add **two regions** to be read-back: | ||
* Filename: **preloader.bin** | * Filename: **preloader.bin** | ||
Line 96: | Line 120: | ||
From // | From // | ||
- | **WARNING**: | + | **WARNING**: |
Attach the phone to the PC using the USB cable, tap **Allow** on the phone screen to permit the PC to control the phone via the **Android Debug Bridge**. Issue the following commands on the PC terminal: | Attach the phone to the PC using the USB cable, tap **Allow** on the phone screen to permit the PC to control the phone via the **Android Debug Bridge**. Issue the following commands on the PC terminal: | ||
Line 123: | Line 147: | ||
</ | </ | ||
- | At bootstrap you will see the message about the Orange state and the phone does a factory reset. After the reset you need to **enable again the Developer options** and **USB debugging**. | + | At bootstrap you will see the message about the **Orange state** and the phone does a factory reset. After the reset you need to **enable again the Developer options** and **USB debugging**. |
+ | |||
+ | **WARNING**: | ||
==== Read the " | ==== Read the " | ||
Line 197: | Line 223: | ||
From **vbmeta.img** we need to **extract all the public keys of the partitions that were not altered** (i.e. all the partitions listed in it, except the **boot** one). Browsing the // | From **vbmeta.img** we need to **extract all the public keys of the partitions that were not altered** (i.e. all the partitions listed in it, except the **boot** one). Browsing the // | ||
+ | * An empty space made up of **64 zero bytes**. | ||
* The name of the partition, e.g. **vbmeta_system**. | * The name of the partition, e.g. **vbmeta_system**. | ||
* A token of four bytes: | * A token of four bytes: | ||
- | * The actual key in **AvbRSAPublicKeyHeader** format. A 2048 bit keys results into a **520 bytes** chunk. | + | * The actual key in **AvbRSAPublicKeyHeader** format. A 2048 bit keys results into a **516 bytes** chunk. |
- | The vbmeta partition of the Blackview BV5300 contains the signing information about the following partitions: | + | The //vbmeta// partition of the Blackview BV5300 contains the signing information about the following partitions: |
* vbmeta_system | * vbmeta_system | ||
Line 207: | Line 234: | ||
* boot | * boot | ||
- | With an hex editor we need to extrac only the keys for **vbmeta_system** and **vbmeta_vendor**, | + | With an hex editor we need to extrac only the keys for **vbmeta_system** and **vbmeta_vendor** |
- | So we have two new files: **keys/ | + | So we have three key files: **keys/ |
For the final recipe we need some other piece of information; | For the final recipe we need some other piece of information; | ||
Line 217: | Line 244: | ||
</ | </ | ||
- | What we need is the **Flags** value and the **Rollback Index Location** for each of the listed partitions. | + | What we need is the **Flags** value and the **Rollback Index Location** for each of the listed partitions. |
<code bash> | <code bash> |
doc/appunti/hardware/blackview_bv5300.txt · Last modified: 2024/06/18 10:41 by niccolo