正在查看: CleanTube v9.9.5 应用的 ProxyBillingActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: CleanTube v9.9.5 应用的 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;
public class ProxyBillingActivity extends Activity {
private ResultReceiver f9251a;
private ResultReceiver f9252b;
private boolean f9253c;
private boolean f9254d;
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);
return intent;
}
private Intent b() {
Intent intent = new Intent("com.android.vending.billing.PURCHASES_UPDATED");
intent.setPackage(getApplicationContext().getPackageName());
return intent;
}
@Override
protected void onActivityResult(int r8, int r9, 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(Bundle bundle) {
int i4;
PendingIntent pendingIntent;
super.onCreate(bundle);
if (bundle != null) {
com.google.android.gms.internal.play_billing.A.h("ProxyBillingActivity", "Launching Play Store billing flow from savedInstanceState");
this.f9253c = bundle.getBoolean("send_cancelled_broadcast_if_finished", false);
if (bundle.containsKey("result_receiver")) {
this.f9251a = (ResultReceiver) bundle.getParcelable("result_receiver");
} else if (bundle.containsKey("in_app_message_result_receiver")) {
this.f9252b = (ResultReceiver) bundle.getParcelable("in_app_message_result_receiver");
}
this.f9254d = bundle.getBoolean("IS_FLOW_FROM_FIRST_PARTY_CLIENT", false);
return;
}
com.google.android.gms.internal.play_billing.A.h("ProxyBillingActivity", "Launching Play Store billing flow");
int i5 = 100;
try {
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.f9254d = true;
i5 = androidx.constraintlayout.widget.g.f6841C2;
}
} else if (getIntent().hasExtra("SUBS_MANAGEMENT_INTENT")) {
pendingIntent = (PendingIntent) getIntent().getParcelableExtra("SUBS_MANAGEMENT_INTENT");
this.f9251a = (ResultReceiver) getIntent().getParcelableExtra("result_receiver");
} else {
if (!getIntent().hasExtra("IN_APP_MESSAGE_INTENT")) {
i4 = 100;
pendingIntent = null;
this.f9253c = true;
startIntentSenderForResult(pendingIntent.getIntentSender(), i4, new Intent(), 0, 0, 0);
return;
}
pendingIntent = (PendingIntent) getIntent().getParcelableExtra("IN_APP_MESSAGE_INTENT");
this.f9252b = (ResultReceiver) getIntent().getParcelableExtra("in_app_message_result_receiver");
i5 = 101;
}
this.f9253c = true;
startIntentSenderForResult(pendingIntent.getIntentSender(), i4, new Intent(), 0, 0, 0);
return;
} catch (IntentSender.SendIntentException e4) {
com.google.android.gms.internal.play_billing.A.j("ProxyBillingActivity", "Got exception while trying to start a purchase flow.", e4);
ResultReceiver resultReceiver = this.f9251a;
if (resultReceiver != null) {
resultReceiver.send(6, null);
} else {
ResultReceiver resultReceiver2 = this.f9252b;
if (resultReceiver2 != null) {
resultReceiver2.send(0, null);
} else {
Intent b4 = b();
if (this.f9254d) {
b4.putExtra("IS_FIRST_PARTY_PURCHASE", true);
}
b4.putExtra("RESPONSE_CODE", 6);
b4.putExtra("DEBUG_MESSAGE", "An internal error occurred.");
sendBroadcast(b4);
}
}
this.f9253c = false;
finish();
return;
}
i4 = i5;
}
@Override
protected void onDestroy() {
super.onDestroy();
if (isFinishing() && this.f9253c) {
Intent b4 = b();
b4.putExtra("RESPONSE_CODE", 1);
b4.putExtra("DEBUG_MESSAGE", "Billing dialog closed.");
sendBroadcast(b4);
}
}
@Override
protected void onSaveInstanceState(Bundle bundle) {
ResultReceiver resultReceiver = this.f9251a;
if (resultReceiver != null) {
bundle.putParcelable("result_receiver", resultReceiver);
}
ResultReceiver resultReceiver2 = this.f9252b;
if (resultReceiver2 != null) {
bundle.putParcelable("in_app_message_result_receiver", resultReceiver2);
}
bundle.putBoolean("send_cancelled_broadcast_if_finished", this.f9253c);
bundle.putBoolean("IS_FLOW_FROM_FIRST_PARTY_CLIENT", this.f9254d);
}
}