• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

Question Is it possible to save the unlock key after unlocking the bootloader?

Search This thread

falhumai96

Member
Jun 26, 2017
27
6
Hello guys/girls,

After using the official "Unlock Device App" to unlock the bootloader on any of the ROG/Zen Phones (and of course, get your phone blacklisted from future OTAs and warranty), is it possible to save the key so that I can unlock the device in the future again after relocking offline so that I don't rely on the server's key generator? This would allow your phone to be unlocked indefinitely even after having the signing server going offline (let's hope this won't happen).

I am asking for this because so far I have seen two companies that probably destroyed their fanbase by shutting down their keygen servers, such as Huawei and LG, and more companies may do that in the near or far future. I hope ASUS does not go on the same path in the future.
 
In theory, can't you just make a full backup of all of your partitions? Worst case scenario, you would use your own images in place of any generic ones using the EDL restore software.

The only reason an EDL restore requires you to unlock again after is that you are using generic images for a stock (locked) phone.

This is, of course, theoretical. I haven't looked into the images enough to know if there is more to them than simply being stock images (with a few extras not part of regular firmware) wrapped in a low-level flash process.
 

falhumai96

Member
Jun 26, 2017
27
6
In theory, can't you just make a full backup of all of your partitions? Worst case scenario, you would use your own images in place of any generic ones using the EDL restore software.

The only reason an EDL restore requires you to unlock again after is that you are using generic images for a stock (locked) phone.

This is, of course, theoretical. I haven't looked into the images enough to know if there is more to them than simply being stock images (with a few extras not part of regular firmware) wrapped in a low-level flash process.
@twistedumbrella I haven't done EDL back/restore before, but I did Clonezilla backup/restore on PC/laptop. Let's say I bought 512GB version ASUS ROG Phone 5S, wouldn't EDL backup have to backup the entire 512GB because it is encrypted (encrypted partitions are just one complete block, even if it is barely used)? Can you backup only what you used, including the unlock key, with EDL?
 
@twistedumbrella I haven't done EDL back/restore before, but I did Clonezilla backup/restore on PC/laptop. Let's say I bought 512GB version ASUS ROG Phone 5S, wouldn't EDL backup have to backup the entire 512GB because it is encrypted (encrypted partitions are just one complete block, even if it is barely used)? Can you backup only what you used, including the unlock key, with EDL?

I probably should have been a bit more specific. I didn't mean backing up your system, boot, and data images. I meant the stuff that makes your phone your specific phone, such as your radio, bootloader, and vendor.

Anything that can be restored with an install should be left as the default to minimize the number of variables being thrown into it. Again, this is all theory. I haven't tried it with this phone, but cloning the image for a blind write is more or less the premise of a "full backup" that has been done in recovery images for years.
 

falhumai96

Member
Jun 26, 2017
27
6
I probably should have been a bit more specific. I didn't mean backing up your system, boot, and data images. I meant the stuff that makes your phone your specific phone, such as your radio, bootloader, and vendor.

Anything that can be restored with an install should be left as the default to minimize the number of variables being thrown into it. Again, this is all theory. I haven't tried it with this phone, but cloning the image for a blind write is more or less the premise of a "full backup" that has been done in recovery images for years.
@twistedumbrella Can we use QFIL tool (https://qfiltool.com/), for example, to backup/restore partitions? Also, do we have the firehouse programmer for the ASUS ROG Phone 5S?