zacharee / Tweaker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Feature Request] Lock Screen Pattern (in)visibility

baghera8 opened this issue · comments

Would be extremely useful, to address a very common complaint on some recent vendor UIs/OSs (such as the latest One Plus OxygenOS builds).
This would essentially reproduce the functionality of the AOSP "Make pattern visible" lockscreen setting.
Thank you!

Does adb shell settings put secure lock_pattern_visible_pattern false hide the pattern for you? It doesn't seem to apply to One UI, and I don't have a recent-enough OnePlus device to test there.

Actually, it looks like the option is stored in the secure locksettings.db. The only way I can see to change this without root is to do something like:

  1. adb backup -keyvalue com.android.providers.settings.
  2. Use Android Backup Extractor to convert backup.ab to a tar.
  3. Extract the tar, find the .data file, open it as text, find lock_pattern_visible\0\01, change the 1 to a 0, and save.
  4. Repack the tar, convert back to .ab, and use adb restore.