Files
rr3-apk/smali/androidx/webkit/internal/ApiHelperForM.smali
Daniel Elliott f3960ee359 Add Discord APKTool decompilation (Smali source for modding)
- Imported from https://github.com/supermegamestre/Project-Real-Resurrection-3
- APKTool decompilation (Smali bytecode) for modding and rebuilding APK
- Supports both 32-bit (armeabi-v7a) and 64-bit (arm64-v8a) architectures
- Includes full Smali source, resources, and native libraries
- Ready to rebuild APK after modifications with apktool b command
- Added comprehensive README-apktool.md with modding guide

This branch complements the JADX branches:
- Use JADX (main/discord-community) to UNDERSTAND code (readable Java)
- Use APKTool (this branch) to MODIFY and REBUILD APK (editable Smali)

Total: 44,417 files, 538.51 MB Smali source code
2026-02-18 16:13:44 -08:00

306 lines
9.6 KiB
Smali

.class public Landroidx/webkit/internal/ApiHelperForM;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation build Landroidx/annotation/RequiresApi;
value = 0x17
.end annotation
# direct methods
.method private constructor <init>()V
.locals 0
.line 43
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static close(Landroid/webkit/WebMessagePort;)V
.locals 0
.param p0 # Landroid/webkit/WebMessagePort;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/DoNotInline;
.end annotation
.line 60
invoke-virtual {p0}, Landroid/webkit/WebMessagePort;->close()V
return-void
.end method
.method public static createWebMessage(Landroidx/webkit/WebMessageCompat;)Landroid/webkit/WebMessage;
.locals 2
.param p0 # Landroidx/webkit/WebMessageCompat;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/DoNotInline;
.end annotation
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 103
new-instance v0, Landroid/webkit/WebMessage;
invoke-virtual {p0}, Landroidx/webkit/WebMessageCompat;->getData()Ljava/lang/String;
move-result-object v1
.line 104
invoke-virtual {p0}, Landroidx/webkit/WebMessageCompat;->getPorts()[Landroidx/webkit/WebMessagePortCompat;
move-result-object p0
invoke-static {p0}, Landroidx/webkit/internal/WebMessagePortImpl;->compatToPorts([Landroidx/webkit/WebMessagePortCompat;)[Landroid/webkit/WebMessagePort;
move-result-object p0
invoke-direct {v0, v1, p0}, Landroid/webkit/WebMessage;-><init>(Ljava/lang/String;[Landroid/webkit/WebMessagePort;)V
return-object v0
.end method
.method public static createWebMessageChannel(Landroid/webkit/WebView;)[Landroid/webkit/WebMessagePort;
.locals 0
.param p0 # Landroid/webkit/WebView;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/DoNotInline;
.end annotation
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 181
invoke-virtual {p0}, Landroid/webkit/WebView;->createWebMessageChannel()[Landroid/webkit/WebMessagePort;
move-result-object p0
return-object p0
.end method
.method public static createWebMessageCompat(Landroid/webkit/WebMessage;)Landroidx/webkit/WebMessageCompat;
.locals 2
.param p0 # Landroid/webkit/WebMessage;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/DoNotInline;
.end annotation
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 113
new-instance v0, Landroidx/webkit/WebMessageCompat;
invoke-virtual {p0}, Landroid/webkit/WebMessage;->getData()Ljava/lang/String;
move-result-object v1
.line 114
invoke-virtual {p0}, Landroid/webkit/WebMessage;->getPorts()[Landroid/webkit/WebMessagePort;
move-result-object p0
invoke-static {p0}, Landroidx/webkit/internal/WebMessagePortImpl;->portsToCompat([Landroid/webkit/WebMessagePort;)[Landroidx/webkit/WebMessagePortCompat;
move-result-object p0
invoke-direct {v0, v1, p0}, Landroidx/webkit/WebMessageCompat;-><init>(Ljava/lang/String;[Landroidx/webkit/WebMessagePortCompat;)V
return-object v0
.end method
.method public static getDescription(Landroid/webkit/WebResourceError;)Ljava/lang/CharSequence;
.locals 0
.param p0 # Landroid/webkit/WebResourceError;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/DoNotInline;
.end annotation
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 132
invoke-virtual {p0}, Landroid/webkit/WebResourceError;->getDescription()Ljava/lang/CharSequence;
move-result-object p0
return-object p0
.end method
.method public static getErrorCode(Landroid/webkit/WebResourceError;)I
.locals 0
.param p0 # Landroid/webkit/WebResourceError;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/DoNotInline;
.end annotation
.line 122
invoke-virtual {p0}, Landroid/webkit/WebResourceError;->getErrorCode()I
move-result p0
return p0
.end method
.method public static getOffscreenPreRaster(Landroid/webkit/WebSettings;)Z
.locals 0
.param p0 # Landroid/webkit/WebSettings;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/DoNotInline;
.end annotation
.line 148
invoke-virtual {p0}, Landroid/webkit/WebSettings;->getOffscreenPreRaster()Z
move-result p0
return p0
.end method
.method public static postMessage(Landroid/webkit/WebMessagePort;Landroid/webkit/WebMessage;)V
.locals 0
.param p0 # Landroid/webkit/WebMessagePort;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p1 # Landroid/webkit/WebMessage;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/DoNotInline;
.end annotation
.line 52
invoke-virtual {p0, p1}, Landroid/webkit/WebMessagePort;->postMessage(Landroid/webkit/WebMessage;)V
return-void
.end method
.method public static postVisualStateCallback(Landroid/webkit/WebView;JLandroidx/webkit/WebViewCompat$VisualStateCallback;)V
.locals 1
.param p0 # Landroid/webkit/WebView;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p3 # Landroidx/webkit/WebViewCompat$VisualStateCallback;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/DoNotInline;
.end annotation
.line 158
new-instance v0, Landroidx/webkit/internal/ApiHelperForM$3;
invoke-direct {v0, p3}, Landroidx/webkit/internal/ApiHelperForM$3;-><init>(Landroidx/webkit/WebViewCompat$VisualStateCallback;)V
invoke-virtual {p0, p1, p2, v0}, Landroid/webkit/WebView;->postVisualStateCallback(JLandroid/webkit/WebView$VisualStateCallback;)V
return-void
.end method
.method public static postWebMessage(Landroid/webkit/WebView;Landroid/webkit/WebMessage;Landroid/net/Uri;)V
.locals 0
.param p0 # Landroid/webkit/WebView;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p1 # Landroid/webkit/WebMessage;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Landroid/net/Uri;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/DoNotInline;
.end annotation
.line 172
invoke-virtual {p0, p1, p2}, Landroid/webkit/WebView;->postWebMessage(Landroid/webkit/WebMessage;Landroid/net/Uri;)V
return-void
.end method
.method public static setOffscreenPreRaster(Landroid/webkit/WebSettings;Z)V
.locals 0
.param p0 # Landroid/webkit/WebSettings;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/DoNotInline;
.end annotation
.line 140
invoke-virtual {p0, p1}, Landroid/webkit/WebSettings;->setOffscreenPreRaster(Z)V
return-void
.end method
.method public static setWebMessageCallback(Landroid/webkit/WebMessagePort;Landroidx/webkit/WebMessagePortCompat$WebMessageCallbackCompat;)V
.locals 1
.param p0 # Landroid/webkit/WebMessagePort;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p1 # Landroidx/webkit/WebMessagePortCompat$WebMessageCallbackCompat;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/DoNotInline;
.end annotation
.line 70
new-instance v0, Landroidx/webkit/internal/ApiHelperForM$1;
invoke-direct {v0, p1}, Landroidx/webkit/internal/ApiHelperForM$1;-><init>(Landroidx/webkit/WebMessagePortCompat$WebMessageCallbackCompat;)V
invoke-virtual {p0, v0}, Landroid/webkit/WebMessagePort;->setWebMessageCallback(Landroid/webkit/WebMessagePort$WebMessageCallback;)V
return-void
.end method
.method public static setWebMessageCallback(Landroid/webkit/WebMessagePort;Landroidx/webkit/WebMessagePortCompat$WebMessageCallbackCompat;Landroid/os/Handler;)V
.locals 1
.param p0 # Landroid/webkit/WebMessagePort;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p1 # Landroidx/webkit/WebMessagePortCompat$WebMessageCallbackCompat;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Landroid/os/Handler;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.annotation build Landroidx/annotation/DoNotInline;
.end annotation
.line 88
new-instance v0, Landroidx/webkit/internal/ApiHelperForM$2;
invoke-direct {v0, p1}, Landroidx/webkit/internal/ApiHelperForM$2;-><init>(Landroidx/webkit/WebMessagePortCompat$WebMessageCallbackCompat;)V
invoke-virtual {p0, v0, p2}, Landroid/webkit/WebMessagePort;->setWebMessageCallback(Landroid/webkit/WebMessagePort$WebMessageCallback;Landroid/os/Handler;)V
return-void
.end method