* 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>
548 lines
13 KiB
Smali
548 lines
13 KiB
Smali
.class Landroidx/emoji2/text/FontRequestEmojiCompatConfig$FontRequestMetadataLoader;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
# interfaces
|
|
.implements Landroidx/emoji2/text/EmojiCompat$MetadataRepoLoader;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Landroidx/emoji2/text/FontRequestEmojiCompatConfig;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x9
|
|
name = "FontRequestMetadataLoader"
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final a:Landroid/content/Context;
|
|
|
|
.field public final b:Landroidx/core/provider/FontRequest;
|
|
|
|
.field public final c:Landroidx/emoji2/text/FontRequestEmojiCompatConfig$FontProviderHelper;
|
|
|
|
.field public final d:Ljava/lang/Object;
|
|
|
|
.field public e:Landroid/os/Handler;
|
|
|
|
.field public f:Ljava/util/concurrent/ThreadPoolExecutor;
|
|
|
|
.field public g:Ljava/util/concurrent/ThreadPoolExecutor;
|
|
|
|
.field public h:Landroidx/emoji2/text/EmojiCompat$MetadataRepoLoaderCallback;
|
|
|
|
.field public i:Landroid/database/ContentObserver;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Landroid/content/Context;Landroidx/core/provider/FontRequest;)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
new-instance v0, Ljava/lang/Object;
|
|
|
|
.line 5
|
|
.line 6
|
|
invoke-direct {v0}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 7
|
|
.line 8
|
|
.line 9
|
|
iput-object v0, p0, Landroidx/emoji2/text/FontRequestEmojiCompatConfig$FontRequestMetadataLoader;->d:Ljava/lang/Object;
|
|
|
|
.line 10
|
|
.line 11
|
|
const-string v0, "Context cannot be null"
|
|
|
|
.line 12
|
|
.line 13
|
|
invoke-static {p1, v0}, Landroidx/core/util/Preconditions;->c(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 14
|
|
.line 15
|
|
.line 16
|
|
invoke-virtual {p1}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
|
|
|
|
.line 17
|
|
.line 18
|
|
.line 19
|
|
move-result-object p1
|
|
|
|
.line 20
|
|
iput-object p1, p0, Landroidx/emoji2/text/FontRequestEmojiCompatConfig$FontRequestMetadataLoader;->a:Landroid/content/Context;
|
|
|
|
.line 21
|
|
.line 22
|
|
iput-object p2, p0, Landroidx/emoji2/text/FontRequestEmojiCompatConfig$FontRequestMetadataLoader;->b:Landroidx/core/provider/FontRequest;
|
|
|
|
.line 23
|
|
.line 24
|
|
sget-object p1, Landroidx/emoji2/text/FontRequestEmojiCompatConfig;->d:Landroidx/emoji2/text/FontRequestEmojiCompatConfig$FontProviderHelper;
|
|
|
|
.line 25
|
|
.line 26
|
|
iput-object p1, p0, Landroidx/emoji2/text/FontRequestEmojiCompatConfig$FontRequestMetadataLoader;->c:Landroidx/emoji2/text/FontRequestEmojiCompatConfig$FontProviderHelper;
|
|
|
|
.line 27
|
|
.line 28
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final a(Landroidx/emoji2/text/EmojiCompat$MetadataRepoLoaderCallback;)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Landroidx/emoji2/text/FontRequestEmojiCompatConfig$FontRequestMetadataLoader;->d:Ljava/lang/Object;
|
|
|
|
.line 2
|
|
.line 3
|
|
monitor-enter v0
|
|
|
|
.line 4
|
|
:try_start_0
|
|
iput-object p1, p0, Landroidx/emoji2/text/FontRequestEmojiCompatConfig$FontRequestMetadataLoader;->h:Landroidx/emoji2/text/EmojiCompat$MetadataRepoLoaderCallback;
|
|
|
|
.line 5
|
|
.line 6
|
|
monitor-exit v0
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
.line 7
|
|
invoke-virtual {p0}, Landroidx/emoji2/text/FontRequestEmojiCompatConfig$FontRequestMetadataLoader;->c()V
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
return-void
|
|
|
|
.line 11
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
.line 12
|
|
:try_start_1
|
|
monitor-exit v0
|
|
:try_end_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
.line 13
|
|
throw p1
|
|
.end method
|
|
|
|
.method public final b()V
|
|
.locals 5
|
|
|
|
.line 1
|
|
iget-object v0, p0, Landroidx/emoji2/text/FontRequestEmojiCompatConfig$FontRequestMetadataLoader;->d:Ljava/lang/Object;
|
|
|
|
.line 2
|
|
.line 3
|
|
monitor-enter v0
|
|
|
|
.line 4
|
|
const/4 v1, 0x0
|
|
|
|
.line 5
|
|
:try_start_0
|
|
iput-object v1, p0, Landroidx/emoji2/text/FontRequestEmojiCompatConfig$FontRequestMetadataLoader;->h:Landroidx/emoji2/text/EmojiCompat$MetadataRepoLoaderCallback;
|
|
|
|
.line 6
|
|
.line 7
|
|
iget-object v2, p0, Landroidx/emoji2/text/FontRequestEmojiCompatConfig$FontRequestMetadataLoader;->i:Landroid/database/ContentObserver;
|
|
|
|
.line 8
|
|
.line 9
|
|
if-eqz v2, :cond_0
|
|
|
|
.line 10
|
|
.line 11
|
|
iget-object v3, p0, Landroidx/emoji2/text/FontRequestEmojiCompatConfig$FontRequestMetadataLoader;->c:Landroidx/emoji2/text/FontRequestEmojiCompatConfig$FontProviderHelper;
|
|
|
|
.line 12
|
|
.line 13
|
|
iget-object v4, p0, Landroidx/emoji2/text/FontRequestEmojiCompatConfig$FontRequestMetadataLoader;->a:Landroid/content/Context;
|
|
|
|
.line 14
|
|
.line 15
|
|
invoke-virtual {v3}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
.line 16
|
|
.line 17
|
|
.line 18
|
|
invoke-virtual {v4}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;
|
|
|
|
.line 19
|
|
.line 20
|
|
.line 21
|
|
move-result-object v3
|
|
|
|
.line 22
|
|
invoke-virtual {v3, v2}, Landroid/content/ContentResolver;->unregisterContentObserver(Landroid/database/ContentObserver;)V
|
|
|
|
.line 23
|
|
.line 24
|
|
.line 25
|
|
iput-object v1, p0, Landroidx/emoji2/text/FontRequestEmojiCompatConfig$FontRequestMetadataLoader;->i:Landroid/database/ContentObserver;
|
|
|
|
.line 26
|
|
.line 27
|
|
goto :goto_0
|
|
|
|
.line 28
|
|
:catchall_0
|
|
move-exception v1
|
|
|
|
.line 29
|
|
goto :goto_1
|
|
|
|
.line 30
|
|
:cond_0
|
|
:goto_0
|
|
iget-object v2, p0, Landroidx/emoji2/text/FontRequestEmojiCompatConfig$FontRequestMetadataLoader;->e:Landroid/os/Handler;
|
|
|
|
.line 31
|
|
.line 32
|
|
if-eqz v2, :cond_1
|
|
|
|
.line 33
|
|
.line 34
|
|
const/4 v3, 0x0
|
|
|
|
.line 35
|
|
invoke-virtual {v2, v3}, Landroid/os/Handler;->removeCallbacks(Ljava/lang/Runnable;)V
|
|
|
|
.line 36
|
|
.line 37
|
|
.line 38
|
|
:cond_1
|
|
iput-object v1, p0, Landroidx/emoji2/text/FontRequestEmojiCompatConfig$FontRequestMetadataLoader;->e:Landroid/os/Handler;
|
|
|
|
.line 39
|
|
.line 40
|
|
iget-object v2, p0, Landroidx/emoji2/text/FontRequestEmojiCompatConfig$FontRequestMetadataLoader;->g:Ljava/util/concurrent/ThreadPoolExecutor;
|
|
|
|
.line 41
|
|
.line 42
|
|
if-eqz v2, :cond_2
|
|
|
|
.line 43
|
|
.line 44
|
|
invoke-virtual {v2}, Ljava/util/concurrent/ThreadPoolExecutor;->shutdown()V
|
|
|
|
.line 45
|
|
.line 46
|
|
.line 47
|
|
:cond_2
|
|
iput-object v1, p0, Landroidx/emoji2/text/FontRequestEmojiCompatConfig$FontRequestMetadataLoader;->f:Ljava/util/concurrent/ThreadPoolExecutor;
|
|
|
|
.line 48
|
|
.line 49
|
|
iput-object v1, p0, Landroidx/emoji2/text/FontRequestEmojiCompatConfig$FontRequestMetadataLoader;->g:Ljava/util/concurrent/ThreadPoolExecutor;
|
|
|
|
.line 50
|
|
.line 51
|
|
monitor-exit v0
|
|
|
|
.line 52
|
|
return-void
|
|
|
|
.line 53
|
|
:goto_1
|
|
monitor-exit v0
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
.line 54
|
|
throw v1
|
|
.end method
|
|
|
|
.method public final c()V
|
|
.locals 10
|
|
|
|
.line 1
|
|
iget-object v1, p0, Landroidx/emoji2/text/FontRequestEmojiCompatConfig$FontRequestMetadataLoader;->d:Ljava/lang/Object;
|
|
|
|
.line 2
|
|
.line 3
|
|
monitor-enter v1
|
|
|
|
.line 4
|
|
:try_start_0
|
|
iget-object v0, p0, Landroidx/emoji2/text/FontRequestEmojiCompatConfig$FontRequestMetadataLoader;->h:Landroidx/emoji2/text/EmojiCompat$MetadataRepoLoaderCallback;
|
|
|
|
.line 5
|
|
.line 6
|
|
if-nez v0, :cond_0
|
|
|
|
.line 7
|
|
.line 8
|
|
monitor-exit v1
|
|
|
|
.line 9
|
|
return-void
|
|
|
|
.line 10
|
|
:catchall_0
|
|
move-exception v0
|
|
|
|
.line 11
|
|
goto :goto_0
|
|
|
|
.line 12
|
|
:cond_0
|
|
iget-object v0, p0, Landroidx/emoji2/text/FontRequestEmojiCompatConfig$FontRequestMetadataLoader;->f:Ljava/util/concurrent/ThreadPoolExecutor;
|
|
|
|
.line 13
|
|
.line 14
|
|
if-nez v0, :cond_1
|
|
|
|
.line 15
|
|
.line 16
|
|
const-string v0, "emojiCompat"
|
|
|
|
.line 17
|
|
.line 18
|
|
new-instance v9, Landroidx/emoji2/text/a;
|
|
|
|
.line 19
|
|
.line 20
|
|
invoke-direct {v9, v0}, Landroidx/emoji2/text/a;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 21
|
|
.line 22
|
|
.line 23
|
|
new-instance v2, Ljava/util/concurrent/ThreadPoolExecutor;
|
|
|
|
.line 24
|
|
.line 25
|
|
sget-object v7, Ljava/util/concurrent/TimeUnit;->SECONDS:Ljava/util/concurrent/TimeUnit;
|
|
|
|
.line 26
|
|
.line 27
|
|
new-instance v8, Ljava/util/concurrent/LinkedBlockingDeque;
|
|
|
|
.line 28
|
|
.line 29
|
|
invoke-direct {v8}, Ljava/util/concurrent/LinkedBlockingDeque;-><init>()V
|
|
|
|
.line 30
|
|
.line 31
|
|
.line 32
|
|
const/4 v3, 0x0
|
|
|
|
.line 33
|
|
const/4 v4, 0x1
|
|
|
|
.line 34
|
|
const-wide/16 v5, 0xf
|
|
|
|
.line 35
|
|
.line 36
|
|
invoke-direct/range {v2 .. v9}, Ljava/util/concurrent/ThreadPoolExecutor;-><init>(IIJLjava/util/concurrent/TimeUnit;Ljava/util/concurrent/BlockingQueue;Ljava/util/concurrent/ThreadFactory;)V
|
|
|
|
.line 37
|
|
.line 38
|
|
.line 39
|
|
const/4 v0, 0x1
|
|
|
|
.line 40
|
|
invoke-virtual {v2, v0}, Ljava/util/concurrent/ThreadPoolExecutor;->allowCoreThreadTimeOut(Z)V
|
|
|
|
.line 41
|
|
.line 42
|
|
.line 43
|
|
iput-object v2, p0, Landroidx/emoji2/text/FontRequestEmojiCompatConfig$FontRequestMetadataLoader;->g:Ljava/util/concurrent/ThreadPoolExecutor;
|
|
|
|
.line 44
|
|
.line 45
|
|
iput-object v2, p0, Landroidx/emoji2/text/FontRequestEmojiCompatConfig$FontRequestMetadataLoader;->f:Ljava/util/concurrent/ThreadPoolExecutor;
|
|
|
|
.line 46
|
|
.line 47
|
|
:cond_1
|
|
iget-object v0, p0, Landroidx/emoji2/text/FontRequestEmojiCompatConfig$FontRequestMetadataLoader;->f:Ljava/util/concurrent/ThreadPoolExecutor;
|
|
|
|
.line 48
|
|
.line 49
|
|
new-instance v2, Landroidx/emoji2/text/c;
|
|
|
|
.line 50
|
|
.line 51
|
|
invoke-direct {v2, p0}, Landroidx/emoji2/text/c;-><init>(Landroidx/emoji2/text/FontRequestEmojiCompatConfig$FontRequestMetadataLoader;)V
|
|
|
|
.line 52
|
|
.line 53
|
|
.line 54
|
|
invoke-virtual {v0, v2}, Ljava/util/concurrent/ThreadPoolExecutor;->execute(Ljava/lang/Runnable;)V
|
|
|
|
.line 55
|
|
.line 56
|
|
.line 57
|
|
monitor-exit v1
|
|
|
|
.line 58
|
|
return-void
|
|
|
|
.line 59
|
|
:goto_0
|
|
monitor-exit v1
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
.line 60
|
|
throw v0
|
|
.end method
|
|
|
|
.method public final d()Landroidx/core/provider/FontsContractCompat$FontInfo;
|
|
.locals 4
|
|
|
|
.line 1
|
|
:try_start_0
|
|
iget-object v0, p0, Landroidx/emoji2/text/FontRequestEmojiCompatConfig$FontRequestMetadataLoader;->c:Landroidx/emoji2/text/FontRequestEmojiCompatConfig$FontProviderHelper;
|
|
|
|
.line 2
|
|
.line 3
|
|
iget-object v1, p0, Landroidx/emoji2/text/FontRequestEmojiCompatConfig$FontRequestMetadataLoader;->a:Landroid/content/Context;
|
|
|
|
.line 4
|
|
.line 5
|
|
iget-object v2, p0, Landroidx/emoji2/text/FontRequestEmojiCompatConfig$FontRequestMetadataLoader;->b:Landroidx/core/provider/FontRequest;
|
|
|
|
.line 6
|
|
.line 7
|
|
invoke-virtual {v0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
invoke-static {v1, v2}, Landroidx/core/provider/FontsContractCompat;->a(Landroid/content/Context;Landroidx/core/provider/FontRequest;)Landroidx/core/provider/FontsContractCompat$FontFamilyResult;
|
|
|
|
.line 11
|
|
.line 12
|
|
.line 13
|
|
move-result-object v0
|
|
:try_end_0
|
|
.catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
.line 14
|
|
iget v1, v0, Landroidx/core/provider/FontsContractCompat$FontFamilyResult;->a:I
|
|
|
|
.line 15
|
|
.line 16
|
|
if-nez v1, :cond_1
|
|
|
|
.line 17
|
|
.line 18
|
|
iget-object v0, v0, Landroidx/core/provider/FontsContractCompat$FontFamilyResult;->b:Ljava/util/List;
|
|
|
|
.line 19
|
|
.line 20
|
|
const/4 v1, 0x0
|
|
|
|
.line 21
|
|
invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
.line 22
|
|
.line 23
|
|
.line 24
|
|
move-result-object v0
|
|
|
|
.line 25
|
|
check-cast v0, [Landroidx/core/provider/FontsContractCompat$FontInfo;
|
|
|
|
.line 26
|
|
.line 27
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 28
|
|
.line 29
|
|
array-length v2, v0
|
|
|
|
.line 30
|
|
if-eqz v2, :cond_0
|
|
|
|
.line 31
|
|
.line 32
|
|
aget-object v0, v0, v1
|
|
|
|
.line 33
|
|
.line 34
|
|
return-object v0
|
|
|
|
.line 35
|
|
:cond_0
|
|
new-instance v0, Ljava/lang/RuntimeException;
|
|
|
|
.line 36
|
|
.line 37
|
|
const-string v1, "fetchFonts failed (empty result)"
|
|
|
|
.line 38
|
|
.line 39
|
|
invoke-direct {v0, v1}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 40
|
|
.line 41
|
|
.line 42
|
|
throw v0
|
|
|
|
.line 43
|
|
:cond_1
|
|
new-instance v0, Ljava/lang/RuntimeException;
|
|
|
|
.line 44
|
|
.line 45
|
|
const-string v2, "fetchFonts failed ("
|
|
|
|
.line 46
|
|
.line 47
|
|
const-string v3, ")"
|
|
|
|
.line 48
|
|
.line 49
|
|
invoke-static {v1, v2, v3}, Landroid/support/v4/media/a;->f(ILjava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
.line 50
|
|
.line 51
|
|
.line 52
|
|
move-result-object v1
|
|
|
|
.line 53
|
|
invoke-direct {v0, v1}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 54
|
|
.line 55
|
|
.line 56
|
|
throw v0
|
|
|
|
.line 57
|
|
:catch_0
|
|
move-exception v0
|
|
|
|
.line 58
|
|
new-instance v1, Ljava/lang/RuntimeException;
|
|
|
|
.line 59
|
|
.line 60
|
|
const-string v2, "provider not found"
|
|
|
|
.line 61
|
|
.line 62
|
|
invoke-direct {v1, v2, v0}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
|
|
|
|
.line 63
|
|
.line 64
|
|
.line 65
|
|
throw v1
|
|
.end method
|