Skip to content

Use deviceId instead of serial (Fixes SDK28 permission error)#1

Closed
pc-coholic wants to merge 1 commit intomainfrom
SDK28-serial
Closed

Use deviceId instead of serial (Fixes SDK28 permission error)#1
pc-coholic wants to merge 1 commit intomainfrom
SDK28-serial

Conversation

@pc-coholic
Copy link
Copy Markdown
Member

The included .aar is the result of pretix-unofficial/UVCCamera#1

@raphaelm
Copy link
Copy Markdown
Member

raphaelm commented Jan 5, 2022

No, deviceIDd is a bad choice:

Returns a unique integer ID for the device. This is a convenience for clients that want to use an integer to represent the device, rather than the device name. IDs are not persistent across USB disconnects.

We want something stable across reconnects and reboots so the user does not need to select their camera every day. We could do it like pretixPRINT now does when the serial number is not available, but that would no longer allow having the same camera model twice, but I think that's an okayish limitation:

pretix/pretixprint-android@0b4b302

@raphaelm
Copy link
Copy Markdown
Member

replaced by #16

@raphaelm raphaelm closed this Mar 15, 2024
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.

2 participants