Loading vending-app/src/main/aidl/com/google/android/play/core/integrity/protocol/IExpressIntegrityServiceCallback.aidl +1 −1 Original line number Diff line number Diff line Loading @@ -6,7 +6,7 @@ package com.google.android.play.core.integrity.protocol; interface IExpressIntegrityServiceCallback { void OnWarmUpIntegrityTokenCallback(in Bundle bundle) = 1; void onWarmUpExpressIntegrityToken(in Bundle bundle) = 1; void onRequestExpressIntegrityToken(in Bundle bundle) = 2; void onRequestIntegrityToken(in Bundle bundle) = 3; } vending-app/src/main/aidl/com/google/android/play/core/integrity/protocol/IIntegrityService.aidl +1 −0 Original line number Diff line number Diff line Loading @@ -11,4 +11,5 @@ import com.google.android.play.core.integrity.protocol.IRequestDialogCallback; interface IIntegrityService { void requestDialog(in Bundle bundle, in IRequestDialogCallback callback) = 0; void requestIntegrityToken(in Bundle request, in IIntegrityServiceCallback callback) = 1; void requestAndShowDialog(in Bundle bundle, in IRequestDialogCallback callback) = 2; } No newline at end of file vending-app/src/main/aidl/com/google/android/play/core/integrity/protocol/IIntegrityServiceCallback.aidl +1 −1 Original line number Diff line number Diff line Loading @@ -6,5 +6,5 @@ package com.google.android.play.core.integrity.protocol; interface IIntegrityServiceCallback { void onResult(in Bundle bundle) = 1; void onRequestIntegrityToken(in Bundle bundle) = 1; } No newline at end of file vending-app/src/main/aidl/com/google/android/play/core/integrity/protocol/IRequestDialogCallback.aidl +1 −1 Original line number Diff line number Diff line Loading @@ -6,5 +6,5 @@ package com.google.android.play.core.integrity.protocol; interface IRequestDialogCallback { void onRequestAndShowDialog(in Bundle bundle); void onRequestDialog(in Bundle bundle); } No newline at end of file vending-app/src/main/kotlin/com/google/android/finsky/IntegrityExtensions.kt +2 −3 Original line number Diff line number Diff line Loading @@ -11,7 +11,6 @@ import android.content.Context import android.content.pm.PackageInfo import android.content.pm.PackageManager import android.content.pm.Signature import android.os.Binder import android.os.Bundle import android.security.keystore.KeyGenParameterSpec import android.security.keystore.KeyProperties Loading Loading @@ -145,7 +144,7 @@ fun ByteArray.sha256(): ByteArray { return MessageDigest.getInstance("SHA-256").digest(this) } fun Bundle.buildPlayCoreVersion() = PlayCoreVersion( fun Bundle.getPlayCoreVersion() = PlayCoreVersion( major = getInt(KEY_VERSION_MAJOR, 0), minor = getInt(KEY_VERSION_MINOR, 0), patch = getInt(KEY_VERSION_PATCH, 0) ) Loading @@ -170,7 +169,7 @@ suspend fun getIntegrityRequestWrapper(context: Context, expressIntegritySession } val expressFilePB = FileInputStream(context.getProtoFile()).use { input -> ExpressFilePB.ADAPTER.decode(input) } expressFilePB.integrityRequestWrapper.filter { item -> TextUtils.equals(item.packageName, expressIntegritySession.packageName) && item.cloudProjectNumber == expressIntegritySession.cloudProjectVersion && getUpdatedWebViewRequestMode( TextUtils.equals(item.packageName, expressIntegritySession.packageName) && item.cloudProjectNumber == expressIntegritySession.cloudProjectNumber && getUpdatedWebViewRequestMode( expressIntegritySession.webViewRequestMode ) == getUpdatedWebViewRequestMode( item.webViewRequestMode ?: 0 Loading Loading
vending-app/src/main/aidl/com/google/android/play/core/integrity/protocol/IExpressIntegrityServiceCallback.aidl +1 −1 Original line number Diff line number Diff line Loading @@ -6,7 +6,7 @@ package com.google.android.play.core.integrity.protocol; interface IExpressIntegrityServiceCallback { void OnWarmUpIntegrityTokenCallback(in Bundle bundle) = 1; void onWarmUpExpressIntegrityToken(in Bundle bundle) = 1; void onRequestExpressIntegrityToken(in Bundle bundle) = 2; void onRequestIntegrityToken(in Bundle bundle) = 3; }
vending-app/src/main/aidl/com/google/android/play/core/integrity/protocol/IIntegrityService.aidl +1 −0 Original line number Diff line number Diff line Loading @@ -11,4 +11,5 @@ import com.google.android.play.core.integrity.protocol.IRequestDialogCallback; interface IIntegrityService { void requestDialog(in Bundle bundle, in IRequestDialogCallback callback) = 0; void requestIntegrityToken(in Bundle request, in IIntegrityServiceCallback callback) = 1; void requestAndShowDialog(in Bundle bundle, in IRequestDialogCallback callback) = 2; } No newline at end of file
vending-app/src/main/aidl/com/google/android/play/core/integrity/protocol/IIntegrityServiceCallback.aidl +1 −1 Original line number Diff line number Diff line Loading @@ -6,5 +6,5 @@ package com.google.android.play.core.integrity.protocol; interface IIntegrityServiceCallback { void onResult(in Bundle bundle) = 1; void onRequestIntegrityToken(in Bundle bundle) = 1; } No newline at end of file
vending-app/src/main/aidl/com/google/android/play/core/integrity/protocol/IRequestDialogCallback.aidl +1 −1 Original line number Diff line number Diff line Loading @@ -6,5 +6,5 @@ package com.google.android.play.core.integrity.protocol; interface IRequestDialogCallback { void onRequestAndShowDialog(in Bundle bundle); void onRequestDialog(in Bundle bundle); } No newline at end of file
vending-app/src/main/kotlin/com/google/android/finsky/IntegrityExtensions.kt +2 −3 Original line number Diff line number Diff line Loading @@ -11,7 +11,6 @@ import android.content.Context import android.content.pm.PackageInfo import android.content.pm.PackageManager import android.content.pm.Signature import android.os.Binder import android.os.Bundle import android.security.keystore.KeyGenParameterSpec import android.security.keystore.KeyProperties Loading Loading @@ -145,7 +144,7 @@ fun ByteArray.sha256(): ByteArray { return MessageDigest.getInstance("SHA-256").digest(this) } fun Bundle.buildPlayCoreVersion() = PlayCoreVersion( fun Bundle.getPlayCoreVersion() = PlayCoreVersion( major = getInt(KEY_VERSION_MAJOR, 0), minor = getInt(KEY_VERSION_MINOR, 0), patch = getInt(KEY_VERSION_PATCH, 0) ) Loading @@ -170,7 +169,7 @@ suspend fun getIntegrityRequestWrapper(context: Context, expressIntegritySession } val expressFilePB = FileInputStream(context.getProtoFile()).use { input -> ExpressFilePB.ADAPTER.decode(input) } expressFilePB.integrityRequestWrapper.filter { item -> TextUtils.equals(item.packageName, expressIntegritySession.packageName) && item.cloudProjectNumber == expressIntegritySession.cloudProjectVersion && getUpdatedWebViewRequestMode( TextUtils.equals(item.packageName, expressIntegritySession.packageName) && item.cloudProjectNumber == expressIntegritySession.cloudProjectNumber && getUpdatedWebViewRequestMode( expressIntegritySession.webViewRequestMode ) == getUpdatedWebViewRequestMode( item.webViewRequestMode ?: 0 Loading