zacharee / Tweaker

MIT License
991 stars 174 forks source link

[Feature Request] Lock Screen Pattern (in)visibility #93

Open baghera8 opened 7 months ago

baghera8 commented 7 months ago

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!

zacharee commented 6 months ago

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.

zacharee commented 6 months ago

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.