这是indexloc提供的服务,不要输入任何密码
Skip to content

Add voltage data to termux-battery-status #578

@cledsupper

Description

@cledsupper

Feature description
Add the voltage attribute in JSON data returned by termux-battery-status command.

I need this data for getting rid of difficulties lead by ADB configuration in an application prototype I'm developing with Termux:API, the MoniBat.

Reference implementation

Here is an Android Developer documentation which shows the voltage data can be obtained by the Intent.ACTION_BATTERY_CHANGED: BatteryManager.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions