- 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
278 lines
8.0 KiB
Smali
278 lines
8.0 KiB
Smali
.class Lcom/firemint/realracing/CheatView;
|
|
.super Landroid/widget/FrameLayout;
|
|
.source "SourceFile"
|
|
|
|
# interfaces
|
|
.implements Landroid/widget/TextView$OnEditorActionListener;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/firemint/realracing/CheatView$CheatListener;,
|
|
Lcom/firemint/realracing/CheatView$CheatEditText;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field m_bEnableLogging:Z
|
|
|
|
.field m_layout:Landroid/widget/LinearLayout;
|
|
|
|
.field m_listener:Lcom/firemint/realracing/CheatView$CheatListener;
|
|
|
|
.field m_text:Lcom/firemint/realracing/CheatView$CheatEditText;
|
|
|
|
.field touchOffToClose:Z
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Landroid/content/Context;Lcom/firemint/realracing/CheatView$CheatListener;Z)V
|
|
.locals 2
|
|
|
|
.line 76
|
|
invoke-direct {p0, p1}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;)V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
iput-boolean v0, p0, Lcom/firemint/realracing/CheatView;->m_bEnableLogging:Z
|
|
|
|
iput-object p2, p0, Lcom/firemint/realracing/CheatView;->m_listener:Lcom/firemint/realracing/CheatView$CheatListener;
|
|
|
|
.line 81
|
|
new-instance p2, Lcom/firemint/realracing/CheatView$CheatEditText;
|
|
|
|
iget-object v1, p0, Lcom/firemint/realracing/CheatView;->m_listener:Lcom/firemint/realracing/CheatView$CheatListener;
|
|
|
|
invoke-direct {p2, p0, p1, v1}, Lcom/firemint/realracing/CheatView$CheatEditText;-><init>(Lcom/firemint/realracing/CheatView;Landroid/content/Context;Lcom/firemint/realracing/CheatView$CheatListener;)V
|
|
|
|
iput-object p2, p0, Lcom/firemint/realracing/CheatView;->m_text:Lcom/firemint/realracing/CheatView$CheatEditText;
|
|
|
|
.line 82
|
|
invoke-virtual {p2, v0}, Landroid/widget/TextView;->setWidth(I)V
|
|
|
|
iget-object p2, p0, Lcom/firemint/realracing/CheatView;->m_text:Lcom/firemint/realracing/CheatView$CheatEditText;
|
|
|
|
.line 83
|
|
invoke-virtual {p2, v0}, Landroid/widget/TextView;->setHeight(I)V
|
|
|
|
.line 86
|
|
new-instance p2, Landroid/widget/LinearLayout;
|
|
|
|
invoke-direct {p2, p1}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;)V
|
|
|
|
iput-object p2, p0, Lcom/firemint/realracing/CheatView;->m_layout:Landroid/widget/LinearLayout;
|
|
|
|
iget-object p1, p0, Lcom/firemint/realracing/CheatView;->m_text:Lcom/firemint/realracing/CheatView$CheatEditText;
|
|
|
|
.line 87
|
|
invoke-virtual {p2, p1}, Landroid/view/ViewGroup;->addView(Landroid/view/View;)V
|
|
|
|
iget-object p1, p0, Lcom/firemint/realracing/CheatView;->m_layout:Landroid/widget/LinearLayout;
|
|
|
|
.line 88
|
|
invoke-virtual {p0, p1}, Landroid/view/ViewGroup;->addView(Landroid/view/View;)V
|
|
|
|
const/4 p1, 0x1
|
|
|
|
iput-boolean p1, p0, Lcom/firemint/realracing/CheatView;->touchOffToClose:Z
|
|
|
|
iget-object p2, p0, Lcom/firemint/realracing/CheatView;->m_layout:Landroid/widget/LinearLayout;
|
|
|
|
const/4 v0, 0x4
|
|
|
|
.line 93
|
|
invoke-virtual {p2, v0}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
if-eqz p3, :cond_0
|
|
|
|
const/16 p1, 0x81
|
|
|
|
:cond_0
|
|
iget-object p2, p0, Lcom/firemint/realracing/CheatView;->m_text:Lcom/firemint/realracing/CheatView$CheatEditText;
|
|
|
|
.line 102
|
|
invoke-virtual {p2, p1}, Landroid/widget/TextView;->setRawInputType(I)V
|
|
|
|
iget-object p1, p0, Lcom/firemint/realracing/CheatView;->m_text:Lcom/firemint/realracing/CheatView$CheatEditText;
|
|
|
|
const p2, 0x10000006
|
|
|
|
.line 103
|
|
invoke-virtual {p1, p2}, Landroid/widget/TextView;->setImeOptions(I)V
|
|
|
|
iget-object p1, p0, Lcom/firemint/realracing/CheatView;->m_text:Lcom/firemint/realracing/CheatView$CheatEditText;
|
|
|
|
.line 106
|
|
invoke-virtual {p1, p0}, Landroid/widget/TextView;->setOnEditorActionListener(Landroid/widget/TextView$OnEditorActionListener;)V
|
|
|
|
iget-object p1, p0, Lcom/firemint/realracing/CheatView;->m_text:Lcom/firemint/realracing/CheatView$CheatEditText;
|
|
|
|
.line 109
|
|
new-instance p2, Lcom/firemint/realracing/CheatView$1;
|
|
|
|
invoke-direct {p2, p0}, Lcom/firemint/realracing/CheatView$1;-><init>(Lcom/firemint/realracing/CheatView;)V
|
|
|
|
invoke-virtual {p1, p2}, Landroid/widget/TextView;->addTextChangedListener(Landroid/text/TextWatcher;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public Log(Ljava/lang/String;)V
|
|
.locals 1
|
|
|
|
iget-boolean v0, p0, Lcom/firemint/realracing/CheatView;->m_bEnableLogging:Z
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 62
|
|
invoke-virtual {p1}, Ljava/lang/String;->length()I
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public begin(Ljava/lang/String;)V
|
|
.locals 2
|
|
.annotation build Landroid/annotation/TargetApi;
|
|
value = 0xb
|
|
.end annotation
|
|
|
|
const-string v0, "begin"
|
|
|
|
.line 201
|
|
invoke-virtual {p0, v0}, Lcom/firemint/realracing/CheatView;->Log(Ljava/lang/String;)V
|
|
|
|
.line 204
|
|
sget-object v0, Lcom/firemint/realracing/MainActivity;->instance:Lcom/firemint/realracing/MainActivity;
|
|
|
|
invoke-virtual {v0}, Landroid/app/Activity;->getWindow()Landroid/view/Window;
|
|
|
|
move-result-object v0
|
|
|
|
const/16 v1, 0x30
|
|
|
|
invoke-virtual {v0, v1}, Landroid/view/Window;->setSoftInputMode(I)V
|
|
|
|
iget-object v0, p0, Lcom/firemint/realracing/CheatView;->m_text:Lcom/firemint/realracing/CheatView$CheatEditText;
|
|
|
|
.line 207
|
|
invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
|
|
|
.line 208
|
|
invoke-virtual {p0}, Lcom/firemint/realracing/CheatView;->onResume()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public end()V
|
|
.locals 2
|
|
|
|
.line 213
|
|
sget-object v0, Lcom/firemint/realracing/MainActivity;->instance:Lcom/firemint/realracing/MainActivity;
|
|
|
|
new-instance v1, Lcom/firemint/realracing/CheatView$3;
|
|
|
|
invoke-direct {v1, p0}, Lcom/firemint/realracing/CheatView$3;-><init>(Lcom/firemint/realracing/CheatView;)V
|
|
|
|
invoke-virtual {v0, v1}, Landroid/app/Activity;->runOnUiThread(Ljava/lang/Runnable;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onEditorAction(Landroid/widget/TextView;ILandroid/view/KeyEvent;)Z
|
|
.locals 0
|
|
|
|
const/4 p3, 0x6
|
|
|
|
if-ne p2, p3, :cond_0
|
|
|
|
const-string p2, "IME_ACTION_DONE"
|
|
|
|
.line 174
|
|
invoke-virtual {p0, p2}, Lcom/firemint/realracing/CheatView;->Log(Ljava/lang/String;)V
|
|
|
|
iget-object p2, p0, Lcom/firemint/realracing/CheatView;->m_listener:Lcom/firemint/realracing/CheatView$CheatListener;
|
|
|
|
const/4 p3, 0x1
|
|
|
|
.line 175
|
|
invoke-virtual {p1}, Landroid/widget/TextView;->getText()Ljava/lang/CharSequence;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-interface {p2, p3, p1}, Lcom/firemint/realracing/CheatView$CheatListener;->onInputDone(ZLjava/lang/CharSequence;)V
|
|
|
|
:cond_0
|
|
const/4 p1, 0x0
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public onPause()V
|
|
.locals 0
|
|
|
|
.line 195
|
|
invoke-virtual {p0}, Lcom/firemint/realracing/CheatView;->end()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onResume()V
|
|
.locals 2
|
|
|
|
.line 182
|
|
sget-object v0, Lcom/firemint/realracing/MainActivity;->instance:Lcom/firemint/realracing/MainActivity;
|
|
|
|
new-instance v1, Lcom/firemint/realracing/CheatView$2;
|
|
|
|
invoke-direct {v1, p0}, Lcom/firemint/realracing/CheatView$2;-><init>(Lcom/firemint/realracing/CheatView;)V
|
|
|
|
invoke-virtual {v0, v1}, Landroid/app/Activity;->runOnUiThread(Ljava/lang/Runnable;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onTouchEvent(Landroid/view/MotionEvent;)Z
|
|
.locals 2
|
|
|
|
iget-boolean v0, p0, Lcom/firemint/realracing/CheatView;->touchOffToClose:Z
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 153
|
|
invoke-virtual {p1}, Landroid/view/MotionEvent;->getActionMasked()I
|
|
|
|
move-result p1
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
const-string p1, "cancel"
|
|
|
|
.line 155
|
|
invoke-virtual {p0, p1}, Lcom/firemint/realracing/CheatView;->Log(Ljava/lang/String;)V
|
|
|
|
iget-object p1, p0, Lcom/firemint/realracing/CheatView;->m_listener:Lcom/firemint/realracing/CheatView$CheatListener;
|
|
|
|
const-string v0, ""
|
|
|
|
.line 156
|
|
invoke-interface {p1, v1, v0}, Lcom/firemint/realracing/CheatView$CheatListener;->onInputDone(ZLjava/lang/CharSequence;)V
|
|
|
|
:cond_0
|
|
const/4 p1, 0x1
|
|
|
|
return p1
|
|
|
|
.line 162
|
|
:cond_1
|
|
invoke-virtual {p0}, Lcom/firemint/realracing/CheatView;->onResume()V
|
|
|
|
return v1
|
|
.end method
|