Cant install TWRP or LineageOs in Teclast P80X
Cant install TWRP or LineageOs in Teclast P80X
(24-12-2020, 02:26 PM)xufa I have succesfully unlocked the bootloader and then I generated a custom vbmeta with the custom pem key for the recovery partition following this guide.
https://www.hovatek.com/forum/thread-32664.html
Then I signed the TWRP image following that guide
https://www.hovatek.com/forum/thread-32674.html
https://www.hovatek.com/forum/thread-32735.html
Both files can be flashed smoothly in the tablet however it goes to a soft brick state and I have to use researchdownload to recover the device.
My goal is to install Android 10 in this device but it seems to be impossible.
THanks a lot
(26-12-2020, 09:30 AM)hovatek(24-12-2020, 02:26 PM)xufa I have succesfully unlocked the bootloader and then I generated a custom vbmeta with the custom pem key for the recovery partition following this guide.
https://www.hovatek.com/forum/thread-32664.html
Then I signed the TWRP image following that guide
https://www.hovatek.com/forum/thread-32674.html
https://www.hovatek.com/forum/thread-32735.html
Both files can be flashed smoothly in the tablet however it goes to a soft brick state and I have to use researchdownload to recover the device.
My goal is to install Android 10 in this device but it seems to be impossible.
THanks a lot
Have you obtained root and renamed recovery-from-boot.p?
(27-12-2020, 01:51 PM)xufa Is root necessary to install TWRP? I tried with the patched boot.img (magisk 8.0.3) and the tablet didn't boot.
I haven't tried the patched recovery for root. Is that the way to go? Isn't it a temporary root? Why is the temporary root needed to flash the recovery to a TWRP?
(28-12-2020, 07:25 AM)hovatek(27-12-2020, 01:51 PM)xufa Is root necessary to install TWRP? I tried with the patched boot.img (magisk 8.0.3) and the tablet didn't boot.
I haven't tried the patched recovery for root. Is that the way to go? Isn't it a temporary root? Why is the temporary root needed to flash the recovery to a TWRP?
Yours is like the Teclast M40. Follow the steps @ https://www.hovatek.com/forum/thread-37632.html
(29-12-2020, 12:06 AM)xufa Thanks. Following that guide I flashed only vbmeta using flag 0 with the correct padding for g5k6 (16384) however I got again a brick. Note that --disable verification hangs the terminal.
Haven't tried to flash vbmeta and boot.img in a row. However does not look promising based on this experience.
Is there a faster way to install Android 10? I don't need root or any specific recovery. Is root required to install Android 10?
Thabks
fastboot flash -S 100M system system.img
fastboot erase userdata
(29-12-2020, 03:01 PM)hovatek(29-12-2020, 12:06 AM)xufa Thanks. Following that guide I flashed only vbmeta using flag 0 with the correct padding for g5k6 (16384) however I got again a brick. Note that --disable verification hangs the terminal.
Haven't tried to flash vbmeta and boot.img in a row. However does not look promising based on this experience.
Is there a faster way to install Android 10? I don't need root or any specific recovery. Is root required to install Android 10?
Thabks
The goal isn't really to root, its to ensure you have a custom vbmeta that allows you successfully flash signed modified files. Anything short of this might mean trouble down the road.
You can upgrade to Android 10 using a GSI. Once you find a compatible one, try the command below
Code:[code]fastboot -S 100M system system.img
fastboot erase userdata
(29-12-2020, 05:10 PM)xufa As I said in my first post, I can flash the signed TWRP.img without problems but I get a boot loop.
I also flashed smoothly this GSI image (signed with my key) after creating the custom vbmeta with the key for the system partition but I get again a boot loop.
https://sourceforge.net/projects/andyyan...z/download
Even flashing only the custom vbmeta gives me a boot loop. I tried flag 2 and flag 0.
I don't really know what should happen after flashing de vbmeta. If the tablet should boot to android... This is not happening to me.
Thanks
(30-12-2020, 06:15 AM)hovatek(29-12-2020, 05:10 PM)xufa As I said in my first post, I can flash the signed TWRP.img without problems but I get a boot loop.
I also flashed smoothly this GSI image (signed with my key) after creating the custom vbmeta with the key for the system partition but I get again a boot loop.
https://sourceforge.net/projects/andyyan...z/download
Even flashing only the custom vbmeta gives me a boot loop. I tried flag 2 and flag 0.
I don't really know what should happen after flashing de vbmeta. If the tablet should boot to android... This is not happening to me.
Thanks
This brings us back to my last point; you first need to sort this vbmeta issue before going forward. By successful, I mean flashing an image without getting a bootloop.
Create a stock vbmeta; flag 0 and all partition's original public keys. Flash this vbmeta and see how it goes
python avbtool extract_public_key --key rsa4096_vbmeta.pem --output keys/hovatek.bin
python avbtool make_vbmeta_image --key rsa4096_vbmeta.pem --algorithm SHA256_RSA4096 --flag 0 --chain_partition boot:1:keys/key_boot.bin --chain_partition system:3:keys/hovatek.bin --chain_partition vendor:4:keys/key_vendor.bin --chain_partition product:10:keys/key_product.bin --chain_partition dtbo:9:keys/key_dtbo.bin --chain_partition recovery:2:keys/hovatek.bin --chain_partition l_modem:5:keys/key_l_modem.bin --chain_partition l_ldsp:6:keys/key_l_ldsp.bin --chain_partition l_gdsp:7:keys/key_l_gdsp.bin --chain_partition pm_sys:8:keys/key_pm_sys.bin --chain_partition dtb:11:keys/key_dtb.bin --padding_size 16384 --output vbmeta_custom.img
python vbmeta_pad.py
python avbtool add_hash_footer --image /media/ubuntu/Windows/Users/Laptop/Documents/lineage-17.1-20201215-UNOFFICIAL-treble_arm64_avS.img --partition_name system --key rsa4096_vbmeta.pem --algorithm SHA256_RSA4096 --partition_size 1968365568
sudo ./fastboot flash vbmeta ../vbmeta_custom.img
target didn't report max-download-size
sending 'vbmeta' (1024 KB)...
OKAY [ 0.060s]
writing 'vbmeta'...
OKAY [ 0.378s]
finished. total time: 0.437s
sudo ./fastboot flash system /media/ubuntu/Windows/Users/Laptop/Documents/lineage-17.1-20201215-UNOFFICIAL-treble_arm64_avS.img -S 100M
sending sparse 'system' 1/18 (102396 KB)...
OKAY [ 6.154s]
writing 'system' 1/18...
OKAY [ 3.616s]
sending sparse 'system' 2/18 (102396 KB)...
OKAY [ 6.045s]
writing 'system' 2/18...
OKAY [ 3.629s]
sending sparse 'system' 3/18 (102396 KB)...
OKAY [ 6.256s]
writing 'system' 3/18...
OKAY [ 3.599s]
sending sparse 'system' 4/18 (102396 KB)...
OKAY [ 6.107s]
writing 'system' 4/18...
OKAY [ 3.630s]
sending sparse 'system' 5/18 (102396 KB)...
OKAY [ 6.230s]
writing 'system' 5/18...
OKAY [ 3.606s]
sending sparse 'system' 6/18 (102396 KB)...
OKAY [ 6.276s]
writing 'system' 6/18...
OKAY [ 3.601s]
sending sparse 'system' 7/18 (102396 KB)...
OKAY [ 6.602s]
writing 'system' 7/18...
OKAY [ 3.640s]
sending sparse 'system' 8/18 (102396 KB)...
OKAY [ 6.237s]
writing 'system' 8/18...
OKAY [ 3.612s]
sending sparse 'system' 9/18 (96964 KB)...
OKAY [ 5.927s]
writing 'system' 9/18...
OKAY [ 3.416s]
sending sparse 'system' 10/18 (102396 KB)...
OKAY [ 5.967s]
writing 'system' 10/18...
OKAY [ 3.602s]
sending sparse 'system' 11/18 (102396 KB)...
OKAY [ 6.053s]
writing 'system' 11/18...
OKAY [ 3.599s]
sending sparse 'system' 12/18 (102396 KB)...
OKAY [ 6.149s]
writing 'system' 12/18...
OKAY [ 3.634s]
sending sparse 'system' 13/18 (102396 KB)...
OKAY [ 6.305s]
writing 'system' 13/18...
OKAY [ 3.604s]
sending sparse 'system' 14/18 (102396 KB)...
OKAY [ 5.933s]
writing 'system' 14/18...
OKAY [ 3.602s]
sending sparse 'system' 15/18 (102396 KB)...
OKAY [ 6.426s]
writing 'system' 15/18...
OKAY [ 3.616s]
sending sparse 'system' 16/18 (102396 KB)...
OKAY [ 6.099s]
writing 'system' 16/18...
OKAY [ 3.644s]
sending sparse 'system' 17/18 (102396 KB)...
OKAY [ 6.189s]
writing 'system' 17/18...
OKAY [ 3.628s]
sending sparse 'system' 18/18 (95460 KB)...
OKAY [ 5.785s]
writing 'system' 18/18...
OKAY [ 3.406s]
finished. total time: 175.429s
cat rsa4096_vbmeta.pem
-----BEGIN RSA PRIVATE KEY-----
MIIJKQIBAAKCAgEA2ASv49OEbH4NiT3CjNMSVeliyfEPXswWcqtEfCxlSpS1FisA
uwbvEwdTTPlkuSh6G4SYiNhnpCP5p0vcSg/3OhiuVKgV/rCtrDXaO60nvK/o0y83
NNZRK2xaJ9eWBq9ruIDK+jC0sYWzTaqqwxY0Grjnx/r5CXerl5PrRK7PILzwgBHb
IwxHcblt1ntgR4cWVpO3wiqasEwBDDDYk4fw7W6LvjBb9qav3YB8RV6PkZNeRP64
ggfuecq/MXNiWOPNxLzCER2hSr/+J32h9jWjXsrcVy8+8Mldhmr4r2an7c247aFf
upuFGtUJrpROO8/LXMl5gPfMpkqoatjTMRH59gJjKhot0RpmGxZBvb33TcBK5SdJ
X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