* 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>
1684 lines
32 KiB
Smali
1684 lines
32 KiB
Smali
.class public Landroidx/core/content/FileProvider;
|
|
.super Landroid/content/ContentProvider;
|
|
.source "SourceFile"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Landroidx/core/content/FileProvider$PathStrategy;,
|
|
Landroidx/core/content/FileProvider$SimplePathStrategy;,
|
|
Landroidx/core/content/FileProvider$Api21Impl;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final h:[Ljava/lang/String;
|
|
|
|
.field public static final i:Ljava/io/File;
|
|
|
|
.field public static final j:Ljava/util/HashMap;
|
|
|
|
|
|
# instance fields
|
|
.field public final c:Ljava/lang/Object;
|
|
|
|
.field public f:Ljava/lang/String;
|
|
|
|
.field public g:Landroidx/core/content/FileProvider$PathStrategy;
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 2
|
|
|
|
.line 1
|
|
const-string v0, "_display_name"
|
|
|
|
.line 2
|
|
.line 3
|
|
const-string v1, "_size"
|
|
|
|
.line 4
|
|
.line 5
|
|
filled-new-array {v0, v1}, [Ljava/lang/String;
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
move-result-object v0
|
|
|
|
.line 9
|
|
sput-object v0, Landroidx/core/content/FileProvider;->h:[Ljava/lang/String;
|
|
|
|
.line 10
|
|
.line 11
|
|
new-instance v0, Ljava/io/File;
|
|
|
|
.line 12
|
|
.line 13
|
|
const-string v1, "/"
|
|
|
|
.line 14
|
|
.line 15
|
|
invoke-direct {v0, v1}, Ljava/io/File;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 16
|
|
.line 17
|
|
.line 18
|
|
sput-object v0, Landroidx/core/content/FileProvider;->i:Ljava/io/File;
|
|
|
|
.line 19
|
|
.line 20
|
|
new-instance v0, Ljava/util/HashMap;
|
|
|
|
.line 21
|
|
.line 22
|
|
invoke-direct {v0}, Ljava/util/HashMap;-><init>()V
|
|
|
|
.line 23
|
|
.line 24
|
|
.line 25
|
|
sput-object v0, Landroidx/core/content/FileProvider;->j:Ljava/util/HashMap;
|
|
|
|
.line 26
|
|
.line 27
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>()V
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Landroid/content/ContentProvider;-><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/core/content/FileProvider;->c:Ljava/lang/Object;
|
|
|
|
.line 10
|
|
.line 11
|
|
return-void
|
|
.end method
|
|
|
|
.method public static a(Ljava/lang/String;)Ljava/lang/String;
|
|
.locals 3
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Ljava/lang/String;->length()I
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result v0
|
|
|
|
.line 5
|
|
if-lez v0, :cond_0
|
|
|
|
.line 6
|
|
.line 7
|
|
invoke-virtual {p0}, Ljava/lang/String;->length()I
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
move-result v0
|
|
|
|
.line 11
|
|
const/4 v1, 0x1
|
|
|
|
.line 12
|
|
sub-int/2addr v0, v1
|
|
|
|
.line 13
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->charAt(I)C
|
|
|
|
.line 14
|
|
.line 15
|
|
.line 16
|
|
move-result v0
|
|
|
|
.line 17
|
|
const/16 v2, 0x2f
|
|
|
|
.line 18
|
|
.line 19
|
|
if-ne v0, v2, :cond_0
|
|
|
|
.line 20
|
|
.line 21
|
|
const/4 v0, 0x0
|
|
|
|
.line 22
|
|
invoke-static {v1, v0, p0}, Landroid/support/v4/media/a;->d(IILjava/lang/String;)Ljava/lang/String;
|
|
|
|
.line 23
|
|
.line 24
|
|
.line 25
|
|
move-result-object p0
|
|
|
|
.line 26
|
|
:cond_0
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static c(Landroid/content/Context;Ljava/lang/String;)Landroidx/core/content/FileProvider$PathStrategy;
|
|
.locals 2
|
|
|
|
.line 1
|
|
sget-object v0, Landroidx/core/content/FileProvider;->j:Ljava/util/HashMap;
|
|
|
|
.line 2
|
|
.line 3
|
|
monitor-enter v0
|
|
|
|
.line 4
|
|
:try_start_0
|
|
invoke-virtual {v0, p1}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.line 5
|
|
.line 6
|
|
.line 7
|
|
move-result-object v1
|
|
|
|
.line 8
|
|
check-cast v1, Landroidx/core/content/FileProvider$PathStrategy;
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
.line 9
|
|
.line 10
|
|
if-nez v1, :cond_0
|
|
|
|
.line 11
|
|
.line 12
|
|
:try_start_1
|
|
invoke-static {p0, p1}, Landroidx/core/content/FileProvider;->e(Landroid/content/Context;Ljava/lang/String;)Landroidx/core/content/FileProvider$SimplePathStrategy;
|
|
|
|
.line 13
|
|
.line 14
|
|
.line 15
|
|
move-result-object v1
|
|
:try_end_1
|
|
.catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_1
|
|
.catch Lorg/xmlpull/v1/XmlPullParserException; {:try_start_1 .. :try_end_1} :catch_0
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
.line 16
|
|
:try_start_2
|
|
invoke-virtual {v0, p1, v1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.line 17
|
|
.line 18
|
|
.line 19
|
|
goto :goto_0
|
|
|
|
.line 20
|
|
:catchall_0
|
|
move-exception p0
|
|
|
|
.line 21
|
|
goto :goto_1
|
|
|
|
.line 22
|
|
:catch_0
|
|
move-exception p0
|
|
|
|
.line 23
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
.line 24
|
|
.line 25
|
|
const-string v1, "Failed to parse android.support.FILE_PROVIDER_PATHS meta-data"
|
|
|
|
.line 26
|
|
.line 27
|
|
invoke-direct {p1, v1, p0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
|
|
|
|
.line 28
|
|
.line 29
|
|
.line 30
|
|
throw p1
|
|
|
|
.line 31
|
|
:catch_1
|
|
move-exception p0
|
|
|
|
.line 32
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
.line 33
|
|
.line 34
|
|
const-string v1, "Failed to parse android.support.FILE_PROVIDER_PATHS meta-data"
|
|
|
|
.line 35
|
|
.line 36
|
|
invoke-direct {p1, v1, p0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
|
|
|
|
.line 37
|
|
.line 38
|
|
.line 39
|
|
throw p1
|
|
|
|
.line 40
|
|
:cond_0
|
|
:goto_0
|
|
monitor-exit v0
|
|
|
|
.line 41
|
|
return-object v1
|
|
|
|
.line 42
|
|
:goto_1
|
|
monitor-exit v0
|
|
:try_end_2
|
|
.catchall {:try_start_2 .. :try_end_2} :catchall_0
|
|
|
|
.line 43
|
|
throw p0
|
|
.end method
|
|
|
|
.method public static d(Landroid/content/Context;Ljava/lang/String;Ljava/io/File;)Landroid/net/Uri;
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-static {p0, p1}, Landroidx/core/content/FileProvider;->c(Landroid/content/Context;Ljava/lang/String;)Landroidx/core/content/FileProvider$PathStrategy;
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result-object p0
|
|
|
|
.line 5
|
|
invoke-interface {p0, p2}, Landroidx/core/content/FileProvider$PathStrategy;->b(Ljava/io/File;)Landroid/net/Uri;
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
move-result-object p0
|
|
|
|
.line 9
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static e(Landroid/content/Context;Ljava/lang/String;)Landroidx/core/content/FileProvider$SimplePathStrategy;
|
|
.locals 7
|
|
|
|
.line 1
|
|
new-instance v0, Landroidx/core/content/FileProvider$SimplePathStrategy;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-direct {v0, p1}, Landroidx/core/content/FileProvider$SimplePathStrategy;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
invoke-virtual {p0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
|
|
|
|
.line 7
|
|
.line 8
|
|
.line 9
|
|
move-result-object v1
|
|
|
|
.line 10
|
|
const/16 v2, 0x80
|
|
|
|
.line 11
|
|
.line 12
|
|
invoke-virtual {v1, p1, v2}, Landroid/content/pm/PackageManager;->resolveContentProvider(Ljava/lang/String;I)Landroid/content/pm/ProviderInfo;
|
|
|
|
.line 13
|
|
.line 14
|
|
.line 15
|
|
move-result-object v1
|
|
|
|
.line 16
|
|
if-eqz v1, :cond_c
|
|
|
|
.line 17
|
|
.line 18
|
|
invoke-virtual {p0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
|
|
|
|
.line 19
|
|
.line 20
|
|
.line 21
|
|
move-result-object p1
|
|
|
|
.line 22
|
|
const-string v2, "android.support.FILE_PROVIDER_PATHS"
|
|
|
|
.line 23
|
|
.line 24
|
|
invoke-virtual {v1, p1, v2}, Landroid/content/pm/PackageItemInfo;->loadXmlMetaData(Landroid/content/pm/PackageManager;Ljava/lang/String;)Landroid/content/res/XmlResourceParser;
|
|
|
|
.line 25
|
|
.line 26
|
|
.line 27
|
|
move-result-object p1
|
|
|
|
.line 28
|
|
if-eqz p1, :cond_b
|
|
|
|
.line 29
|
|
.line 30
|
|
:cond_0
|
|
:goto_0
|
|
invoke-interface {p1}, Lorg/xmlpull/v1/XmlPullParser;->next()I
|
|
|
|
.line 31
|
|
.line 32
|
|
.line 33
|
|
move-result v1
|
|
|
|
.line 34
|
|
const/4 v2, 0x1
|
|
|
|
.line 35
|
|
if-eq v1, v2, :cond_a
|
|
|
|
.line 36
|
|
.line 37
|
|
const/4 v2, 0x2
|
|
|
|
.line 38
|
|
if-ne v1, v2, :cond_0
|
|
|
|
.line 39
|
|
.line 40
|
|
invoke-interface {p1}, Lorg/xmlpull/v1/XmlPullParser;->getName()Ljava/lang/String;
|
|
|
|
.line 41
|
|
.line 42
|
|
.line 43
|
|
move-result-object v1
|
|
|
|
.line 44
|
|
const-string v2, "name"
|
|
|
|
.line 45
|
|
.line 46
|
|
const/4 v3, 0x0
|
|
|
|
.line 47
|
|
invoke-interface {p1, v3, v2}, Landroid/util/AttributeSet;->getAttributeValue(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
.line 48
|
|
.line 49
|
|
.line 50
|
|
move-result-object v2
|
|
|
|
.line 51
|
|
const-string v4, "path"
|
|
|
|
.line 52
|
|
.line 53
|
|
invoke-interface {p1, v3, v4}, Landroid/util/AttributeSet;->getAttributeValue(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
.line 54
|
|
.line 55
|
|
.line 56
|
|
move-result-object v4
|
|
|
|
.line 57
|
|
const-string v5, "root-path"
|
|
|
|
.line 58
|
|
.line 59
|
|
invoke-virtual {v5, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
.line 60
|
|
.line 61
|
|
.line 62
|
|
move-result v5
|
|
|
|
.line 63
|
|
const/4 v6, 0x0
|
|
|
|
.line 64
|
|
if-eqz v5, :cond_1
|
|
|
|
.line 65
|
|
.line 66
|
|
sget-object v3, Landroidx/core/content/FileProvider;->i:Ljava/io/File;
|
|
|
|
.line 67
|
|
.line 68
|
|
goto :goto_1
|
|
|
|
.line 69
|
|
:cond_1
|
|
const-string v5, "files-path"
|
|
|
|
.line 70
|
|
.line 71
|
|
invoke-virtual {v5, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
.line 72
|
|
.line 73
|
|
.line 74
|
|
move-result v5
|
|
|
|
.line 75
|
|
if-eqz v5, :cond_2
|
|
|
|
.line 76
|
|
.line 77
|
|
invoke-virtual {p0}, Landroid/content/Context;->getFilesDir()Ljava/io/File;
|
|
|
|
.line 78
|
|
.line 79
|
|
.line 80
|
|
move-result-object v3
|
|
|
|
.line 81
|
|
goto :goto_1
|
|
|
|
.line 82
|
|
:cond_2
|
|
const-string v5, "cache-path"
|
|
|
|
.line 83
|
|
.line 84
|
|
invoke-virtual {v5, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
.line 85
|
|
.line 86
|
|
.line 87
|
|
move-result v5
|
|
|
|
.line 88
|
|
if-eqz v5, :cond_3
|
|
|
|
.line 89
|
|
.line 90
|
|
invoke-virtual {p0}, Landroid/content/Context;->getCacheDir()Ljava/io/File;
|
|
|
|
.line 91
|
|
.line 92
|
|
.line 93
|
|
move-result-object v3
|
|
|
|
.line 94
|
|
goto :goto_1
|
|
|
|
.line 95
|
|
:cond_3
|
|
const-string v5, "external-path"
|
|
|
|
.line 96
|
|
.line 97
|
|
invoke-virtual {v5, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
.line 98
|
|
.line 99
|
|
.line 100
|
|
move-result v5
|
|
|
|
.line 101
|
|
if-eqz v5, :cond_4
|
|
|
|
.line 102
|
|
.line 103
|
|
invoke-static {}, Landroid/os/Environment;->getExternalStorageDirectory()Ljava/io/File;
|
|
|
|
.line 104
|
|
.line 105
|
|
.line 106
|
|
move-result-object v3
|
|
|
|
.line 107
|
|
goto :goto_1
|
|
|
|
.line 108
|
|
:cond_4
|
|
const-string v5, "external-files-path"
|
|
|
|
.line 109
|
|
.line 110
|
|
invoke-virtual {v5, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
.line 111
|
|
.line 112
|
|
.line 113
|
|
move-result v5
|
|
|
|
.line 114
|
|
if-eqz v5, :cond_5
|
|
|
|
.line 115
|
|
.line 116
|
|
invoke-virtual {p0, v3}, Landroid/content/Context;->getExternalFilesDirs(Ljava/lang/String;)[Ljava/io/File;
|
|
|
|
.line 117
|
|
.line 118
|
|
.line 119
|
|
move-result-object v1
|
|
|
|
.line 120
|
|
array-length v5, v1
|
|
|
|
.line 121
|
|
if-lez v5, :cond_7
|
|
|
|
.line 122
|
|
.line 123
|
|
aget-object v3, v1, v6
|
|
|
|
.line 124
|
|
.line 125
|
|
goto :goto_1
|
|
|
|
.line 126
|
|
:cond_5
|
|
const-string v5, "external-cache-path"
|
|
|
|
.line 127
|
|
.line 128
|
|
invoke-virtual {v5, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
.line 129
|
|
.line 130
|
|
.line 131
|
|
move-result v5
|
|
|
|
.line 132
|
|
if-eqz v5, :cond_6
|
|
|
|
.line 133
|
|
.line 134
|
|
invoke-virtual {p0}, Landroid/content/Context;->getExternalCacheDirs()[Ljava/io/File;
|
|
|
|
.line 135
|
|
.line 136
|
|
.line 137
|
|
move-result-object v1
|
|
|
|
.line 138
|
|
array-length v5, v1
|
|
|
|
.line 139
|
|
if-lez v5, :cond_7
|
|
|
|
.line 140
|
|
.line 141
|
|
aget-object v3, v1, v6
|
|
|
|
.line 142
|
|
.line 143
|
|
goto :goto_1
|
|
|
|
.line 144
|
|
:cond_6
|
|
const-string v5, "external-media-path"
|
|
|
|
.line 145
|
|
.line 146
|
|
invoke-virtual {v5, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
.line 147
|
|
.line 148
|
|
.line 149
|
|
move-result v1
|
|
|
|
.line 150
|
|
if-eqz v1, :cond_7
|
|
|
|
.line 151
|
|
.line 152
|
|
invoke-virtual {p0}, Landroid/content/Context;->getExternalMediaDirs()[Ljava/io/File;
|
|
|
|
.line 153
|
|
.line 154
|
|
.line 155
|
|
move-result-object v1
|
|
|
|
.line 156
|
|
array-length v5, v1
|
|
|
|
.line 157
|
|
if-lez v5, :cond_7
|
|
|
|
.line 158
|
|
.line 159
|
|
aget-object v3, v1, v6
|
|
|
|
.line 160
|
|
.line 161
|
|
:cond_7
|
|
:goto_1
|
|
if-eqz v3, :cond_0
|
|
|
|
.line 162
|
|
.line 163
|
|
filled-new-array {v4}, [Ljava/lang/String;
|
|
|
|
.line 164
|
|
.line 165
|
|
.line 166
|
|
move-result-object v1
|
|
|
|
.line 167
|
|
aget-object v1, v1, v6
|
|
|
|
.line 168
|
|
.line 169
|
|
if-eqz v1, :cond_8
|
|
|
|
.line 170
|
|
.line 171
|
|
new-instance v4, Ljava/io/File;
|
|
|
|
.line 172
|
|
.line 173
|
|
invoke-direct {v4, v3, v1}, Ljava/io/File;-><init>(Ljava/io/File;Ljava/lang/String;)V
|
|
|
|
.line 174
|
|
.line 175
|
|
.line 176
|
|
move-object v3, v4
|
|
|
|
.line 177
|
|
:cond_8
|
|
invoke-static {v2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
|
|
|
|
.line 178
|
|
.line 179
|
|
.line 180
|
|
move-result v1
|
|
|
|
.line 181
|
|
if-nez v1, :cond_9
|
|
|
|
.line 182
|
|
.line 183
|
|
:try_start_0
|
|
invoke-virtual {v3}, Ljava/io/File;->getCanonicalFile()Ljava/io/File;
|
|
|
|
.line 184
|
|
.line 185
|
|
.line 186
|
|
move-result-object v1
|
|
:try_end_0
|
|
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
.line 187
|
|
iget-object v3, v0, Landroidx/core/content/FileProvider$SimplePathStrategy;->b:Ljava/util/HashMap;
|
|
|
|
.line 188
|
|
.line 189
|
|
invoke-virtual {v3, v2, v1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.line 190
|
|
.line 191
|
|
.line 192
|
|
goto/16 :goto_0
|
|
|
|
.line 193
|
|
.line 194
|
|
:catch_0
|
|
move-exception p0
|
|
|
|
.line 195
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
.line 196
|
|
.line 197
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
.line 198
|
|
.line 199
|
|
const-string v1, "Failed to resolve canonical path for "
|
|
|
|
.line 200
|
|
.line 201
|
|
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 202
|
|
.line 203
|
|
.line 204
|
|
invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
.line 205
|
|
.line 206
|
|
.line 207
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
.line 208
|
|
.line 209
|
|
.line 210
|
|
move-result-object v0
|
|
|
|
.line 211
|
|
invoke-direct {p1, v0, p0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
|
|
|
|
.line 212
|
|
.line 213
|
|
.line 214
|
|
throw p1
|
|
|
|
.line 215
|
|
:cond_9
|
|
new-instance p0, Ljava/lang/IllegalArgumentException;
|
|
|
|
.line 216
|
|
.line 217
|
|
const-string p1, "Name must not be empty"
|
|
|
|
.line 218
|
|
.line 219
|
|
invoke-direct {p0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 220
|
|
.line 221
|
|
.line 222
|
|
throw p0
|
|
|
|
.line 223
|
|
:cond_a
|
|
return-object v0
|
|
|
|
.line 224
|
|
:cond_b
|
|
new-instance p0, Ljava/lang/IllegalArgumentException;
|
|
|
|
.line 225
|
|
.line 226
|
|
const-string p1, "Missing android.support.FILE_PROVIDER_PATHS meta-data"
|
|
|
|
.line 227
|
|
.line 228
|
|
invoke-direct {p0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 229
|
|
.line 230
|
|
.line 231
|
|
throw p0
|
|
|
|
.line 232
|
|
:cond_c
|
|
new-instance p0, Ljava/lang/IllegalArgumentException;
|
|
|
|
.line 233
|
|
.line 234
|
|
const-string v0, "Couldn\'t find meta-data for provider with authority "
|
|
|
|
.line 235
|
|
.line 236
|
|
invoke-static {v0, p1}, Landroid/support/v4/media/a;->C(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
.line 237
|
|
.line 238
|
|
.line 239
|
|
move-result-object p1
|
|
|
|
.line 240
|
|
invoke-direct {p0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 241
|
|
.line 242
|
|
.line 243
|
|
throw p0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final attachInfo(Landroid/content/Context;Landroid/content/pm/ProviderInfo;)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-super {p0, p1, p2}, Landroid/content/ContentProvider;->attachInfo(Landroid/content/Context;Landroid/content/pm/ProviderInfo;)V
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
iget-boolean p1, p2, Landroid/content/pm/ProviderInfo;->exported:Z
|
|
|
|
.line 5
|
|
.line 6
|
|
if-nez p1, :cond_1
|
|
|
|
.line 7
|
|
.line 8
|
|
iget-boolean p1, p2, Landroid/content/pm/ProviderInfo;->grantUriPermissions:Z
|
|
|
|
.line 9
|
|
.line 10
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 11
|
|
.line 12
|
|
iget-object p1, p2, Landroid/content/pm/ProviderInfo;->authority:Ljava/lang/String;
|
|
|
|
.line 13
|
|
.line 14
|
|
const-string p2, ";"
|
|
|
|
.line 15
|
|
.line 16
|
|
invoke-virtual {p1, p2}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;
|
|
|
|
.line 17
|
|
.line 18
|
|
.line 19
|
|
move-result-object p1
|
|
|
|
.line 20
|
|
const/4 p2, 0x0
|
|
|
|
.line 21
|
|
aget-object p1, p1, p2
|
|
|
|
.line 22
|
|
.line 23
|
|
iget-object p2, p0, Landroidx/core/content/FileProvider;->c:Ljava/lang/Object;
|
|
|
|
.line 24
|
|
.line 25
|
|
monitor-enter p2
|
|
|
|
.line 26
|
|
:try_start_0
|
|
iput-object p1, p0, Landroidx/core/content/FileProvider;->f:Ljava/lang/String;
|
|
|
|
.line 27
|
|
.line 28
|
|
monitor-exit p2
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_1
|
|
|
|
.line 29
|
|
sget-object v0, Landroidx/core/content/FileProvider;->j:Ljava/util/HashMap;
|
|
|
|
.line 30
|
|
.line 31
|
|
monitor-enter v0
|
|
|
|
.line 32
|
|
:try_start_1
|
|
invoke-virtual {v0, p1}, Ljava/util/HashMap;->remove(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.line 33
|
|
.line 34
|
|
.line 35
|
|
monitor-exit v0
|
|
|
|
.line 36
|
|
return-void
|
|
|
|
.line 37
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
.line 38
|
|
monitor-exit v0
|
|
:try_end_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
.line 39
|
|
throw p1
|
|
|
|
.line 40
|
|
:catchall_1
|
|
move-exception p1
|
|
|
|
.line 41
|
|
:try_start_2
|
|
monitor-exit p2
|
|
:try_end_2
|
|
.catchall {:try_start_2 .. :try_end_2} :catchall_1
|
|
|
|
.line 42
|
|
throw p1
|
|
|
|
.line 43
|
|
:cond_0
|
|
new-instance p1, Ljava/lang/SecurityException;
|
|
|
|
.line 44
|
|
.line 45
|
|
const-string p2, "Provider must grant uri permissions"
|
|
|
|
.line 46
|
|
.line 47
|
|
invoke-direct {p1, p2}, Ljava/lang/SecurityException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 48
|
|
.line 49
|
|
.line 50
|
|
throw p1
|
|
|
|
.line 51
|
|
:cond_1
|
|
new-instance p1, Ljava/lang/SecurityException;
|
|
|
|
.line 52
|
|
.line 53
|
|
const-string p2, "Provider must not be exported"
|
|
|
|
.line 54
|
|
.line 55
|
|
invoke-direct {p1, p2}, Ljava/lang/SecurityException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 56
|
|
.line 57
|
|
.line 58
|
|
throw p1
|
|
.end method
|
|
|
|
.method public final b()Landroidx/core/content/FileProvider$PathStrategy;
|
|
.locals 3
|
|
|
|
.line 1
|
|
iget-object v0, p0, Landroidx/core/content/FileProvider;->c:Ljava/lang/Object;
|
|
|
|
.line 2
|
|
.line 3
|
|
monitor-enter v0
|
|
|
|
.line 4
|
|
:try_start_0
|
|
iget-object v1, p0, Landroidx/core/content/FileProvider;->f:Ljava/lang/String;
|
|
|
|
.line 5
|
|
.line 6
|
|
const-string v2, "mAuthority is null. Did you override attachInfo and did not call super.attachInfo()?"
|
|
|
|
.line 7
|
|
.line 8
|
|
if-eqz v1, :cond_1
|
|
|
|
.line 9
|
|
.line 10
|
|
iget-object v1, p0, Landroidx/core/content/FileProvider;->g:Landroidx/core/content/FileProvider$PathStrategy;
|
|
|
|
.line 11
|
|
.line 12
|
|
if-nez v1, :cond_0
|
|
|
|
.line 13
|
|
.line 14
|
|
invoke-virtual {p0}, Landroid/content/ContentProvider;->getContext()Landroid/content/Context;
|
|
|
|
.line 15
|
|
.line 16
|
|
.line 17
|
|
move-result-object v1
|
|
|
|
.line 18
|
|
iget-object v2, p0, Landroidx/core/content/FileProvider;->f:Ljava/lang/String;
|
|
|
|
.line 19
|
|
.line 20
|
|
invoke-static {v1, v2}, Landroidx/core/content/FileProvider;->c(Landroid/content/Context;Ljava/lang/String;)Landroidx/core/content/FileProvider$PathStrategy;
|
|
|
|
.line 21
|
|
.line 22
|
|
.line 23
|
|
move-result-object v1
|
|
|
|
.line 24
|
|
iput-object v1, p0, Landroidx/core/content/FileProvider;->g:Landroidx/core/content/FileProvider$PathStrategy;
|
|
|
|
.line 25
|
|
.line 26
|
|
goto :goto_0
|
|
|
|
.line 27
|
|
:catchall_0
|
|
move-exception v1
|
|
|
|
.line 28
|
|
goto :goto_1
|
|
|
|
.line 29
|
|
:cond_0
|
|
:goto_0
|
|
iget-object v1, p0, Landroidx/core/content/FileProvider;->g:Landroidx/core/content/FileProvider$PathStrategy;
|
|
|
|
.line 30
|
|
.line 31
|
|
monitor-exit v0
|
|
|
|
.line 32
|
|
return-object v1
|
|
|
|
.line 33
|
|
:cond_1
|
|
new-instance v1, Ljava/lang/NullPointerException;
|
|
|
|
.line 34
|
|
.line 35
|
|
invoke-direct {v1, v2}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 36
|
|
.line 37
|
|
.line 38
|
|
throw v1
|
|
|
|
.line 39
|
|
:goto_1
|
|
monitor-exit v0
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
.line 40
|
|
throw v1
|
|
.end method
|
|
|
|
.method public final delete(Landroid/net/Uri;Ljava/lang/String;[Ljava/lang/String;)I
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Landroidx/core/content/FileProvider;->b()Landroidx/core/content/FileProvider$PathStrategy;
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result-object p2
|
|
|
|
.line 5
|
|
invoke-interface {p2, p1}, Landroidx/core/content/FileProvider$PathStrategy;->a(Landroid/net/Uri;)Ljava/io/File;
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
move-result-object p1
|
|
|
|
.line 9
|
|
invoke-virtual {p1}, Ljava/io/File;->delete()Z
|
|
|
|
.line 10
|
|
.line 11
|
|
.line 12
|
|
move-result p1
|
|
|
|
.line 13
|
|
return p1
|
|
.end method
|
|
|
|
.method public final getType(Landroid/net/Uri;)Ljava/lang/String;
|
|
.locals 2
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Landroidx/core/content/FileProvider;->b()Landroidx/core/content/FileProvider$PathStrategy;
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result-object v0
|
|
|
|
.line 5
|
|
invoke-interface {v0, p1}, Landroidx/core/content/FileProvider$PathStrategy;->a(Landroid/net/Uri;)Ljava/io/File;
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
move-result-object p1
|
|
|
|
.line 9
|
|
invoke-virtual {p1}, Ljava/io/File;->getName()Ljava/lang/String;
|
|
|
|
.line 10
|
|
.line 11
|
|
.line 12
|
|
move-result-object v0
|
|
|
|
.line 13
|
|
const/16 v1, 0x2e
|
|
|
|
.line 14
|
|
.line 15
|
|
invoke-virtual {v0, v1}, Ljava/lang/String;->lastIndexOf(I)I
|
|
|
|
.line 16
|
|
.line 17
|
|
.line 18
|
|
move-result v0
|
|
|
|
.line 19
|
|
if-ltz v0, :cond_0
|
|
|
|
.line 20
|
|
.line 21
|
|
invoke-virtual {p1}, Ljava/io/File;->getName()Ljava/lang/String;
|
|
|
|
.line 22
|
|
.line 23
|
|
.line 24
|
|
move-result-object p1
|
|
|
|
.line 25
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
.line 26
|
|
.line 27
|
|
invoke-virtual {p1, v0}, Ljava/lang/String;->substring(I)Ljava/lang/String;
|
|
|
|
.line 28
|
|
.line 29
|
|
.line 30
|
|
move-result-object p1
|
|
|
|
.line 31
|
|
invoke-static {}, Landroid/webkit/MimeTypeMap;->getSingleton()Landroid/webkit/MimeTypeMap;
|
|
|
|
.line 32
|
|
.line 33
|
|
.line 34
|
|
move-result-object v0
|
|
|
|
.line 35
|
|
invoke-virtual {v0, p1}, Landroid/webkit/MimeTypeMap;->getMimeTypeFromExtension(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
.line 36
|
|
.line 37
|
|
.line 38
|
|
move-result-object p1
|
|
|
|
.line 39
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 40
|
|
.line 41
|
|
return-object p1
|
|
|
|
.line 42
|
|
:cond_0
|
|
const-string p1, "application/octet-stream"
|
|
|
|
.line 43
|
|
.line 44
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public final getTypeAnonymous(Landroid/net/Uri;)Ljava/lang/String;
|
|
.locals 0
|
|
|
|
.line 1
|
|
const-string p1, "application/octet-stream"
|
|
|
|
.line 2
|
|
.line 3
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public final insert(Landroid/net/Uri;Landroid/content/ContentValues;)Landroid/net/Uri;
|
|
.locals 0
|
|
|
|
.line 1
|
|
new-instance p1, Ljava/lang/UnsupportedOperationException;
|
|
|
|
.line 2
|
|
.line 3
|
|
const-string p2, "No external inserts"
|
|
|
|
.line 4
|
|
.line 5
|
|
invoke-direct {p1, p2}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
throw p1
|
|
.end method
|
|
|
|
.method public final onCreate()Z
|
|
.locals 1
|
|
|
|
const/4 v0, 0x1
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final openFile(Landroid/net/Uri;Ljava/lang/String;)Landroid/os/ParcelFileDescriptor;
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Landroidx/core/content/FileProvider;->b()Landroidx/core/content/FileProvider$PathStrategy;
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result-object v0
|
|
|
|
.line 5
|
|
invoke-interface {v0, p1}, Landroidx/core/content/FileProvider$PathStrategy;->a(Landroid/net/Uri;)Ljava/io/File;
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
move-result-object p1
|
|
|
|
.line 9
|
|
const-string v0, "r"
|
|
|
|
.line 10
|
|
.line 11
|
|
invoke-virtual {v0, p2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
.line 12
|
|
.line 13
|
|
.line 14
|
|
move-result v0
|
|
|
|
.line 15
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 16
|
|
.line 17
|
|
const/high16 p2, 0x10000000
|
|
|
|
.line 18
|
|
.line 19
|
|
goto :goto_1
|
|
|
|
.line 20
|
|
:cond_0
|
|
const-string v0, "w"
|
|
|
|
.line 21
|
|
.line 22
|
|
invoke-virtual {v0, p2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
.line 23
|
|
.line 24
|
|
.line 25
|
|
move-result v0
|
|
|
|
.line 26
|
|
if-nez v0, :cond_5
|
|
|
|
.line 27
|
|
.line 28
|
|
const-string v0, "wt"
|
|
|
|
.line 29
|
|
.line 30
|
|
invoke-virtual {v0, p2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
.line 31
|
|
.line 32
|
|
.line 33
|
|
move-result v0
|
|
|
|
.line 34
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 35
|
|
.line 36
|
|
goto :goto_0
|
|
|
|
.line 37
|
|
:cond_1
|
|
const-string v0, "wa"
|
|
|
|
.line 38
|
|
.line 39
|
|
invoke-virtual {v0, p2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
.line 40
|
|
.line 41
|
|
.line 42
|
|
move-result v0
|
|
|
|
.line 43
|
|
if-eqz v0, :cond_2
|
|
|
|
.line 44
|
|
.line 45
|
|
const/high16 p2, 0x2a000000
|
|
|
|
.line 46
|
|
.line 47
|
|
goto :goto_1
|
|
|
|
.line 48
|
|
:cond_2
|
|
const-string v0, "rw"
|
|
|
|
.line 49
|
|
.line 50
|
|
invoke-virtual {v0, p2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
.line 51
|
|
.line 52
|
|
.line 53
|
|
move-result v0
|
|
|
|
.line 54
|
|
if-eqz v0, :cond_3
|
|
|
|
.line 55
|
|
.line 56
|
|
const/high16 p2, 0x38000000
|
|
|
|
.line 57
|
|
.line 58
|
|
goto :goto_1
|
|
|
|
.line 59
|
|
:cond_3
|
|
const-string v0, "rwt"
|
|
|
|
.line 60
|
|
.line 61
|
|
invoke-virtual {v0, p2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
.line 62
|
|
.line 63
|
|
.line 64
|
|
move-result v0
|
|
|
|
.line 65
|
|
if-eqz v0, :cond_4
|
|
|
|
.line 66
|
|
.line 67
|
|
const/high16 p2, 0x3c000000 # 0.0078125f
|
|
|
|
.line 68
|
|
.line 69
|
|
goto :goto_1
|
|
|
|
.line 70
|
|
:cond_4
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
.line 71
|
|
.line 72
|
|
const-string v0, "Invalid mode: "
|
|
|
|
.line 73
|
|
.line 74
|
|
invoke-static {v0, p2}, Landroid/support/v4/media/a;->C(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
.line 75
|
|
.line 76
|
|
.line 77
|
|
move-result-object p2
|
|
|
|
.line 78
|
|
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 79
|
|
.line 80
|
|
.line 81
|
|
throw p1
|
|
|
|
.line 82
|
|
:cond_5
|
|
:goto_0
|
|
const/high16 p2, 0x2c000000
|
|
|
|
.line 83
|
|
.line 84
|
|
:goto_1
|
|
invoke-static {p1, p2}, Landroid/os/ParcelFileDescriptor;->open(Ljava/io/File;I)Landroid/os/ParcelFileDescriptor;
|
|
|
|
.line 85
|
|
.line 86
|
|
.line 87
|
|
move-result-object p1
|
|
|
|
.line 88
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public final query(Landroid/net/Uri;[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)Landroid/database/Cursor;
|
|
.locals 7
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Landroidx/core/content/FileProvider;->b()Landroidx/core/content/FileProvider$PathStrategy;
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result-object p3
|
|
|
|
.line 5
|
|
invoke-interface {p3, p1}, Landroidx/core/content/FileProvider$PathStrategy;->a(Landroid/net/Uri;)Ljava/io/File;
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
move-result-object p3
|
|
|
|
.line 9
|
|
const-string p4, "displayName"
|
|
|
|
.line 10
|
|
.line 11
|
|
invoke-virtual {p1, p4}, Landroid/net/Uri;->getQueryParameter(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
.line 12
|
|
.line 13
|
|
.line 14
|
|
move-result-object p1
|
|
|
|
.line 15
|
|
if-nez p2, :cond_0
|
|
|
|
.line 16
|
|
.line 17
|
|
sget-object p2, Landroidx/core/content/FileProvider;->h:[Ljava/lang/String;
|
|
|
|
.line 18
|
|
.line 19
|
|
:cond_0
|
|
array-length p4, p2
|
|
|
|
.line 20
|
|
new-array p4, p4, [Ljava/lang/String;
|
|
|
|
.line 21
|
|
.line 22
|
|
array-length p5, p2
|
|
|
|
.line 23
|
|
new-array p5, p5, [Ljava/lang/Object;
|
|
|
|
.line 24
|
|
.line 25
|
|
array-length v0, p2
|
|
|
|
.line 26
|
|
const/4 v1, 0x0
|
|
|
|
.line 27
|
|
move v2, v1
|
|
|
|
.line 28
|
|
move v3, v2
|
|
|
|
.line 29
|
|
:goto_0
|
|
if-ge v2, v0, :cond_4
|
|
|
|
.line 30
|
|
.line 31
|
|
aget-object v4, p2, v2
|
|
|
|
.line 32
|
|
.line 33
|
|
const-string v5, "_display_name"
|
|
|
|
.line 34
|
|
.line 35
|
|
invoke-virtual {v5, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
.line 36
|
|
.line 37
|
|
.line 38
|
|
move-result v6
|
|
|
|
.line 39
|
|
if-eqz v6, :cond_2
|
|
|
|
.line 40
|
|
.line 41
|
|
aput-object v5, p4, v3
|
|
|
|
.line 42
|
|
.line 43
|
|
add-int/lit8 v4, v3, 0x1
|
|
|
|
.line 44
|
|
.line 45
|
|
if-nez p1, :cond_1
|
|
|
|
.line 46
|
|
.line 47
|
|
invoke-virtual {p3}, Ljava/io/File;->getName()Ljava/lang/String;
|
|
|
|
.line 48
|
|
.line 49
|
|
.line 50
|
|
move-result-object v5
|
|
|
|
.line 51
|
|
goto :goto_1
|
|
|
|
.line 52
|
|
:cond_1
|
|
move-object v5, p1
|
|
|
|
.line 53
|
|
:goto_1
|
|
aput-object v5, p5, v3
|
|
|
|
.line 54
|
|
.line 55
|
|
:goto_2
|
|
move v3, v4
|
|
|
|
.line 56
|
|
goto :goto_3
|
|
|
|
.line 57
|
|
:cond_2
|
|
const-string v5, "_size"
|
|
|
|
.line 58
|
|
.line 59
|
|
invoke-virtual {v5, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
.line 60
|
|
.line 61
|
|
.line 62
|
|
move-result v4
|
|
|
|
.line 63
|
|
if-eqz v4, :cond_3
|
|
|
|
.line 64
|
|
.line 65
|
|
aput-object v5, p4, v3
|
|
|
|
.line 66
|
|
.line 67
|
|
add-int/lit8 v4, v3, 0x1
|
|
|
|
.line 68
|
|
.line 69
|
|
invoke-virtual {p3}, Ljava/io/File;->length()J
|
|
|
|
.line 70
|
|
.line 71
|
|
.line 72
|
|
move-result-wide v5
|
|
|
|
.line 73
|
|
invoke-static {v5, v6}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
.line 74
|
|
.line 75
|
|
.line 76
|
|
move-result-object v5
|
|
|
|
.line 77
|
|
aput-object v5, p5, v3
|
|
|
|
.line 78
|
|
.line 79
|
|
goto :goto_2
|
|
|
|
.line 80
|
|
:cond_3
|
|
:goto_3
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
.line 81
|
|
.line 82
|
|
goto :goto_0
|
|
|
|
.line 83
|
|
:cond_4
|
|
new-array p1, v3, [Ljava/lang/String;
|
|
|
|
.line 84
|
|
.line 85
|
|
invoke-static {p4, v1, p1, v1, v3}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
|
|
|
|
.line 86
|
|
.line 87
|
|
.line 88
|
|
new-array p2, v3, [Ljava/lang/Object;
|
|
|
|
.line 89
|
|
.line 90
|
|
invoke-static {p5, v1, p2, v1, v3}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
|
|
|
|
.line 91
|
|
.line 92
|
|
.line 93
|
|
new-instance p3, Landroid/database/MatrixCursor;
|
|
|
|
.line 94
|
|
.line 95
|
|
const/4 p4, 0x1
|
|
|
|
.line 96
|
|
invoke-direct {p3, p1, p4}, Landroid/database/MatrixCursor;-><init>([Ljava/lang/String;I)V
|
|
|
|
.line 97
|
|
.line 98
|
|
.line 99
|
|
invoke-virtual {p3, p2}, Landroid/database/MatrixCursor;->addRow([Ljava/lang/Object;)V
|
|
|
|
.line 100
|
|
.line 101
|
|
.line 102
|
|
return-object p3
|
|
.end method
|
|
|
|
.method public final update(Landroid/net/Uri;Landroid/content/ContentValues;Ljava/lang/String;[Ljava/lang/String;)I
|
|
.locals 0
|
|
|
|
.line 1
|
|
new-instance p1, Ljava/lang/UnsupportedOperationException;
|
|
|
|
.line 2
|
|
.line 3
|
|
const-string p2, "No external updates"
|
|
|
|
.line 4
|
|
.line 5
|
|
invoke-direct {p1, p2}, Ljava/lang/UnsupportedOperationException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
throw p1
|
|
.end method
|