正在查看: Fancy Optimizer v4.6.3 应用的 ProxyBillingActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Fancy Optimizer v4.6.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.zzb;
@UsedByReflection("PlatformActivityProxy")
public class ProxyBillingActivity extends Activity {
@Nullable
public ResultReceiver f359c;
@Nullable
public ResultReceiver f360d;
public boolean f361e;
public final Intent a() {
Intent intent = new Intent("com.android.vending.billing.PURCHASES_UPDATED");
intent.setPackage(getApplicationContext().getPackageName());
return intent;
}
@Override
public final void onActivityResult(int r6, int r7, @androidx.annotation.Nullable android.content.Intent r8) {
throw new UnsupportedOperationException("Method not decompiled: com.android.billingclient.api.ProxyBillingActivity.onActivityResult(int, int, android.content.Intent):void");
}
@Override
public final void onCreate(@Nullable Bundle bundle) {
PendingIntent pendingIntent;
super.onCreate(bundle);
if (bundle != null) {
zzb.zzm("ProxyBillingActivity", "Launching Play Store billing flow from savedInstanceState");
this.f361e = bundle.getBoolean("send_cancelled_broadcast_if_finished", false);
if (bundle.containsKey("result_receiver")) {
this.f359c = (ResultReceiver) bundle.getParcelable("result_receiver");
return;
} else {
if (bundle.containsKey("in_app_message_result_receiver")) {
this.f360d = (ResultReceiver) bundle.getParcelable("in_app_message_result_receiver");
return;
}
return;
}
}
zzb.zzm("ProxyBillingActivity", "Launching Play Store billing flow");
int i2 = 100;
if (getIntent().hasExtra("BUY_INTENT")) {
pendingIntent = (PendingIntent) getIntent().getParcelableExtra("BUY_INTENT");
} else if (getIntent().hasExtra("SUBS_MANAGEMENT_INTENT")) {
pendingIntent = (PendingIntent) getIntent().getParcelableExtra("SUBS_MANAGEMENT_INTENT");
this.f359c = (ResultReceiver) getIntent().getParcelableExtra("result_receiver");
} else if (getIntent().hasExtra("IN_APP_MESSAGE_INTENT")) {
pendingIntent = (PendingIntent) getIntent().getParcelableExtra("IN_APP_MESSAGE_INTENT");
this.f360d = (ResultReceiver) getIntent().getParcelableExtra("in_app_message_result_receiver");
i2 = 101;
} else {
pendingIntent = null;
}
int i3 = i2;
try {
this.f361e = true;
startIntentSenderForResult(pendingIntent.getIntentSender(), i3, new Intent(), 0, 0, 0);
} catch (IntentSender.SendIntentException e2) {
zzb.zzo("ProxyBillingActivity", "Got exception while trying to start a purchase flow.", e2);
ResultReceiver resultReceiver = this.f359c;
if (resultReceiver != null) {
resultReceiver.send(6, null);
} else {
ResultReceiver resultReceiver2 = this.f360d;
if (resultReceiver2 != null) {
resultReceiver2.send(0, null);
} else {
Intent a2 = a();
a2.putExtra("RESPONSE_CODE", 6);
a2.putExtra("DEBUG_MESSAGE", "An internal error occurred.");
sendBroadcast(a2);
}
}
this.f361e = false;
finish();
}
}
@Override
public final void onDestroy() {
super.onDestroy();
if (isFinishing() && this.f361e) {
Intent a2 = a();
a2.putExtra("RESPONSE_CODE", 1);
a2.putExtra("DEBUG_MESSAGE", "Billing dialog closed.");
sendBroadcast(a2);
}
}
@Override
public final void onSaveInstanceState(@NonNull Bundle bundle) {
ResultReceiver resultReceiver = this.f359c;
if (resultReceiver != null) {
bundle.putParcelable("result_receiver", resultReceiver);
}
ResultReceiver resultReceiver2 = this.f360d;
if (resultReceiver2 != null) {
bundle.putParcelable("in_app_message_result_receiver", resultReceiver2);
}
bundle.putBoolean("send_cancelled_broadcast_if_finished", this.f361e);
}
}