soul-browser/sources/java/com/frostwire/jlibtorrent/swig/peer_info.java
KaKi87 550ddb0413
Decompile and recreate Soul Browser v1.4.85 with APK CI builds (#1)
* 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>
2026-08-10 16:07:14 +02:00

66 lines
4.4 KiB
Java

package com.frostwire.jlibtorrent.swig;
/* loaded from: classes.dex */
public class peer_info {
/* renamed from: a, reason: collision with root package name */
public static final peer_flags_t f2695a = new peer_flags_t(libtorrent_jni.peer_info_interesting_get());
public static final peer_flags_t b = new peer_flags_t(libtorrent_jni.peer_info_choked_get());
/* renamed from: c, reason: collision with root package name */
public static final peer_flags_t f2696c = new peer_flags_t(libtorrent_jni.peer_info_remote_interested_get());
public static final peer_flags_t d = new peer_flags_t(libtorrent_jni.peer_info_remote_choked_get());
public static final peer_flags_t e = new peer_flags_t(libtorrent_jni.peer_info_supports_extensions_get());
public static final peer_flags_t f = new peer_flags_t(libtorrent_jni.peer_info_local_connection_get());
public static final peer_flags_t g = new peer_flags_t(libtorrent_jni.peer_info_handshake_get());
public static final peer_flags_t h = new peer_flags_t(libtorrent_jni.peer_info_connecting_get());
public static final peer_flags_t i = new peer_flags_t(libtorrent_jni.peer_info_on_parole_get());
public static final peer_flags_t j = new peer_flags_t(libtorrent_jni.peer_info_seed_get());
public static final peer_flags_t k = new peer_flags_t(libtorrent_jni.peer_info_optimistic_unchoke_get());
public static final peer_flags_t l = new peer_flags_t(libtorrent_jni.peer_info_snubbed_get());
public static final peer_flags_t m = new peer_flags_t(libtorrent_jni.peer_info_upload_only_get());
public static final peer_flags_t n = new peer_flags_t(libtorrent_jni.peer_info_endgame_mode_get());
public static final peer_flags_t o = new peer_flags_t(libtorrent_jni.peer_info_holepunched_get());
public static final peer_flags_t p = new peer_flags_t(libtorrent_jni.peer_info_i2p_socket_get());
public static final peer_flags_t q = new peer_flags_t(libtorrent_jni.peer_info_utp_socket_get());
public static final peer_flags_t r = new peer_flags_t(libtorrent_jni.peer_info_ssl_socket_get());
public static final peer_flags_t s = new peer_flags_t(libtorrent_jni.peer_info_rc4_encrypted_get());
public static final peer_flags_t t = new peer_flags_t(libtorrent_jni.peer_info_plaintext_encrypted_get());
public static final peer_source_flags_t u = new peer_source_flags_t(libtorrent_jni.peer_info_tracker_get());
public static final peer_source_flags_t v = new peer_source_flags_t(libtorrent_jni.peer_info_dht_get());
public static final peer_source_flags_t w = new peer_source_flags_t(libtorrent_jni.peer_info_pex_get());
public static final peer_source_flags_t x = new peer_source_flags_t(libtorrent_jni.peer_info_lsd_get());
public static final peer_source_flags_t y = new peer_source_flags_t(libtorrent_jni.peer_info_resume_data_get());
public static final peer_source_flags_t z = new peer_source_flags_t(libtorrent_jni.peer_info_incoming_get());
public static final bandwidth_state_flags_t A = new bandwidth_state_flags_t(libtorrent_jni.peer_info_bw_idle_get());
public static final bandwidth_state_flags_t B = new bandwidth_state_flags_t(libtorrent_jni.peer_info_bw_limit_get());
public static final bandwidth_state_flags_t C = new bandwidth_state_flags_t(libtorrent_jni.peer_info_bw_network_get());
public static final bandwidth_state_flags_t D = new bandwidth_state_flags_t(libtorrent_jni.peer_info_bw_disk_get());
/* loaded from: classes.dex */
public static final class connection_type_t {
/* renamed from: c, reason: collision with root package name */
public static final connection_type_t f2697c = new connection_type_t("standard_bittorrent", libtorrent_jni.peer_info_standard_bittorrent_get());
public static final connection_type_t d = new connection_type_t("web_seed", libtorrent_jni.peer_info_web_seed_get());
public static final connection_type_t e = new connection_type_t("http_seed", libtorrent_jni.peer_info_http_seed_get());
/* renamed from: a, reason: collision with root package name */
public final int f2698a;
public final String b;
public connection_type_t(String str, int i) {
this.b = str;
this.f2698a = i;
}
public final String toString() {
return this.b;
}
}
public final void finalize() {
synchronized (this) {
}
}
}