Hovatek Forum MOBILE Android [TECLAST] P20HD (NEW Android10 tablet w/ 4g phone) HOW TO ROOT?? (Unisoc / SPD)
Can't login? Please, reset your password.
Hovatek is recruiting! Apply Now


[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)

Pages (3): Previous 1 2 3
hovatek
hovatek
hovatek
Administrator
49,570
27-08-2020, 08:32 AM
#21



(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!


No major change to the script, you just need to change the file name in the python script (appears twice) to match what you have in your folder

Note!
We have a reply schedule for Free Support. Please upgrade to Private Support if you can't wait.
ifp_0132
ifp_0132
ifp_0132
Junior Member
19
27-08-2020, 12:57 PM
#22
(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

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
hovatek
hovatek
hovatek
Administrator
49,570
28-08-2020, 08:43 AM
#23
(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
This post was last modified: 28-08-2020, 08:46 AM by hovatek.

Note!
We have a reply schedule for Free Support. Please upgrade to Private Support if you can't wait.
ifp_0132
ifp_0132
ifp_0132
Junior Member
19
28-08-2020, 02:08 PM
#24
(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

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!
Attached Files
.img
vbmeta_custom.img
Size: 1 MB / Downloads: 2
logan23
logan23
logan23
Enthusiastic Member
13
28-08-2020, 06:03 PM
#25



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
ifp_0132
ifp_0132
ifp_0132
Junior Member
19
29-08-2020, 12:58 PM
#26
(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...
hovatek
hovatek
hovatek
Administrator
49,570
30-08-2020, 07:57 AM
#27
(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!

1. What command are you using to flash?
2. Recreate stock vbmeta (use each partition's extracted public keys, DO NOT use hovatek.bin for any of them. Also set flag to 0 in your command)
flash this recreated stock vbmeta using
Code:

fastboot flash vbmeta vbmeta.img

where vbmeta.img is the name of this your recreated vbmeta

Let me know how that goes
This post was last modified: 30-08-2020, 08:13 AM by hovatek.

Note!
We have a reply schedule for Free Support. Please upgrade to Private Support if you can't wait.
ifp_0132
ifp_0132
ifp_0132
Junior Member
19
30-08-2020, 11:32 AM
#28
(30-08-2020, 07:57 AM)hovatek ...

I'm sorry. I don't think I can work on it because my arm is so sore... Sad
X3non
X3non
X3non
Recognized Contributor
22,062
31-08-2020, 10:43 AM
#29
(30-08-2020, 11:32 AM)ifp_0132 I'm sorry. I don't think I can work on it because my arm is so sore... Sad

you are one someone elses thread, create a new thread for your device issue by clicking "Ask Question" at the top
johntrevor
johntrevor
johntrevor
Junior Member
15
10-10-2021, 08:47 PM
#30



(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...

It's really a late reply, but I think you should flash with fastboot while phone is in "fastbootd" mode (note the D). To enter fastbootd mode, while phone is normally booted :
adb reboot fastboot
(wait to enter regular fastboot)
fastboot reboot fastboot
(yes! just this!)
a screen with a red bold "fastbootd" will appear.
now flash your vbmeta and/or custom signed partitions

Note1: for unknown reasons, this worked for me on a Win PC.
note2: On the other hand on Ubuntu PC only 'legacy' fastboot mode worked , instead device is not detected while in fastbootD mode
This post was last modified: 10-10-2021, 08:52 PM by johntrevor.
Pages (3): Previous 1 2 3
Users browsing this thread:
 1 Guest(s)
Users browsing this thread:
 1 Guest(s)
YtWhTl
live chat
whatsapp telegram instagram