Android media service - AmznMusic_Packagevalidator

I’m running the android media controller test program on a tablet and get the below in the log, which prevents it from working.

Is there a way to make an application trusted?

I’m working on my own app using AMS, so this will be needed to make it work. All other providers I have tried doesn’t have this extra protection.

isCallerAllowed: calling package ‘com.example.android.mediacontroller’ has a valid butunknown signature:
onGetRoot: IGNORING request from untrusted package com.example.android.mediacontroller

Unless your application has system priviledges or a known public certificate, it won’t be allowlisted.
The Google media controller test app should be working though, at least on its latest mainline and recent public certificat.
By blocklisting unknown apps we are following Google’s guidelines for media apps.

Thanks!

Looking at the latest code in GitHub - googlesamples/android-media-controller I can’t find any info about signing.

I tried signing the apk myself, but perhaps the key wasn’t good enough.

What constitutes a valid “known public certificate”?

I signed the apk with a public certificate from DigiCert and it’s still being blocked. Wonder what’s missing…