Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Play Warning Incorrect Implementation of Google Play inApp Billing

I just received the following email from Google Play

'Hello Google Play Developer,

We detected that your app(s) listed at the end of this email are invoking the in-app billing service without setting a target package for the intent. This can enable a malicious package to bypass the Play store billing system and access items that have not been purchased.

Next Steps

If you are using IabHelper, please start using the latest SDK. If you are manually invoking the in-app billing service, make sure you are calling Intent.setPackage(“com.android.vending”) on any intents to "com.android.vending.billing.InAppBillingService.BIND". Sign in to your Developer Console and submit the updated version of your app. Check back after five hours - we’ll show a warning message if the app hasn’t been updated correctly.'

I am not sure what is the fix for this problem. Can anyone tell where to specify the code? Is it somewhere in Java Class or the Manifest?

like image 890
Jawad Amjad Avatar asked Jul 28 '16 17:07

Jawad Amjad


People also ask

Can't connect to Google Play billing?

Log out of your Google account Go to Android Settings > Accounts > Google and tap on Remove account. Data will not be lost as normally all of it will be synced with Google's cloud services (true for Google accounts). Re-add your account then restart your device. Try buying again.

Why can't I make a purchase on Google Play?

Sign in to https://pay.google.com with your Google Account. Find the payment method you are trying to use for the purchase. Check the expiration date of the payment methods listed. Remove or update any expired payment methods.

How do I handle a Google Play policy violation?

Please carefully review the description of the violation and review what steps, if any, you can take to fix the issue on the Play Console Help Center. Once you've fixed the violation, you must initiate the appeals process on the Play Console Help Center; email replies back to the original notification are not reviewed.


2 Answers

I received the same warning a few days ago and was already setting the package for the intent like this:

Intent serviceIntent = new Intent("com.android.vending.billing.InAppBillingService.BIND");
serviceIntent.setPackage("com.android.vending");
bindService(serviceIntent, mServiceConn, Context.BIND_AUTO_CREATE);

The issue has gone away by updating to the latest versions of Google Play Services and targeting Lollipop (5.1) instead of KitKat (4.4)... if you're using any Google Play Apis make sure you update them to the newest versions and hopefully that'll fix it for you too.

like image 149
Graham Avatar answered Oct 11 '22 15:10

Graham


We have also received this alert, and checked our apks. We found that old version of Google-Play-Service.jar seem to use intent for "com.android.vending.billing.InAppBillingService.BIND", witout setting setPackage.

We have also checked the latest Google-Play-Service.jar and this one was fine, so I'd suggest checking your library.

like image 29
user3471022 Avatar answered Oct 11 '22 17:10

user3471022