正在查看: Mint v5.7.3 应用的 ProxyBillingActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Mint v5.7.3 应用的 ProxyBillingActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.android.billingclient.api;
import android.app.Activity;
import android.app.PendingIntent;
import android.content.Intent;
import android.content.IntentSender;
import android.os.Bundle;
import android.os.ResultReceiver;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.google.android.apps.common.proguard.UsedByReflection;
import com.google.android.gms.internal.play_billing.zzai;
import com.google.android.gms.internal.play_billing.zzb;
@UsedByReflection("PlatformActivityProxy")
public class ProxyBillingActivity extends Activity {
@Nullable
private ResultReceiver f789a;
@Nullable
private ResultReceiver f790b;
private boolean f791c;
private boolean f792d;
private Intent a(String str) {
Intent intent = new Intent("com.android.vending.billing.ALTERNATIVE_BILLING");
intent.setPackage(getApplicationContext().getPackageName());
intent.putExtra("ALTERNATIVE_BILLING_USER_CHOICE_DATA", str);
intent.putExtra("BROADCAST_RECEIVER_LOGGING_PAYLOAD", m.d(3, zzai.zzl(m.a(intent.getAction()))).zzd());
return intent;
}
private Intent b() {
Intent intent = new Intent("com.android.vending.billing.LOCAL_BROADCAST_PURCHASES_UPDATED");
intent.setPackage(getApplicationContext().getPackageName());
intent.putExtra("BROADCAST_RECEIVER_LOGGING_PAYLOAD", m.d(3, zzai.zzl(m.a(intent.getAction()))).zzd());
return intent;
}
@Override
protected void onActivityResult(int r8, int r9, @androidx.annotation.Nullable android.content.Intent r10) {
throw new UnsupportedOperationException("Method not decompiled: com.android.billingclient.api.ProxyBillingActivity.onActivityResult(int, int, android.content.Intent):void");
}
@Override
protected void onCreate(@Nullable Bundle bundle) {
int i2;
PendingIntent pendingIntent;
int i3;
super.onCreate(bundle);
if (bundle != null) {
zzb.zzj("ProxyBillingActivity", "Launching Play Store billing flow from savedInstanceState");
this.f791c = bundle.getBoolean("send_cancelled_broadcast_if_finished", false);
if (bundle.containsKey("result_receiver")) {
this.f789a = (ResultReceiver) bundle.getParcelable("result_receiver");
} else if (bundle.containsKey("in_app_message_result_receiver")) {
this.f790b = (ResultReceiver) bundle.getParcelable("in_app_message_result_receiver");
}
this.f792d = bundle.getBoolean("IS_FLOW_FROM_FIRST_PARTY_CLIENT", false);
return;
}
zzb.zzj("ProxyBillingActivity", "Launching Play Store billing flow");
if (getIntent().hasExtra("BUY_INTENT")) {
pendingIntent = (PendingIntent) getIntent().getParcelableExtra("BUY_INTENT");
if (getIntent().hasExtra("IS_FLOW_FROM_FIRST_PARTY_CLIENT") && getIntent().getBooleanExtra("IS_FLOW_FROM_FIRST_PARTY_CLIENT", false)) {
this.f792d = true;
i3 = 110;
i2 = i3;
}
i2 = 100;
} else if (getIntent().hasExtra("SUBS_MANAGEMENT_INTENT")) {
pendingIntent = (PendingIntent) getIntent().getParcelableExtra("SUBS_MANAGEMENT_INTENT");
this.f789a = (ResultReceiver) getIntent().getParcelableExtra("result_receiver");
i2 = 100;
} else if (getIntent().hasExtra("IN_APP_MESSAGE_INTENT")) {
pendingIntent = (PendingIntent) getIntent().getParcelableExtra("IN_APP_MESSAGE_INTENT");
this.f790b = (ResultReceiver) getIntent().getParcelableExtra("in_app_message_result_receiver");
i3 = 101;
i2 = i3;
} else {
i2 = 100;
pendingIntent = null;
}
try {
this.f791c = true;
startIntentSenderForResult(pendingIntent.getIntentSender(), i2, new Intent(), 0, 0, 0);
} catch (IntentSender.SendIntentException e2) {
zzb.zzl("ProxyBillingActivity", "Got exception while trying to start a purchase flow.", e2);
ResultReceiver resultReceiver = this.f789a;
if (resultReceiver != null) {
resultReceiver.send(6, null);
} else {
ResultReceiver resultReceiver2 = this.f790b;
if (resultReceiver2 != null) {
resultReceiver2.send(0, null);
} else {
Intent b2 = b();
if (this.f792d) {
b2.putExtra("IS_FIRST_PARTY_PURCHASE", true);
}
b2.putExtra("RESPONSE_CODE", 6);
b2.putExtra("DEBUG_MESSAGE", "An internal error occurred.");
sendBroadcast(b2);
}
}
this.f791c = false;
finish();
}
}
@Override
protected void onDestroy() {
super.onDestroy();
if (isFinishing() && this.f791c) {
Intent b2 = b();
b2.putExtra("RESPONSE_CODE", 1);
b2.putExtra("DEBUG_MESSAGE", "Billing dialog closed.");
sendBroadcast(b2);
}
}
@Override
protected void onSaveInstanceState(@NonNull Bundle bundle) {
super.onSaveInstanceState(bundle);
ResultReceiver resultReceiver = this.f789a;
if (resultReceiver != null) {
bundle.putParcelable("result_receiver", resultReceiver);
}
ResultReceiver resultReceiver2 = this.f790b;
if (resultReceiver2 != null) {
bundle.putParcelable("in_app_message_result_receiver", resultReceiver2);
}
bundle.putBoolean("send_cancelled_broadcast_if_finished", this.f791c);
bundle.putBoolean("IS_FLOW_FROM_FIRST_PARTY_CLIENT", this.f792d);
}
}