* 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>
368 lines
9 KiB
Smali
368 lines
9 KiB
Smali
.class public Lcom/google/api/services/drive/Drive;
|
|
.super Lcom/google/api/client/googleapis/services/json/AbstractGoogleJsonClient;
|
|
.source "SourceFile"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/google/api/services/drive/Drive$Builder;,
|
|
Lcom/google/api/services/drive/Drive$Teamdrives;,
|
|
Lcom/google/api/services/drive/Drive$Revisions;,
|
|
Lcom/google/api/services/drive/Drive$Replies;,
|
|
Lcom/google/api/services/drive/Drive$Permissions;,
|
|
Lcom/google/api/services/drive/Drive$Files;,
|
|
Lcom/google/api/services/drive/Drive$Drives;,
|
|
Lcom/google/api/services/drive/Drive$Comments;,
|
|
Lcom/google/api/services/drive/Drive$Channels;,
|
|
Lcom/google/api/services/drive/Drive$Changes;,
|
|
Lcom/google/api/services/drive/Drive$About;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final DEFAULT_BASE_URL:Ljava/lang/String; = "https://www.googleapis.com/drive/v3/"
|
|
|
|
.field public static final DEFAULT_BATCH_PATH:Ljava/lang/String; = "batch/drive/v3"
|
|
|
|
.field public static final DEFAULT_MTLS_ROOT_URL:Ljava/lang/String; = "https://www.mtls.googleapis.com/"
|
|
|
|
.field public static final DEFAULT_ROOT_URL:Ljava/lang/String; = "https://www.googleapis.com/"
|
|
|
|
.field public static final DEFAULT_SERVICE_PATH:Ljava/lang/String; = "drive/v3/"
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 6
|
|
|
|
.line 1
|
|
sget-object v0, Lcom/google/api/client/googleapis/GoogleUtils;->MAJOR_VERSION:Ljava/lang/Integer;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
move-result v1
|
|
|
|
.line 7
|
|
const/4 v2, 0x0
|
|
|
|
.line 8
|
|
const/4 v3, 0x1
|
|
|
|
.line 9
|
|
if-ne v1, v3, :cond_0
|
|
|
|
.line 10
|
|
.line 11
|
|
sget-object v1, Lcom/google/api/client/googleapis/GoogleUtils;->MINOR_VERSION:Ljava/lang/Integer;
|
|
|
|
.line 12
|
|
.line 13
|
|
invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I
|
|
|
|
.line 14
|
|
.line 15
|
|
.line 16
|
|
move-result v4
|
|
|
|
.line 17
|
|
const/16 v5, 0x20
|
|
|
|
.line 18
|
|
.line 19
|
|
if-ge v4, v5, :cond_1
|
|
|
|
.line 20
|
|
.line 21
|
|
invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I
|
|
|
|
.line 22
|
|
.line 23
|
|
.line 24
|
|
move-result v1
|
|
|
|
.line 25
|
|
const/16 v4, 0x1f
|
|
|
|
.line 26
|
|
.line 27
|
|
if-ne v1, v4, :cond_0
|
|
|
|
.line 28
|
|
.line 29
|
|
sget-object v1, Lcom/google/api/client/googleapis/GoogleUtils;->BUGFIX_VERSION:Ljava/lang/Integer;
|
|
|
|
.line 30
|
|
.line 31
|
|
invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I
|
|
|
|
.line 32
|
|
.line 33
|
|
.line 34
|
|
move-result v1
|
|
|
|
.line 35
|
|
if-ge v1, v3, :cond_1
|
|
|
|
.line 36
|
|
.line 37
|
|
:cond_0
|
|
invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I
|
|
|
|
.line 38
|
|
.line 39
|
|
.line 40
|
|
move-result v0
|
|
|
|
.line 41
|
|
const/4 v1, 0x2
|
|
|
|
.line 42
|
|
if-lt v0, v1, :cond_2
|
|
|
|
.line 43
|
|
.line 44
|
|
:cond_1
|
|
move v0, v3
|
|
|
|
.line 45
|
|
goto :goto_0
|
|
|
|
.line 46
|
|
:cond_2
|
|
move v0, v2
|
|
|
|
.line 47
|
|
:goto_0
|
|
new-array v1, v3, [Ljava/lang/Object;
|
|
|
|
.line 48
|
|
.line 49
|
|
sget-object v3, Lcom/google/api/client/googleapis/GoogleUtils;->VERSION:Ljava/lang/String;
|
|
|
|
.line 50
|
|
.line 51
|
|
aput-object v3, v1, v2
|
|
|
|
.line 52
|
|
.line 53
|
|
const-string v2, "You are currently running with version %s of google-api-client. You need at least version 1.31.1 of google-api-client to run version 2.0.0 of the Drive API library."
|
|
|
|
.line 54
|
|
.line 55
|
|
invoke-static {v0, v2, v1}, Lcom/google/api/client/util/Preconditions;->checkState(ZLjava/lang/String;[Ljava/lang/Object;)V
|
|
|
|
.line 56
|
|
.line 57
|
|
.line 58
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Lcom/google/api/client/http/HttpTransport;Lcom/google/api/client/json/JsonFactory;Lcom/google/api/client/http/HttpRequestInitializer;)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
new-instance v0, Lcom/google/api/services/drive/Drive$Builder;
|
|
|
|
invoke-direct {v0, p1, p2, p3}, Lcom/google/api/services/drive/Drive$Builder;-><init>(Lcom/google/api/client/http/HttpTransport;Lcom/google/api/client/json/JsonFactory;Lcom/google/api/client/http/HttpRequestInitializer;)V
|
|
|
|
invoke-direct {p0, v0}, Lcom/google/api/services/drive/Drive;-><init>(Lcom/google/api/services/drive/Drive$Builder;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Lcom/google/api/services/drive/Drive$Builder;)V
|
|
.locals 0
|
|
|
|
.line 2
|
|
invoke-direct {p0, p1}, Lcom/google/api/client/googleapis/services/json/AbstractGoogleJsonClient;-><init>(Lcom/google/api/client/googleapis/services/json/AbstractGoogleJsonClient$Builder;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public about()Lcom/google/api/services/drive/Drive$About;
|
|
.locals 1
|
|
|
|
.line 1
|
|
new-instance v0, Lcom/google/api/services/drive/Drive$About;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-direct {v0, p0}, Lcom/google/api/services/drive/Drive$About;-><init>(Lcom/google/api/services/drive/Drive;)V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public changes()Lcom/google/api/services/drive/Drive$Changes;
|
|
.locals 1
|
|
|
|
.line 1
|
|
new-instance v0, Lcom/google/api/services/drive/Drive$Changes;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-direct {v0, p0}, Lcom/google/api/services/drive/Drive$Changes;-><init>(Lcom/google/api/services/drive/Drive;)V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public channels()Lcom/google/api/services/drive/Drive$Channels;
|
|
.locals 1
|
|
|
|
.line 1
|
|
new-instance v0, Lcom/google/api/services/drive/Drive$Channels;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-direct {v0, p0}, Lcom/google/api/services/drive/Drive$Channels;-><init>(Lcom/google/api/services/drive/Drive;)V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public comments()Lcom/google/api/services/drive/Drive$Comments;
|
|
.locals 1
|
|
|
|
.line 1
|
|
new-instance v0, Lcom/google/api/services/drive/Drive$Comments;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-direct {v0, p0}, Lcom/google/api/services/drive/Drive$Comments;-><init>(Lcom/google/api/services/drive/Drive;)V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public drives()Lcom/google/api/services/drive/Drive$Drives;
|
|
.locals 1
|
|
|
|
.line 1
|
|
new-instance v0, Lcom/google/api/services/drive/Drive$Drives;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-direct {v0, p0}, Lcom/google/api/services/drive/Drive$Drives;-><init>(Lcom/google/api/services/drive/Drive;)V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public files()Lcom/google/api/services/drive/Drive$Files;
|
|
.locals 1
|
|
|
|
.line 1
|
|
new-instance v0, Lcom/google/api/services/drive/Drive$Files;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-direct {v0, p0}, Lcom/google/api/services/drive/Drive$Files;-><init>(Lcom/google/api/services/drive/Drive;)V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public initialize(Lcom/google/api/client/googleapis/services/AbstractGoogleClientRequest;)V
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lcom/google/api/client/googleapis/services/AbstractGoogleClientRequest<",
|
|
"*>;)V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-super {p0, p1}, Lcom/google/api/client/googleapis/services/AbstractGoogleClient;->initialize(Lcom/google/api/client/googleapis/services/AbstractGoogleClientRequest;)V
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
return-void
|
|
.end method
|
|
|
|
.method public permissions()Lcom/google/api/services/drive/Drive$Permissions;
|
|
.locals 1
|
|
|
|
.line 1
|
|
new-instance v0, Lcom/google/api/services/drive/Drive$Permissions;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-direct {v0, p0}, Lcom/google/api/services/drive/Drive$Permissions;-><init>(Lcom/google/api/services/drive/Drive;)V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public replies()Lcom/google/api/services/drive/Drive$Replies;
|
|
.locals 1
|
|
|
|
.line 1
|
|
new-instance v0, Lcom/google/api/services/drive/Drive$Replies;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-direct {v0, p0}, Lcom/google/api/services/drive/Drive$Replies;-><init>(Lcom/google/api/services/drive/Drive;)V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public revisions()Lcom/google/api/services/drive/Drive$Revisions;
|
|
.locals 1
|
|
|
|
.line 1
|
|
new-instance v0, Lcom/google/api/services/drive/Drive$Revisions;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-direct {v0, p0}, Lcom/google/api/services/drive/Drive$Revisions;-><init>(Lcom/google/api/services/drive/Drive;)V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public teamdrives()Lcom/google/api/services/drive/Drive$Teamdrives;
|
|
.locals 1
|
|
|
|
.line 1
|
|
new-instance v0, Lcom/google/api/services/drive/Drive$Teamdrives;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-direct {v0, p0}, Lcom/google/api/services/drive/Drive$Teamdrives;-><init>(Lcom/google/api/services/drive/Drive;)V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
return-object v0
|
|
.end method
|