Skip to content

feat(android): 支援 USB MTP 媒體評分 - #122

Merged
js051 merged 1 commit into
mainfrom
feat/android-usb-media-rating
Aug 9, 2026
Merged

feat(android): 支援 USB MTP 媒體評分#122
js051 merged 1 commit into
mainfrom
feat/android-usb-media-rating

Conversation

@js051

@js051 js051 commented Aug 9, 2026

Copy link
Copy Markdown
Owner

Summary

  • add strict MTP object-property codecs and 0x9801..0x9804 session operations
  • expose Android USB media rating only after per-format writable UINT16 0-100 descriptor and concrete object read validation
  • map 0-5 UI stars to 0/20/40/60/80/100 and require exact same-handle readback
  • keep unsupported formats and app-private host captures out of the rating UI
  • document the standard path and why ambiguous Canon 0x9140 is not used

Verification

  • ./gradlew.bat :app:testDebugUnitTest
  • ./gradlew.bat :app:compileDebugAndroidTestKotlin
  • ./gradlew.bat :app:lintDebug
  • ./gradlew.bat :app:assembleDebug
  • staged and pre-push Gitleaks: 0 leaks

@js051
js051 marked this pull request as ready for review August 9, 2026 14:19
@js051
js051 merged commit 0b922d0 into main Aug 9, 2026
9 checks passed
@js051
js051 deleted the feat/android-usb-media-rating branch August 9, 2026 14:32
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