* 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>
759 lines
16 KiB
Smali
759 lines
16 KiB
Smali
.class Landroidx/core/widget/TextViewCompat$OreoCallback;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
# interfaces
|
|
.implements Landroid/view/ActionMode$Callback;
|
|
|
|
|
|
# annotations
|
|
.annotation build Landroidx/annotation/RequiresApi;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Landroidx/core/widget/TextViewCompat;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x9
|
|
name = "OreoCallback"
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final a:Landroid/view/ActionMode$Callback;
|
|
|
|
.field public final b:Landroid/widget/TextView;
|
|
|
|
.field public c:Ljava/lang/Class;
|
|
|
|
.field public d:Ljava/lang/reflect/Method;
|
|
|
|
.field public e:Z
|
|
|
|
.field public f:Z
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Landroid/view/ActionMode$Callback;Landroid/widget/TextView;)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
iput-object p1, p0, Landroidx/core/widget/TextViewCompat$OreoCallback;->a:Landroid/view/ActionMode$Callback;
|
|
|
|
.line 5
|
|
.line 6
|
|
iput-object p2, p0, Landroidx/core/widget/TextViewCompat$OreoCallback;->b:Landroid/widget/TextView;
|
|
|
|
.line 7
|
|
.line 8
|
|
const/4 p1, 0x0
|
|
|
|
.line 9
|
|
iput-boolean p1, p0, Landroidx/core/widget/TextViewCompat$OreoCallback;->f:Z
|
|
|
|
.line 10
|
|
.line 11
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final onActionItemClicked(Landroid/view/ActionMode;Landroid/view/MenuItem;)Z
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Landroidx/core/widget/TextViewCompat$OreoCallback;->a:Landroid/view/ActionMode$Callback;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-interface {v0, p1, p2}, Landroid/view/ActionMode$Callback;->onActionItemClicked(Landroid/view/ActionMode;Landroid/view/MenuItem;)Z
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
move-result p1
|
|
|
|
.line 7
|
|
return p1
|
|
.end method
|
|
|
|
.method public final onCreateActionMode(Landroid/view/ActionMode;Landroid/view/Menu;)Z
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Landroidx/core/widget/TextViewCompat$OreoCallback;->a:Landroid/view/ActionMode$Callback;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-interface {v0, p1, p2}, Landroid/view/ActionMode$Callback;->onCreateActionMode(Landroid/view/ActionMode;Landroid/view/Menu;)Z
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
move-result p1
|
|
|
|
.line 7
|
|
return p1
|
|
.end method
|
|
|
|
.method public final onDestroyActionMode(Landroid/view/ActionMode;)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Landroidx/core/widget/TextViewCompat$OreoCallback;->a:Landroid/view/ActionMode$Callback;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-interface {v0, p1}, Landroid/view/ActionMode$Callback;->onDestroyActionMode(Landroid/view/ActionMode;)V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
return-void
|
|
.end method
|
|
|
|
.method public final onPrepareActionMode(Landroid/view/ActionMode;Landroid/view/Menu;)Z
|
|
.locals 13
|
|
|
|
.line 1
|
|
iget-object v0, p0, Landroidx/core/widget/TextViewCompat$OreoCallback;->b:Landroid/widget/TextView;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-virtual {v0}, Landroid/view/View;->getContext()Landroid/content/Context;
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
move-result-object v1
|
|
|
|
.line 7
|
|
invoke-virtual {v1}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
move-result-object v2
|
|
|
|
.line 11
|
|
iget-boolean v3, p0, Landroidx/core/widget/TextViewCompat$OreoCallback;->f:Z
|
|
|
|
.line 12
|
|
.line 13
|
|
sget-object v4, Ljava/lang/Integer;->TYPE:Ljava/lang/Class;
|
|
|
|
.line 14
|
|
.line 15
|
|
const-string v5, "removeItemAt"
|
|
|
|
.line 16
|
|
.line 17
|
|
const/4 v6, 0x0
|
|
|
|
.line 18
|
|
const/4 v7, 0x1
|
|
|
|
.line 19
|
|
if-nez v3, :cond_0
|
|
|
|
.line 20
|
|
.line 21
|
|
iput-boolean v7, p0, Landroidx/core/widget/TextViewCompat$OreoCallback;->f:Z
|
|
|
|
.line 22
|
|
.line 23
|
|
:try_start_0
|
|
const-string v3, "com.android.internal.view.menu.MenuBuilder"
|
|
|
|
.line 24
|
|
.line 25
|
|
invoke-static {v3}, Ljava/lang/Class;->forName(Ljava/lang/String;)Ljava/lang/Class;
|
|
|
|
.line 26
|
|
.line 27
|
|
.line 28
|
|
move-result-object v3
|
|
|
|
.line 29
|
|
iput-object v3, p0, Landroidx/core/widget/TextViewCompat$OreoCallback;->c:Ljava/lang/Class;
|
|
|
|
.line 30
|
|
.line 31
|
|
new-array v8, v7, [Ljava/lang/Class;
|
|
|
|
.line 32
|
|
.line 33
|
|
aput-object v4, v8, v6
|
|
|
|
.line 34
|
|
.line 35
|
|
invoke-virtual {v3, v5, v8}, Ljava/lang/Class;->getDeclaredMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
|
|
|
|
.line 36
|
|
.line 37
|
|
.line 38
|
|
move-result-object v3
|
|
|
|
.line 39
|
|
iput-object v3, p0, Landroidx/core/widget/TextViewCompat$OreoCallback;->d:Ljava/lang/reflect/Method;
|
|
|
|
.line 40
|
|
.line 41
|
|
iput-boolean v7, p0, Landroidx/core/widget/TextViewCompat$OreoCallback;->e:Z
|
|
:try_end_0
|
|
.catch Ljava/lang/ClassNotFoundException; {:try_start_0 .. :try_end_0} :catch_0
|
|
.catch Ljava/lang/NoSuchMethodException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
.line 42
|
|
.line 43
|
|
goto :goto_0
|
|
|
|
.line 44
|
|
:catch_0
|
|
const/4 v3, 0x0
|
|
|
|
.line 45
|
|
iput-object v3, p0, Landroidx/core/widget/TextViewCompat$OreoCallback;->c:Ljava/lang/Class;
|
|
|
|
.line 46
|
|
.line 47
|
|
iput-object v3, p0, Landroidx/core/widget/TextViewCompat$OreoCallback;->d:Ljava/lang/reflect/Method;
|
|
|
|
.line 48
|
|
.line 49
|
|
iput-boolean v6, p0, Landroidx/core/widget/TextViewCompat$OreoCallback;->e:Z
|
|
|
|
.line 50
|
|
.line 51
|
|
:cond_0
|
|
:goto_0
|
|
:try_start_1
|
|
iget-boolean v3, p0, Landroidx/core/widget/TextViewCompat$OreoCallback;->e:Z
|
|
|
|
.line 52
|
|
.line 53
|
|
if-eqz v3, :cond_1
|
|
|
|
.line 54
|
|
.line 55
|
|
iget-object v3, p0, Landroidx/core/widget/TextViewCompat$OreoCallback;->c:Ljava/lang/Class;
|
|
|
|
.line 56
|
|
.line 57
|
|
invoke-virtual {v3, p2}, Ljava/lang/Class;->isInstance(Ljava/lang/Object;)Z
|
|
|
|
.line 58
|
|
.line 59
|
|
.line 60
|
|
move-result v3
|
|
|
|
.line 61
|
|
if-eqz v3, :cond_1
|
|
|
|
.line 62
|
|
.line 63
|
|
iget-object v3, p0, Landroidx/core/widget/TextViewCompat$OreoCallback;->d:Ljava/lang/reflect/Method;
|
|
|
|
.line 64
|
|
.line 65
|
|
goto :goto_1
|
|
|
|
.line 66
|
|
:cond_1
|
|
invoke-virtual {p2}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
.line 67
|
|
.line 68
|
|
.line 69
|
|
move-result-object v3
|
|
|
|
.line 70
|
|
new-array v8, v7, [Ljava/lang/Class;
|
|
|
|
.line 71
|
|
.line 72
|
|
aput-object v4, v8, v6
|
|
|
|
.line 73
|
|
.line 74
|
|
invoke-virtual {v3, v5, v8}, Ljava/lang/Class;->getDeclaredMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
|
|
|
|
.line 75
|
|
.line 76
|
|
.line 77
|
|
move-result-object v3
|
|
|
|
.line 78
|
|
:goto_1
|
|
invoke-interface {p2}, Landroid/view/Menu;->size()I
|
|
|
|
.line 79
|
|
.line 80
|
|
.line 81
|
|
move-result v4
|
|
:try_end_1
|
|
.catch Ljava/lang/NoSuchMethodException; {:try_start_1 .. :try_end_1} :catch_1
|
|
.catch Ljava/lang/IllegalAccessException; {:try_start_1 .. :try_end_1} :catch_1
|
|
.catch Ljava/lang/reflect/InvocationTargetException; {:try_start_1 .. :try_end_1} :catch_1
|
|
|
|
.line 82
|
|
sub-int/2addr v4, v7
|
|
|
|
.line 83
|
|
:goto_2
|
|
const-string v5, "android.intent.action.PROCESS_TEXT"
|
|
|
|
.line 84
|
|
.line 85
|
|
if-ltz v4, :cond_3
|
|
|
|
.line 86
|
|
.line 87
|
|
:try_start_2
|
|
invoke-interface {p2, v4}, Landroid/view/Menu;->getItem(I)Landroid/view/MenuItem;
|
|
|
|
.line 88
|
|
.line 89
|
|
.line 90
|
|
move-result-object v8
|
|
|
|
.line 91
|
|
invoke-interface {v8}, Landroid/view/MenuItem;->getIntent()Landroid/content/Intent;
|
|
|
|
.line 92
|
|
.line 93
|
|
.line 94
|
|
move-result-object v9
|
|
|
|
.line 95
|
|
if-eqz v9, :cond_2
|
|
|
|
.line 96
|
|
.line 97
|
|
invoke-interface {v8}, Landroid/view/MenuItem;->getIntent()Landroid/content/Intent;
|
|
|
|
.line 98
|
|
.line 99
|
|
.line 100
|
|
move-result-object v8
|
|
|
|
.line 101
|
|
invoke-virtual {v8}, Landroid/content/Intent;->getAction()Ljava/lang/String;
|
|
|
|
.line 102
|
|
.line 103
|
|
.line 104
|
|
move-result-object v8
|
|
|
|
.line 105
|
|
invoke-virtual {v5, v8}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
.line 106
|
|
.line 107
|
|
.line 108
|
|
move-result v5
|
|
|
|
.line 109
|
|
if-eqz v5, :cond_2
|
|
|
|
.line 110
|
|
.line 111
|
|
invoke-static {v4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
.line 112
|
|
.line 113
|
|
.line 114
|
|
move-result-object v5
|
|
|
|
.line 115
|
|
new-array v8, v7, [Ljava/lang/Object;
|
|
|
|
.line 116
|
|
.line 117
|
|
aput-object v5, v8, v6
|
|
|
|
.line 118
|
|
.line 119
|
|
invoke-virtual {v3, p2, v8}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
|
|
:try_end_2
|
|
.catch Ljava/lang/NoSuchMethodException; {:try_start_2 .. :try_end_2} :catch_1
|
|
.catch Ljava/lang/IllegalAccessException; {:try_start_2 .. :try_end_2} :catch_1
|
|
.catch Ljava/lang/reflect/InvocationTargetException; {:try_start_2 .. :try_end_2} :catch_1
|
|
|
|
.line 120
|
|
.line 121
|
|
.line 122
|
|
:cond_2
|
|
add-int/lit8 v4, v4, -0x1
|
|
|
|
.line 123
|
|
.line 124
|
|
goto :goto_2
|
|
|
|
.line 125
|
|
:cond_3
|
|
new-instance v3, Ljava/util/ArrayList;
|
|
|
|
.line 126
|
|
.line 127
|
|
invoke-direct {v3}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
.line 128
|
|
.line 129
|
|
.line 130
|
|
instance-of v4, v1, Landroid/app/Activity;
|
|
|
|
.line 131
|
|
.line 132
|
|
const-string v8, "text/plain"
|
|
|
|
.line 133
|
|
.line 134
|
|
if-nez v4, :cond_4
|
|
|
|
.line 135
|
|
.line 136
|
|
goto :goto_5
|
|
|
|
.line 137
|
|
:cond_4
|
|
new-instance v4, Landroid/content/Intent;
|
|
|
|
.line 138
|
|
.line 139
|
|
invoke-direct {v4}, Landroid/content/Intent;-><init>()V
|
|
|
|
.line 140
|
|
.line 141
|
|
.line 142
|
|
invoke-virtual {v4, v5}, Landroid/content/Intent;->setAction(Ljava/lang/String;)Landroid/content/Intent;
|
|
|
|
.line 143
|
|
.line 144
|
|
.line 145
|
|
move-result-object v4
|
|
|
|
.line 146
|
|
invoke-virtual {v4, v8}, Landroid/content/Intent;->setType(Ljava/lang/String;)Landroid/content/Intent;
|
|
|
|
.line 147
|
|
.line 148
|
|
.line 149
|
|
move-result-object v4
|
|
|
|
.line 150
|
|
invoke-virtual {v2, v4, v6}, Landroid/content/pm/PackageManager;->queryIntentActivities(Landroid/content/Intent;I)Ljava/util/List;
|
|
|
|
.line 151
|
|
.line 152
|
|
.line 153
|
|
move-result-object v4
|
|
|
|
.line 154
|
|
invoke-interface {v4}, Ljava/util/List;->iterator()Ljava/util/Iterator;
|
|
|
|
.line 155
|
|
.line 156
|
|
.line 157
|
|
move-result-object v4
|
|
|
|
.line 158
|
|
:cond_5
|
|
:goto_3
|
|
invoke-interface {v4}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
.line 159
|
|
.line 160
|
|
.line 161
|
|
move-result v9
|
|
|
|
.line 162
|
|
if-eqz v9, :cond_9
|
|
|
|
.line 163
|
|
.line 164
|
|
invoke-interface {v4}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
.line 165
|
|
.line 166
|
|
.line 167
|
|
move-result-object v9
|
|
|
|
.line 168
|
|
check-cast v9, Landroid/content/pm/ResolveInfo;
|
|
|
|
.line 169
|
|
.line 170
|
|
invoke-virtual {v1}, Landroid/content/Context;->getPackageName()Ljava/lang/String;
|
|
|
|
.line 171
|
|
.line 172
|
|
.line 173
|
|
move-result-object v10
|
|
|
|
.line 174
|
|
iget-object v11, v9, Landroid/content/pm/ResolveInfo;->activityInfo:Landroid/content/pm/ActivityInfo;
|
|
|
|
.line 175
|
|
.line 176
|
|
iget-object v11, v11, Landroid/content/pm/ActivityInfo;->packageName:Ljava/lang/String;
|
|
|
|
.line 177
|
|
.line 178
|
|
invoke-virtual {v10, v11}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
.line 179
|
|
.line 180
|
|
.line 181
|
|
move-result v10
|
|
|
|
.line 182
|
|
if-eqz v10, :cond_6
|
|
|
|
.line 183
|
|
.line 184
|
|
goto :goto_4
|
|
|
|
.line 185
|
|
:cond_6
|
|
iget-object v10, v9, Landroid/content/pm/ResolveInfo;->activityInfo:Landroid/content/pm/ActivityInfo;
|
|
|
|
.line 186
|
|
.line 187
|
|
iget-boolean v11, v10, Landroid/content/pm/ActivityInfo;->exported:Z
|
|
|
|
.line 188
|
|
.line 189
|
|
if-nez v11, :cond_7
|
|
|
|
.line 190
|
|
.line 191
|
|
goto :goto_3
|
|
|
|
.line 192
|
|
:cond_7
|
|
iget-object v10, v10, Landroid/content/pm/ActivityInfo;->permission:Ljava/lang/String;
|
|
|
|
.line 193
|
|
.line 194
|
|
if-eqz v10, :cond_8
|
|
|
|
.line 195
|
|
.line 196
|
|
invoke-virtual {v1, v10}, Landroid/content/Context;->checkSelfPermission(Ljava/lang/String;)I
|
|
|
|
.line 197
|
|
.line 198
|
|
.line 199
|
|
move-result v10
|
|
|
|
.line 200
|
|
if-nez v10, :cond_5
|
|
|
|
.line 201
|
|
.line 202
|
|
:cond_8
|
|
:goto_4
|
|
invoke-virtual {v3, v9}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
.line 203
|
|
.line 204
|
|
.line 205
|
|
goto :goto_3
|
|
|
|
.line 206
|
|
:cond_9
|
|
:goto_5
|
|
move v1, v6
|
|
|
|
.line 207
|
|
:goto_6
|
|
invoke-virtual {v3}, Ljava/util/ArrayList;->size()I
|
|
|
|
.line 208
|
|
.line 209
|
|
.line 210
|
|
move-result v4
|
|
|
|
.line 211
|
|
if-ge v1, v4, :cond_b
|
|
|
|
.line 212
|
|
.line 213
|
|
invoke-virtual {v3, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
|
|
|
|
.line 214
|
|
.line 215
|
|
.line 216
|
|
move-result-object v4
|
|
|
|
.line 217
|
|
check-cast v4, Landroid/content/pm/ResolveInfo;
|
|
|
|
.line 218
|
|
.line 219
|
|
add-int/lit8 v9, v1, 0x64
|
|
|
|
.line 220
|
|
.line 221
|
|
invoke-virtual {v4, v2}, Landroid/content/pm/ResolveInfo;->loadLabel(Landroid/content/pm/PackageManager;)Ljava/lang/CharSequence;
|
|
|
|
.line 222
|
|
.line 223
|
|
.line 224
|
|
move-result-object v10
|
|
|
|
.line 225
|
|
invoke-interface {p2, v6, v6, v9, v10}, Landroid/view/Menu;->add(IIILjava/lang/CharSequence;)Landroid/view/MenuItem;
|
|
|
|
.line 226
|
|
.line 227
|
|
.line 228
|
|
move-result-object v9
|
|
|
|
.line 229
|
|
new-instance v10, Landroid/content/Intent;
|
|
|
|
.line 230
|
|
.line 231
|
|
invoke-direct {v10}, Landroid/content/Intent;-><init>()V
|
|
|
|
.line 232
|
|
.line 233
|
|
.line 234
|
|
invoke-virtual {v10, v5}, Landroid/content/Intent;->setAction(Ljava/lang/String;)Landroid/content/Intent;
|
|
|
|
.line 235
|
|
.line 236
|
|
.line 237
|
|
move-result-object v10
|
|
|
|
.line 238
|
|
invoke-virtual {v10, v8}, Landroid/content/Intent;->setType(Ljava/lang/String;)Landroid/content/Intent;
|
|
|
|
.line 239
|
|
.line 240
|
|
.line 241
|
|
move-result-object v10
|
|
|
|
.line 242
|
|
instance-of v11, v0, Landroid/text/Editable;
|
|
|
|
.line 243
|
|
.line 244
|
|
if-eqz v11, :cond_a
|
|
|
|
.line 245
|
|
.line 246
|
|
invoke-virtual {v0}, Landroid/widget/TextView;->onCheckIsTextEditor()Z
|
|
|
|
.line 247
|
|
.line 248
|
|
.line 249
|
|
move-result v11
|
|
|
|
.line 250
|
|
if-eqz v11, :cond_a
|
|
|
|
.line 251
|
|
.line 252
|
|
invoke-virtual {v0}, Landroid/view/View;->isEnabled()Z
|
|
|
|
.line 253
|
|
.line 254
|
|
.line 255
|
|
move-result v11
|
|
|
|
.line 256
|
|
if-eqz v11, :cond_a
|
|
|
|
.line 257
|
|
.line 258
|
|
move v11, v7
|
|
|
|
.line 259
|
|
goto :goto_7
|
|
|
|
.line 260
|
|
:cond_a
|
|
move v11, v6
|
|
|
|
.line 261
|
|
:goto_7
|
|
xor-int/2addr v11, v7
|
|
|
|
.line 262
|
|
const-string v12, "android.intent.extra.PROCESS_TEXT_READONLY"
|
|
|
|
.line 263
|
|
.line 264
|
|
invoke-virtual {v10, v12, v11}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;
|
|
|
|
.line 265
|
|
.line 266
|
|
.line 267
|
|
move-result-object v10
|
|
|
|
.line 268
|
|
iget-object v4, v4, Landroid/content/pm/ResolveInfo;->activityInfo:Landroid/content/pm/ActivityInfo;
|
|
|
|
.line 269
|
|
.line 270
|
|
iget-object v11, v4, Landroid/content/pm/ActivityInfo;->packageName:Ljava/lang/String;
|
|
|
|
.line 271
|
|
.line 272
|
|
iget-object v4, v4, Landroid/content/pm/ActivityInfo;->name:Ljava/lang/String;
|
|
|
|
.line 273
|
|
.line 274
|
|
invoke-virtual {v10, v11, v4}, Landroid/content/Intent;->setClassName(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;
|
|
|
|
.line 275
|
|
.line 276
|
|
.line 277
|
|
move-result-object v4
|
|
|
|
.line 278
|
|
invoke-interface {v9, v4}, Landroid/view/MenuItem;->setIntent(Landroid/content/Intent;)Landroid/view/MenuItem;
|
|
|
|
.line 279
|
|
.line 280
|
|
.line 281
|
|
move-result-object v4
|
|
|
|
.line 282
|
|
invoke-interface {v4, v7}, Landroid/view/MenuItem;->setShowAsAction(I)V
|
|
|
|
.line 283
|
|
.line 284
|
|
.line 285
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
.line 286
|
|
.line 287
|
|
goto :goto_6
|
|
|
|
.line 288
|
|
:catch_1
|
|
:cond_b
|
|
iget-object v0, p0, Landroidx/core/widget/TextViewCompat$OreoCallback;->a:Landroid/view/ActionMode$Callback;
|
|
|
|
.line 289
|
|
.line 290
|
|
invoke-interface {v0, p1, p2}, Landroid/view/ActionMode$Callback;->onPrepareActionMode(Landroid/view/ActionMode;Landroid/view/Menu;)Z
|
|
|
|
.line 291
|
|
.line 292
|
|
.line 293
|
|
move-result p1
|
|
|
|
.line 294
|
|
return p1
|
|
.end method
|