[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)
(17-08-2020, 09:56 AM)logan23 Hi everyone!
I've just bought this excellent Android 10 Tablet with 4g phone included (YES!).
(Most tablet manufacturers don't want to include phone capability in tablets because they want to sell 2 devices instead of one...).
I've been able to unlock the bootloader successfully thanks to Hovatek !!! : https://www.hovatek.com/forum/thread-32287.html
Now I want to root it with Magisk. From my understanding I need to install TWRP as recovery first.
The problem is I haven't found any compatible TWRP image and I'm not good enough to compile it by myself...
Any solution?
Thanks & have a nice day!
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'\x44\x48\x54\x42\x01\x00\x00\x00')
f.write(sha)
f.write(b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x30\x00\x00')
f.seek(512 - 0)
f.write(b)
f.close()
PS C:\tmp2> python avbtool.py info_image --image vbmeta-sign.img
File "avbtool.py", line 411
b = 2L**32
^
SyntaxError: invalid syntax