Hovatek Forum MOBILE Android [TECLAST] P20HD (NEW Android10 tablet w/ 4g phone) HOW TO ROOT?? (Unisoc / SPD)
Try our Online TWRP Builder..its free!
Can't login? Please, reset your password.


[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 Next
logan23
logan23
logan23
Enthusiastic Member
13
21-08-2020, 10:06 AM
#11



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?
[Image: a.png]



Thanks!
This post was last modified: 21-08-2020, 10:07 AM by logan23.
X3non
X3non
X3non
Recognized Contributor
22,062
21-08-2020, 10:42 AM
#12
(20-08-2020, 09:46 AM)logan23 ok thanks! No change? perfect!
...
"For Android 9/10 devices, download zipped vbmeta_pad.py"...

yes, no changes and thanks, it has been added
logan23
logan23
logan23
Enthusiastic Member
13
22-08-2020, 03:24 AM
#13
[Image: b.png]

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!
X3non
X3non
X3non
Recognized Contributor
22,062
22-08-2020, 10:41 AM
#14
(22-08-2020, 03:24 AM)logan23 ...
Any idea what wrong?? by the way, "current-slot:" is empty?? (see .\fastboot getvar current-slot )

Thanks!

retry using fastboot within the latest platform tools @ https://www.hovatek.com/forum/thread-17104.html
logan23
logan23
logan23
Enthusiastic Member
13
22-08-2020, 01:45 PM
#15



Thanks, good try but it still doesn't work (see below).
By the way, I've also tried with the Fastboot.exe (size 1334272) that was included in "Hovatek ADB fastboot v1.0.41"
Any other idea is welcome!
Thanks again bro!

[Image: c.png]
X3non
X3non
X3non
Recognized Contributor
22,062
24-08-2020, 09:17 AM
#16
(22-08-2020, 01:45 PM)logan23 ...
Any other idea is welcome!
...

to confirm, do you get any output for the command "fastboot devices" ?
and have you tried using the linux fastboot binary from within the zip file that was used to unlock the bootloader?
logan23
logan23
logan23
Enthusiastic Member
13
24-08-2020, 12:04 PM
#17
(24-08-2020, 09:17 AM)X3non to confirm, do you get any output for the command "fastboot devices" ?
Code:

PS C:\tmp2\platform-tools> .\fastboot devices
34432367532688  fastboot
PS C:\tmp2\platform-tools>

(24-08-2020, 09:17 AM)X3non and have you tried using the linux fastboot binary from within the zip file that was used to unlock the bootloader?

Nope, BTW I used  a live USB Ubuntu key. Do you believe it would change anything?

Thanks!
This post was last modified: 24-08-2020, 12:04 PM by logan23.
logan23
logan23
logan23
Enthusiastic Member
13
24-08-2020, 12:43 PM
#18
@X3non : Please take a look at this comment: patches

What do you think about it?
What is the procedure to follow to patch these 2 "vbmeta_system.img" & "vbmeta_vendor. img" files ?

Thanks!
This post was last modified: 24-08-2020, 12:44 PM by logan23.
X3non
X3non
X3non
Recognized Contributor
22,062
25-08-2020, 10:59 AM
#19
(24-08-2020, 12:04 PM)logan23 ... Do you believe it would change anything?

Thanks!

can't tell if you don't try it out


(24-08-2020, 12:43 PM)logan23 ...What do you think about it?

the OP says vbmeta doesn't exist in the device rom, if that is correct then where did you all get the original vbmeta.img from?
also if it's true (which is very very unlikely) that the device has no vbmeta, then it'll mean that other partitions don't get verified during boot and you should be able to flash and boot up a magisk patched boot without issues


(24-08-2020, 12:43 PM)logan23 What is the procedure to follow to patch these 2 "vbmeta_system.img" & "vbmeta_vendor. img" files ?
...

neither of these affects boot or recovery so disabling them still won't let you get root
hovatek
hovatek
hovatek
Administrator
49,570
27-08-2020, 08:21 AM
#20



(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 post was last modified: 27-08-2020, 08:34 AM by hovatek.

Note!
We have a reply schedule for Free Support. Please upgrade to Private Support if you can't wait.
Pages (3): Previous 1 2 3 Next
Users browsing this thread:
 1 Guest(s)
Users browsing this thread:
 1 Guest(s)
YtWhTl
live chat
whatsapp telegram instagram