#StackBounty: #android #android-tv #hdcp How to check HDCP Level on Android (TV) for API < 28?

Bounty: 50

I have a Android TV stick and I would like to distinguish what HDCP version is supported?

I already have found something and it seems to work:

    try {
        val uuid = UUID.fromString("1f83e1e8-6ee9-4f0d-ba2f-5ec4e3ed1a66")
        val mediaDrm = MediaDrm(uuid)
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
    } catch (use : UnsupportedSchemeException) {

But the documentation says

Added in API level 28

How can read the HDCP level for older API < 28?

Get this bounty!!!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.