I need to check from an android service if the Gear VR is plugged to my S7. How could I achieve this? I tried checking if the com.samsung.android.hmt.vrsvc is running but it runs sometimes even if the Gear VR are unplugged.
Solved. Using Action flags "android.hardware.usb.action.USB_DEVICE_ATTACHED" and "android.hardware.usb.action.USB_DEVICE_DETACHED" in Android and sending a broadcast message through a custom plugin to the service from my Unity app to tell that UnityEngine.VR.VRDevice.isPresent is true.