Skip to main content
Participant
March 20, 2024

Programmatically get controller battery levels and status

Hi,

Is there a way to programmatically get a Quest's controller battery levels?
Preferrable with a native android library/SDK.
We would like to be able to monitor battery levels in our XR platform.

With ADB it is possible to retrieve this info, but there is no way to execute ADB commands from a non system app.

E.g.
adb shell "dumpsys OVRRemoteService | grep Paired"
Paired device: <redacted>, Type: Right, Firmware: 1.9.0, ImuModel: ICM42686, Battery: 60%, Status: Disabled, ExternalStatus: DISABLED, TrackingStatus: POSITION, BrightnessLevel: GOOD
Paired device: <redacted>, Type: Left, Firmware: 1.9.0, ImuModel: ICM42686, Battery: 60%, Status: Disabled, ExternalStatus: DISABLED, TrackingStatus: POSITION, BrightnessLevel: GOOD