* 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>
530 lines
11 KiB
Smali
530 lines
11 KiB
Smali
.class public abstract Landroidx/cursoradapter/widget/CursorAdapter;
|
|
.super Landroid/widget/BaseAdapter;
|
|
.source "SourceFile"
|
|
|
|
# interfaces
|
|
.implements Landroid/widget/Filterable;
|
|
.implements Landroidx/cursoradapter/widget/CursorFilter$CursorFilterClient;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Landroidx/cursoradapter/widget/CursorAdapter$MyDataSetObserver;,
|
|
Landroidx/cursoradapter/widget/CursorAdapter$ChangeObserver;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public c:Z
|
|
|
|
.field public f:Landroid/database/Cursor;
|
|
|
|
.field public g:I
|
|
|
|
.field public h:Landroidx/cursoradapter/widget/CursorFilter;
|
|
|
|
|
|
# virtual methods
|
|
.method public a(Landroid/database/Cursor;)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-virtual {p0, p1}, Landroidx/cursoradapter/widget/CursorAdapter;->h(Landroid/database/Cursor;)Landroid/database/Cursor;
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result-object p1
|
|
|
|
.line 5
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 6
|
|
.line 7
|
|
invoke-interface {p1}, Landroid/database/Cursor;->close()V
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public c(Landroid/database/Cursor;)Ljava/lang/String;
|
|
.locals 0
|
|
|
|
.line 1
|
|
if-nez p1, :cond_0
|
|
|
|
.line 2
|
|
.line 3
|
|
const-string p1, ""
|
|
|
|
.line 4
|
|
.line 5
|
|
return-object p1
|
|
|
|
.line 6
|
|
:cond_0
|
|
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
.line 7
|
|
.line 8
|
|
.line 9
|
|
move-result-object p1
|
|
|
|
.line 10
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public d(Ljava/lang/CharSequence;)Landroid/database/Cursor;
|
|
.locals 0
|
|
|
|
.line 1
|
|
iget-object p1, p0, Landroidx/cursoradapter/widget/CursorAdapter;->f:Landroid/database/Cursor;
|
|
|
|
.line 2
|
|
.line 3
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public abstract e(Landroid/view/View;Landroid/database/Cursor;)V
|
|
.end method
|
|
|
|
.method public f(Landroid/database/Cursor;Landroid/view/ViewGroup;)Landroid/view/View;
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-virtual {p0, p1, p2}, Landroidx/cursoradapter/widget/CursorAdapter;->g(Landroid/database/Cursor;Landroid/view/ViewGroup;)Landroid/view/View;
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result-object p1
|
|
|
|
.line 5
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public abstract g(Landroid/database/Cursor;Landroid/view/ViewGroup;)Landroid/view/View;
|
|
.end method
|
|
|
|
.method public final getCount()I
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-boolean v0, p0, Landroidx/cursoradapter/widget/CursorAdapter;->c:Z
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
iget-object v0, p0, Landroidx/cursoradapter/widget/CursorAdapter;->f:Landroid/database/Cursor;
|
|
|
|
.line 6
|
|
.line 7
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 8
|
|
.line 9
|
|
invoke-interface {v0}, Landroid/database/Cursor;->getCount()I
|
|
|
|
.line 10
|
|
.line 11
|
|
.line 12
|
|
move-result v0
|
|
|
|
.line 13
|
|
return v0
|
|
|
|
.line 14
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
.line 15
|
|
return v0
|
|
.end method
|
|
|
|
.method public getDropDownView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-boolean v0, p0, Landroidx/cursoradapter/widget/CursorAdapter;->c:Z
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 4
|
|
.line 5
|
|
iget-object v0, p0, Landroidx/cursoradapter/widget/CursorAdapter;->f:Landroid/database/Cursor;
|
|
|
|
.line 6
|
|
.line 7
|
|
invoke-interface {v0, p1}, Landroid/database/Cursor;->moveToPosition(I)Z
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
if-nez p2, :cond_0
|
|
|
|
.line 11
|
|
.line 12
|
|
iget-object p1, p0, Landroidx/cursoradapter/widget/CursorAdapter;->f:Landroid/database/Cursor;
|
|
|
|
.line 13
|
|
.line 14
|
|
invoke-virtual {p0, p1, p3}, Landroidx/cursoradapter/widget/CursorAdapter;->f(Landroid/database/Cursor;Landroid/view/ViewGroup;)Landroid/view/View;
|
|
|
|
.line 15
|
|
.line 16
|
|
.line 17
|
|
move-result-object p2
|
|
|
|
.line 18
|
|
:cond_0
|
|
iget-object p1, p0, Landroidx/cursoradapter/widget/CursorAdapter;->f:Landroid/database/Cursor;
|
|
|
|
.line 19
|
|
.line 20
|
|
invoke-virtual {p0, p2, p1}, Landroidx/cursoradapter/widget/CursorAdapter;->e(Landroid/view/View;Landroid/database/Cursor;)V
|
|
|
|
.line 21
|
|
.line 22
|
|
.line 23
|
|
return-object p2
|
|
|
|
.line 24
|
|
:cond_1
|
|
const/4 p1, 0x0
|
|
|
|
.line 25
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public final getFilter()Landroid/widget/Filter;
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Landroidx/cursoradapter/widget/CursorAdapter;->h:Landroidx/cursoradapter/widget/CursorFilter;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-nez v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
new-instance v0, Landroidx/cursoradapter/widget/CursorFilter;
|
|
|
|
.line 6
|
|
.line 7
|
|
invoke-direct {v0}, Landroid/widget/Filter;-><init>()V
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
iput-object p0, v0, Landroidx/cursoradapter/widget/CursorFilter;->a:Landroidx/cursoradapter/widget/CursorAdapter;
|
|
|
|
.line 11
|
|
.line 12
|
|
iput-object v0, p0, Landroidx/cursoradapter/widget/CursorAdapter;->h:Landroidx/cursoradapter/widget/CursorFilter;
|
|
|
|
.line 13
|
|
.line 14
|
|
:cond_0
|
|
iget-object v0, p0, Landroidx/cursoradapter/widget/CursorAdapter;->h:Landroidx/cursoradapter/widget/CursorFilter;
|
|
|
|
.line 15
|
|
.line 16
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final getItem(I)Ljava/lang/Object;
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-boolean v0, p0, Landroidx/cursoradapter/widget/CursorAdapter;->c:Z
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
iget-object v0, p0, Landroidx/cursoradapter/widget/CursorAdapter;->f:Landroid/database/Cursor;
|
|
|
|
.line 6
|
|
.line 7
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 8
|
|
.line 9
|
|
invoke-interface {v0, p1}, Landroid/database/Cursor;->moveToPosition(I)Z
|
|
|
|
.line 10
|
|
.line 11
|
|
.line 12
|
|
iget-object p1, p0, Landroidx/cursoradapter/widget/CursorAdapter;->f:Landroid/database/Cursor;
|
|
|
|
.line 13
|
|
.line 14
|
|
return-object p1
|
|
|
|
.line 15
|
|
:cond_0
|
|
const/4 p1, 0x0
|
|
|
|
.line 16
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public final getItemId(I)J
|
|
.locals 3
|
|
|
|
.line 1
|
|
iget-boolean v0, p0, Landroidx/cursoradapter/widget/CursorAdapter;->c:Z
|
|
|
|
.line 2
|
|
.line 3
|
|
const-wide/16 v1, 0x0
|
|
|
|
.line 4
|
|
.line 5
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 6
|
|
.line 7
|
|
iget-object v0, p0, Landroidx/cursoradapter/widget/CursorAdapter;->f:Landroid/database/Cursor;
|
|
|
|
.line 8
|
|
.line 9
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 10
|
|
.line 11
|
|
invoke-interface {v0, p1}, Landroid/database/Cursor;->moveToPosition(I)Z
|
|
|
|
.line 12
|
|
.line 13
|
|
.line 14
|
|
move-result p1
|
|
|
|
.line 15
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 16
|
|
.line 17
|
|
iget-object p1, p0, Landroidx/cursoradapter/widget/CursorAdapter;->f:Landroid/database/Cursor;
|
|
|
|
.line 18
|
|
.line 19
|
|
iget v0, p0, Landroidx/cursoradapter/widget/CursorAdapter;->g:I
|
|
|
|
.line 20
|
|
.line 21
|
|
invoke-interface {p1, v0}, Landroid/database/Cursor;->getLong(I)J
|
|
|
|
.line 22
|
|
.line 23
|
|
.line 24
|
|
move-result-wide v0
|
|
|
|
.line 25
|
|
return-wide v0
|
|
|
|
.line 26
|
|
:cond_0
|
|
return-wide v1
|
|
.end method
|
|
|
|
.method public getView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-boolean v0, p0, Landroidx/cursoradapter/widget/CursorAdapter;->c:Z
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eqz v0, :cond_2
|
|
|
|
.line 4
|
|
.line 5
|
|
iget-object v0, p0, Landroidx/cursoradapter/widget/CursorAdapter;->f:Landroid/database/Cursor;
|
|
|
|
.line 6
|
|
.line 7
|
|
invoke-interface {v0, p1}, Landroid/database/Cursor;->moveToPosition(I)Z
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
move-result v0
|
|
|
|
.line 11
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 12
|
|
.line 13
|
|
if-nez p2, :cond_0
|
|
|
|
.line 14
|
|
.line 15
|
|
iget-object p1, p0, Landroidx/cursoradapter/widget/CursorAdapter;->f:Landroid/database/Cursor;
|
|
|
|
.line 16
|
|
.line 17
|
|
invoke-virtual {p0, p1, p3}, Landroidx/cursoradapter/widget/CursorAdapter;->g(Landroid/database/Cursor;Landroid/view/ViewGroup;)Landroid/view/View;
|
|
|
|
.line 18
|
|
.line 19
|
|
.line 20
|
|
move-result-object p2
|
|
|
|
.line 21
|
|
:cond_0
|
|
iget-object p1, p0, Landroidx/cursoradapter/widget/CursorAdapter;->f:Landroid/database/Cursor;
|
|
|
|
.line 22
|
|
.line 23
|
|
invoke-virtual {p0, p2, p1}, Landroidx/cursoradapter/widget/CursorAdapter;->e(Landroid/view/View;Landroid/database/Cursor;)V
|
|
|
|
.line 24
|
|
.line 25
|
|
.line 26
|
|
return-object p2
|
|
|
|
.line 27
|
|
:cond_1
|
|
new-instance p2, Ljava/lang/IllegalStateException;
|
|
|
|
.line 28
|
|
.line 29
|
|
const-string p3, "couldn\'t move cursor to position "
|
|
|
|
.line 30
|
|
.line 31
|
|
invoke-static {p1, p3}, Landroid/support/v4/media/a;->e(ILjava/lang/String;)Ljava/lang/String;
|
|
|
|
.line 32
|
|
.line 33
|
|
.line 34
|
|
move-result-object p1
|
|
|
|
.line 35
|
|
invoke-direct {p2, p1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 36
|
|
.line 37
|
|
.line 38
|
|
throw p2
|
|
|
|
.line 39
|
|
:cond_2
|
|
new-instance p1, Ljava/lang/IllegalStateException;
|
|
|
|
.line 40
|
|
.line 41
|
|
const-string p2, "this should only be called when the cursor is valid"
|
|
|
|
.line 42
|
|
.line 43
|
|
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 44
|
|
.line 45
|
|
.line 46
|
|
throw p1
|
|
.end method
|
|
|
|
.method public h(Landroid/database/Cursor;)Landroid/database/Cursor;
|
|
.locals 2
|
|
|
|
.line 1
|
|
iget-object v0, p0, Landroidx/cursoradapter/widget/CursorAdapter;->f:Landroid/database/Cursor;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-ne p1, v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
const/4 p1, 0x0
|
|
|
|
.line 6
|
|
return-object p1
|
|
|
|
.line 7
|
|
:cond_0
|
|
iput-object p1, p0, Landroidx/cursoradapter/widget/CursorAdapter;->f:Landroid/database/Cursor;
|
|
|
|
.line 8
|
|
.line 9
|
|
if-eqz p1, :cond_1
|
|
|
|
.line 10
|
|
.line 11
|
|
const-string v1, "_id"
|
|
|
|
.line 12
|
|
.line 13
|
|
invoke-interface {p1, v1}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
|
|
|
.line 14
|
|
.line 15
|
|
.line 16
|
|
move-result p1
|
|
|
|
.line 17
|
|
iput p1, p0, Landroidx/cursoradapter/widget/CursorAdapter;->g:I
|
|
|
|
.line 18
|
|
.line 19
|
|
const/4 p1, 0x1
|
|
|
|
.line 20
|
|
iput-boolean p1, p0, Landroidx/cursoradapter/widget/CursorAdapter;->c:Z
|
|
|
|
.line 21
|
|
.line 22
|
|
invoke-virtual {p0}, Landroid/widget/BaseAdapter;->notifyDataSetChanged()V
|
|
|
|
.line 23
|
|
.line 24
|
|
.line 25
|
|
return-object v0
|
|
|
|
.line 26
|
|
:cond_1
|
|
const/4 p1, -0x1
|
|
|
|
.line 27
|
|
iput p1, p0, Landroidx/cursoradapter/widget/CursorAdapter;->g:I
|
|
|
|
.line 28
|
|
.line 29
|
|
const/4 p1, 0x0
|
|
|
|
.line 30
|
|
iput-boolean p1, p0, Landroidx/cursoradapter/widget/CursorAdapter;->c:Z
|
|
|
|
.line 31
|
|
.line 32
|
|
invoke-virtual {p0}, Landroid/widget/BaseAdapter;->notifyDataSetInvalidated()V
|
|
|
|
.line 33
|
|
.line 34
|
|
.line 35
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public hasStableIds()Z
|
|
.locals 1
|
|
|
|
const/4 v0, 0x1
|
|
|
|
return v0
|
|
.end method
|