Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add an Android example running on non-rooted Android phone #2698

Closed
wants to merge 1 commit into from
Closed

add an Android example running on non-rooted Android phone #2698

wants to merge 1 commit into from

Conversation

zhouwg
Copy link
Contributor

@zhouwg zhouwg commented Nov 8, 2018

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

@zhouwg
Copy link
Contributor Author

zhouwg commented Nov 8, 2018

screen snapshot as following:

example_on_nonrooted_phone

known issue:
ANR will occurred when click "stop" button because of issue in issue2472(#2472)

@zhouwg zhouwg changed the title add a Android wrapper example add an Android example running on non-rooted Android phone Nov 8, 2018
@zhouwg zhouwg closed this Nov 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant