Hidup. Pengalaman. Pelajaran. Cerita. Cita. Cinta

Friday, December 22, 2017

Reset Unlock Pattern Xiaomi Redmi Note 4 - No Data Lost



Hari ini, HP Xiaomi Redmi Note 4 (Helio X20, MIUI 8, Android 6), istri gak bisa diunlock menggunakan pattern yang biasanya digunakan, entah kenapa.

Setelah searching2, kebanyakan disuruh factory reset, yang artinya data akan hilang.

Akhirnya, ketemu juga caranya, selama bisa dapat akses root ke adb shell.
(gak dijamin bisa untuk semua HP Xiaomi, tapi worth the shot)

  1. Install Mi PC Suite. Dipakai hanya untuk dapat drivernya.
  2. Install ADB Minimal untuk bisa masuk ke ADB Shell.
  3. Buka Command Prompt, ketik adb root untuk start adb dan dapat akses root.
  4. Start adb shell, ketik adb shell
  5. Akses super user dengan command su
  6. Cari file gatekeeper.xxx.key di folder /data/system : ls -al /data/system/gatekeeper.*
  7. Hapus gatekeeper.xxx.key yang besar filenya bukan 0 bytes. kalau menggunakan pattern, nama filenya gatekeeper.pattern.key, kalau password gatekeeper.password.key.
  8. Reboot device dengan command reboot dari ADB Shell.
  9. Mestinya sudah tidak ada pattern lock lagi.

--------------------------------------------------------------------------------------------------------------------------

English version :

Today, my wife's Xiaomi Redmi Note 4 (Helio X20, MIUI 8, Android 6) won't unlock using her usual unlock pattern, don't know why.

After some googling, mostly suggest factory reset, which will cause data lost, and this is not an option.

Finally, came a cross a forum, and the solution is quite simple, but need root access in adb.
(Not guaranteed to work in all Xiaomi devices)
  1. Install Mi PC Suite, just to install driver.
  2. Install ADB Minimal to obtain ADB Shell.
  3. Open Command Prompt and type adb root to start adb with root access.
  4. Enter adb shell with adb shell command
  5. Access super user with su command
  6. Find gatekeeper.xxx.key file in /data/system directory
  7. Delete gatekeeper.xxx.key file with file size not 0 bytes. If you use pattern, it should be gatekeeper.pattern.key and if you use password it will be gatekeeper.password.key.
  8. Reboot device from adb shell with reboot command.
  9. Done.