I forgot the PIN to my Huawei TIT-AL00 android device. So I backed up my user data to a backup file.(user_data__20150913_075028.backup*) I couldn't use ADB to backup as it wasn't enabled in the recovery mode. I had to use the backup user data option from the recovery menu.

Is there a way that I can remove the PIN password from the backup file so that when I restore it and just use the phone without having to type the password? I tried the solution mentioned here : How to extract .backup files created by android stock recovery? But this didn't work either.

I am aware that if I had ADB access to the device, I could have removed the password by editing the /data/data/com.android.providers.settings/databases or by deleting the /data/system/gesture.key. Since I didn't have ADB access to the device I couldn't do this.

Is there a way that I can extract the backup file, delete/edit these files by mannually and then compress so that I can restore it?

  • check with hex editor if userdata_20150913_075028.backup is encrypted or plain disk image
    – alecxs
    Commented Nov 17, 2021 at 12:06
  • I am not sure whether it's encrypted or not. I used the hexeditor and I can see the hex values. But when I run the "file" command against it, it just tells me "data". Commented Nov 17, 2021 at 17:10
  • 1
    According to how I understood, if the 0xef53 exists at 0x638 offset of the hexdump it's not encrypted. Correct? If so, mine is not encrypted. Commented Nov 17, 2021 at 17:35
  • I was able to bckp2cwm.sh and extract the files and remove the password(as it said). Has the script made required changes to the backup file as well or just extracted it? Can I now just restore it like a normal backup file? Commented Nov 17, 2021 at 18:06
  • Unfortunately, there is no way to restore from stock recovery as I don't know how to calculate checksum. you can however restore from custom recovery TWRP
    – alecxs
    Commented Nov 17, 2021 at 18:09


You must log in to answer this question.

Browse other questions tagged .