Home Forum Blog Private Support Courses
Our courses are now on YouTube! Start Watching
Hovatek Forum OPERATING SYSTEMS Android [Tutorial] How to root the Doogee S88 Pro using OEM keys

[Tutorial] How to root the Doogee S88 Pro using OEM keys

[Tutorial] How to root the Doogee S88 Pro using OEM keys

Pages (3): Previous 1 2 3
hovatek
hovatek
hovatek
Administrator
50,906
03-05-2021, 11:23 AM
#21



(02-05-2021, 10:26 PM)lle-bout Hello!
Where did you find the OEM private key? Did Doogee publish it?
Thank you

the device uses the generic rsa 2048 from google (i presume)

Learn MediaTek, Unisoc / Spreadtrum (SPD) and Qualcomm Software Repairs @ https://www.hovatek.com/training
Note!
We have a reply schedule for Forum Support. Please try Private Support if you can't wait.
hans henrik
hans henrik
hans henrik
Enthusiastic Member
5
06-06-2021, 01:41 PM
#22
dunno where to report bugs in the avbtool.py , buuut it contains the `#!/usr/bin/env python` schebang, but it's broken because the file use windows-style newlines \r\n , and linux thinks the \r is part of the filename of the interpreter, resulting in
```
root@xDevAd:/android# ./avbtool
/usr/bin/env: ‘python\r’: No such file or directory
```
dos2unix fixes it though:
```
root@xDevAd:/android# ./avbtool
/usr/bin/env: ‘python\r’: No such file or directory
root@xDevAd:/android# dos2unix avbtool
dos2unix: converting file avbtool to Unix format...
root@xDevAd:/android# ./avbtool
usage: avbtool [-h]
{version,extract_public_key,make_vbmeta_image,add_hash_footer,append_vbmeta_image,add_hashtree_footer,erase_footer,resize_image,info_image,verify_image,set_ab_metadata,make_atx_certificate,make_atx_permanent_attributes,make_atx_metadata,make_atx_unlock_credential}
...
avbtool: error: too few arguments
```

the python interpreter understands \r\n and handles it directly if you run `python avbtool` instead of `./avbtool`, guess that's why nobody noticed it
doogeehelp
doogeehelp
doogeehelp
Enthusiastic Member
7
06-09-2021, 12:08 PM
#23
I get invalid syntax when running the add_hash_footer CMD.

Error:

File "avbtool", line 411
b = 2L**32
^

SyntaxError: invalid syntax

How to fix?
hovatek
hovatek
hovatek
Administrator
50,906
06-09-2021, 08:49 PM
#24
(06-09-2021, 12:08 PM)doogeehelp I get invalid syntax when running the add_hash_footer CMD.

Error:

File "avbtool", line 411
b = 2L**32
^

SyntaxError: invalid syntax

How to fix?

if you're using the avbtool listed by us, then you must ensure to use python 2

Learn MediaTek, Unisoc / Spreadtrum (SPD) and Qualcomm Software Repairs @ https://www.hovatek.com/training
Note!
We have a reply schedule for Forum Support. Please try Private Support if you can't wait.
doogeehelp
doogeehelp
doogeehelp
Enthusiastic Member
7
07-09-2021, 10:14 AM
#25

Mediatek Course Mediatek Course


That's now done. Root was successful.

May I ask whether I could use this process to flash a gsi? Signing the gsi with these keys and then booting?
hovatek
hovatek
hovatek
Administrator
50,906
08-09-2021, 09:52 AM
#26
(07-09-2021, 10:14 AM)doogeehelp That's now done. Root was successful.

May I ask whether I could use this process to flash a gsi? Signing the gsi with these keys and then booting?

i doubt that you need to sign system images, just flash without signing

Learn MediaTek, Unisoc / Spreadtrum (SPD) and Qualcomm Software Repairs @ https://www.hovatek.com/training
Note!
We have a reply schedule for Forum Support. Please try Private Support if you can't wait.
johntrevor
johntrevor
johntrevor
Junior Member
15
08-10-2021, 11:00 AM
#27
Just for knowledge, may I ask why here you just need to sign patched boot image, while for Unisoc chipsets you also have to custom-build and sign vbmeta with the standard rsa4096 key?
hovatek
hovatek
hovatek
Administrator
50,906
09-10-2021, 10:21 AM
#28
(08-10-2021, 11:00 AM)johntrevor Just for knowledge, may I ask why here you just need to sign patched boot image, while for Unisoc chipsets you also have to custom-build and sign vbmeta with the standard rsa4096 key?

That's because Doogee used rsa2048_vbmeta.pem to sign its partitions. The models in the SPD guides didn't, hence you had to use custom vmbeta to smuggle modified partitions in

Learn MediaTek, Unisoc / Spreadtrum (SPD) and Qualcomm Software Repairs @ https://www.hovatek.com/training
Note!
We have a reply schedule for Forum Support. Please try Private Support if you can't wait.
Pages (3): Previous 1 2 3
Users browsing this thread:
 1 Guest(s)
Users browsing this thread:
 1 Guest(s)
WhTlYt