Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A few notes on Night Light #120

Open
mirh opened this issue Sep 8, 2024 · 2 comments
Open

A few notes on Night Light #120

mirh opened this issue Sep 8, 2024 · 2 comments

Comments

@mirh
Copy link

mirh commented Sep 8, 2024

Before finding your majestic app, I did my own research about the feature. And it seemed a pity not to have it all documented now. Note this is all untested by me, but still multiple people seemed confident about them. ALLEGEDLY:

  • Nougat may also require tuner_night_mode_adjust_tint (it should be uninfluential when turning off though)
  • OnePlus phones (and Realme?) might require night_display_auto_mode
  • Samsung phones should have blue_light_filter (potentially overlapping)
  • Xiaomi phones could (not sure if concurrently or alternatively) have screen_paper_mode_enabled
  • Huawei phones might use eyes_protection_mode? (idk, the phoneprofileplus dev seems to think so at least)

EDIT: of note that some of these settings may sit in the system (or global?) registry store instead of secure

@henrichg
Copy link

henrichg commented Sep 10, 2024

Tested in my test devices:

Pixel - required is WRITE_SECURE_SETTINGS permission, because of Settings.Secure db, working
Samsung - not working :-(
Xiaomi - working, required is Shizuku, root
Huawei - working, Shizuku, root, WRITE_SECURE_SETTINGS is not needed
OnePlus - required is WRITE_SECURE_SETTINGS permission, because of Settings.Secure db, working

EDIT: For Samsung it is not working. Switch in Settings is set by value assigned to "blue_light_filter", but filter is not set on/off. Problem with "night_display_activated" persists. Value "1" switch off display. :-( Tested in S10, S21.

@henrichg
Copy link

Fixed also for Samsung.
Needed is start of service:
henrichg/PhoneProfilesPlus#81 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants