* 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>
172 lines
6 KiB
Java
172 lines
6 KiB
Java
package com.mycompany.app.dialog;
|
|
|
|
import android.animation.ValueAnimator;
|
|
import android.content.ContentProviderClient;
|
|
import android.content.ContentValues;
|
|
import android.content.Context;
|
|
import android.content.res.TypedArray;
|
|
import android.drm.DrmManagerClient;
|
|
import android.media.MediaDrm;
|
|
import android.media.MediaMetadataRetriever;
|
|
import android.view.View;
|
|
import android.view.animation.AccelerateInterpolator;
|
|
import android.view.animation.DecelerateInterpolator;
|
|
import android.widget.LinearLayout;
|
|
import androidx.appcompat.widget.AppCompatTextView;
|
|
import androidx.core.provider.b;
|
|
import com.mycompany.app.setting.SettingListAdapter;
|
|
import com.mycompany.app.view.MyButtonCheck;
|
|
import java.util.ArrayList;
|
|
import java.util.Iterator;
|
|
import java.util.LinkedHashMap;
|
|
import java.util.Map;
|
|
import java.util.concurrent.ExecutorService;
|
|
import kotlin.UByte;
|
|
import kotlin.UByteArray;
|
|
import kotlin.UInt;
|
|
import kotlin.UIntArray;
|
|
import kotlin.ULong;
|
|
import kotlin.ULongArray;
|
|
import kotlin.UShort;
|
|
import kotlin.UShortArray;
|
|
import kotlin.jvm.functions.Function1;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
import kotlin.ranges.IntRange;
|
|
import kotlin.sequences.Sequence;
|
|
|
|
/* loaded from: classes3.dex */
|
|
public abstract /* synthetic */ class a {
|
|
public static int a(float f, float f2, float f3, float f4) {
|
|
return Math.round((f3 / (f + f2)) * f4);
|
|
}
|
|
|
|
public static int b(CharSequence charSequence, String str, Function1 function1, String str2) {
|
|
Intrinsics.checkNotNullParameter(charSequence, str);
|
|
Intrinsics.checkNotNullParameter(function1, str2);
|
|
return charSequence.length();
|
|
}
|
|
|
|
public static int c(UInt uInt, int i) {
|
|
return UInt.m125constructorimpl(uInt.getData() + i);
|
|
}
|
|
|
|
public static int d(IntRange intRange, int i) {
|
|
return intRange.getEndInclusive().intValue() + i;
|
|
}
|
|
|
|
public static ContentValues e(String str, String str2, String str3, String str4) {
|
|
ContentValues contentValues = new ContentValues();
|
|
contentValues.put(str, str2);
|
|
contentValues.put(str3, str4);
|
|
return contentValues;
|
|
}
|
|
|
|
public static MyButtonCheck f(LinearLayout linearLayout, View view, LinearLayout.LayoutParams layoutParams, Context context) {
|
|
linearLayout.addView(view, layoutParams);
|
|
return new MyButtonCheck(context);
|
|
}
|
|
|
|
public static Object g(CharSequence charSequence, int i, Function1 function1) {
|
|
return function1.invoke(Character.valueOf(charSequence.charAt(i)));
|
|
}
|
|
|
|
public static Object h(byte[] bArr, int i, Function1 function1) {
|
|
return function1.invoke(UByte.m42boximpl(UByteArray.m106getw2LRezQ(bArr, i)));
|
|
}
|
|
|
|
public static Object i(int[] iArr, int i, Function1 function1) {
|
|
return function1.invoke(UInt.m119boximpl(UIntArray.m185getpVg5ArA(iArr, i)));
|
|
}
|
|
|
|
public static Object j(long[] jArr, int i, Function1 function1) {
|
|
return function1.invoke(ULong.m198boximpl(ULongArray.m264getsVKNKU(jArr, i)));
|
|
}
|
|
|
|
public static Object k(short[] sArr, int i, Function1 function1) {
|
|
return function1.invoke(UShort.m305boximpl(UShortArray.m369getMh2AYeg(sArr, i)));
|
|
}
|
|
|
|
public static String l(String str, int i, char c2) {
|
|
return str + i + c2;
|
|
}
|
|
|
|
public static String m(StringBuilder sb, String str, int i, String str2, int i2) {
|
|
sb.append(str);
|
|
sb.append(i);
|
|
sb.append(str2);
|
|
sb.append(i2);
|
|
return sb.toString();
|
|
}
|
|
|
|
public static ArrayList n(LinkedHashMap linkedHashMap, Object obj) {
|
|
ArrayList arrayList = new ArrayList();
|
|
linkedHashMap.put(obj, arrayList);
|
|
return arrayList;
|
|
}
|
|
|
|
public static ArrayList o(Map map, Object obj) {
|
|
ArrayList arrayList = new ArrayList();
|
|
map.put(obj, arrayList);
|
|
return arrayList;
|
|
}
|
|
|
|
public static Iterator p(Iterable iterable, String str, Function1 function1, String str2) {
|
|
Intrinsics.checkNotNullParameter(iterable, str);
|
|
Intrinsics.checkNotNullParameter(function1, str2);
|
|
return iterable.iterator();
|
|
}
|
|
|
|
public static Iterator q(Sequence sequence, String str, Function1 function1, String str2) {
|
|
Intrinsics.checkNotNullParameter(sequence, str);
|
|
Intrinsics.checkNotNullParameter(function1, str2);
|
|
return sequence.iterator();
|
|
}
|
|
|
|
public static void r(ValueAnimator valueAnimator) {
|
|
valueAnimator.setInterpolator(new AccelerateInterpolator());
|
|
}
|
|
|
|
public static /* synthetic */ void s(AutoCloseable autoCloseable) {
|
|
if (autoCloseable instanceof AutoCloseable) {
|
|
autoCloseable.close();
|
|
return;
|
|
}
|
|
if (autoCloseable instanceof ExecutorService) {
|
|
b.f((ExecutorService) autoCloseable);
|
|
return;
|
|
}
|
|
if (autoCloseable instanceof TypedArray) {
|
|
((TypedArray) autoCloseable).recycle();
|
|
return;
|
|
}
|
|
if (autoCloseable instanceof MediaMetadataRetriever) {
|
|
((MediaMetadataRetriever) autoCloseable).release();
|
|
return;
|
|
}
|
|
if (autoCloseable instanceof MediaDrm) {
|
|
((MediaDrm) autoCloseable).release();
|
|
} else if (autoCloseable instanceof DrmManagerClient) {
|
|
((DrmManagerClient) autoCloseable).release();
|
|
} else {
|
|
if (!(autoCloseable instanceof ContentProviderClient)) {
|
|
throw new IllegalArgumentException();
|
|
}
|
|
((ContentProviderClient) autoCloseable).release();
|
|
}
|
|
}
|
|
|
|
public static void t(StringBuilder sb, int i, String str, AppCompatTextView appCompatTextView) {
|
|
sb.append(i);
|
|
sb.append(str);
|
|
appCompatTextView.setText(sb.toString());
|
|
}
|
|
|
|
public static void u(ArrayList arrayList, SettingListAdapter.SettingItem settingItem, int i, boolean z) {
|
|
arrayList.add(settingItem);
|
|
arrayList.add(new SettingListAdapter.SettingItem(i, z));
|
|
}
|
|
|
|
public static void v(ValueAnimator valueAnimator) {
|
|
valueAnimator.setInterpolator(new DecelerateInterpolator());
|
|
}
|
|
}
|