- 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
176 lines
4.2 KiB
Smali
176 lines
4.2 KiB
Smali
.class public Lcom/helpshift/concurrency/NotifyingRunnable;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
# interfaces
|
|
.implements Ljava/lang/Runnable;
|
|
|
|
|
|
# instance fields
|
|
.field public isFinished:Ljava/util/concurrent/atomic/AtomicBoolean;
|
|
|
|
.field public final runnable:Ljava/lang/Runnable;
|
|
|
|
.field public final syncLock:Ljava/lang/Object;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Ljava/lang/Runnable;)V
|
|
.locals 2
|
|
|
|
.line 14
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 11
|
|
new-instance v0, Ljava/lang/Object;
|
|
|
|
invoke-direct {v0}, Ljava/lang/Object;-><init>()V
|
|
|
|
iput-object v0, p0, Lcom/helpshift/concurrency/NotifyingRunnable;->syncLock:Ljava/lang/Object;
|
|
|
|
.line 12
|
|
new-instance v0, Ljava/util/concurrent/atomic/AtomicBoolean;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-direct {v0, v1}, Ljava/util/concurrent/atomic/AtomicBoolean;-><init>(Z)V
|
|
|
|
iput-object v0, p0, Lcom/helpshift/concurrency/NotifyingRunnable;->isFinished:Ljava/util/concurrent/atomic/AtomicBoolean;
|
|
|
|
iput-object p1, p0, Lcom/helpshift/concurrency/NotifyingRunnable;->runnable:Ljava/lang/Runnable;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public run()V
|
|
.locals 4
|
|
|
|
iget-object v0, p0, Lcom/helpshift/concurrency/NotifyingRunnable;->syncLock:Ljava/lang/Object;
|
|
|
|
.line 37
|
|
monitor-enter v0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
:try_start_0
|
|
iget-object v2, p0, Lcom/helpshift/concurrency/NotifyingRunnable;->runnable:Ljava/lang/Runnable;
|
|
|
|
.line 39
|
|
invoke-interface {v2}, Ljava/lang/Runnable;->run()V
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_1
|
|
|
|
:try_start_1
|
|
iget-object v2, p0, Lcom/helpshift/concurrency/NotifyingRunnable;->isFinished:Ljava/util/concurrent/atomic/AtomicBoolean;
|
|
|
|
.line 42
|
|
invoke-virtual {v2, v1}, Ljava/util/concurrent/atomic/AtomicBoolean;->set(Z)V
|
|
|
|
iget-object v1, p0, Lcom/helpshift/concurrency/NotifyingRunnable;->syncLock:Ljava/lang/Object;
|
|
|
|
.line 43
|
|
invoke-virtual {v1}, Ljava/lang/Object;->notifyAll()V
|
|
|
|
.line 45
|
|
monitor-exit v0
|
|
|
|
return-void
|
|
|
|
:catchall_0
|
|
move-exception v1
|
|
|
|
goto :goto_0
|
|
|
|
:catchall_1
|
|
move-exception v2
|
|
|
|
iget-object v3, p0, Lcom/helpshift/concurrency/NotifyingRunnable;->isFinished:Ljava/util/concurrent/atomic/AtomicBoolean;
|
|
|
|
.line 42
|
|
invoke-virtual {v3, v1}, Ljava/util/concurrent/atomic/AtomicBoolean;->set(Z)V
|
|
|
|
iget-object v1, p0, Lcom/helpshift/concurrency/NotifyingRunnable;->syncLock:Ljava/lang/Object;
|
|
|
|
.line 43
|
|
invoke-virtual {v1}, Ljava/lang/Object;->notifyAll()V
|
|
|
|
.line 44
|
|
throw v2
|
|
|
|
.line 45
|
|
:goto_0
|
|
monitor-exit v0
|
|
:try_end_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
throw v1
|
|
.end method
|
|
|
|
.method public waitForCompletion()V
|
|
.locals 4
|
|
|
|
iget-object v0, p0, Lcom/helpshift/concurrency/NotifyingRunnable;->syncLock:Ljava/lang/Object;
|
|
|
|
.line 20
|
|
monitor-enter v0
|
|
|
|
:goto_0
|
|
:try_start_0
|
|
iget-object v1, p0, Lcom/helpshift/concurrency/NotifyingRunnable;->isFinished:Ljava/util/concurrent/atomic/AtomicBoolean;
|
|
|
|
.line 24
|
|
invoke-virtual {v1}, Ljava/util/concurrent/atomic/AtomicBoolean;->get()Z
|
|
|
|
move-result v1
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
iget-object v1, p0, Lcom/helpshift/concurrency/NotifyingRunnable;->syncLock:Ljava/lang/Object;
|
|
|
|
.line 25
|
|
invoke-virtual {v1}, Ljava/lang/Object;->wait()V
|
|
:try_end_0
|
|
.catch Ljava/lang/InterruptedException; {:try_start_0 .. :try_end_0} :catch_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
goto :goto_0
|
|
|
|
:catchall_0
|
|
move-exception v1
|
|
|
|
goto :goto_1
|
|
|
|
:catch_0
|
|
move-exception v1
|
|
|
|
:try_start_1
|
|
const-string v2, "NotifyingRunnable"
|
|
|
|
const-string v3, "Exception in NotifyingRunnable"
|
|
|
|
.line 29
|
|
invoke-static {v2, v3, v1}, Lcom/helpshift/log/HSLogger;->d(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V
|
|
|
|
.line 30
|
|
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1}, Ljava/lang/Thread;->interrupt()V
|
|
|
|
.line 32
|
|
:cond_0
|
|
monitor-exit v0
|
|
|
|
return-void
|
|
|
|
:goto_1
|
|
monitor-exit v0
|
|
:try_end_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
throw v1
|
|
.end method
|