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: GOOD877Views1like0CommentsUE5 (.2.1) Had some problems building to Quest (3) and VR Preview: Solved!
Besides the documentation, this is my config which works finally: Download via Android Studio (Tools - SDK-Manager) SDK Platforms (check "Show Package Details"): Android 12L -> Android SDK Platform 32, Sources for Android 32, ARM 64 v8a Android 10 -> Android SDK Platform 29, Sources for Android 29, ARM 64 v8a SDK Tools (check "Show Package Details"): Android SDK Build-Tools 34 -> 32.1.0-rc1, 32.0.0, 29.0.3 NDK -> 25.1.8937393 Android SDK Command-line Tools -> Android SDK Command-line Tools 11.0, 10.0 Android Emulator Android Emulator Hypervisor Driver Android SDK Platform Tools Unreal Engine Project Settings: Android SDK: Min SDK: 29 Target SDK: 32 NDK: 25.1.8937393 (26.x doesnt work) JAVA: JAVA SE 8 (https://www.oracle.com/de/java/technologies/javase/javase8-archive-downloads.html) SDK API Level: android-32 NDK API Level: android-29 SDK Paths: Location Android SDK: C:/Users/[Username]/AppData/Local/Android/Sdk Location Android NDK: C:/Users/[Username]/AppData/Local/Android/Sdk/ndk/25.1.8937393 Location JAVA: C:/Program Files/Java/jdk1.8.0_202 Settet these Paths also in the environment variables ANDROID_HOME, NDKROOT, JAVA_HOME VR Preview: I had problems getting the VR Preview to work. While trying the XR Simulartor, i settet the Environment-Variable "XR_RUNTIME_JSON". Had to remove that, because the path doesnt exist anymore (deleted the MetaXRSimulator-Folder and did not remove this variable) This tool https://github.com/maluoi/openxr-explorer should show the active runtime (oculus). With the wrong environment-variable, openxr-explorer shows "no runtime settet" or something like that. This tool shows errors, if something is wrong Start Oculus Link before Unreal Editor3.8KViews2likes4CommentsMeta Quest 3, UE5.2 Oculus: Which versions Android SDK/NDK, build tools, command-line tools, cmake?
Does anyone have documentation on correct versions to use when deploying from Unreal Engine 5.2 Oculus branch to Meta Quest 3 for the Android SDK, Android NDK, Android Build-Tools, Android Command-Line tools and cmake? What about Unreal-specific settings? Anything I should know there too? Any help is appreciated, thanks in advance.Solved14KViews1like9Comments