Add decompiled APK source code (JADX)

- 28,932 files
- Full Java source code
- Smali files
- Resources

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
2026-02-18 14:52:23 -08:00
parent cc210a65ea
commit f9d20bb3fc
26991 changed files with 2541449 additions and 0 deletions

View File

@@ -0,0 +1,49 @@
package com.amazon.device.iap.internal.b.a;
import com.amazon.device.iap.internal.b.e;
import com.amazon.device.iap.internal.model.PurchaseResponseBuilder;
import com.amazon.device.iap.internal.model.UserDataBuilder;
import com.amazon.device.iap.model.PurchaseResponse;
import com.amazon.device.iap.model.Receipt;
import com.amazon.venezia.command.SuccessResult;
import java.util.Map;
import org.json.JSONObject;
/* loaded from: classes.dex */
public final class a extends c {
private static final String a = a.class.getSimpleName();
public a(e eVar) {
super(eVar, "2.0");
}
@Override // com.amazon.device.iap.internal.b.i
public boolean a(SuccessResult successResult) throws Exception {
Receipt a2;
Map data = successResult.getData();
com.amazon.device.iap.internal.util.e.a(a, "data: " + data);
String str = (String) getCommandData().get("requestId");
String str2 = (String) data.get("userId");
String str3 = (String) data.get("marketplace");
String str4 = (String) data.get("receipt");
if (com.amazon.device.iap.internal.util.d.a(str4)) {
a(str2, str3, str, PurchaseResponse.RequestStatus.FAILED);
return false;
}
JSONObject jSONObject = new JSONObject(str4);
PurchaseResponse.RequestStatus safeValueOf = PurchaseResponse.RequestStatus.safeValueOf(jSONObject.getString("orderStatus"));
if (safeValueOf == PurchaseResponse.RequestStatus.SUCCESSFUL) {
try {
a2 = com.amazon.device.iap.internal.util.a.a(jSONObject, str2, str);
} catch (Throwable unused) {
a(str2, str3, str, PurchaseResponse.RequestStatus.FAILED);
return false;
}
} else {
a2 = null;
}
e b = b();
b.d().a(new PurchaseResponseBuilder().setRequestId(b.c()).setRequestStatus(safeValueOf).setUserData(new UserDataBuilder().setUserId(str2).setMarketplace(str3).build()).setReceipt(a2).build());
return true;
}
}

View File

@@ -0,0 +1,71 @@
package com.amazon.device.iap.internal.b.a;
import com.amazon.device.iap.internal.b.e;
import com.amazon.device.iap.internal.model.PurchaseResponseBuilder;
import com.amazon.device.iap.internal.model.UserDataBuilder;
import com.amazon.device.iap.model.ProductType;
import com.amazon.device.iap.model.PurchaseResponse;
import com.amazon.device.iap.model.Receipt;
import com.amazon.venezia.command.SuccessResult;
import java.util.Map;
import org.json.JSONObject;
/* loaded from: classes.dex */
public final class b extends c {
private static final String a = b.class.getSimpleName();
public b(e eVar) {
super(eVar, "1.0");
}
private void a(String str, String str2, String str3) {
if (str == null || str2 == null || str3 == null) {
return;
}
try {
JSONObject jSONObject = new JSONObject(str3);
if (PurchaseResponse.RequestStatus.safeValueOf(jSONObject.getString("orderStatus")) == PurchaseResponse.RequestStatus.SUCCESSFUL) {
com.amazon.device.iap.internal.c.a.a().a(str, str2, com.amazon.device.iap.internal.util.a.a(jSONObject, str2, str).getReceiptId(), str3);
}
} catch (Throwable th) {
com.amazon.device.iap.internal.util.e.b(a, "Error in savePendingReceipt: " + th);
}
}
@Override // com.amazon.device.iap.internal.b.i
public boolean a(SuccessResult successResult) throws Exception {
Receipt a2;
Map data = successResult.getData();
com.amazon.device.iap.internal.util.e.a(a, "data: " + data);
String str = (String) getCommandData().get("requestId");
String str2 = (String) data.get("userId");
String str3 = (String) data.get("marketplace");
String str4 = (String) data.get("receipt");
if (str == null || !com.amazon.device.iap.internal.c.b.a().a(str)) {
b().d().b();
return true;
}
if (com.amazon.device.iap.internal.util.d.a(str4)) {
a(str2, str3, str, PurchaseResponse.RequestStatus.FAILED);
return false;
}
JSONObject jSONObject = new JSONObject(str4);
PurchaseResponse.RequestStatus safeValueOf = PurchaseResponse.RequestStatus.safeValueOf(jSONObject.getString("orderStatus"));
if (safeValueOf == PurchaseResponse.RequestStatus.SUCCESSFUL) {
try {
a2 = com.amazon.device.iap.internal.util.a.a(jSONObject, str2, str);
if (ProductType.CONSUMABLE == a2.getProductType()) {
a(str, str2, str4);
}
} catch (Throwable unused) {
a(str2, str3, str, PurchaseResponse.RequestStatus.FAILED);
return false;
}
} else {
a2 = null;
}
e b = b();
b.d().a(new PurchaseResponseBuilder().setRequestId(b.c()).setRequestStatus(safeValueOf).setUserData(new UserDataBuilder().setUserId(str2).setMarketplace(str3).build()).setReceipt(a2).build());
return true;
}
}

