Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* limitations under the License.
*/

package com.example.android.trivialdrivesample.util;
package ranjbar.hadi.likestan.util;

import android.app.Activity;
import android.app.PendingIntent;
Expand Down Expand Up @@ -218,7 +218,12 @@ public void onServiceDisconnected(ComponentName name) {
public void onServiceConnected(ComponentName name, IBinder service) {
if (mDisposed) return;
logDebug("Billing service connected.");
mService = IInAppBillingService.Stub.asInterface(service);
if (!"com.farsitel.bazaar".equals(name.getPackageName())) {
logDebug("can't find bazaar app!");
return;
} else {
mService = IInAppBillingService.Stub.asInterface(service);
}
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is the part that we check for the authenticity of target app.

String packageName = mContext.getPackageName();
try {
logDebug("Checking for in-app billing 3 support.");
Expand Down