My fix method for lockscreen bug for Kenzo, especially Nos Oreo-Pie
Aoba AkaneAfter some experiments over week, and now the lockscreen completely gone (yay finally!)
Let's Begin..
More Update? Try this method, the latest method from my newer experiment 😂 :
So just download Miui 8.2.1.0 China stable, flash it via mi flash via edl mode. After it completed flash mdtp, misc, userdata, persist and twrp. Just after it completed, type
fastboot boot <twrp name>.img
to enter twrp directly without reboot. Just format data, wipe all then flash rom as you usually do.
Done.
No need to do below steps, it outdated
=============================================
Indo :
Yang paling manjur ini :
So download Miui 8.2.1.0 China stable, flash via mi flash via edl mode. Setelah itu flash mdtp, misc, userdata, persist and twrp lewat fastboot (langsung aja pancal mode fastboot dari mode edl, tinggal tahan tombol power+volume min sampe keluar logo android lagi dilas). Kalo udah, ketik :
fastboot boot <twrp name>.img
agar bisa langsung masuk ke twrp tanpa harus keluar dari fastboot. Habis itu format data, wipe all lalu flash rom seperti biasanya.
Done.
Below is my old experiment, do not do except you curious to do...
Update :
Now you can just flash the needed files like mdtp, misc, userdata, persist, twrp (use official for formatting data) everytime you facing lockscreen bug, just go to fastboot to flash all above files, and go to twrp to format data, and you're done 😄. Simple isn't it?
But if that simple fix still can't aid lockscreen bug, well you must go to miui homescreen, so flash miui.
Make sure your phone is officially unlocked
Files needed :
- MIUI 10.2.1.0.MHOMIXM
- TWRP Official kenzo
tools needed :
- Android Image Kitchen (AIK)
- Notepad++ for better viewing
- MiFlash
- ADB & Fastboot
1. Copy boot.img from firmware images folder to AIK folder, then unpack the boot.img of global stable (i'm using latest and last, ver 10) using unpackimg (if on Windows, all u need to do is drag and drop the boot.img to the unpackimg, don't know on other os though).
2. Open fstab.qcom inside ramdisk with notepad or notepad++ (better using this) to remove line that contain code dm-verity & encryption command.
remove ,wait on /system line, that is the verity code
change forceencrypt=footer to encryptable=footer on /data line, this is the encryption command code
Don't forget to save 😂
Btw i don't know with some file like noverity.zip that removed verity line, last time i'm try that, the lockscreen bug still kicks in, so i'm still go with that way.
3. After modify the fstab.qcom, rebuild that img with repackimg inside AIK folder (just double click that file, no need any drag and drop), then copy the image-new.img back to images folder, rename the old one to some random name, and the image-new.img to boot.img.
4. After that, let it flashed with miflash, go to fastboot directly after that (press your power button+vol down), then flash this mdtp.img, misc.img, userdata.img and persist.img, after that let your phone booted normally to memeui. After going through home screen, boot to fastboot to flash twrp, format data, then reboot to recovery.
5. After entering twrp again, now do the step as usually do when installing rom (wipe, instal rom, gapps & magisk if u wish). No blackscreen haunting again 😄
little different than xda post do, but this step fix my lock screen bug especially on nos rom oreo-pie 👍🏼
UPDATE 1 Feb 2019
If you caught by this bug, but you can't access pc for flashing rom, just use lockscreen password remover that included on pitchblack or orangefox twrp.
Then do factory reset (wipe data, cache, dalvik). Sometimes it solving this too, but this thing will wipe all your apps, so make sure you backup it first.
Make sure you bringing Nougat rom too, because only nougat and below that not has any lockscreen bug. Handy when lockscreen bug hantuing again, but you need your phone so badly.
Versi Batak (Kata Negi gitu, bukan maksud rasis lho wkwk)
Update:
Jadi dowload aja rom miui 8.2.1.0 china stable, lalu flash pake miflash via edl. Setelah selesai, langsung masuk fastboot, lalu flash mdtp, misc, userdata, persist lalu twrp. Kalo udah langsung aja ketik :
fastboot boot <twrp name>.img
Agar bisa langsung masuk ke twrp tanpa harus reboot. Kalo udah, langsung aja format data, lalu wipe all, klo udah instal rom spt biasa. done
Setelah ane bereksperimen selama seminggu (galau cuy, mesti mindah data berulang kali dari internal ke sdcard, gitu terus wkwk), begini cara ane ngatasin bug lockscreen
Pastiin kenzo luh UBL resmi, bukan yg haram
File yg dibutuhkan :
- Miui 10.2.1.0.MHOMIXM
- TWRP official kenzo
Peralatan yg dibutuhkan :
- Android Image Kitchen (AIK)
- Notepad++ , lebih mudah liatnya ketimbang notepad bawaan windows, atau terserah lu dah yg penting bisa edit text, asal jangan pake Microsoft office atau sebangsanya aja.
- Miflash
- ADB&Fastboot
1. Salin file boot.img dari folder rom>images ke folder AIK, lalu buka file tadi dengan cara drag and drop ke file unpackimg
2. Buka folder ramdisk, lalu buka file fstab.qcom dengan text editor, disini ane pake notepad++ biar mudah ngeditnya. Lalu apus kata2 berikut :
,wait di bagian /system
ganti forceencrypt=footer menjadi encryptable=footer di bagian /data
Lalu jangan lupa simpan 😂
Btw ane sendiri pernah ujicoba pake file noverity.zip tapi ttp aja bug tadi ngisruh, jadinya ane pake cara di atas walau agak ribet wkwk
3. Abis itu, buat ulang file boot.img dengan cara klik dua kali file repackimg di folder AIK tadi, lalu copas file image-new.img ke folder ROM>Images, kemudian rename boot.img yg disitu ke terserah, misal aja boot.img_lama, kemudian rename file image-new.img ke boot.img
4. Setelah itu, flash kenzo dalam mode EDL dengan miflash, kalo flash done langsung aja masuk fastboot mode dengan menahan tombol power+volume down sampe keluar gambar kelinci lagi ngelas android.
5. Flash file berikut : mdtp.img, misc.img, userdata.img and persist.img (file ini ada di dalam folder ROM>Images) dengan fastboot, dengan perintah
fastboot flash nama_file nama_file.img
ane kasih contoh satu, misal file mdtp perintahnya gini : fastboot flash mdtp mdtp.img
lanjutkan ke file lain sampe file persist.img, kemudian ketik :
fastboot reboot
agar keluar dari mode fastboot.
6. Biarkan hp booting hingga masuk ke homescreen, kalau udah, restart hp kemudian masuk lagi ke mode fastboot
7. Kemudian ketik perintah berikut :
fastboot flash recovery nama_file_recovery.img
fastboot boot nama_file_recovery.img
8. Setelah masuk ke twrp, langsung aja format data, kalo udah reboot to recovery, kalo ditanyain soal gk ada osnya, lanjut aja. Btw jangan lupa sambil nahan tombol volume atas ya, biar masuk twrp lagi.
9. Kelar, tinggal wipe system, data, cache, dalvik, lalu instal rom seperti biasanya.
Bye2 blackscreen wkwk
Mungkin aja ni tutorial kurang atau malah kagak jelas, tapi seperti inilah yg ane lakuin buat ngatasin bug lockscreen yg ada di rom oreo atau pie/
UPDATE 1 Feb 2019
Misal aja agan kena bug ini lagi, tapi posisi lagi gk bisa akses pc/laptop buat flash, coba
gunakan utility lockscreen password remove yg ada di twrp pitchblack atau orangefox.
Dilanjutkan factory reset via twrp (wipe data sama cache) kalau mau. Kadang kala bisa membantu walau harus setup rom dari awal lagi wkwk. Oiya jangan lupa backup apps dulu ya, pake titanium backup misalnya.
Atau setidaknya selalu siapkan rom nougat buat jaga2, karena di nougat ke bawah yg gk kena bug lockscreen.
Update lagi? wkwkw😂, tapi kayaknya yg paling manjur ini :
So download Miui 8.2.1.0 China stable, flash via mi flash via edl mode. Setelah itu flash mdtp, misc, userdata, persist and twrp lewat fastboot (langsung aja pancal mode fastboot dari mode edl, tinggal tahan tombol power+volume min sampe keluar logo android lagi dilas). Kalo udah, ketik :
fastboot boot <twrp name>.img
agar bisa langsung masuk ke twrp tanpa harus keluar dari fastboot. Habis itu format data, wipe all lalu flash rom seperti biasanya.
Done.