- 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
200 lines
5.3 KiB
Smali
200 lines
5.3 KiB
Smali
.class public final Landroidx/media/MediaSessionManager;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Landroidx/media/MediaSessionManager$RemoteUserInfo;,
|
|
Landroidx/media/MediaSessionManager$RemoteUserInfoImpl;,
|
|
Landroidx/media/MediaSessionManager$MediaSessionManagerImpl;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field static final DEBUG:Z
|
|
|
|
.field static final TAG:Ljava/lang/String; = "MediaSessionManager"
|
|
|
|
.field private static final sLock:Ljava/lang/Object;
|
|
|
|
.field private static volatile sSessionManager:Landroidx/media/MediaSessionManager;
|
|
|
|
|
|
# instance fields
|
|
.field mImpl:Landroidx/media/MediaSessionManager$MediaSessionManagerImpl;
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 2
|
|
|
|
const-string v0, "MediaSessionManager"
|
|
|
|
const/4 v1, 0x3
|
|
|
|
.line 43
|
|
invoke-static {v0, v1}, Landroid/util/Log;->isLoggable(Ljava/lang/String;I)Z
|
|
|
|
move-result v0
|
|
|
|
sput-boolean v0, Landroidx/media/MediaSessionManager;->DEBUG:Z
|
|
|
|
.line 45
|
|
new-instance v0, Ljava/lang/Object;
|
|
|
|
invoke-direct {v0}, Ljava/lang/Object;-><init>()V
|
|
|
|
sput-object v0, Landroidx/media/MediaSessionManager;->sLock:Ljava/lang/Object;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private constructor <init>(Landroid/content/Context;)V
|
|
.locals 2
|
|
|
|
.line 68
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x1c
|
|
|
|
if-lt v0, v1, :cond_0
|
|
|
|
.line 70
|
|
new-instance v0, Landroidx/media/MediaSessionManagerImplApi28;
|
|
|
|
invoke-direct {v0, p1}, Landroidx/media/MediaSessionManagerImplApi28;-><init>(Landroid/content/Context;)V
|
|
|
|
iput-object v0, p0, Landroidx/media/MediaSessionManager;->mImpl:Landroidx/media/MediaSessionManager$MediaSessionManagerImpl;
|
|
|
|
goto :goto_0
|
|
|
|
.line 72
|
|
:cond_0
|
|
new-instance v0, Landroidx/media/MediaSessionManagerImplApi21;
|
|
|
|
invoke-direct {v0, p1}, Landroidx/media/MediaSessionManagerImplApi21;-><init>(Landroid/content/Context;)V
|
|
|
|
iput-object v0, p0, Landroidx/media/MediaSessionManager;->mImpl:Landroidx/media/MediaSessionManager$MediaSessionManagerImpl;
|
|
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public static getSessionManager(Landroid/content/Context;)Landroidx/media/MediaSessionManager;
|
|
.locals 2
|
|
.param p0 # Landroid/content/Context;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
if-eqz p0, :cond_1
|
|
|
|
sget-object v0, Landroidx/media/MediaSessionManager;->sLock:Ljava/lang/Object;
|
|
|
|
.line 60
|
|
monitor-enter v0
|
|
|
|
:try_start_0
|
|
sget-object v1, Landroidx/media/MediaSessionManager;->sSessionManager:Landroidx/media/MediaSessionManager;
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
.line 62
|
|
new-instance v1, Landroidx/media/MediaSessionManager;
|
|
|
|
invoke-virtual {p0}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-direct {v1, p0}, Landroidx/media/MediaSessionManager;-><init>(Landroid/content/Context;)V
|
|
|
|
sput-object v1, Landroidx/media/MediaSessionManager;->sSessionManager:Landroidx/media/MediaSessionManager;
|
|
|
|
goto :goto_0
|
|
|
|
:catchall_0
|
|
move-exception p0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_0
|
|
:goto_0
|
|
sget-object p0, Landroidx/media/MediaSessionManager;->sSessionManager:Landroidx/media/MediaSessionManager;
|
|
|
|
.line 64
|
|
monitor-exit v0
|
|
|
|
return-object p0
|
|
|
|
.line 65
|
|
:goto_1
|
|
monitor-exit v0
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
throw p0
|
|
|
|
.line 58
|
|
:cond_1
|
|
new-instance p0, Ljava/lang/IllegalArgumentException;
|
|
|
|
const-string v0, "context cannot be null"
|
|
|
|
invoke-direct {p0, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public getContext()Landroid/content/Context;
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Landroidx/media/MediaSessionManager;->mImpl:Landroidx/media/MediaSessionManager$MediaSessionManagerImpl;
|
|
|
|
.line 98
|
|
invoke-interface {v0}, Landroidx/media/MediaSessionManager$MediaSessionManagerImpl;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public isTrustedForMediaControl(Landroidx/media/MediaSessionManager$RemoteUserInfo;)Z
|
|
.locals 1
|
|
.param p1 # Landroidx/media/MediaSessionManager$RemoteUserInfo;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
iget-object v0, p0, Landroidx/media/MediaSessionManager;->mImpl:Landroidx/media/MediaSessionManager$MediaSessionManagerImpl;
|
|
|
|
.line 94
|
|
iget-object p1, p1, Landroidx/media/MediaSessionManager$RemoteUserInfo;->mImpl:Landroidx/media/MediaSessionManager$RemoteUserInfoImpl;
|
|
|
|
invoke-interface {v0, p1}, Landroidx/media/MediaSessionManager$MediaSessionManagerImpl;->isTrustedForMediaControl(Landroidx/media/MediaSessionManager$RemoteUserInfoImpl;)Z
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
|
|
.line 92
|
|
:cond_0
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
const-string v0, "userInfo should not be null"
|
|
|
|
invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
.end method
|