getAppOrigin

suspend fun getAppOrigin(appSigningInfo: ByteArray): String

Calculates the origin for a native Android app.

This is implemented in accordance with the guidance at https://developer.android.com/identity/sign-in/credential-manager#verify-origin

Return

the origin string of the form "android:apk-key-hash:"

Parameters

appSigningInfo

the bytes of the signing information for the application, typically obtained from a android.content.pm.Signature object.