add an Android example running on non-rooted Android phone #2698
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
along with the performance in Android based mobile/IoT device becomes more stronger and stronger, might be someone want to using librealsense on Android based device for PoC/product development activities. it's might be very convenient that using an Android based device to presenting some advanced CV/AI/ML technology.
according to issue2617(#2617),it seems there are two major issues with librealsense on Android device: patch Android kernel; root privilege to access /dev/video* and /dev/bus/usb/*.
this is an example to illustrate the possibility that enable librealsense running on non-rooted Android based device. from the example in this PR, we could find that librealsense(v2.16.2+) should running VERY WELL on any Android device if Google could provide a customize AOSP which added the librealsense kernel patch in Android kernel and added some SELinux policy/rules for librealsense, or following the proposal in PR (#2489) to build a customized Android image.
source code of the example: https://github.com/IntelRealSense/librealsense/blob/d758e7f2154790ff6bd443916ff3c0a04797adae/wrappers/android/examples/irsa_example/app/src/main/java/com/android/irsa_example/MainActivity.java