Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -422,4 +422,8 @@ MigrationBackup/

# End of https://www.toptal.com/developers/gitignore/api/git,c++,cmake,visualstudio

build
# Android
build
wrappers/android/realsenseid/src/standard/cpp_gen/
wrappers/android/realsenseid/src/standard/java/com/intel/realsenseid/api/
wrappers/android/realsenseid/src/standard/swig.i
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,6 @@ RUN set -eux; \
$ANDROID_HOME/cmdline-tools/bin/sdkmanager --sdk_root=${ANDROID_SDK_ROOT} "cmake;3.31.6"

## HOW TO BUILD
# docker build -t rsid-builder:latest .
# docker build --platform=linux/amd64 -t rsid-builder:latest .
# docker run --rm -it -v.:/rsid-builder rsid-builder bash -c "cd wrappers/android && ./gradlew clean bundleStandardReleaseAar"
# Find your output in `wrappers/android/build/outputs/aar/`
# Find your output in `wrappers/android/realsenseid/build/outputs/aar/`
Empty file modified wrappers/android/gradlew
100644 → 100755
Empty file.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.intel.realsenseid.impl;

import static android.app.PendingIntent.FLAG_IMMUTABLE;
import static android.hardware.usb.UsbConstants.USB_CLASS_CDC_DATA;
import static android.hardware.usb.UsbConstants.USB_CLASS_COMM;
import static android.hardware.usb.UsbConstants.USB_DIR_IN;
Expand Down Expand Up @@ -111,7 +112,7 @@ public boolean FindSupportedDevice(Context context) {

public void RequestDevicePermission(Context context, final PermissionCallback callback) {
final var ACTION_USB_PERMISSION = "com.realsense.rsid.USB_PERMISSION";
var permissionIntent = PendingIntent.getBroadcast(context, 0, new Intent(ACTION_USB_PERMISSION), 0);
var permissionIntent = PendingIntent.getBroadcast(context, 0, new Intent(ACTION_USB_PERMISSION), FLAG_IMMUTABLE);
var filter = new IntentFilter(ACTION_USB_PERMISSION);
var usbPermissionReceiver = new BroadcastReceiver() {
@Override
Expand Down