Skip to content

Make USB cameras work with Android pie#480

Open
NolaDonato wants to merge 3 commits intosaki4510t:masterfrom
NolaDonato:android_pie
Open

Make USB cameras work with Android pie#480
NolaDonato wants to merge 3 commits intosaki4510t:masterfrom
NolaDonato:android_pie

Conversation

@NolaDonato
Copy link

  1. BaseActivity inherits from AppCompatActivity. Changed all the styles to use AppCompat themes. Included appcompat-v7 in build files.
  2. Made the build work with proguard by keeping all the USB classes
  3. Modified device_filter.xml files to include <, this makes our camera work for Android pie

This work includes PR #454. That was not enough to make our camera work under Android pie. These other changes were needed. Apparently under Android pie not all UVC camera are of class 239. Some are class 14.

Nola Donato
Samsung Research VR / AR team

1. BaseActivity inherits from AppCompatActivity. Changed all the styles to use AppCompat themes. Included appcompat-v7 in build files.
2. Made the build work with proguard by keeping all the USB classes
3. Modified device_filter.xml files to include <<usb-device class="14" subclass="2" />, this makes our camera work for Android pie
@toni1727
Copy link

toni1727 commented Jul 6, 2020

If you put target 28 it doesn't work!

@pcjiushizhu
Copy link

小米6怎么不能用》???

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.

3 participants