* 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>
97 lines
7.5 KiB
Java
97 lines
7.5 KiB
Java
package androidx.credentials.playservices.controllers;
|
|
|
|
import android.content.Intent;
|
|
import android.os.Bundle;
|
|
import android.os.Parcel;
|
|
import android.os.ResultReceiver;
|
|
import androidx.credentials.exceptions.CreateCredentialCancellationException;
|
|
import androidx.credentials.exceptions.CreateCredentialException;
|
|
import androidx.credentials.exceptions.CreateCredentialUnknownException;
|
|
import androidx.credentials.exceptions.GetCredentialException;
|
|
import androidx.credentials.exceptions.NoCredentialException;
|
|
import com.google.android.gms.ads.RequestConfiguration;
|
|
import java.util.Set;
|
|
import kotlin.Metadata;
|
|
import kotlin.collections.SetsKt;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
|
|
@Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\b\u0010\u0018\u00002\u00020\u0001:\u0001\u0002¨\u0006\u0003"}, d2 = {"Landroidx/credentials/playservices/controllers/CredentialProviderBaseController;", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "Companion", "credentials-play-services-auth_release"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
|
/* loaded from: classes.dex */
|
|
public class CredentialProviderBaseController {
|
|
|
|
/* renamed from: a, reason: collision with root package name */
|
|
public static final Companion f912a = new Object();
|
|
public static final Set b = SetsKt.setOf((Object[]) new Integer[]{7, 20});
|
|
|
|
/* renamed from: c, reason: collision with root package name */
|
|
public static final int f913c = 1;
|
|
|
|
@Metadata(d1 = {"\u0000\u0010\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0010\u000e\n\u0002\b\u0016\b\u0086\u0003\u0018\u00002\u00020\u0001R\u0014\u0010\u0003\u001a\u00020\u00028\u0006X\u0086T¢\u0006\u0006\n\u0004\b\u0003\u0010\u0004R\u0014\u0010\u0005\u001a\u00020\u00028\u0006X\u0086T¢\u0006\u0006\n\u0004\b\u0005\u0010\u0004R\u0014\u0010\u0006\u001a\u00020\u00028\u0006X\u0086T¢\u0006\u0006\n\u0004\b\u0006\u0010\u0004R\u0014\u0010\u0007\u001a\u00020\u00028\u0006X\u0086T¢\u0006\u0006\n\u0004\b\u0007\u0010\u0004R\u0014\u0010\b\u001a\u00020\u00028\u0006X\u0086T¢\u0006\u0006\n\u0004\b\b\u0010\u0004R\u0014\u0010\t\u001a\u00020\u00028\u0006X\u0086T¢\u0006\u0006\n\u0004\b\t\u0010\u0004R\u0014\u0010\n\u001a\u00020\u00028\u0006X\u0086T¢\u0006\u0006\n\u0004\b\n\u0010\u0004R\u0014\u0010\u000b\u001a\u00020\u00028\u0006X\u0086T¢\u0006\u0006\n\u0004\b\u000b\u0010\u0004R\u0014\u0010\f\u001a\u00020\u00028\u0006X\u0086T¢\u0006\u0006\n\u0004\b\f\u0010\u0004R\u0014\u0010\r\u001a\u00020\u00028\u0006X\u0086T¢\u0006\u0006\n\u0004\b\r\u0010\u0004R\u0014\u0010\u000e\u001a\u00020\u00028\u0006X\u0086T¢\u0006\u0006\n\u0004\b\u000e\u0010\u0004R\u0014\u0010\u000f\u001a\u00020\u00028\u0006X\u0086T¢\u0006\u0006\n\u0004\b\u000f\u0010\u0004R\u0014\u0010\u0010\u001a\u00020\u00028\u0006X\u0086T¢\u0006\u0006\n\u0004\b\u0010\u0010\u0004R\u0014\u0010\u0011\u001a\u00020\u00028\u0006X\u0086T¢\u0006\u0006\n\u0004\b\u0011\u0010\u0004R\u0014\u0010\u0012\u001a\u00020\u00028\u0006X\u0086T¢\u0006\u0006\n\u0004\b\u0012\u0010\u0004R\u0014\u0010\u0013\u001a\u00020\u00028\u0006X\u0086T¢\u0006\u0006\n\u0004\b\u0013\u0010\u0004R\u0014\u0010\u0014\u001a\u00020\u00028\u0006X\u0086T¢\u0006\u0006\n\u0004\b\u0014\u0010\u0004R\u0014\u0010\u0015\u001a\u00020\u00028\u0006X\u0086T¢\u0006\u0006\n\u0004\b\u0015\u0010\u0004R\u0014\u0010\u0016\u001a\u00020\u00028\u0006X\u0086T¢\u0006\u0006\n\u0004\b\u0016\u0010\u0004R\u0014\u0010\u0017\u001a\u00020\u00028\u0006X\u0086T¢\u0006\u0006\n\u0004\b\u0017\u0010\u0004¨\u0006\u0018"}, d2 = {"Landroidx/credentials/playservices/controllers/CredentialProviderBaseController$Companion;", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "ACTIVITY_REQUEST_CODE_TAG", "Ljava/lang/String;", "BEGIN_SIGN_IN_TAG", "CREATE_CANCELED", "CREATE_INTERRUPTED", "CREATE_PASSWORD_TAG", "CREATE_PUBLIC_KEY_CREDENTIAL_TAG", "CREATE_UNKNOWN", "EXCEPTION_MESSAGE_TAG", "EXCEPTION_TYPE_TAG", "EXTRA_GET_CREDENTIAL_INTENT", "FAILURE_RESPONSE_TAG", "GET_CANCELED", "GET_INTERRUPTED", "GET_NO_CREDENTIALS", "GET_UNKNOWN", "REQUEST_TAG", "RESULT_DATA_TAG", "RESULT_RECEIVER_TAG", "SIGN_IN_INTENT_TAG", "TYPE_TAG", "credentials-play-services-auth_release"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
|
/* loaded from: classes.dex */
|
|
public static final class Companion {
|
|
public static CreateCredentialException a(String str, String str2) {
|
|
if (Intrinsics.areEqual(str, "CREATE_CANCELED")) {
|
|
return new CreateCredentialCancellationException(str2);
|
|
}
|
|
if (Intrinsics.areEqual(str, "CREATE_INTERRUPTED")) {
|
|
return new CreateCredentialException("android.credentials.CreateCredentialException.TYPE_INTERRUPTED", str2);
|
|
}
|
|
return new CreateCredentialUnknownException(str2);
|
|
}
|
|
|
|
public static GetCredentialException b(String str, String str2) {
|
|
if (str != null) {
|
|
int hashCode = str.hashCode();
|
|
if (hashCode != -1567968963) {
|
|
if (hashCode != -154594663) {
|
|
if (hashCode == 1996705159 && str.equals("GET_NO_CREDENTIALS")) {
|
|
return new NoCredentialException(str2);
|
|
}
|
|
} else if (str.equals("GET_INTERRUPTED")) {
|
|
return new GetCredentialException("android.credentials.GetCredentialException.TYPE_INTERRUPTED", str2);
|
|
}
|
|
} else if (str.equals("GET_CANCELED_TAG")) {
|
|
return new GetCredentialException("android.credentials.GetCredentialException.TYPE_USER_CANCELED", str2);
|
|
}
|
|
}
|
|
return new GetCredentialException("android.credentials.GetCredentialException.TYPE_UNKNOWN", str2);
|
|
}
|
|
|
|
public static void c(ResultReceiver resultReceiver, String errName, String errMsg) {
|
|
Intrinsics.checkNotNullParameter(resultReceiver, "<this>");
|
|
Intrinsics.checkNotNullParameter(errName, "errName");
|
|
Intrinsics.checkNotNullParameter(errMsg, "errMsg");
|
|
Bundle bundle = new Bundle();
|
|
bundle.putBoolean("FAILURE_RESPONSE", true);
|
|
bundle.putString("EXCEPTION_TYPE", errName);
|
|
bundle.putString("EXCEPTION_MESSAGE", errMsg);
|
|
resultReceiver.send(Integer.MAX_VALUE, bundle);
|
|
}
|
|
|
|
public static void d(ResultReceiver resultReceiver, int i, int i2, Intent intent) {
|
|
Intrinsics.checkNotNullParameter(resultReceiver, "<this>");
|
|
Bundle bundle = new Bundle();
|
|
bundle.putBoolean("FAILURE_RESPONSE", false);
|
|
bundle.putInt("ACTIVITY_REQUEST_CODE", i);
|
|
bundle.putParcelable("RESULT_DATA", intent);
|
|
resultReceiver.send(i2, bundle);
|
|
}
|
|
}
|
|
|
|
public static void a(ResultReceiver resultReceiver, Intent hiddenIntent, String typeTag) {
|
|
Intrinsics.checkNotNullParameter(resultReceiver, "resultReceiver");
|
|
Intrinsics.checkNotNullParameter(hiddenIntent, "hiddenIntent");
|
|
Intrinsics.checkNotNullParameter(typeTag, "typeTag");
|
|
hiddenIntent.putExtra("TYPE", typeTag);
|
|
hiddenIntent.putExtra("ACTIVITY_REQUEST_CODE", f913c);
|
|
Parcel obtain = Parcel.obtain();
|
|
Intrinsics.checkNotNullExpressionValue(obtain, "obtain(...)");
|
|
Intrinsics.checkNotNull(resultReceiver);
|
|
resultReceiver.writeToParcel(obtain, 0);
|
|
obtain.setDataPosition(0);
|
|
ResultReceiver resultReceiver2 = (ResultReceiver) ResultReceiver.CREATOR.createFromParcel(obtain);
|
|
obtain.recycle();
|
|
hiddenIntent.putExtra("RESULT_RECEIVER", resultReceiver2);
|
|
hiddenIntent.setFlags(65536);
|
|
}
|
|
}
|