Manually deriving bootloader key? #9
Replies: 2 comments 10 replies
-
Doing |
Beta Was this translation helpful? Give feedback.
1 reply
-
At this point we get an error ...
#define UNLOCK_KEY_SIZE 32
#define SERIAL_NUMBER_SIZE 16
#define DEFAULT_SERIAL_NUM "0123456789ABCDEF"
char fb_unlock_key_str[UNLOCK_KEY_SIZE+1] = {0};
...
if(UNLOCK_KEY_SIZE != strlen(fb_unlock_key_str))
{
//fastboot_fail("Unlock key length is incorrect!");
ret = ERR_UNLOCK_KEY_WRONG_LENGTH;
goto _wrong_key_length;
} |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Fastboot seem to give the same output as this source code:
https://github.com/l33tnoob/MT65x2_kernel_lk/blob/master/bootable/bootloader/lk/app/mt_boot/sec_unlock.c
We could derive the key manually if only we knew what
sec_get_serial_number_from_unlock_key
and reverse its processBeta Was this translation helpful? Give feedback.
All reactions