* 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>
263 lines
7.8 KiB
Java
263 lines
7.8 KiB
Java
package com.google.android.gms.ads;
|
|
|
|
import android.app.Activity;
|
|
import android.content.Intent;
|
|
import android.content.res.Configuration;
|
|
import android.os.Bundle;
|
|
import android.os.RemoteException;
|
|
import android.view.View;
|
|
import android.view.ViewGroup;
|
|
import androidx.annotation.NonNull;
|
|
import com.google.android.gms.ads.internal.client.zzbb;
|
|
import com.google.android.gms.ads.internal.util.client.zzo;
|
|
import com.google.android.gms.common.annotation.KeepForSdk;
|
|
import com.google.android.gms.dynamic.ObjectWrapper;
|
|
import com.google.android.gms.internal.ads.zzbwy;
|
|
|
|
@KeepForSdk
|
|
/* loaded from: classes.dex */
|
|
public final class AdActivity extends Activity {
|
|
|
|
@NonNull
|
|
@KeepForSdk
|
|
public static final String CLASS_NAME = "com.google.android.gms.ads.AdActivity";
|
|
|
|
/* renamed from: c, reason: collision with root package name */
|
|
public zzbwy f2928c;
|
|
|
|
@Override // android.app.Activity
|
|
public final void onActivityResult(int i, int i2, Intent intent) {
|
|
try {
|
|
zzbwy zzbwyVar = this.f2928c;
|
|
if (zzbwyVar != null) {
|
|
zzbwyVar.zzm(i, i2, intent);
|
|
}
|
|
} catch (Exception e) {
|
|
zzo.zzl("#007 Could not call remote method.", e);
|
|
}
|
|
super.onActivityResult(i, i2, intent);
|
|
}
|
|
|
|
@Override // android.app.Activity
|
|
public final void onBackPressed() {
|
|
try {
|
|
zzbwy zzbwyVar = this.f2928c;
|
|
if (zzbwyVar != null) {
|
|
if (!zzbwyVar.zzg()) {
|
|
return;
|
|
}
|
|
}
|
|
} catch (RemoteException e) {
|
|
zzo.zzl("#007 Could not call remote method.", e);
|
|
}
|
|
super.onBackPressed();
|
|
try {
|
|
zzbwy zzbwyVar2 = this.f2928c;
|
|
if (zzbwyVar2 != null) {
|
|
zzbwyVar2.zze();
|
|
}
|
|
} catch (RemoteException e2) {
|
|
zzo.zzl("#007 Could not call remote method.", e2);
|
|
}
|
|
}
|
|
|
|
@Override // android.app.Activity, android.content.ComponentCallbacks
|
|
public final void onConfigurationChanged(@NonNull Configuration configuration) {
|
|
super.onConfigurationChanged(configuration);
|
|
try {
|
|
zzbwy zzbwyVar = this.f2928c;
|
|
if (zzbwyVar != null) {
|
|
zzbwyVar.zzn(new ObjectWrapper(configuration));
|
|
}
|
|
} catch (RemoteException e) {
|
|
zzo.zzl("#007 Could not call remote method.", e);
|
|
}
|
|
}
|
|
|
|
@Override // android.app.Activity
|
|
public final void onCreate(Bundle bundle) {
|
|
super.onCreate(bundle);
|
|
zzo.zzd("AdActivity onCreate");
|
|
zzbwy zzh = zzbb.zzb().zzh(this);
|
|
this.f2928c = zzh;
|
|
if (zzh != null) {
|
|
try {
|
|
zzh.zzh(bundle);
|
|
return;
|
|
} catch (RemoteException e) {
|
|
zzo.zzl("#007 Could not call remote method.", e);
|
|
finish();
|
|
return;
|
|
}
|
|
}
|
|
zzo.zzl("#007 Could not call remote method.", null);
|
|
finish();
|
|
}
|
|
|
|
@Override // android.app.Activity
|
|
public final void onDestroy() {
|
|
zzo.zzd("AdActivity onDestroy");
|
|
try {
|
|
zzbwy zzbwyVar = this.f2928c;
|
|
if (zzbwyVar != null) {
|
|
zzbwyVar.zzq();
|
|
}
|
|
} catch (RemoteException e) {
|
|
zzo.zzl("#007 Could not call remote method.", e);
|
|
}
|
|
super.onDestroy();
|
|
}
|
|
|
|
@Override // android.app.Activity
|
|
public final void onPause() {
|
|
zzo.zzd("AdActivity onPause");
|
|
try {
|
|
zzbwy zzbwyVar = this.f2928c;
|
|
if (zzbwyVar != null) {
|
|
zzbwyVar.zzl();
|
|
}
|
|
} catch (RemoteException e) {
|
|
zzo.zzl("#007 Could not call remote method.", e);
|
|
finish();
|
|
}
|
|
super.onPause();
|
|
}
|
|
|
|
@Override // android.app.Activity
|
|
public final void onRequestPermissionsResult(int i, @NonNull String[] strArr, @NonNull int[] iArr) {
|
|
try {
|
|
zzbwy zzbwyVar = this.f2928c;
|
|
if (zzbwyVar != null) {
|
|
zzbwyVar.zzH(i, strArr, iArr);
|
|
}
|
|
} catch (RemoteException e) {
|
|
zzo.zzl("#007 Could not call remote method.", e);
|
|
}
|
|
}
|
|
|
|
@Override // android.app.Activity
|
|
public final void onRestart() {
|
|
super.onRestart();
|
|
zzo.zzd("AdActivity onRestart");
|
|
try {
|
|
zzbwy zzbwyVar = this.f2928c;
|
|
if (zzbwyVar != null) {
|
|
zzbwyVar.zzi();
|
|
}
|
|
} catch (RemoteException e) {
|
|
zzo.zzl("#007 Could not call remote method.", e);
|
|
finish();
|
|
}
|
|
}
|
|
|
|
@Override // android.app.Activity
|
|
public final void onResume() {
|
|
zzo.zzd("AdActivity onResume");
|
|
super.onResume();
|
|
try {
|
|
zzbwy zzbwyVar = this.f2928c;
|
|
if (zzbwyVar != null) {
|
|
zzbwyVar.zzk();
|
|
}
|
|
} catch (RemoteException e) {
|
|
zzo.zzl("#007 Could not call remote method.", e);
|
|
finish();
|
|
}
|
|
}
|
|
|
|
@Override // android.app.Activity
|
|
public final void onSaveInstanceState(Bundle bundle) {
|
|
try {
|
|
zzbwy zzbwyVar = this.f2928c;
|
|
if (zzbwyVar != null) {
|
|
zzbwyVar.zzo(bundle);
|
|
}
|
|
} catch (RemoteException e) {
|
|
zzo.zzl("#007 Could not call remote method.", e);
|
|
finish();
|
|
}
|
|
super.onSaveInstanceState(bundle);
|
|
}
|
|
|
|
@Override // android.app.Activity
|
|
public final void onStart() {
|
|
super.onStart();
|
|
zzo.zzd("AdActivity onStart");
|
|
try {
|
|
zzbwy zzbwyVar = this.f2928c;
|
|
if (zzbwyVar != null) {
|
|
zzbwyVar.zzj();
|
|
}
|
|
} catch (RemoteException e) {
|
|
zzo.zzl("#007 Could not call remote method.", e);
|
|
finish();
|
|
}
|
|
}
|
|
|
|
@Override // android.app.Activity
|
|
public final void onStop() {
|
|
zzo.zzd("AdActivity onStop");
|
|
try {
|
|
zzbwy zzbwyVar = this.f2928c;
|
|
if (zzbwyVar != null) {
|
|
zzbwyVar.zzp();
|
|
}
|
|
} catch (RemoteException e) {
|
|
zzo.zzl("#007 Could not call remote method.", e);
|
|
finish();
|
|
}
|
|
super.onStop();
|
|
}
|
|
|
|
@Override // android.app.Activity
|
|
public final void onUserLeaveHint() {
|
|
super.onUserLeaveHint();
|
|
try {
|
|
zzbwy zzbwyVar = this.f2928c;
|
|
if (zzbwyVar != null) {
|
|
zzbwyVar.zzf();
|
|
}
|
|
} catch (RemoteException e) {
|
|
zzo.zzl("#007 Could not call remote method.", e);
|
|
}
|
|
}
|
|
|
|
@Override // android.app.Activity
|
|
public final void setContentView(int i) {
|
|
super.setContentView(i);
|
|
zzbwy zzbwyVar = this.f2928c;
|
|
if (zzbwyVar != null) {
|
|
try {
|
|
zzbwyVar.zzs();
|
|
} catch (RemoteException e) {
|
|
zzo.zzl("#007 Could not call remote method.", e);
|
|
}
|
|
}
|
|
}
|
|
|
|
@Override // android.app.Activity
|
|
public final void setContentView(@NonNull View view) {
|
|
super.setContentView(view);
|
|
zzbwy zzbwyVar = this.f2928c;
|
|
if (zzbwyVar != null) {
|
|
try {
|
|
zzbwyVar.zzs();
|
|
} catch (RemoteException e) {
|
|
zzo.zzl("#007 Could not call remote method.", e);
|
|
}
|
|
}
|
|
}
|
|
|
|
@Override // android.app.Activity
|
|
public final void setContentView(@NonNull View view, @NonNull ViewGroup.LayoutParams layoutParams) {
|
|
super.setContentView(view, layoutParams);
|
|
zzbwy zzbwyVar = this.f2928c;
|
|
if (zzbwyVar != null) {
|
|
try {
|
|
zzbwyVar.zzs();
|
|
} catch (RemoteException e) {
|
|
zzo.zzl("#007 Could not call remote method.", e);
|
|
}
|
|
}
|
|
}
|
|
}
|