Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
ynkfish's avatar
ynkfish
Protege
1 year ago

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

No RepliesBe the first to reply