3 Development notes

3.1 Enable device USB Debugging on device

G2/G2 4K: Settings -> About, click PUI version item for 8 times and the developer mode is open. Enter 2D settings -> Developer, enable USB Debugging. Click “Choose USB Configuration” to set MTP mode.

Neo 2/ Neo 3: Settings -> More -> System -> About the device. Click the PUI version item for 7 times and return to the system page, and the developer options appear in which the debugging can be enabled.

3.2 Android Manifest Document

  • Special meta-data needs to be added; otherwise, an exception will be displayed::
<meta-data android:name=" pvr.app.type " android:value="vr"/>
<meta-data android:name=" pvr.display.orientation " android:value="180"/>
  • All activity that needs to be displayed needs to inherited from
  • Add the necessary permissions
<!--The following permissions are required-->
<!--For SDK basic APIs-->
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />

<!--The following permissions are optional-->
<!--Required by Globin series controller APIs, optional if the app targeting Neo 2 and Neo 3 series-->
<uses-permission android:name="android.permission.BLUETOOTH" />
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
<uses-permission android:name="android.permission.INJECT_EVENTS" />

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

<uses-permission android:name="android.permission.VIBRATE"/>

<!--Set screen brightness -->
<uses-permission android:name="android.permission.WRITE_SETTINGS" />

<!--Change language-->
<uses-permission android:name="android.permission.CHANGE_CONFIGURATION" />