[TECLAST] P20HD (NEW Android10 tablet w/ 4g phone) HOW TO ROOT?? (Unisoc / SPD)
[TECLAST] P20HD (NEW Android10 tablet w/ 4g phone) HOW TO ROOT?? (Unisoc / SPD)
(21-08-2020, 10:06 AM)logan23 Hi everyone!
I have successfully generated a "vbmeta-sign-custom.img" by myself with my own ".pem" key
(Step 6 of this Tutorial : https://www.hovatek.com/forum/thread-32664.html )
Now I have a problem with step 7 (the last step). Why?
Because the "vbmeta_pad.py" is incorrect :
Code:import hashlib
import sys
f = open("vbmeta_custom.img", "rb")
b = f.read()
sha = hashlib.sha256(b).digest()
f.close()
f = open("vbmeta_custom.img", "wb")
f.write(b)
f.seek(1048576 - 512)
f.write(b'\x44\x48\x54\x42\x01\x00\x00\x00')
f.write(sha)
f.write(b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x40\x00\x00')
f.seek(1048576 - 1)
f.write(b'\x00')
f.close()
In my directory I have :
Code:-rw-r--r-- 1 root root 16384 august 21 09:11 vbmeta-sign-custom.img
-rwxr-x--- 1 root root 1048576 august 21 08:41 vbmeta-sign.img
I'm not 100% sure how to modify this python script. Please HELP!
By the way, this file has been modified today on Mega.nz.
https://mega.nz/file/5vJGyAib#Q-j402gC_l...zO5MgB6ivg
Who did?? Which version is correct?
Thanks!
(27-08-2020, 08:21 AM)hovatek(22-08-2020, 03:24 AM)logan23 For some reason, flashing doesn't write anything.
YES I am in fastboot mode.
YES I have selected USB Debugging mode in Developpers Menu
YES my tablet is unlocked. On my tablet it is displayed :
"fastboot mode
INFO: LOCK FLAG IS : UNLOCK!!"
YES I currently have no antivirus running on my Windows 10
YES my powershell is in Admin mode.
I am currently running 1.0.3 firmware
Any idea what wrong?? by the way, "current-slot:" is empty?? (see .\fastboot getvar current-slot )
Thanks!
Getting stuck at flashing vbmeta means the vbmeta wasn't properly created or signed.
Either that or the public keys you extracted (for the partitions) aren't correct.
If you could zip the public keys you extracted with your vbmeta, I'll be happy to take a look for you if that's the source of the problem
(27-08-2020, 12:57 PM)ifp_0132 This is a compilation of my public keys and other things I've made.
Is there a problem?
https://drive.google.com/file/d/1zmBVVQ1...sp=sharing
python avbtool make_vbmeta_image --key hovatek.pem
python avbtool make_vbmeta_image --key rsa4096_vbmeta.pem
(28-08-2020, 08:43 AM)hovatek(27-08-2020, 12:57 PM)ifp_0132 This is a compilation of my public keys and other things I've made.
Is there a problem?
https://drive.google.com/file/d/1zmBVVQ1...sp=sharing
I think I've spotted your error
You seem to be running
Code:python avbtool make_vbmeta_image --key hovatek.pem
instead of
Code:python avbtool make_vbmeta_image --key rsa4096_vbmeta.pem
hovatek.pem is the key you create to
1. Generate a public key for custom partition signing (boot or recovery)
2. Sign images (boot or recovery images)
hovatek.pem isn't meant for signing vbmeta itself, that's to be done with rsa4096_vbmeta.pem
Outside that, the public keys are correct
PS C:\tmp2\platform-tools> .\fastboot flash --disable-verification vbmeta vbmeta_custom.img
Rewriting vbmeta struct at offset: 0
Sending 'vbmeta' (1024 KB) OKAY [ 0.044s]
Writing 'vbmeta' <===== WAITING FOREVER
(28-08-2020, 06:03 PM)logan23 Nice try but it doesn't work :
Code:PS C:\tmp2\platform-tools> .\fastboot flash --disable-verification vbmeta vbmeta_custom.img
Rewriting vbmeta struct at offset: 0
Sending 'vbmeta' (1024 KB) OKAY [ 0.044s]
Writing 'vbmeta' <===== WAITING FOREVER
See this thread
(28-08-2020, 02:08 PM)ifp_0132 Thank you for your advice.
I created a new one using rsa4096_vbmeta.pem, but I can't flash it. (I have a broken bone in my body)
Can anyone try this?
Best regards!
fastboot flash vbmeta vbmeta.img
(29-08-2020, 12:58 PM)ifp_0132(28-08-2020, 06:03 PM)logan23 Nice try but it doesn't work :
Code:PS C:\tmp2\platform-tools> .\fastboot flash --disable-verification vbmeta vbmeta_custom.img
Rewriting vbmeta struct at offset: 0
Sending 'vbmeta' (1024 KB) OKAY [ 0.044s]
Writing 'vbmeta' <===== WAITING FOREVER
See this thread
I'm sorry.
It's a matter beyond my control...