Skip to content

Commit

Permalink
PR #10965 from kyosho-: Android 12 Support
Browse files Browse the repository at this point in the history
  • Loading branch information
Nir-Az authored Aug 30, 2023
2 parents 074c175 + d03493a commit 137a10e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion wrappers/android/librealsense/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
<application android:allowBackup="true" android:supportsRtl="true">
<activity android:name=".DeviceWatcherActivity"
android:theme="@android:style/Theme.NoDisplay"
android:directBootAware="true">
android:directBootAware="true"
android:exported="true">
<intent-filter>
<action android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED" />
</intent-filter>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ private static void grantUsbPermissions(Context context, UsbDevice usbDevice){

if(!permission) {
Log.i(TAG, "grantUsbPermissions:\ndevice: " + usbDevice.toString());
PendingIntent pi = PendingIntent.getBroadcast(context, 0, new Intent(UsbUtilities.ACTION_USB_PERMISSION), 0);
PendingIntent pi = PendingIntent.getBroadcast(context, 0, new Intent(UsbUtilities.ACTION_USB_PERMISSION), PendingIntent.FLAG_IMMUTABLE);
usbManager.requestPermission(usbDevice, pi);
}
}
Expand Down

0 comments on commit 137a10e

Please sign in to comment.