From 54233305e4e887e231b2d778981a8903dae1b13b Mon Sep 17 00:00:00 2001 From: DaVinci9196 Date: Wed, 29 Apr 2026 14:31:24 +0800 Subject: [PATCH] Reject isBillingSupported requests with apiVersion above 28 to avoid serving clients using newer Play Billing APIs that are not implemented. --- .../java/org/microg/vending/billing/InAppBillingServiceImpl.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vending-app/src/main/java/org/microg/vending/billing/InAppBillingServiceImpl.kt b/vending-app/src/main/java/org/microg/vending/billing/InAppBillingServiceImpl.kt index 39a70ece52..7e325af29f 100644 --- a/vending-app/src/main/java/org/microg/vending/billing/InAppBillingServiceImpl.kt +++ b/vending-app/src/main/java/org/microg/vending/billing/InAppBillingServiceImpl.kt @@ -192,7 +192,7 @@ class InAppBillingServiceImpl(private val context: Context) : IInAppBillingServi Log.w(TAG, "isBillingSupported: Billing is disabled") return resultBundle(BillingResponseCode.BILLING_UNAVAILABLE, "Billing is disabled") } - if (apiVersion < 3) { + if (apiVersion !in 3..28) { return resultBundle(BillingResponseCode.BILLING_UNAVAILABLE, "Client does not support the requesting billing API.") } if (extraParams != null && apiVersion < 7) {