Skip to content

LineageOS support #9

Description

@ysfchn

Though it is device dependent, I have Nothing Phone 1 installed LineageOS and it has charging control support too which can be configured in org.lineageos.lineageparts/.health.ChargingControlSettings activity.

LineageOS has its own settings in a dedicated namespace, so there is a custom --lineage flag exists in LineageOS builds.

# settings list --lineage system | grep charging
charging_control_charging_limit=90
charging_control_enabled=1
charging_control_mode=3
charging_control_start_time=79200
charging_control_target_time=32400

Which can also be accessed from this content URI: content://lineagesettings/system.

According to LineageOS source the charging control setting values follows:

  • charging_control_enabled
    • 1 = Enabled, 0 = Disabled
  • charging_control_mode
    • 1 = Automatic schedule, 2 = Custom schedule, 3 = Percent limit
  • charging_control_charging_limit
    • A percent value between 70 and 100, valid when charging_control_mode is set to 3.
  • charging_control_start_time and charging_control_target_time
    • Seconds since midnight, valid when charging_control_mode is set to 2.

I felt it would be helpful to leave this information here as a reference in case anyone is interested, hope that is fine.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions