- 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
609 lines
16 KiB
Smali
609 lines
16 KiB
Smali
.class public Landroidx/core/app/NotificationCompat$DecoratedCustomViewStyle;
|
|
.super Landroidx/core/app/NotificationCompat$Style;
|
|
.source "SourceFile"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Landroidx/core/app/NotificationCompat;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x9
|
|
name = "DecoratedCustomViewStyle"
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Landroidx/core/app/NotificationCompat$DecoratedCustomViewStyle$Api24Impl;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field private static final MAX_ACTION_BUTTONS:I = 0x3
|
|
|
|
.field private static final TEMPLATE_CLASS_NAME:Ljava/lang/String; = "androidx.core.app.NotificationCompat$DecoratedCustomViewStyle"
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
.line 5372
|
|
invoke-direct {p0}, Landroidx/core/app/NotificationCompat$Style;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private createRemoteViews(Landroid/widget/RemoteViews;Z)Landroid/widget/RemoteViews;
|
|
.locals 6
|
|
|
|
sget v0, Landroidx/core/R$layout;->notification_template_custom_big:I
|
|
|
|
const/4 v1, 0x1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
.line 5535
|
|
invoke-virtual {p0, v1, v0, v2}, Landroidx/core/app/NotificationCompat$Style;->applyStandardTemplate(ZIZ)Landroid/widget/RemoteViews;
|
|
|
|
move-result-object v0
|
|
|
|
sget v1, Landroidx/core/R$id;->actions:I
|
|
|
|
.line 5537
|
|
invoke-virtual {v0, v1}, Landroid/widget/RemoteViews;->removeAllViews(I)V
|
|
|
|
iget-object v1, p0, Landroidx/core/app/NotificationCompat$Style;->mBuilder:Landroidx/core/app/NotificationCompat$Builder;
|
|
|
|
.line 5542
|
|
iget-object v1, v1, Landroidx/core/app/NotificationCompat$Builder;->mActions:Ljava/util/ArrayList;
|
|
|
|
.line 5543
|
|
invoke-static {v1}, Landroidx/core/app/NotificationCompat$DecoratedCustomViewStyle;->getNonContextualActions(Ljava/util/List;)Ljava/util/List;
|
|
|
|
move-result-object v1
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
.line 5546
|
|
invoke-interface {v1}, Ljava/util/List;->size()I
|
|
|
|
move-result p2
|
|
|
|
const/4 v3, 0x3
|
|
|
|
invoke-static {p2, v3}, Ljava/lang/Math;->min(II)I
|
|
|
|
move-result p2
|
|
|
|
if-lez p2, :cond_0
|
|
|
|
move v3, v2
|
|
|
|
:goto_0
|
|
if-ge v3, p2, :cond_1
|
|
|
|
.line 5551
|
|
invoke-interface {v1, v3}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v4
|
|
|
|
check-cast v4, Landroidx/core/app/NotificationCompat$Action;
|
|
|
|
invoke-direct {p0, v4}, Landroidx/core/app/NotificationCompat$DecoratedCustomViewStyle;->generateActionButton(Landroidx/core/app/NotificationCompat$Action;)Landroid/widget/RemoteViews;
|
|
|
|
move-result-object v4
|
|
|
|
sget v5, Landroidx/core/R$id;->actions:I
|
|
|
|
.line 5552
|
|
invoke-virtual {v0, v5, v4}, Landroid/widget/RemoteViews;->addView(ILandroid/widget/RemoteViews;)V
|
|
|
|
add-int/lit8 v3, v3, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/16 v2, 0x8
|
|
|
|
:cond_1
|
|
sget p2, Landroidx/core/R$id;->actions:I
|
|
|
|
.line 5557
|
|
invoke-virtual {v0, p2, v2}, Landroid/widget/RemoteViews;->setViewVisibility(II)V
|
|
|
|
sget p2, Landroidx/core/R$id;->action_divider:I
|
|
|
|
.line 5558
|
|
invoke-virtual {v0, p2, v2}, Landroid/widget/RemoteViews;->setViewVisibility(II)V
|
|
|
|
.line 5559
|
|
invoke-virtual {p0, v0, p1}, Landroidx/core/app/NotificationCompat$Style;->buildIntoRemoteViews(Landroid/widget/RemoteViews;Landroid/widget/RemoteViews;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method private generateActionButton(Landroidx/core/app/NotificationCompat$Action;)Landroid/widget/RemoteViews;
|
|
.locals 5
|
|
|
|
.line 5576
|
|
iget-object v0, p1, Landroidx/core/app/NotificationCompat$Action;->actionIntent:Landroid/app/PendingIntent;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
.line 5577
|
|
:goto_0
|
|
new-instance v1, Landroid/widget/RemoteViews;
|
|
|
|
iget-object v2, p0, Landroidx/core/app/NotificationCompat$Style;->mBuilder:Landroidx/core/app/NotificationCompat$Builder;
|
|
|
|
iget-object v2, v2, Landroidx/core/app/NotificationCompat$Builder;->mContext:Landroid/content/Context;
|
|
|
|
invoke-virtual {v2}, Landroid/content/Context;->getPackageName()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
sget v3, Landroidx/core/R$layout;->notification_action_tombstone:I
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
sget v3, Landroidx/core/R$layout;->notification_action:I
|
|
|
|
.line 5579
|
|
:goto_1
|
|
invoke-direct {v1, v2, v3}, Landroid/widget/RemoteViews;-><init>(Ljava/lang/String;I)V
|
|
|
|
.line 5580
|
|
invoke-virtual {p1}, Landroidx/core/app/NotificationCompat$Action;->getIconCompat()Landroidx/core/graphics/drawable/IconCompat;
|
|
|
|
move-result-object v2
|
|
|
|
if-eqz v2, :cond_2
|
|
|
|
sget v3, Landroidx/core/R$id;->action_image:I
|
|
|
|
sget v4, Landroidx/core/R$color;->notification_action_color_filter:I
|
|
|
|
.line 5583
|
|
invoke-virtual {p0, v2, v4}, Landroidx/core/app/NotificationCompat$Style;->createColoredBitmap(Landroidx/core/graphics/drawable/IconCompat;I)Landroid/graphics/Bitmap;
|
|
|
|
move-result-object v2
|
|
|
|
.line 5582
|
|
invoke-virtual {v1, v3, v2}, Landroid/widget/RemoteViews;->setImageViewBitmap(ILandroid/graphics/Bitmap;)V
|
|
|
|
:cond_2
|
|
sget v2, Landroidx/core/R$id;->action_text:I
|
|
|
|
.line 5585
|
|
iget-object v3, p1, Landroidx/core/app/NotificationCompat$Action;->title:Ljava/lang/CharSequence;
|
|
|
|
invoke-virtual {v1, v2, v3}, Landroid/widget/RemoteViews;->setTextViewText(ILjava/lang/CharSequence;)V
|
|
|
|
if-nez v0, :cond_3
|
|
|
|
sget v0, Landroidx/core/R$id;->action_container:I
|
|
|
|
.line 5587
|
|
iget-object v2, p1, Landroidx/core/app/NotificationCompat$Action;->actionIntent:Landroid/app/PendingIntent;
|
|
|
|
invoke-virtual {v1, v0, v2}, Landroid/widget/RemoteViews;->setOnClickPendingIntent(ILandroid/app/PendingIntent;)V
|
|
|
|
:cond_3
|
|
sget v0, Landroidx/core/R$id;->action_container:I
|
|
|
|
.line 5589
|
|
iget-object p1, p1, Landroidx/core/app/NotificationCompat$Action;->title:Ljava/lang/CharSequence;
|
|
|
|
invoke-virtual {v1, v0, p1}, Landroid/widget/RemoteViews;->setContentDescription(ILjava/lang/CharSequence;)V
|
|
|
|
return-object v1
|
|
.end method
|
|
|
|
.method private static getNonContextualActions(Ljava/util/List;)Ljava/util/List;
|
|
.locals 3
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/util/List<",
|
|
"Landroidx/core/app/NotificationCompat$Action;",
|
|
">;)",
|
|
"Ljava/util/List<",
|
|
"Landroidx/core/app/NotificationCompat$Action;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
if-nez p0, :cond_0
|
|
|
|
const/4 p0, 0x0
|
|
|
|
return-object p0
|
|
|
|
.line 5566
|
|
:cond_0
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
.line 5567
|
|
invoke-interface {p0}, Ljava/util/List;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object p0
|
|
|
|
:cond_1
|
|
:goto_0
|
|
invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Landroidx/core/app/NotificationCompat$Action;
|
|
|
|
.line 5568
|
|
invoke-virtual {v1}, Landroidx/core/app/NotificationCompat$Action;->isContextual()Z
|
|
|
|
move-result v2
|
|
|
|
if-nez v2, :cond_1
|
|
|
|
.line 5569
|
|
invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static getTextsFromContentView(Landroid/content/Context;Landroid/app/Notification;)Ljava/util/List;
|
|
.locals 3
|
|
.param p0 # Landroid/content/Context;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p1 # Landroid/app/Notification;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
.annotation build Landroidx/annotation/RequiresApi;
|
|
value = 0x18
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Landroid/content/Context;",
|
|
"Landroid/app/Notification;",
|
|
")",
|
|
"Ljava/util/List<",
|
|
"Ljava/lang/CharSequence;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 5485
|
|
iget-object v0, p1, Landroid/app/Notification;->extras:Landroid/os/Bundle;
|
|
|
|
const-string v1, "android.template"
|
|
|
|
invoke-virtual {v0, v1}, Landroid/os/BaseBundle;->getString(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
const-class v1, Landroid/app/Notification$DecoratedCustomViewStyle;
|
|
|
|
.line 5486
|
|
invoke-virtual {v1}, Ljava/lang/Class;->getName()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
.line 5487
|
|
invoke-static {}, Ljava/util/Collections;->emptyList()Ljava/util/List;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
|
|
.line 5490
|
|
:cond_0
|
|
iget-object v0, p1, Landroid/app/Notification;->contentView:Landroid/widget/RemoteViews;
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
iget-object v1, p1, Landroid/app/Notification;->bigContentView:Landroid/widget/RemoteViews;
|
|
|
|
if-nez v1, :cond_1
|
|
|
|
iget-object v1, p1, Landroid/app/Notification;->headsUpContentView:Landroid/widget/RemoteViews;
|
|
|
|
if-nez v1, :cond_1
|
|
|
|
.line 5492
|
|
invoke-static {}, Ljava/util/Collections;->emptyList()Ljava/util/List;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
|
|
.line 5495
|
|
:cond_1
|
|
iget-object v1, p1, Landroid/app/Notification;->bigContentView:Landroid/widget/RemoteViews;
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
move-object v0, v1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
if-eqz v0, :cond_3
|
|
|
|
goto :goto_0
|
|
|
|
.line 5497
|
|
:cond_3
|
|
iget-object v0, p1, Landroid/app/Notification;->headsUpContentView:Landroid/widget/RemoteViews;
|
|
|
|
.line 5498
|
|
:goto_0
|
|
invoke-virtual {v0}, Landroid/widget/RemoteViews;->getPackage()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
const/4 v1, 0x0
|
|
|
|
.line 5502
|
|
:try_start_0
|
|
invoke-virtual {p0, p1, v1}, Landroid/content/Context;->createPackageContext(Ljava/lang/String;I)Landroid/content/Context;
|
|
|
|
move-result-object v2
|
|
|
|
.line 5503
|
|
invoke-virtual {p0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {p0, p1, v1}, Landroid/content/pm/PackageManager;->getApplicationInfo(Ljava/lang/String;I)Landroid/content/pm/ApplicationInfo;
|
|
|
|
move-result-object p0
|
|
:try_end_0
|
|
.catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
.line 5507
|
|
iget p0, p0, Landroid/content/pm/ApplicationInfo;->theme:I
|
|
|
|
invoke-virtual {v2, p0}, Landroid/content/Context;->setTheme(I)V
|
|
|
|
const/4 p0, 0x0
|
|
|
|
.line 5508
|
|
invoke-virtual {v0, v2, p0}, Landroid/widget/RemoteViews;->apply(Landroid/content/Context;Landroid/view/ViewGroup;)Landroid/view/View;
|
|
|
|
move-result-object p0
|
|
|
|
.line 5510
|
|
new-instance p1, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {p1}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
.line 5511
|
|
invoke-static {p0, p1}, Landroidx/core/app/NotificationCompat$DecoratedCustomViewStyle;->getTextsFromViewTraversal(Landroid/view/View;Ljava/util/ArrayList;)V
|
|
|
|
return-object p1
|
|
|
|
:catch_0
|
|
move-exception p0
|
|
|
|
.line 5505
|
|
new-instance p1, Ljava/lang/RuntimeException;
|
|
|
|
invoke-direct {p1, p0}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/Throwable;)V
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method private static getTextsFromViewTraversal(Landroid/view/View;Ljava/util/ArrayList;)V
|
|
.locals 4
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Landroid/view/View;",
|
|
"Ljava/util/ArrayList<",
|
|
"Ljava/lang/CharSequence;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 5517
|
|
instance-of v0, p0, Landroid/view/ViewGroup;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
.line 5520
|
|
:goto_0
|
|
move-object v1, p0
|
|
|
|
check-cast v1, Landroid/view/ViewGroup;
|
|
|
|
invoke-virtual {v1}, Landroid/view/ViewGroup;->getChildCount()I
|
|
|
|
move-result v2
|
|
|
|
if-ge v0, v2, :cond_3
|
|
|
|
.line 5521
|
|
invoke-virtual {v1, v0}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;
|
|
|
|
move-result-object v1
|
|
|
|
.line 5522
|
|
instance-of v2, v1, Landroid/widget/TextView;
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
.line 5523
|
|
move-object v2, v1
|
|
|
|
check-cast v2, Landroid/widget/TextView;
|
|
|
|
invoke-virtual {v2}, Landroid/widget/TextView;->getText()Ljava/lang/CharSequence;
|
|
|
|
move-result-object v2
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
.line 5524
|
|
invoke-interface {v2}, Ljava/lang/CharSequence;->length()I
|
|
|
|
move-result v3
|
|
|
|
if-lez v3, :cond_1
|
|
|
|
.line 5525
|
|
invoke-virtual {p1, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
.line 5528
|
|
:cond_1
|
|
instance-of v2, v1, Landroid/view/ViewGroup;
|
|
|
|
if-eqz v2, :cond_2
|
|
|
|
.line 5529
|
|
invoke-static {v1, p1}, Landroidx/core/app/NotificationCompat$DecoratedCustomViewStyle;->getTextsFromViewTraversal(Landroid/view/View;Ljava/util/ArrayList;)V
|
|
|
|
:cond_2
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_3
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public apply(Landroidx/core/app/NotificationBuilderWithBuilderAccessor;)V
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/RestrictTo;
|
|
value = {
|
|
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP_PREFIX:Landroidx/annotation/RestrictTo$Scope;
|
|
}
|
|
.end annotation
|
|
|
|
.line 5398
|
|
invoke-interface {p1}, Landroidx/core/app/NotificationBuilderWithBuilderAccessor;->getBuilder()Landroid/app/Notification$Builder;
|
|
|
|
move-result-object p1
|
|
|
|
.line 5399
|
|
invoke-static {}, Landroidx/core/app/NotificationCompat$DecoratedCustomViewStyle$Api24Impl;->createDecoratedCustomViewStyle()Landroid/app/Notification$Style;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p1, v0}, Landroid/app/Notification$Builder;->setStyle(Landroid/app/Notification$Style;)Landroid/app/Notification$Builder;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public displayCustomViewInline()Z
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/RestrictTo;
|
|
value = {
|
|
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP_PREFIX:Landroidx/annotation/RestrictTo$Scope;
|
|
}
|
|
.end annotation
|
|
|
|
const/4 v0, 0x1
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getClassName()Ljava/lang/String;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
.annotation build Landroidx/annotation/RestrictTo;
|
|
value = {
|
|
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP_PREFIX:Landroidx/annotation/RestrictTo$Scope;
|
|
}
|
|
.end annotation
|
|
|
|
const-string v0, "androidx.core.app.NotificationCompat$DecoratedCustomViewStyle"
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public makeBigContentView(Landroidx/core/app/NotificationBuilderWithBuilderAccessor;)Landroid/widget/RemoteViews;
|
|
.locals 0
|
|
.annotation build Landroidx/annotation/RestrictTo;
|
|
value = {
|
|
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP_PREFIX:Landroidx/annotation/RestrictTo$Scope;
|
|
}
|
|
.end annotation
|
|
|
|
const/4 p1, 0x0
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public makeContentView(Landroidx/core/app/NotificationBuilderWithBuilderAccessor;)Landroid/widget/RemoteViews;
|
|
.locals 0
|
|
.annotation build Landroidx/annotation/RestrictTo;
|
|
value = {
|
|
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP_PREFIX:Landroidx/annotation/RestrictTo$Scope;
|
|
}
|
|
.end annotation
|
|
|
|
const/4 p1, 0x0
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public makeHeadsUpContentView(Landroidx/core/app/NotificationBuilderWithBuilderAccessor;)Landroid/widget/RemoteViews;
|
|
.locals 0
|
|
.annotation build Landroidx/annotation/RestrictTo;
|
|
value = {
|
|
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP_PREFIX:Landroidx/annotation/RestrictTo$Scope;
|
|
}
|
|
.end annotation
|
|
|
|
const/4 p1, 0x0
|
|
|
|
return-object p1
|
|
.end method
|