* Decompile and recreate Soul Browser v1.4.85 with APK CI builds Co-authored-by: KaKi87 <KaKi87@pm.me> * Fix CI build: include bundled google.jks and remove PR trigger The apktool build failed in CI because app/unknown/.../google.jks was excluded by the *.jks gitignore rule. Whitelist app-bundled JKS files and commit the missing resource. Also remove the redundant pull_request workflow trigger. Co-authored-by: KaKi87 <KaKi87@pm.me> * Change package ID to com.github.kaki87.soulbrowser Rename the application ID so the rebuilt APK can be installed alongside the original Soul Browser from Google Play. - Update AndroidManifest package, permissions, providers, and actions - Update R class references in smali (com/github/kaki87/soulbrowser/R) - Update shortcuts.xml targetPackage - Rename app label to "Soul Rebuild" for easy identification Co-authored-by: KaKi87 <KaKi87@pm.me> * Fix install compatibility: remove split APK metadata and bundle native libs The rebuilt APK still declared requiredSplitTypes and Play Store split metadata, causing Android to reject standalone installs as incompatible. - Remove requiredSplitTypes and split-related manifest meta-data - Merge native libs from all ABI splits with uncompressed storage - Page-align before signing for extractNativeLibs=false - Add .so to apktool doNotCompress list Co-authored-by: KaKi87 <KaKi87@pm.me> * Fix install failure: use apksigner v2/v3 and bundle arm64 native libs Target SDK 36 requires APK Signature Scheme v2+, but jarsigner only produces v1 signatures, causing Android to reject the install. - Sign with apksigner (v1+v2+v3) instead of jarsigner - Add arm64-v8a native libraries from universal Soul Browser 1.4.79 - Set extractNativeLibs=true for reliable sideload installs - Commit stable debug keystore for consistent signatures across builds Co-authored-by: KaKi87 <KaKi87@pm.me> * Add committed debug keystore for consistent APK signatures Co-authored-by: KaKi87 <KaKi87@pm.me> * Fix startup crash: use original classes2.dex desugar libraries Apktool recompiles smali_classes2 into a broken classes2.dex, causing ClassNotFoundException for j$.com.android.tools.r8.a at ML Kit init. Inject the original classes2.dex (Java 8+ desugar libs) after apktool build instead of using the recompiled version. Co-authored-by: KaKi87 <KaKi87@pm.me> * Fix missing drawable resources from density split APKs The base APK is an app bundle module; density-specific drawables like seek_thumb_nor_b live in config.xhdpi.apk and were missing after rebuild, causing Resources$NotFoundException at runtime. - Merge non-9-patch resources from split APKs before apktool build - Sync public.xml IDs from R smali only when backing files exist - Add 713 density-specific resource IDs to public.xml Co-authored-by: KaKi87 <KaKi87@pm.me> --------- Co-authored-by: Cursor Agent <cursoragent@cursor.com>
197 lines
6.5 KiB
Java
197 lines
6.5 KiB
Java
package com.google.android.gms.ads;
|
|
|
|
import androidx.annotation.NonNull;
|
|
import com.google.android.gms.ads.internal.util.client.zzo;
|
|
import java.lang.annotation.Retention;
|
|
import java.lang.annotation.RetentionPolicy;
|
|
import java.util.ArrayList;
|
|
import java.util.Arrays;
|
|
import java.util.List;
|
|
import javax.annotation.Nullable;
|
|
|
|
/* loaded from: classes.dex */
|
|
public class RequestConfiguration {
|
|
|
|
@NonNull
|
|
public static final String MAX_AD_CONTENT_RATING_UNSPECIFIED = "";
|
|
public static final int TAG_FOR_CHILD_DIRECTED_TREATMENT_FALSE = 0;
|
|
public static final int TAG_FOR_CHILD_DIRECTED_TREATMENT_TRUE = 1;
|
|
public static final int TAG_FOR_CHILD_DIRECTED_TREATMENT_UNSPECIFIED = -1;
|
|
public static final int TAG_FOR_UNDER_AGE_OF_CONSENT_FALSE = 0;
|
|
public static final int TAG_FOR_UNDER_AGE_OF_CONSENT_TRUE = 1;
|
|
public static final int TAG_FOR_UNDER_AGE_OF_CONSENT_UNSPECIFIED = -1;
|
|
|
|
/* renamed from: a, reason: collision with root package name */
|
|
public final int f2943a;
|
|
public final int b;
|
|
|
|
/* renamed from: c, reason: collision with root package name */
|
|
public final String f2944c;
|
|
public final List d;
|
|
public final PublisherPrivacyPersonalizationState e;
|
|
|
|
@NonNull
|
|
public static final String MAX_AD_CONTENT_RATING_MA = "MA";
|
|
|
|
@NonNull
|
|
public static final String MAX_AD_CONTENT_RATING_T = "T";
|
|
|
|
@NonNull
|
|
public static final String MAX_AD_CONTENT_RATING_PG = "PG";
|
|
|
|
@NonNull
|
|
public static final String MAX_AD_CONTENT_RATING_G = "G";
|
|
|
|
@NonNull
|
|
public static final List zza = Arrays.asList(MAX_AD_CONTENT_RATING_MA, MAX_AD_CONTENT_RATING_T, MAX_AD_CONTENT_RATING_PG, MAX_AD_CONTENT_RATING_G);
|
|
|
|
/* loaded from: classes.dex */
|
|
public static class Builder {
|
|
|
|
/* renamed from: a, reason: collision with root package name */
|
|
public int f2945a = -1;
|
|
public int b = -1;
|
|
|
|
/* renamed from: c, reason: collision with root package name */
|
|
public String f2946c = null;
|
|
public final ArrayList d = new ArrayList();
|
|
public PublisherPrivacyPersonalizationState e = PublisherPrivacyPersonalizationState.DEFAULT;
|
|
|
|
@NonNull
|
|
public RequestConfiguration build() {
|
|
return new RequestConfiguration(this.f2945a, this.b, this.f2946c, this.d, this.e);
|
|
}
|
|
|
|
@NonNull
|
|
public Builder setMaxAdContentRating(@Nullable String str) {
|
|
if (str != null && !RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED.equals(str)) {
|
|
if (!RequestConfiguration.MAX_AD_CONTENT_RATING_G.equals(str) && !RequestConfiguration.MAX_AD_CONTENT_RATING_PG.equals(str) && !RequestConfiguration.MAX_AD_CONTENT_RATING_T.equals(str) && !RequestConfiguration.MAX_AD_CONTENT_RATING_MA.equals(str)) {
|
|
zzo.zzi("Invalid value passed to setMaxAdContentRating: ".concat(str));
|
|
return this;
|
|
}
|
|
this.f2946c = str;
|
|
return this;
|
|
}
|
|
this.f2946c = null;
|
|
return this;
|
|
}
|
|
|
|
@NonNull
|
|
public Builder setPublisherPrivacyPersonalizationState(@NonNull PublisherPrivacyPersonalizationState publisherPrivacyPersonalizationState) {
|
|
this.e = publisherPrivacyPersonalizationState;
|
|
return this;
|
|
}
|
|
|
|
@NonNull
|
|
public Builder setTagForChildDirectedTreatment(int i) {
|
|
if (i != -1 && i != 0 && i != 1) {
|
|
StringBuilder sb = new StringBuilder(String.valueOf(i).length() + 57);
|
|
sb.append("Invalid value passed to setTagForChildDirectedTreatment: ");
|
|
sb.append(i);
|
|
zzo.zzi(sb.toString());
|
|
return this;
|
|
}
|
|
this.f2945a = i;
|
|
return this;
|
|
}
|
|
|
|
@NonNull
|
|
public Builder setTagForUnderAgeOfConsent(int i) {
|
|
if (i != -1 && i != 0 && i != 1) {
|
|
StringBuilder sb = new StringBuilder(String.valueOf(i).length() + 52);
|
|
sb.append("Invalid value passed to setTagForUnderAgeOfConsent: ");
|
|
sb.append(i);
|
|
zzo.zzi(sb.toString());
|
|
return this;
|
|
}
|
|
this.b = i;
|
|
return this;
|
|
}
|
|
|
|
@NonNull
|
|
public Builder setTestDeviceIds(@Nullable List<String> list) {
|
|
ArrayList arrayList = this.d;
|
|
arrayList.clear();
|
|
if (list != null) {
|
|
arrayList.addAll(list);
|
|
}
|
|
return this;
|
|
}
|
|
}
|
|
|
|
@Retention(RetentionPolicy.SOURCE)
|
|
/* loaded from: classes.dex */
|
|
public @interface MaxAdContentRating {
|
|
}
|
|
|
|
/* loaded from: classes.dex */
|
|
public enum PublisherPrivacyPersonalizationState {
|
|
DEFAULT(0),
|
|
ENABLED(1),
|
|
DISABLED(2);
|
|
|
|
|
|
/* renamed from: c, reason: collision with root package name */
|
|
public final int f2947c;
|
|
|
|
PublisherPrivacyPersonalizationState(int i) {
|
|
this.f2947c = i;
|
|
}
|
|
|
|
public int getValue() {
|
|
return this.f2947c;
|
|
}
|
|
}
|
|
|
|
@Retention(RetentionPolicy.SOURCE)
|
|
/* loaded from: classes.dex */
|
|
public @interface TagForChildDirectedTreatment {
|
|
}
|
|
|
|
@Retention(RetentionPolicy.SOURCE)
|
|
/* loaded from: classes.dex */
|
|
public @interface TagForUnderAgeOfConsent {
|
|
}
|
|
|
|
public /* synthetic */ RequestConfiguration(int i, int i2, String str, ArrayList arrayList, PublisherPrivacyPersonalizationState publisherPrivacyPersonalizationState) {
|
|
this.f2943a = i;
|
|
this.b = i2;
|
|
this.f2944c = str;
|
|
this.d = arrayList;
|
|
this.e = publisherPrivacyPersonalizationState;
|
|
}
|
|
|
|
@NonNull
|
|
public String getMaxAdContentRating() {
|
|
String str = this.f2944c;
|
|
return str == null ? MAX_AD_CONTENT_RATING_UNSPECIFIED : str;
|
|
}
|
|
|
|
@NonNull
|
|
public PublisherPrivacyPersonalizationState getPublisherPrivacyPersonalizationState() {
|
|
return this.e;
|
|
}
|
|
|
|
public int getTagForChildDirectedTreatment() {
|
|
return this.f2943a;
|
|
}
|
|
|
|
public int getTagForUnderAgeOfConsent() {
|
|
return this.b;
|
|
}
|
|
|
|
@NonNull
|
|
public List<String> getTestDeviceIds() {
|
|
return new ArrayList(this.d);
|
|
}
|
|
|
|
@NonNull
|
|
public Builder toBuilder() {
|
|
Builder builder = new Builder();
|
|
builder.setTagForChildDirectedTreatment(this.f2943a);
|
|
builder.setTagForUnderAgeOfConsent(this.b);
|
|
builder.setMaxAdContentRating(this.f2944c);
|
|
builder.setTestDeviceIds(this.d);
|
|
return builder;
|
|
}
|
|
}
|