View File

@@ -0,0 +1,19 @@
package com.amazon.device.iap.internal.b.a;
import com.amazon.device.iap.internal.b.e;
import com.amazon.device.iap.internal.b.i;
import com.amazon.device.iap.internal.model.PurchaseResponseBuilder;
import com.amazon.device.iap.internal.model.UserDataBuilder;
import com.amazon.device.iap.model.PurchaseResponse;
/* loaded from: classes.dex */
abstract class c extends i {
public c(e eVar, String str) {
super(eVar, "purchase_response", str);
}
public void a(String str, String str2, String str3, PurchaseResponse.RequestStatus requestStatus) {
e b = b();
b.d().a(new PurchaseResponseBuilder().setRequestId(b.c()).setRequestStatus(requestStatus).setUserData(new UserDataBuilder().setUserId(str).setMarketplace(str2).build()).setReceipt(null).build());
}
}

View File

@@ -0,0 +1,43 @@
package com.amazon.device.iap.internal.b.a;
import com.amazon.device.iap.internal.b.e;
import com.amazon.device.iap.internal.b.i;
import com.amazon.device.iap.internal.model.PurchaseResponseBuilder;
import com.amazon.device.iap.model.ProductType;
import com.amazon.device.iap.model.PurchaseResponse;
import com.amazon.device.iap.model.Receipt;
import com.amazon.device.iap.model.RequestId;
/* loaded from: classes.dex */
public final class d extends e {
public d(RequestId requestId) {
super(requestId);
a aVar = new a(this);
aVar.b(new b(this));
a((i) aVar);
}
@Override // com.amazon.device.iap.internal.b.e
public void a() {
PurchaseResponse purchaseResponse = (PurchaseResponse) d().a();
if (purchaseResponse == null) {
return;
}
Receipt receipt = purchaseResponse.getReceipt();
boolean z = receipt != null;
i cVar = new com.amazon.device.iap.internal.b.f.c(this, z);
if (z && (ProductType.ENTITLED == receipt.getProductType() || ProductType.SUBSCRIPTION == receipt.getProductType())) {
cVar.b(new com.amazon.device.iap.internal.b.f.b(this, c().toString()));
}
a(purchaseResponse, cVar);
}
@Override // com.amazon.device.iap.internal.b.e
public void b() {
PurchaseResponse purchaseResponse = (PurchaseResponse) d().a();
if (purchaseResponse == null) {
purchaseResponse = new PurchaseResponseBuilder().setRequestId(c()).setRequestStatus(PurchaseResponse.RequestStatus.FAILED).build();
}
a(purchaseResponse, new com.amazon.device.iap.internal.b.f.c(this, false));
}
}