├── README.md ├── services.jar.out └── smali │ └── com │ └── android │ └── server │ ├── am │ ├── -$Lambda$wXoCvN1vCS9Im-C0Hwk121gFGr0.smali │ ├── -$Lambda$njIALZ9XLXuT-vhmazyQkVX7Z0U$1.smali │ ├── PreventRunningHook.smali │ ├── -$Lambda$5yQSwWrsRDcxoFuTXgyaBIqPvDw.smali │ ├── -$Lambda$njIALZ9XLXuT-vhmazyQkVX7Z0U.smali │ ├── PreventRunningUtils.smali │ └── PreventRunning.smali │ └── notification │ ├── -$Lambda$0oXbfIRCVxclfVVwXaE3J61tRFA$3.smali │ ├── -$Lambda$0oXbfIRCVxclfVVwXaE3J61tRFA.smali │ ├── -$Lambda$0oXbfIRCVxclfVVwXaE3J61tRFA$1.smali │ ├── -$Lambda$0oXbfIRCVxclfVVwXaE3J61tRFA$2.smali │ ├── NotificationManagerService$17.smali │ ├── NotificationManagerService$16.smali │ └── NotificationManagerService$NotificationListeners.smali └── framework.jar.out └── smali └── android └── app └── INotificationManager.smali /README.md: -------------------------------------------------------------------------------- 1 | 黑域smali补丁 for Android O 2 | 3 | 闲着没事编译了两份系统框架,分别打了黑域补丁和没打黑域补丁,然后反编译,这里就是它们的差异了。 4 | 5 | 谁想折腾自动打补丁就来折腾吧,我反正是不玩了。 6 | 7 | 注意:这只是逆向后的原始差异,并不能直接拿来复制使用,请根据实际情况进行修改。 -------------------------------------------------------------------------------- /services.jar.out/smali/com/android/server/am/-$Lambda$wXoCvN1vCS9Im-C0Hwk121gFGr0.smali: -------------------------------------------------------------------------------- 1 | .class final synthetic Lcom/android/server/am/-$Lambda$wXoCvN1vCS9Im-C0Hwk121gFGr0; 2 | .super Ljava/lang/Object; 3 | 4 | # interfaces 5 | .implements Ljava/lang/Runnable; 6 | 7 | 8 | # instance fields 9 | .field private final synthetic -$f0:I 10 | 11 | .field private final synthetic -$f1:Ljava/lang/Object; 12 | 13 | 14 | # direct methods 15 | .method private final synthetic $m$0()V 16 | .locals 2 17 | 18 | .prologue 19 | iget-object v0, p0, Lcom/android/server/am/-$Lambda$wXoCvN1vCS9Im-C0Hwk121gFGr0;->-$f1:Ljava/lang/Object; 20 | 21 | check-cast v0, Lcom/android/server/am/ActivityStackSupervisor; 22 | 23 | iget v1, p0, Lcom/android/server/am/-$Lambda$wXoCvN1vCS9Im-C0Hwk121gFGr0;->-$f0:I 24 | 25 | invoke-virtual {v0, v1}, Lcom/android/server/am/ActivityStackSupervisor;->lambda$-com_android_server_am_ActivityStackSupervisor_122611(I)V 26 | 27 | return-void 28 | .end method 29 | 30 | .method public synthetic constructor (ILjava/lang/Object;)V 31 | .locals 0 32 | 33 | .prologue 34 | invoke-direct {p0}, Ljava/lang/Object;->()V 35 | 36 | iput p1, p0, Lcom/android/server/am/-$Lambda$wXoCvN1vCS9Im-C0Hwk121gFGr0;->-$f0:I 37 | 38 | iput-object p2, p0, Lcom/android/server/am/-$Lambda$wXoCvN1vCS9Im-C0Hwk121gFGr0;->-$f1:Ljava/lang/Object; 39 | 40 | return-void 41 | .end method 42 | 43 | 44 | # virtual methods 45 | .method public final run()V 46 | .locals 0 47 | 48 | .prologue 49 | invoke-direct {p0}, Lcom/android/server/am/-$Lambda$wXoCvN1vCS9Im-C0Hwk121gFGr0;->$m$0()V 50 | 51 | return-void 52 | .end method 53 | -------------------------------------------------------------------------------- /services.jar.out/smali/com/android/server/notification/-$Lambda$0oXbfIRCVxclfVVwXaE3J61tRFA$3.smali: -------------------------------------------------------------------------------- 1 | .class final synthetic Lcom/android/server/notification/-$Lambda$0oXbfIRCVxclfVVwXaE3J61tRFA$3; 2 | .super Ljava/lang/Object; 3 | 4 | # interfaces 5 | .implements Lcom/android/server/notification/NotificationManagerService$FlagChecker; 6 | 7 | 8 | # instance fields 9 | .field private final synthetic -$f0:I 10 | 11 | .field private final synthetic -$f1:I 12 | 13 | 14 | # direct methods 15 | .method private final synthetic $m$0(I)Z 16 | .locals 2 17 | .param p1, "arg0" # I 18 | 19 | .prologue 20 | iget v0, p0, Lcom/android/server/notification/-$Lambda$0oXbfIRCVxclfVVwXaE3J61tRFA$3;->-$f0:I 21 | 22 | iget v1, p0, Lcom/android/server/notification/-$Lambda$0oXbfIRCVxclfVVwXaE3J61tRFA$3;->-$f1:I 23 | 24 | invoke-static {v0, v1, p1}, Lcom/android/server/notification/NotificationManagerService$16;->lambda$-com_android_server_notification_NotificationManagerService$16_216953(III)Z 25 | 26 | move-result v0 27 | 28 | return v0 29 | .end method 30 | 31 | .method public synthetic constructor (II)V 32 | .locals 0 33 | 34 | .prologue 35 | invoke-direct {p0}, Ljava/lang/Object;->()V 36 | 37 | iput p1, p0, Lcom/android/server/notification/-$Lambda$0oXbfIRCVxclfVVwXaE3J61tRFA$3;->-$f0:I 38 | 39 | iput p2, p0, Lcom/android/server/notification/-$Lambda$0oXbfIRCVxclfVVwXaE3J61tRFA$3;->-$f1:I 40 | 41 | return-void 42 | .end method 43 | 44 | 45 | # virtual methods 46 | .method public final apply(I)Z 47 | .locals 1 48 | 49 | .prologue 50 | invoke-direct {p0, p1}, Lcom/android/server/notification/-$Lambda$0oXbfIRCVxclfVVwXaE3J61tRFA$3;->$m$0(I)Z 51 | 52 | move-result v0 53 | 54 | return v0 55 | .end method 56 | -------------------------------------------------------------------------------- /services.jar.out/smali/com/android/server/notification/-$Lambda$0oXbfIRCVxclfVVwXaE3J61tRFA.smali: -------------------------------------------------------------------------------- 1 | .class final synthetic Lcom/android/server/notification/-$Lambda$0oXbfIRCVxclfVVwXaE3J61tRFA; 2 | .super Ljava/lang/Object; 3 | 4 | # interfaces 5 | .implements Lcom/android/server/notification/NotificationManagerService$FlagChecker; 6 | 7 | 8 | # static fields 9 | .field public static final synthetic $INST$0:Lcom/android/server/notification/-$Lambda$0oXbfIRCVxclfVVwXaE3J61tRFA; 10 | 11 | 12 | # direct methods 13 | .method private final synthetic $m$0(I)Z 14 | .locals 1 15 | .param p1, "arg0" # I 16 | 17 | .prologue 18 | invoke-static {p1}, Lcom/android/server/notification/NotificationManagerService$17;->lambda$-com_android_server_notification_NotificationManagerService$17_222127(I)Z 19 | 20 | move-result v0 21 | 22 | return v0 23 | .end method 24 | 25 | .method static synthetic constructor ()V 26 | .locals 1 27 | 28 | new-instance v0, Lcom/android/server/notification/-$Lambda$0oXbfIRCVxclfVVwXaE3J61tRFA; 29 | 30 | invoke-direct {v0}, Lcom/android/server/notification/-$Lambda$0oXbfIRCVxclfVVwXaE3J61tRFA;->()V 31 | 32 | sput-object v0, Lcom/android/server/notification/-$Lambda$0oXbfIRCVxclfVVwXaE3J61tRFA;->$INST$0:Lcom/android/server/notification/-$Lambda$0oXbfIRCVxclfVVwXaE3J61tRFA; 33 | 34 | return-void 35 | .end method 36 | 37 | .method private synthetic constructor ()V 38 | .locals 0 39 | 40 | .prologue 41 | invoke-direct {p0}, Ljava/lang/Object;->()V 42 | 43 | return-void 44 | .end method 45 | 46 | 47 | # virtual methods 48 | .method public final apply(I)Z 49 | .locals 1 50 | 51 | .prologue 52 | invoke-direct {p0, p1}, Lcom/android/server/notification/-$Lambda$0oXbfIRCVxclfVVwXaE3J61tRFA;->$m$0(I)Z 53 | 54 | move-result v0 55 | 56 | return v0 57 | .end method 58 | -------------------------------------------------------------------------------- /services.jar.out/smali/com/android/server/am/-$Lambda$njIALZ9XLXuT-vhmazyQkVX7Z0U$1.smali: -------------------------------------------------------------------------------- 1 | .class final synthetic Lcom/android/server/am/-$Lambda$njIALZ9XLXuT-vhmazyQkVX7Z0U$1; 2 | .super Ljava/lang/Object; 3 | 4 | # interfaces 5 | .implements Ljava/lang/Runnable; 6 | 7 | 8 | # instance fields 9 | .field private final synthetic -$f0:Ljava/lang/Object; 10 | 11 | .field private final synthetic -$f1:Ljava/lang/Object; 12 | 13 | .field private final synthetic -$f2:Ljava/lang/Object; 14 | 15 | 16 | # direct methods 17 | .method private final synthetic $m$0()V 18 | .locals 3 19 | 20 | .prologue 21 | iget-object v0, p0, Lcom/android/server/am/-$Lambda$njIALZ9XLXuT-vhmazyQkVX7Z0U$1;->-$f0:Ljava/lang/Object; 22 | 23 | check-cast v0, Lcom/android/server/am/ActivityManagerService; 24 | 25 | iget-object v1, p0, Lcom/android/server/am/-$Lambda$njIALZ9XLXuT-vhmazyQkVX7Z0U$1;->-$f1:Ljava/lang/Object; 26 | 27 | check-cast v1, Lcom/android/server/am/ActivityRecord; 28 | 29 | iget-object v2, p0, Lcom/android/server/am/-$Lambda$njIALZ9XLXuT-vhmazyQkVX7Z0U$1;->-$f2:Ljava/lang/Object; 30 | 31 | check-cast v2, Landroid/app/PictureInPictureParams; 32 | 33 | invoke-virtual {v0, v1, v2}, Lcom/android/server/am/ActivityManagerService;->lambda$-com_android_server_am_ActivityManagerService_353758(Lcom/android/server/am/ActivityRecord;Landroid/app/PictureInPictureParams;)V 34 | 35 | return-void 36 | .end method 37 | 38 | .method public synthetic constructor (Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V 39 | .locals 0 40 | 41 | .prologue 42 | invoke-direct {p0}, Ljava/lang/Object;->()V 43 | 44 | iput-object p1, p0, Lcom/android/server/am/-$Lambda$njIALZ9XLXuT-vhmazyQkVX7Z0U$1;->-$f0:Ljava/lang/Object; 45 | 46 | iput-object p2, p0, Lcom/android/server/am/-$Lambda$njIALZ9XLXuT-vhmazyQkVX7Z0U$1;->-$f1:Ljava/lang/Object; 47 | 48 | iput-object p3, p0, Lcom/android/server/am/-$Lambda$njIALZ9XLXuT-vhmazyQkVX7Z0U$1;->-$f2:Ljava/lang/Object; 49 | 50 | return-void 51 | .end method 52 | 53 | 54 | # virtual methods 55 | .method public final run()V 56 | .locals 0 57 | 58 | .prologue 59 | invoke-direct {p0}, Lcom/android/server/am/-$Lambda$njIALZ9XLXuT-vhmazyQkVX7Z0U$1;->$m$0()V 60 | 61 | return-void 62 | .end method 63 | -------------------------------------------------------------------------------- /services.jar.out/smali/com/android/server/am/PreventRunningHook.smali: -------------------------------------------------------------------------------- 1 | .class public interface abstract Lcom/android/server/am/PreventRunningHook; 2 | .super Ljava/lang/Object; 3 | .source "PreventRunningHook.java" 4 | 5 | 6 | # virtual methods 7 | .method public abstract hookBindService(Landroid/content/Intent;)Z 8 | .end method 9 | 10 | .method public abstract hookStartProcessLocked(Landroid/content/Context;Landroid/content/pm/ApplicationInfo;Ljava/lang/String;Landroid/content/ComponentName;)Z 11 | .end method 12 | 13 | .method public abstract hookStartService(Landroid/content/Intent;)Z 14 | .end method 15 | 16 | .method public abstract isExcludingStopped(Ljava/lang/String;)Z 17 | .end method 18 | 19 | .method public abstract match(ILjava/lang/Object;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Landroid/net/Uri;Ljava/util/Set;)I 20 | .annotation system Ldalvik/annotation/Signature; 21 | value = { 22 | "(I", 23 | "Ljava/lang/Object;", 24 | "Ljava/lang/String;", 25 | "Ljava/lang/String;", 26 | "Ljava/lang/String;", 27 | "Landroid/net/Uri;", 28 | "Ljava/util/Set", 29 | "<", 30 | "Ljava/lang/String;", 31 | ">;)I" 32 | } 33 | .end annotation 34 | .end method 35 | 36 | .method public abstract onAppDied(Ljava/lang/Object;)V 37 | .end method 38 | 39 | .method public abstract onBroadcastIntent(Landroid/content/Intent;)V 40 | .end method 41 | 42 | .method public abstract onCleanUpRemovedTask(Ljava/lang/String;)V 43 | .end method 44 | 45 | .method public abstract onDestroyActivity(Ljava/lang/Object;)V 46 | .end method 47 | 48 | .method public abstract onLaunchActivity(Ljava/lang/Object;)V 49 | .end method 50 | 51 | .method public abstract onMoveActivityTaskToBack(Ljava/lang/String;)V 52 | .end method 53 | 54 | .method public abstract onResumeActivity(Ljava/lang/Object;)V 55 | .end method 56 | 57 | .method public abstract onStartHomeActivity(Ljava/lang/String;)V 58 | .end method 59 | 60 | .method public abstract onUserLeavingActivity(Ljava/lang/Object;)V 61 | .end method 62 | 63 | .method public abstract setMethod(Ljava/lang/String;)V 64 | .end method 65 | 66 | .method public abstract setSender(Ljava/lang/String;)V 67 | .end method 68 | 69 | .method public abstract setVersion(I)V 70 | .end method 71 | -------------------------------------------------------------------------------- /services.jar.out/smali/com/android/server/notification/-$Lambda$0oXbfIRCVxclfVVwXaE3J61tRFA$1.smali: -------------------------------------------------------------------------------- 1 | .class final synthetic Lcom/android/server/notification/-$Lambda$0oXbfIRCVxclfVVwXaE3J61tRFA$1; 2 | .super Ljava/lang/Object; 3 | 4 | # interfaces 5 | .implements Ljava/lang/Runnable; 6 | 7 | 8 | # instance fields 9 | .field private final synthetic -$f0:Ljava/lang/Object; 10 | 11 | .field private final synthetic -$f1:Ljava/lang/Object; 12 | 13 | .field private final synthetic -$f2:Ljava/lang/Object; 14 | 15 | 16 | # direct methods 17 | .method private final synthetic $m$0()V 18 | .locals 3 19 | 20 | .prologue 21 | iget-object v0, p0, Lcom/android/server/notification/-$Lambda$0oXbfIRCVxclfVVwXaE3J61tRFA$1;->-$f0:Ljava/lang/Object; 22 | 23 | check-cast v0, Lcom/android/server/notification/NotificationManagerService; 24 | 25 | iget-object v1, p0, Lcom/android/server/notification/-$Lambda$0oXbfIRCVxclfVVwXaE3J61tRFA$1;->-$f1:Ljava/lang/Object; 26 | 27 | check-cast v1, Lcom/android/server/notification/NotificationRecord; 28 | 29 | iget-object v2, p0, Lcom/android/server/notification/-$Lambda$0oXbfIRCVxclfVVwXaE3J61tRFA$1;->-$f2:Ljava/lang/Object; 30 | 31 | check-cast v2, Landroid/os/VibrationEffect; 32 | 33 | invoke-virtual {v0, v1, v2}, Lcom/android/server/notification/NotificationManagerService;->lambda$-com_android_server_notification_NotificationManagerService_191018(Lcom/android/server/notification/NotificationRecord;Landroid/os/VibrationEffect;)V 34 | 35 | return-void 36 | .end method 37 | 38 | .method public synthetic constructor (Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V 39 | .locals 0 40 | 41 | .prologue 42 | invoke-direct {p0}, Ljava/lang/Object;->()V 43 | 44 | iput-object p1, p0, Lcom/android/server/notification/-$Lambda$0oXbfIRCVxclfVVwXaE3J61tRFA$1;->-$f0:Ljava/lang/Object; 45 | 46 | iput-object p2, p0, Lcom/android/server/notification/-$Lambda$0oXbfIRCVxclfVVwXaE3J61tRFA$1;->-$f1:Ljava/lang/Object; 47 | 48 | iput-object p3, p0, Lcom/android/server/notification/-$Lambda$0oXbfIRCVxclfVVwXaE3J61tRFA$1;->-$f2:Ljava/lang/Object; 49 | 50 | return-void 51 | .end method 52 | 53 | 54 | # virtual methods 55 | .method public final run()V 56 | .locals 0 57 | 58 | .prologue 59 | invoke-direct {p0}, Lcom/android/server/notification/-$Lambda$0oXbfIRCVxclfVVwXaE3J61tRFA$1;->$m$0()V 60 | 61 | return-void 62 | .end method 63 | -------------------------------------------------------------------------------- /services.jar.out/smali/com/android/server/am/-$Lambda$5yQSwWrsRDcxoFuTXgyaBIqPvDw.smali: -------------------------------------------------------------------------------- 1 | .class final synthetic Lcom/android/server/am/-$Lambda$5yQSwWrsRDcxoFuTXgyaBIqPvDw; 2 | .super Ljava/lang/Object; 3 | 4 | # interfaces 5 | .implements Ljava/lang/Runnable; 6 | 7 | 8 | # instance fields 9 | .field private final synthetic $id:B 10 | 11 | .field private final synthetic -$f0:Z 12 | 13 | .field private final synthetic -$f1:I 14 | 15 | .field private final synthetic -$f2:Ljava/lang/Object; 16 | 17 | 18 | # direct methods 19 | .method private final synthetic $m$0()V 20 | .locals 3 21 | 22 | .prologue 23 | iget-object v0, p0, Lcom/android/server/am/-$Lambda$5yQSwWrsRDcxoFuTXgyaBIqPvDw;->-$f2:Ljava/lang/Object; 24 | 25 | check-cast v0, Lcom/android/server/am/ActivityStackSupervisor; 26 | 27 | iget v1, p0, Lcom/android/server/am/-$Lambda$5yQSwWrsRDcxoFuTXgyaBIqPvDw;->-$f1:I 28 | 29 | iget-boolean v2, p0, Lcom/android/server/am/-$Lambda$5yQSwWrsRDcxoFuTXgyaBIqPvDw;->-$f0:Z 30 | 31 | invoke-virtual {v0, v1, v2}, Lcom/android/server/am/ActivityStackSupervisor;->lambda$-com_android_server_am_ActivityStackSupervisor_114013(IZ)V 32 | 33 | return-void 34 | .end method 35 | 36 | .method private final synthetic $m$1()V 37 | .locals 3 38 | 39 | .prologue 40 | iget-object v0, p0, Lcom/android/server/am/-$Lambda$5yQSwWrsRDcxoFuTXgyaBIqPvDw;->-$f2:Ljava/lang/Object; 41 | 42 | check-cast v0, Lcom/android/server/am/UserController$3; 43 | 44 | iget v1, p0, Lcom/android/server/am/-$Lambda$5yQSwWrsRDcxoFuTXgyaBIqPvDw;->-$f1:I 45 | 46 | iget-boolean v2, p0, Lcom/android/server/am/-$Lambda$5yQSwWrsRDcxoFuTXgyaBIqPvDw;->-$f0:Z 47 | 48 | invoke-virtual {v0, v1, v2}, Lcom/android/server/am/UserController$3;->lambda$-com_android_server_am_UserController$3_21338(IZ)V 49 | 50 | return-void 51 | .end method 52 | 53 | .method public synthetic constructor (BZILjava/lang/Object;)V 54 | .locals 0 55 | 56 | .prologue 57 | invoke-direct {p0}, Ljava/lang/Object;->()V 58 | 59 | iput-byte p1, p0, Lcom/android/server/am/-$Lambda$5yQSwWrsRDcxoFuTXgyaBIqPvDw;->$id:B 60 | 61 | iput-boolean p2, p0, Lcom/android/server/am/-$Lambda$5yQSwWrsRDcxoFuTXgyaBIqPvDw;->-$f0:Z 62 | 63 | iput p3, p0, Lcom/android/server/am/-$Lambda$5yQSwWrsRDcxoFuTXgyaBIqPvDw;->-$f1:I 64 | 65 | iput-object p4, p0, Lcom/android/server/am/-$Lambda$5yQSwWrsRDcxoFuTXgyaBIqPvDw;->-$f2:Ljava/lang/Object; 66 | 67 | return-void 68 | .end method 69 | 70 | 71 | # virtual methods 72 | .method public final run()V 73 | .locals 1 74 | 75 | .prologue 76 | iget-byte v0, p0, Lcom/android/server/am/-$Lambda$5yQSwWrsRDcxoFuTXgyaBIqPvDw;->$id:B 77 | 78 | packed-switch v0, :pswitch_data_0 79 | 80 | new-instance v0, Ljava/lang/AssertionError; 81 | 82 | invoke-direct {v0}, Ljava/lang/AssertionError;->()V 83 | 84 | throw v0 85 | 86 | :pswitch_0 87 | invoke-direct {p0}, Lcom/android/server/am/-$Lambda$5yQSwWrsRDcxoFuTXgyaBIqPvDw;->$m$0()V 88 | 89 | return-void 90 | 91 | :pswitch_1 92 | invoke-direct {p0}, Lcom/android/server/am/-$Lambda$5yQSwWrsRDcxoFuTXgyaBIqPvDw;->$m$1()V 93 | 94 | return-void 95 | 96 | nop 97 | 98 | :pswitch_data_0 99 | .packed-switch 0x0 100 | :pswitch_0 101 | :pswitch_1 102 | .end packed-switch 103 | .end method 104 | -------------------------------------------------------------------------------- /services.jar.out/smali/com/android/server/am/-$Lambda$njIALZ9XLXuT-vhmazyQkVX7Z0U.smali: -------------------------------------------------------------------------------- 1 | .class final synthetic Lcom/android/server/am/-$Lambda$njIALZ9XLXuT-vhmazyQkVX7Z0U; 2 | .super Ljava/lang/Object; 3 | 4 | # interfaces 5 | .implements Lcom/android/internal/os/ProcessCpuTracker$FilterStats; 6 | 7 | 8 | # static fields 9 | .field public static final synthetic $INST$0:Lcom/android/server/am/-$Lambda$njIALZ9XLXuT-vhmazyQkVX7Z0U; 10 | 11 | .field public static final synthetic $INST$1:Lcom/android/server/am/-$Lambda$njIALZ9XLXuT-vhmazyQkVX7Z0U; 12 | 13 | 14 | # instance fields 15 | .field private final synthetic $id:B 16 | 17 | 18 | # direct methods 19 | .method private final synthetic $m$0(Lcom/android/internal/os/ProcessCpuTracker$Stats;)Z 20 | .locals 1 21 | .param p1, "arg0" # Lcom/android/internal/os/ProcessCpuTracker$Stats; 22 | 23 | .prologue 24 | invoke-static {p1}, Lcom/android/server/am/ActivityManagerService$2;->lambda$-com_android_server_am_ActivityManagerService$2_106213(Lcom/android/internal/os/ProcessCpuTracker$Stats;)Z 25 | 26 | move-result v0 27 | 28 | return v0 29 | .end method 30 | 31 | .method private final synthetic $m$1(Lcom/android/internal/os/ProcessCpuTracker$Stats;)Z 32 | .locals 1 33 | .param p1, "arg0" # Lcom/android/internal/os/ProcessCpuTracker$Stats; 34 | 35 | .prologue 36 | invoke-static {p1}, Lcom/android/server/am/ActivityManagerService;->lambda$-com_android_server_am_ActivityManagerService_770506(Lcom/android/internal/os/ProcessCpuTracker$Stats;)Z 37 | 38 | move-result v0 39 | 40 | return v0 41 | .end method 42 | 43 | .method static synthetic constructor ()V 44 | .locals 2 45 | 46 | new-instance v0, Lcom/android/server/am/-$Lambda$njIALZ9XLXuT-vhmazyQkVX7Z0U; 47 | 48 | const/4 v1, 0x0 49 | 50 | invoke-direct {v0, v1}, Lcom/android/server/am/-$Lambda$njIALZ9XLXuT-vhmazyQkVX7Z0U;->(B)V 51 | 52 | sput-object v0, Lcom/android/server/am/-$Lambda$njIALZ9XLXuT-vhmazyQkVX7Z0U;->$INST$0:Lcom/android/server/am/-$Lambda$njIALZ9XLXuT-vhmazyQkVX7Z0U; 53 | 54 | new-instance v0, Lcom/android/server/am/-$Lambda$njIALZ9XLXuT-vhmazyQkVX7Z0U; 55 | 56 | const/4 v1, 0x1 57 | 58 | invoke-direct {v0, v1}, Lcom/android/server/am/-$Lambda$njIALZ9XLXuT-vhmazyQkVX7Z0U;->(B)V 59 | 60 | sput-object v0, Lcom/android/server/am/-$Lambda$njIALZ9XLXuT-vhmazyQkVX7Z0U;->$INST$1:Lcom/android/server/am/-$Lambda$njIALZ9XLXuT-vhmazyQkVX7Z0U; 61 | 62 | return-void 63 | .end method 64 | 65 | .method private synthetic constructor (B)V 66 | .locals 0 67 | 68 | .prologue 69 | invoke-direct {p0}, Ljava/lang/Object;->()V 70 | 71 | iput-byte p1, p0, Lcom/android/server/am/-$Lambda$njIALZ9XLXuT-vhmazyQkVX7Z0U;->$id:B 72 | 73 | return-void 74 | .end method 75 | 76 | 77 | # virtual methods 78 | .method public final needed(Lcom/android/internal/os/ProcessCpuTracker$Stats;)Z 79 | .locals 1 80 | 81 | .prologue 82 | iget-byte v0, p0, Lcom/android/server/am/-$Lambda$njIALZ9XLXuT-vhmazyQkVX7Z0U;->$id:B 83 | 84 | packed-switch v0, :pswitch_data_0 85 | 86 | new-instance v0, Ljava/lang/AssertionError; 87 | 88 | invoke-direct {v0}, Ljava/lang/AssertionError;->()V 89 | 90 | throw v0 91 | 92 | :pswitch_0 93 | invoke-direct {p0, p1}, Lcom/android/server/am/-$Lambda$njIALZ9XLXuT-vhmazyQkVX7Z0U;->$m$0(Lcom/android/internal/os/ProcessCpuTracker$Stats;)Z 94 | 95 | move-result v0 96 | 97 | return v0 98 | 99 | :pswitch_1 100 | invoke-direct {p0, p1}, Lcom/android/server/am/-$Lambda$njIALZ9XLXuT-vhmazyQkVX7Z0U;->$m$1(Lcom/android/internal/os/ProcessCpuTracker$Stats;)Z 101 | 102 | move-result v0 103 | 104 | return v0 105 | 106 | nop 107 | 108 | :pswitch_data_0 109 | .packed-switch 0x0 110 | :pswitch_0 111 | :pswitch_1 112 | .end packed-switch 113 | .end method 114 | -------------------------------------------------------------------------------- /services.jar.out/smali/com/android/server/notification/-$Lambda$0oXbfIRCVxclfVVwXaE3J61tRFA$2.smali: -------------------------------------------------------------------------------- 1 | .class final synthetic Lcom/android/server/notification/-$Lambda$0oXbfIRCVxclfVVwXaE3J61tRFA$2; 2 | .super Ljava/lang/Object; 3 | 4 | # interfaces 5 | .implements Ljava/lang/Runnable; 6 | 7 | 8 | # instance fields 9 | .field private final synthetic $id:B 10 | 11 | .field private final synthetic -$f0:I 12 | 13 | .field private final synthetic -$f1:Ljava/lang/Object; 14 | 15 | .field private final synthetic -$f2:Ljava/lang/Object; 16 | 17 | .field private final synthetic -$f3:Ljava/lang/Object; 18 | 19 | .field private final synthetic -$f4:Ljava/lang/Object; 20 | 21 | .field private final synthetic -$f5:Ljava/lang/Object; 22 | 23 | 24 | # direct methods 25 | .method private final synthetic $m$0()V 26 | .locals 6 27 | 28 | .prologue 29 | iget-object v0, p0, Lcom/android/server/notification/-$Lambda$0oXbfIRCVxclfVVwXaE3J61tRFA$2;->-$f1:Ljava/lang/Object; 30 | 31 | check-cast v0, Lcom/android/server/notification/NotificationManagerService$NotificationListeners; 32 | 33 | iget-object v1, p0, Lcom/android/server/notification/-$Lambda$0oXbfIRCVxclfVVwXaE3J61tRFA$2;->-$f2:Ljava/lang/Object; 34 | 35 | check-cast v1, Lcom/android/server/notification/ManagedServices$ManagedServiceInfo; 36 | 37 | iget-object v2, p0, Lcom/android/server/notification/-$Lambda$0oXbfIRCVxclfVVwXaE3J61tRFA$2;->-$f3:Ljava/lang/Object; 38 | 39 | check-cast v2, Ljava/lang/String; 40 | 41 | iget-object v3, p0, Lcom/android/server/notification/-$Lambda$0oXbfIRCVxclfVVwXaE3J61tRFA$2;->-$f4:Ljava/lang/Object; 42 | 43 | check-cast v3, Landroid/os/UserHandle; 44 | 45 | iget-object v4, p0, Lcom/android/server/notification/-$Lambda$0oXbfIRCVxclfVVwXaE3J61tRFA$2;->-$f5:Ljava/lang/Object; 46 | 47 | check-cast v4, Landroid/app/NotificationChannel; 48 | 49 | iget v5, p0, Lcom/android/server/notification/-$Lambda$0oXbfIRCVxclfVVwXaE3J61tRFA$2;->-$f0:I 50 | 51 | invoke-virtual/range {v0 .. v5}, Lcom/android/server/notification/NotificationManagerService$NotificationListeners;->lambda$-com_android_server_notification_NotificationManagerService$NotificationListeners_252113(Lcom/android/server/notification/ManagedServices$ManagedServiceInfo;Ljava/lang/String;Landroid/os/UserHandle;Landroid/app/NotificationChannel;I)V 52 | 53 | return-void 54 | .end method 55 | 56 | .method private final synthetic $m$1()V 57 | .locals 6 58 | 59 | .prologue 60 | iget-object v0, p0, Lcom/android/server/notification/-$Lambda$0oXbfIRCVxclfVVwXaE3J61tRFA$2;->-$f1:Ljava/lang/Object; 61 | 62 | check-cast v0, Lcom/android/server/notification/NotificationManagerService$NotificationListeners; 63 | 64 | iget-object v1, p0, Lcom/android/server/notification/-$Lambda$0oXbfIRCVxclfVVwXaE3J61tRFA$2;->-$f2:Ljava/lang/Object; 65 | 66 | check-cast v1, Lcom/android/server/notification/ManagedServices$ManagedServiceInfo; 67 | 68 | iget-object v2, p0, Lcom/android/server/notification/-$Lambda$0oXbfIRCVxclfVVwXaE3J61tRFA$2;->-$f3:Ljava/lang/Object; 69 | 70 | check-cast v2, Ljava/lang/String; 71 | 72 | iget-object v3, p0, Lcom/android/server/notification/-$Lambda$0oXbfIRCVxclfVVwXaE3J61tRFA$2;->-$f4:Ljava/lang/Object; 73 | 74 | check-cast v3, Landroid/os/UserHandle; 75 | 76 | iget-object v4, p0, Lcom/android/server/notification/-$Lambda$0oXbfIRCVxclfVVwXaE3J61tRFA$2;->-$f5:Ljava/lang/Object; 77 | 78 | check-cast v4, Landroid/app/NotificationChannelGroup; 79 | 80 | iget v5, p0, Lcom/android/server/notification/-$Lambda$0oXbfIRCVxclfVVwXaE3J61tRFA$2;->-$f0:I 81 | 82 | invoke-virtual/range {v0 .. v5}, Lcom/android/server/notification/NotificationManagerService$NotificationListeners;->lambda$-com_android_server_notification_NotificationManagerService$NotificationListeners_252925(Lcom/android/server/notification/ManagedServices$ManagedServiceInfo;Ljava/lang/String;Landroid/os/UserHandle;Landroid/app/NotificationChannelGroup;I)V 83 | 84 | return-void 85 | .end method 86 | 87 | .method public synthetic constructor (BILjava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V 88 | .locals 0 89 | 90 | .prologue 91 | invoke-direct {p0}, Ljava/lang/Object;->()V 92 | 93 | iput-byte p1, p0, Lcom/android/server/notification/-$Lambda$0oXbfIRCVxclfVVwXaE3J61tRFA$2;->$id:B 94 | 95 | iput p2, p0, Lcom/android/server/notification/-$Lambda$0oXbfIRCVxclfVVwXaE3J61tRFA$2;->-$f0:I 96 | 97 | iput-object p3, p0, Lcom/android/server/notification/-$Lambda$0oXbfIRCVxclfVVwXaE3J61tRFA$2;->-$f1:Ljava/lang/Object; 98 | 99 | iput-object p4, p0, Lcom/android/server/notification/-$Lambda$0oXbfIRCVxclfVVwXaE3J61tRFA$2;->-$f2:Ljava/lang/Object; 100 | 101 | iput-object p5, p0, Lcom/android/server/notification/-$Lambda$0oXbfIRCVxclfVVwXaE3J61tRFA$2;->-$f3:Ljava/lang/Object; 102 | 103 | iput-object p6, p0, Lcom/android/server/notification/-$Lambda$0oXbfIRCVxclfVVwXaE3J61tRFA$2;->-$f4:Ljava/lang/Object; 104 | 105 | iput-object p7, p0, Lcom/android/server/notification/-$Lambda$0oXbfIRCVxclfVVwXaE3J61tRFA$2;->-$f5:Ljava/lang/Object; 106 | 107 | return-void 108 | .end method 109 | 110 | 111 | # virtual methods 112 | .method public final run()V 113 | .locals 1 114 | 115 | .prologue 116 | iget-byte v0, p0, Lcom/android/server/notification/-$Lambda$0oXbfIRCVxclfVVwXaE3J61tRFA$2;->$id:B 117 | 118 | packed-switch v0, :pswitch_data_0 119 | 120 | new-instance v0, Ljava/lang/AssertionError; 121 | 122 | invoke-direct {v0}, Ljava/lang/AssertionError;->()V 123 | 124 | throw v0 125 | 126 | :pswitch_0 127 | invoke-direct {p0}, Lcom/android/server/notification/-$Lambda$0oXbfIRCVxclfVVwXaE3J61tRFA$2;->$m$0()V 128 | 129 | return-void 130 | 131 | :pswitch_1 132 | invoke-direct {p0}, Lcom/android/server/notification/-$Lambda$0oXbfIRCVxclfVVwXaE3J61tRFA$2;->$m$1()V 133 | 134 | return-void 135 | 136 | nop 137 | 138 | :pswitch_data_0 139 | .packed-switch 0x0 140 | :pswitch_0 141 | :pswitch_1 142 | .end packed-switch 143 | .end method 144 | -------------------------------------------------------------------------------- /services.jar.out/smali/com/android/server/notification/NotificationManagerService$17.smali: -------------------------------------------------------------------------------- 1 | .class Lcom/android/server/notification/NotificationManagerService$17; 2 | .super Ljava/lang/Object; 3 | .source "NotificationManagerService.java" 4 | 5 | # interfaces 6 | .implements Ljava/lang/Runnable; 7 | 8 | 9 | # annotations 10 | .annotation system Ldalvik/annotation/EnclosingMethod; 11 | value = Lcom/android/server/notification/NotificationManagerService;->cancelAllLocked(IIIILcom/android/server/notification/ManagedServices$ManagedServiceInfo;Z)V 12 | .end annotation 13 | 14 | .annotation system Ldalvik/annotation/InnerClass; 15 | accessFlags = 0x0 16 | name = null 17 | .end annotation 18 | 19 | 20 | # instance fields 21 | .field final synthetic this$0:Lcom/android/server/notification/NotificationManagerService; 22 | 23 | .field final synthetic val$callingPid:I 24 | 25 | .field final synthetic val$callingUid:I 26 | 27 | .field final synthetic val$includeCurrentProfiles:Z 28 | 29 | .field final synthetic val$listener:Lcom/android/server/notification/ManagedServices$ManagedServiceInfo; 30 | 31 | .field final synthetic val$reason:I 32 | 33 | .field final synthetic val$userId:I 34 | 35 | 36 | # direct methods 37 | .method constructor (Lcom/android/server/notification/NotificationManagerService;Lcom/android/server/notification/ManagedServices$ManagedServiceInfo;IIIIZ)V 38 | .locals 0 39 | .param p1, "this$0" # Lcom/android/server/notification/NotificationManagerService; 40 | 41 | .prologue 42 | iput-object p1, p0, Lcom/android/server/notification/NotificationManagerService$17;->this$0:Lcom/android/server/notification/NotificationManagerService; 43 | 44 | iput-object p2, p0, Lcom/android/server/notification/NotificationManagerService$17;->val$listener:Lcom/android/server/notification/ManagedServices$ManagedServiceInfo; 45 | 46 | iput p3, p0, Lcom/android/server/notification/NotificationManagerService$17;->val$callingUid:I 47 | 48 | iput p4, p0, Lcom/android/server/notification/NotificationManagerService$17;->val$callingPid:I 49 | 50 | iput p5, p0, Lcom/android/server/notification/NotificationManagerService$17;->val$userId:I 51 | 52 | iput p6, p0, Lcom/android/server/notification/NotificationManagerService$17;->val$reason:I 53 | 54 | iput-boolean p7, p0, Lcom/android/server/notification/NotificationManagerService$17;->val$includeCurrentProfiles:Z 55 | 56 | invoke-direct {p0}, Ljava/lang/Object;->()V 57 | 58 | return-void 59 | .end method 60 | 61 | .method static synthetic lambda$-com_android_server_notification_NotificationManagerService$17_222127(I)Z 62 | .locals 2 63 | .param p0, "flags" # I 64 | 65 | .prologue 66 | const/4 v1, 0x0 67 | 68 | and-int/lit8 v0, p0, 0x22 69 | 70 | if-eqz v0, :cond_0 71 | 72 | return v1 73 | 74 | :cond_0 75 | const/4 v0, 0x1 76 | 77 | return v0 78 | .end method 79 | 80 | 81 | # virtual methods 82 | .method public run()V 83 | .locals 24 84 | 85 | .prologue 86 | move-object/from16 v0, p0 87 | 88 | iget-object v1, v0, Lcom/android/server/notification/NotificationManagerService$17;->this$0:Lcom/android/server/notification/NotificationManagerService; 89 | 90 | iget-object v0, v1, Lcom/android/server/notification/NotificationManagerService;->mNotificationLock:Ljava/lang/Object; 91 | 92 | move-object/from16 v23, v0 93 | 94 | monitor-enter v23 95 | 96 | :try_start_0 97 | move-object/from16 v0, p0 98 | 99 | iget-object v1, v0, Lcom/android/server/notification/NotificationManagerService$17;->val$listener:Lcom/android/server/notification/ManagedServices$ManagedServiceInfo; 100 | 101 | if-nez v1, :cond_0 102 | 103 | const/4 v8, 0x0 104 | 105 | :goto_0 106 | move-object/from16 v0, p0 107 | 108 | iget v1, v0, Lcom/android/server/notification/NotificationManagerService$17;->val$callingUid:I 109 | 110 | move-object/from16 v0, p0 111 | 112 | iget v2, v0, Lcom/android/server/notification/NotificationManagerService$17;->val$callingPid:I 113 | 114 | move-object/from16 v0, p0 115 | 116 | iget v4, v0, Lcom/android/server/notification/NotificationManagerService$17;->val$userId:I 117 | 118 | move-object/from16 v0, p0 119 | 120 | iget v7, v0, Lcom/android/server/notification/NotificationManagerService$17;->val$reason:I 121 | 122 | const/4 v3, 0x0 123 | 124 | const/4 v5, 0x0 125 | 126 | const/4 v6, 0x0 127 | 128 | invoke-static/range {v1 .. v8}, Lcom/android/server/EventLogTags;->writeNotificationCancelAll(IILjava/lang/String;IIIILjava/lang/String;)V 129 | 130 | sget-object v16, Lcom/android/server/notification/-$Lambda$0oXbfIRCVxclfVVwXaE3J61tRFA;->$INST$0:Lcom/android/server/notification/-$Lambda$0oXbfIRCVxclfVVwXaE3J61tRFA; 131 | 132 | .local v16, "flagChecker":Lcom/android/server/notification/NotificationManagerService$FlagChecker; 133 | move-object/from16 v0, p0 134 | 135 | iget-object v9, v0, Lcom/android/server/notification/NotificationManagerService$17;->this$0:Lcom/android/server/notification/NotificationManagerService; 136 | 137 | move-object/from16 v0, p0 138 | 139 | iget-object v1, v0, Lcom/android/server/notification/NotificationManagerService$17;->this$0:Lcom/android/server/notification/NotificationManagerService; 140 | 141 | iget-object v10, v1, Lcom/android/server/notification/NotificationManagerService;->mNotificationList:Ljava/util/ArrayList; 142 | 143 | move-object/from16 v0, p0 144 | 145 | iget v11, v0, Lcom/android/server/notification/NotificationManagerService$17;->val$callingUid:I 146 | 147 | move-object/from16 v0, p0 148 | 149 | iget v12, v0, Lcom/android/server/notification/NotificationManagerService$17;->val$callingPid:I 150 | 151 | move-object/from16 v0, p0 152 | 153 | iget-boolean v0, v0, Lcom/android/server/notification/NotificationManagerService$17;->val$includeCurrentProfiles:Z 154 | 155 | move/from16 v17, v0 156 | 157 | move-object/from16 v0, p0 158 | 159 | iget v0, v0, Lcom/android/server/notification/NotificationManagerService$17;->val$userId:I 160 | 161 | move/from16 v18, v0 162 | 163 | move-object/from16 v0, p0 164 | 165 | iget v0, v0, Lcom/android/server/notification/NotificationManagerService$17;->val$reason:I 166 | 167 | move/from16 v20, v0 168 | 169 | const/4 v13, 0x0 170 | 171 | const/4 v14, 0x0 172 | 173 | const/4 v15, 0x0 174 | 175 | const/16 v19, 0x1 176 | 177 | const/16 v22, 0x1 178 | 179 | move-object/from16 v21, v8 180 | 181 | invoke-static/range {v9 .. v22}, Lcom/android/server/notification/NotificationManagerService;->-wrap14(Lcom/android/server/notification/NotificationManagerService;Ljava/util/ArrayList;IILjava/lang/String;ZLjava/lang/String;Lcom/android/server/notification/NotificationManagerService$FlagChecker;ZIZILjava/lang/String;Z)V 182 | 183 | move-object/from16 v0, p0 184 | 185 | iget-object v9, v0, Lcom/android/server/notification/NotificationManagerService$17;->this$0:Lcom/android/server/notification/NotificationManagerService; 186 | 187 | move-object/from16 v0, p0 188 | 189 | iget-object v1, v0, Lcom/android/server/notification/NotificationManagerService$17;->this$0:Lcom/android/server/notification/NotificationManagerService; 190 | 191 | iget-object v10, v1, Lcom/android/server/notification/NotificationManagerService;->mEnqueuedNotifications:Ljava/util/ArrayList; 192 | 193 | move-object/from16 v0, p0 194 | 195 | iget v11, v0, Lcom/android/server/notification/NotificationManagerService$17;->val$callingUid:I 196 | 197 | move-object/from16 v0, p0 198 | 199 | iget v12, v0, Lcom/android/server/notification/NotificationManagerService$17;->val$callingPid:I 200 | 201 | move-object/from16 v0, p0 202 | 203 | iget-boolean v0, v0, Lcom/android/server/notification/NotificationManagerService$17;->val$includeCurrentProfiles:Z 204 | 205 | move/from16 v17, v0 206 | 207 | move-object/from16 v0, p0 208 | 209 | iget v0, v0, Lcom/android/server/notification/NotificationManagerService$17;->val$userId:I 210 | 211 | move/from16 v18, v0 212 | 213 | move-object/from16 v0, p0 214 | 215 | iget v0, v0, Lcom/android/server/notification/NotificationManagerService$17;->val$reason:I 216 | 217 | move/from16 v20, v0 218 | 219 | const/4 v13, 0x0 220 | 221 | const/4 v14, 0x0 222 | 223 | const/4 v15, 0x0 224 | 225 | const/16 v19, 0x1 226 | 227 | const/16 v22, 0x0 228 | 229 | move-object/from16 v21, v8 230 | 231 | invoke-static/range {v9 .. v22}, Lcom/android/server/notification/NotificationManagerService;->-wrap14(Lcom/android/server/notification/NotificationManagerService;Ljava/util/ArrayList;IILjava/lang/String;ZLjava/lang/String;Lcom/android/server/notification/NotificationManagerService$FlagChecker;ZIZILjava/lang/String;Z)V 232 | 233 | move-object/from16 v0, p0 234 | 235 | iget-object v1, v0, Lcom/android/server/notification/NotificationManagerService$17;->this$0:Lcom/android/server/notification/NotificationManagerService; 236 | 237 | invoke-static {v1}, Lcom/android/server/notification/NotificationManagerService;->-get29(Lcom/android/server/notification/NotificationManagerService;)Lcom/android/server/notification/SnoozeHelper; 238 | 239 | move-result-object v1 240 | 241 | move-object/from16 v0, p0 242 | 243 | iget v2, v0, Lcom/android/server/notification/NotificationManagerService$17;->val$userId:I 244 | 245 | move-object/from16 v0, p0 246 | 247 | iget-boolean v3, v0, Lcom/android/server/notification/NotificationManagerService$17;->val$includeCurrentProfiles:Z 248 | 249 | invoke-virtual {v1, v2, v3}, Lcom/android/server/notification/SnoozeHelper;->cancel(IZ)Z 250 | :try_end_0 251 | .catchall {:try_start_0 .. :try_end_0} :catchall_0 252 | 253 | monitor-exit v23 254 | 255 | return-void 256 | 257 | .end local v16 # "flagChecker":Lcom/android/server/notification/NotificationManagerService$FlagChecker; 258 | :cond_0 259 | :try_start_1 260 | move-object/from16 v0, p0 261 | 262 | iget-object v1, v0, Lcom/android/server/notification/NotificationManagerService$17;->val$listener:Lcom/android/server/notification/ManagedServices$ManagedServiceInfo; 263 | 264 | iget-object v1, v1, Lcom/android/server/notification/ManagedServices$ManagedServiceInfo;->component:Landroid/content/ComponentName; 265 | 266 | invoke-virtual {v1}, Landroid/content/ComponentName;->toShortString()Ljava/lang/String; 267 | :try_end_1 268 | .catchall {:try_start_1 .. :try_end_1} :catchall_0 269 | 270 | move-result-object v8 271 | 272 | .local v8, "listenerName":Ljava/lang/String; 273 | goto/16 :goto_0 274 | 275 | .end local v8 # "listenerName":Ljava/lang/String; 276 | :catchall_0 277 | move-exception v1 278 | 279 | monitor-exit v23 280 | 281 | throw v1 282 | .end method 283 | -------------------------------------------------------------------------------- /services.jar.out/smali/com/android/server/notification/NotificationManagerService$16.smali: -------------------------------------------------------------------------------- 1 | .class Lcom/android/server/notification/NotificationManagerService$16; 2 | .super Ljava/lang/Object; 3 | .source "NotificationManagerService.java" 4 | 5 | # interfaces 6 | .implements Ljava/lang/Runnable; 7 | 8 | 9 | # annotations 10 | .annotation system Ldalvik/annotation/EnclosingMethod; 11 | value = Lcom/android/server/notification/NotificationManagerService;->cancelAllNotificationsInt(IILjava/lang/String;Ljava/lang/String;IIZIILcom/android/server/notification/ManagedServices$ManagedServiceInfo;)V 12 | .end annotation 13 | 14 | .annotation system Ldalvik/annotation/InnerClass; 15 | accessFlags = 0x0 16 | name = null 17 | .end annotation 18 | 19 | 20 | # instance fields 21 | .field final synthetic this$0:Lcom/android/server/notification/NotificationManagerService; 22 | 23 | .field final synthetic val$callingPid:I 24 | 25 | .field final synthetic val$callingUid:I 26 | 27 | .field final synthetic val$channelId:Ljava/lang/String; 28 | 29 | .field final synthetic val$doit:Z 30 | 31 | .field final synthetic val$listener:Lcom/android/server/notification/ManagedServices$ManagedServiceInfo; 32 | 33 | .field final synthetic val$mustHaveFlags:I 34 | 35 | .field final synthetic val$mustNotHaveFlags:I 36 | 37 | .field final synthetic val$pkg:Ljava/lang/String; 38 | 39 | .field final synthetic val$reason:I 40 | 41 | .field final synthetic val$userId:I 42 | 43 | 44 | # direct methods 45 | .method constructor (Lcom/android/server/notification/NotificationManagerService;Lcom/android/server/notification/ManagedServices$ManagedServiceInfo;IILjava/lang/String;IIIIZLjava/lang/String;)V 46 | .locals 0 47 | .param p1, "this$0" # Lcom/android/server/notification/NotificationManagerService; 48 | 49 | .prologue 50 | iput-object p1, p0, Lcom/android/server/notification/NotificationManagerService$16;->this$0:Lcom/android/server/notification/NotificationManagerService; 51 | 52 | iput-object p2, p0, Lcom/android/server/notification/NotificationManagerService$16;->val$listener:Lcom/android/server/notification/ManagedServices$ManagedServiceInfo; 53 | 54 | iput p3, p0, Lcom/android/server/notification/NotificationManagerService$16;->val$callingUid:I 55 | 56 | iput p4, p0, Lcom/android/server/notification/NotificationManagerService$16;->val$callingPid:I 57 | 58 | iput-object p5, p0, Lcom/android/server/notification/NotificationManagerService$16;->val$pkg:Ljava/lang/String; 59 | 60 | iput p6, p0, Lcom/android/server/notification/NotificationManagerService$16;->val$userId:I 61 | 62 | iput p7, p0, Lcom/android/server/notification/NotificationManagerService$16;->val$mustHaveFlags:I 63 | 64 | iput p8, p0, Lcom/android/server/notification/NotificationManagerService$16;->val$mustNotHaveFlags:I 65 | 66 | iput p9, p0, Lcom/android/server/notification/NotificationManagerService$16;->val$reason:I 67 | 68 | iput-boolean p10, p0, Lcom/android/server/notification/NotificationManagerService$16;->val$doit:Z 69 | 70 | iput-object p11, p0, Lcom/android/server/notification/NotificationManagerService$16;->val$channelId:Ljava/lang/String; 71 | 72 | invoke-direct {p0}, Ljava/lang/Object;->()V 73 | 74 | return-void 75 | .end method 76 | 77 | .method static synthetic lambda$-com_android_server_notification_NotificationManagerService$16_216953(III)Z 78 | .locals 2 79 | .param p0, "mustHaveFlags" # I 80 | .param p1, "mustNotHaveFlags" # I 81 | .param p2, "flags" # I 82 | 83 | .prologue 84 | const/4 v1, 0x0 85 | 86 | and-int v0, p2, p0 87 | 88 | if-eq v0, p0, :cond_0 89 | 90 | return v1 91 | 92 | :cond_0 93 | and-int v0, p2, p1 94 | 95 | if-eqz v0, :cond_1 96 | 97 | return v1 98 | 99 | :cond_1 100 | const/4 v0, 0x1 101 | 102 | return v0 103 | .end method 104 | 105 | 106 | # virtual methods 107 | .method public run()V 108 | .locals 23 109 | 110 | .prologue 111 | move-object/from16 v0, p0 112 | 113 | iget-object v1, v0, Lcom/android/server/notification/NotificationManagerService$16;->val$listener:Lcom/android/server/notification/ManagedServices$ManagedServiceInfo; 114 | 115 | if-nez v1, :cond_0 116 | 117 | const/4 v8, 0x0 118 | 119 | :goto_0 120 | move-object/from16 v0, p0 121 | 122 | iget v1, v0, Lcom/android/server/notification/NotificationManagerService$16;->val$callingUid:I 123 | 124 | move-object/from16 v0, p0 125 | 126 | iget v2, v0, Lcom/android/server/notification/NotificationManagerService$16;->val$callingPid:I 127 | 128 | move-object/from16 v0, p0 129 | 130 | iget-object v3, v0, Lcom/android/server/notification/NotificationManagerService$16;->val$pkg:Ljava/lang/String; 131 | 132 | move-object/from16 v0, p0 133 | 134 | iget v4, v0, Lcom/android/server/notification/NotificationManagerService$16;->val$userId:I 135 | 136 | move-object/from16 v0, p0 137 | 138 | iget v5, v0, Lcom/android/server/notification/NotificationManagerService$16;->val$mustHaveFlags:I 139 | 140 | move-object/from16 v0, p0 141 | 142 | iget v6, v0, Lcom/android/server/notification/NotificationManagerService$16;->val$mustNotHaveFlags:I 143 | 144 | move-object/from16 v0, p0 145 | 146 | iget v7, v0, Lcom/android/server/notification/NotificationManagerService$16;->val$reason:I 147 | 148 | invoke-static/range {v1 .. v8}, Lcom/android/server/EventLogTags;->writeNotificationCancelAll(IILjava/lang/String;IIIILjava/lang/String;)V 149 | 150 | move-object/from16 v0, p0 151 | 152 | iget-boolean v1, v0, Lcom/android/server/notification/NotificationManagerService$16;->val$doit:Z 153 | 154 | if-nez v1, :cond_1 155 | 156 | return-void 157 | 158 | :cond_0 159 | move-object/from16 v0, p0 160 | 161 | iget-object v1, v0, Lcom/android/server/notification/NotificationManagerService$16;->val$listener:Lcom/android/server/notification/ManagedServices$ManagedServiceInfo; 162 | 163 | iget-object v1, v1, Lcom/android/server/notification/ManagedServices$ManagedServiceInfo;->component:Landroid/content/ComponentName; 164 | 165 | invoke-virtual {v1}, Landroid/content/ComponentName;->toShortString()Ljava/lang/String; 166 | 167 | move-result-object v8 168 | 169 | .local v8, "listenerName":Ljava/lang/String; 170 | goto :goto_0 171 | 172 | .end local v8 # "listenerName":Ljava/lang/String; 173 | :cond_1 174 | move-object/from16 v0, p0 175 | 176 | iget-object v1, v0, Lcom/android/server/notification/NotificationManagerService$16;->this$0:Lcom/android/server/notification/NotificationManagerService; 177 | 178 | iget-object v2, v1, Lcom/android/server/notification/NotificationManagerService;->mNotificationLock:Ljava/lang/Object; 179 | 180 | monitor-enter v2 181 | 182 | :try_start_0 183 | new-instance v16, Lcom/android/server/notification/-$Lambda$0oXbfIRCVxclfVVwXaE3J61tRFA$3; 184 | 185 | move-object/from16 v0, p0 186 | 187 | iget v1, v0, Lcom/android/server/notification/NotificationManagerService$16;->val$mustHaveFlags:I 188 | 189 | move-object/from16 v0, p0 190 | 191 | iget v3, v0, Lcom/android/server/notification/NotificationManagerService$16;->val$mustNotHaveFlags:I 192 | 193 | move-object/from16 v0, v16 194 | 195 | invoke-direct {v0, v1, v3}, Lcom/android/server/notification/-$Lambda$0oXbfIRCVxclfVVwXaE3J61tRFA$3;->(II)V 196 | 197 | .local v16, "flagChecker":Lcom/android/server/notification/NotificationManagerService$FlagChecker; 198 | move-object/from16 v0, p0 199 | 200 | iget-object v9, v0, Lcom/android/server/notification/NotificationManagerService$16;->this$0:Lcom/android/server/notification/NotificationManagerService; 201 | 202 | move-object/from16 v0, p0 203 | 204 | iget-object v1, v0, Lcom/android/server/notification/NotificationManagerService$16;->this$0:Lcom/android/server/notification/NotificationManagerService; 205 | 206 | iget-object v10, v1, Lcom/android/server/notification/NotificationManagerService;->mNotificationList:Ljava/util/ArrayList; 207 | 208 | move-object/from16 v0, p0 209 | 210 | iget v11, v0, Lcom/android/server/notification/NotificationManagerService$16;->val$callingUid:I 211 | 212 | move-object/from16 v0, p0 213 | 214 | iget v12, v0, Lcom/android/server/notification/NotificationManagerService$16;->val$callingPid:I 215 | 216 | move-object/from16 v0, p0 217 | 218 | iget-object v13, v0, Lcom/android/server/notification/NotificationManagerService$16;->val$pkg:Ljava/lang/String; 219 | 220 | move-object/from16 v0, p0 221 | 222 | iget-object v15, v0, Lcom/android/server/notification/NotificationManagerService$16;->val$channelId:Ljava/lang/String; 223 | 224 | move-object/from16 v0, p0 225 | 226 | iget v0, v0, Lcom/android/server/notification/NotificationManagerService$16;->val$userId:I 227 | 228 | move/from16 v18, v0 229 | 230 | move-object/from16 v0, p0 231 | 232 | iget v0, v0, Lcom/android/server/notification/NotificationManagerService$16;->val$reason:I 233 | 234 | move/from16 v20, v0 235 | 236 | const/4 v14, 0x1 237 | 238 | const/16 v17, 0x0 239 | 240 | const/16 v19, 0x0 241 | 242 | const/16 v22, 0x1 243 | 244 | move-object/from16 v21, v8 245 | 246 | invoke-static/range {v9 .. v22}, Lcom/android/server/notification/NotificationManagerService;->-wrap14(Lcom/android/server/notification/NotificationManagerService;Ljava/util/ArrayList;IILjava/lang/String;ZLjava/lang/String;Lcom/android/server/notification/NotificationManagerService$FlagChecker;ZIZILjava/lang/String;Z)V 247 | 248 | move-object/from16 v0, p0 249 | 250 | iget-object v9, v0, Lcom/android/server/notification/NotificationManagerService$16;->this$0:Lcom/android/server/notification/NotificationManagerService; 251 | 252 | move-object/from16 v0, p0 253 | 254 | iget-object v1, v0, Lcom/android/server/notification/NotificationManagerService$16;->this$0:Lcom/android/server/notification/NotificationManagerService; 255 | 256 | iget-object v10, v1, Lcom/android/server/notification/NotificationManagerService;->mEnqueuedNotifications:Ljava/util/ArrayList; 257 | 258 | move-object/from16 v0, p0 259 | 260 | iget v11, v0, Lcom/android/server/notification/NotificationManagerService$16;->val$callingUid:I 261 | 262 | move-object/from16 v0, p0 263 | 264 | iget v12, v0, Lcom/android/server/notification/NotificationManagerService$16;->val$callingPid:I 265 | 266 | move-object/from16 v0, p0 267 | 268 | iget-object v13, v0, Lcom/android/server/notification/NotificationManagerService$16;->val$pkg:Ljava/lang/String; 269 | 270 | move-object/from16 v0, p0 271 | 272 | iget-object v15, v0, Lcom/android/server/notification/NotificationManagerService$16;->val$channelId:Ljava/lang/String; 273 | 274 | move-object/from16 v0, p0 275 | 276 | iget v0, v0, Lcom/android/server/notification/NotificationManagerService$16;->val$userId:I 277 | 278 | move/from16 v18, v0 279 | 280 | move-object/from16 v0, p0 281 | 282 | iget v0, v0, Lcom/android/server/notification/NotificationManagerService$16;->val$reason:I 283 | 284 | move/from16 v20, v0 285 | 286 | const/4 v14, 0x1 287 | 288 | const/16 v17, 0x0 289 | 290 | const/16 v19, 0x0 291 | 292 | const/16 v22, 0x0 293 | 294 | move-object/from16 v21, v8 295 | 296 | invoke-static/range {v9 .. v22}, Lcom/android/server/notification/NotificationManagerService;->-wrap14(Lcom/android/server/notification/NotificationManagerService;Ljava/util/ArrayList;IILjava/lang/String;ZLjava/lang/String;Lcom/android/server/notification/NotificationManagerService$FlagChecker;ZIZILjava/lang/String;Z)V 297 | 298 | move-object/from16 v0, p0 299 | 300 | iget-object v1, v0, Lcom/android/server/notification/NotificationManagerService$16;->this$0:Lcom/android/server/notification/NotificationManagerService; 301 | 302 | invoke-static {v1}, Lcom/android/server/notification/NotificationManagerService;->-get29(Lcom/android/server/notification/NotificationManagerService;)Lcom/android/server/notification/SnoozeHelper; 303 | 304 | move-result-object v1 305 | 306 | move-object/from16 v0, p0 307 | 308 | iget v3, v0, Lcom/android/server/notification/NotificationManagerService$16;->val$userId:I 309 | 310 | move-object/from16 v0, p0 311 | 312 | iget-object v4, v0, Lcom/android/server/notification/NotificationManagerService$16;->val$pkg:Ljava/lang/String; 313 | 314 | invoke-virtual {v1, v3, v4}, Lcom/android/server/notification/SnoozeHelper;->cancel(ILjava/lang/String;)Z 315 | :try_end_0 316 | .catchall {:try_start_0 .. :try_end_0} :catchall_0 317 | 318 | monitor-exit v2 319 | 320 | return-void 321 | 322 | .end local v16 # "flagChecker":Lcom/android/server/notification/NotificationManagerService$FlagChecker; 323 | :catchall_0 324 | move-exception v1 325 | 326 | monitor-exit v2 327 | 328 | throw v1 329 | .end method 330 | -------------------------------------------------------------------------------- /services.jar.out/smali/com/android/server/am/PreventRunningUtils.smali: -------------------------------------------------------------------------------- 1 | .class public Lcom/android/server/am/PreventRunningUtils; 2 | .super Ljava/lang/Object; 3 | .source "PreventRunningUtils.java" 4 | 5 | 6 | # static fields 7 | .field private static ams:Lcom/android/server/am/ActivityManagerService; 8 | 9 | .field private static mPreventRunning:Lcom/android/server/am/PreventRunning; 10 | 11 | 12 | # direct methods 13 | .method static constructor ()V 14 | .locals 1 15 | 16 | .prologue 17 | .line 21 18 | new-instance v0, Lcom/android/server/am/PreventRunning; 19 | 20 | invoke-direct {v0}, Lcom/android/server/am/PreventRunning;->()V 21 | 22 | sput-object v0, Lcom/android/server/am/PreventRunningUtils;->mPreventRunning:Lcom/android/server/am/PreventRunning; 23 | 24 | .line 17 25 | return-void 26 | .end method 27 | 28 | .method private constructor ()V 29 | .locals 0 30 | 31 | .prologue 32 | .line 23 33 | invoke-direct {p0}, Ljava/lang/Object;->()V 34 | 35 | .line 24 36 | return-void 37 | .end method 38 | 39 | .method public static clearSender()V 40 | .locals 2 41 | 42 | .prologue 43 | .line 90 44 | sget-object v0, Lcom/android/server/am/PreventRunningUtils;->mPreventRunning:Lcom/android/server/am/PreventRunning; 45 | 46 | const/4 v1, 0x0 47 | 48 | invoke-virtual {v0, v1}, Lcom/android/server/am/PreventRunning;->setSender(Ljava/lang/String;)V 49 | 50 | .line 91 51 | return-void 52 | .end method 53 | 54 | .method private static forToken(Landroid/os/IBinder;)Lcom/android/server/am/ActivityRecord; 55 | .locals 1 56 | .param p0, "token" # Landroid/os/IBinder; 57 | 58 | .prologue 59 | .line 124 60 | invoke-static {p0}, Lcom/android/server/am/ActivityRecord;->forTokenLocked(Landroid/os/IBinder;)Lcom/android/server/am/ActivityRecord; 61 | 62 | move-result-object v0 63 | 64 | return-object v0 65 | .end method 66 | 67 | .method private static getAms()Lcom/android/server/am/ActivityManagerService; 68 | .locals 1 69 | 70 | .prologue 71 | .line 27 72 | sget-object v0, Lcom/android/server/am/PreventRunningUtils;->ams:Lcom/android/server/am/ActivityManagerService; 73 | 74 | if-nez v0, :cond_0 75 | 76 | .line 28 77 | const-string/jumbo v0, "activity" 78 | 79 | invoke-static {v0}, Landroid/os/ServiceManager;->getService(Ljava/lang/String;)Landroid/os/IBinder; 80 | 81 | move-result-object v0 82 | 83 | check-cast v0, Lcom/android/server/am/ActivityManagerService; 84 | 85 | sput-object v0, Lcom/android/server/am/PreventRunningUtils;->ams:Lcom/android/server/am/ActivityManagerService; 86 | 87 | .line 30 88 | :cond_0 89 | sget-object v0, Lcom/android/server/am/PreventRunningUtils;->ams:Lcom/android/server/am/ActivityManagerService; 90 | 91 | return-object v0 92 | .end method 93 | 94 | .method public static hookBindService(Landroid/app/IApplicationThread;Landroid/os/IBinder;Landroid/content/Intent;)Z 95 | .locals 1 96 | .param p0, "caller" # Landroid/app/IApplicationThread; 97 | .param p1, "token" # Landroid/os/IBinder; 98 | .param p2, "service" # Landroid/content/Intent; 99 | 100 | .prologue 101 | .line 98 102 | sget-object v0, Lcom/android/server/am/PreventRunningUtils;->mPreventRunning:Lcom/android/server/am/PreventRunning; 103 | 104 | invoke-virtual {v0, p2}, Lcom/android/server/am/PreventRunning;->hookBindService(Landroid/content/Intent;)Z 105 | 106 | move-result v0 107 | 108 | return v0 109 | .end method 110 | 111 | .method public static hookStartProcessLocked(Ljava/lang/String;Landroid/content/pm/ApplicationInfo;ZILjava/lang/String;Landroid/content/ComponentName;)Z 112 | .locals 2 113 | .param p0, "processName" # Ljava/lang/String; 114 | .param p1, "info" # Landroid/content/pm/ApplicationInfo; 115 | .param p2, "knownToBeDead" # Z 116 | .param p3, "intentFlags" # I 117 | .param p4, "hostingType" # Ljava/lang/String; 118 | .param p5, "hostingName" # Landroid/content/ComponentName; 119 | 120 | .prologue 121 | .line 48 122 | sget-object v0, Lcom/android/server/am/PreventRunningUtils;->mPreventRunning:Lcom/android/server/am/PreventRunning; 123 | 124 | invoke-static {}, Lcom/android/server/am/PreventRunningUtils;->getAms()Lcom/android/server/am/ActivityManagerService; 125 | 126 | move-result-object v1 127 | 128 | iget-object v1, v1, Lcom/android/server/am/ActivityManagerService;->mContext:Landroid/content/Context; 129 | 130 | invoke-virtual {v0, v1, p1, p4, p5}, Lcom/android/server/am/PreventRunning;->hookStartProcessLocked(Landroid/content/Context;Landroid/content/pm/ApplicationInfo;Ljava/lang/String;Landroid/content/ComponentName;)Z 131 | 132 | move-result v0 133 | 134 | return v0 135 | .end method 136 | 137 | .method public static hookStartService(Landroid/app/IApplicationThread;Landroid/content/Intent;)Z 138 | .locals 1 139 | .param p0, "caller" # Landroid/app/IApplicationThread; 140 | .param p1, "service" # Landroid/content/Intent; 141 | 142 | .prologue 143 | .line 94 144 | sget-object v0, Lcom/android/server/am/PreventRunningUtils;->mPreventRunning:Lcom/android/server/am/PreventRunning; 145 | 146 | invoke-virtual {v0, p1}, Lcom/android/server/am/PreventRunning;->hookStartService(Landroid/content/Intent;)Z 147 | 148 | move-result v0 149 | 150 | return v0 151 | .end method 152 | 153 | .method public static isExcludingStopped(Landroid/content/Intent;)Z 154 | .locals 2 155 | .param p0, "intent" # Landroid/content/Intent; 156 | 157 | .prologue 158 | .line 34 159 | invoke-virtual {p0}, Landroid/content/Intent;->getAction()Ljava/lang/String; 160 | 161 | move-result-object v0 162 | 163 | .line 35 164 | .local v0, "action":Ljava/lang/String; 165 | invoke-virtual {p0}, Landroid/content/Intent;->isExcludingStopped()Z 166 | 167 | move-result v1 168 | 169 | if-eqz v1, :cond_0 170 | 171 | if-eqz v0, :cond_0 172 | 173 | sget-object v1, Lcom/android/server/am/PreventRunningUtils;->mPreventRunning:Lcom/android/server/am/PreventRunning; 174 | 175 | invoke-virtual {v1, v0}, Lcom/android/server/am/PreventRunning;->isExcludingStopped(Ljava/lang/String;)Z 176 | 177 | move-result v1 178 | 179 | :goto_0 180 | return v1 181 | 182 | :cond_0 183 | const/4 v1, 0x0 184 | 185 | goto :goto_0 186 | .end method 187 | 188 | .method public static match(Landroid/content/IntentFilter;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Landroid/net/Uri;Ljava/util/Set;Ljava/lang/String;)I 189 | .locals 8 190 | .param p0, "filter" # Landroid/content/IntentFilter; 191 | .param p1, "action" # Ljava/lang/String; 192 | .param p2, "type" # Ljava/lang/String; 193 | .param p3, "scheme" # Ljava/lang/String; 194 | .param p4, "data" # Landroid/net/Uri; 195 | .param p6, "tag" # Ljava/lang/String; 196 | .annotation system Ldalvik/annotation/Signature; 197 | value = { 198 | "(", 199 | "Landroid/content/IntentFilter;", 200 | "Ljava/lang/String;", 201 | "Ljava/lang/String;", 202 | "Ljava/lang/String;", 203 | "Landroid/net/Uri;", 204 | "Ljava/util/Set", 205 | "<", 206 | "Ljava/lang/String;", 207 | ">;", 208 | "Ljava/lang/String;", 209 | ")I" 210 | } 211 | .end annotation 212 | 213 | .prologue 214 | .line 39 215 | .local p5, "categories":Ljava/util/Set;, "Ljava/util/Set;" 216 | invoke-virtual/range {p0 .. p6}, Landroid/content/IntentFilter;->match(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Landroid/net/Uri;Ljava/util/Set;Ljava/lang/String;)I 217 | 218 | move-result v1 219 | 220 | .line 40 221 | .local v1, "match":I 222 | if-ltz v1, :cond_0 223 | 224 | .line 41 225 | sget-object v0, Lcom/android/server/am/PreventRunningUtils;->mPreventRunning:Lcom/android/server/am/PreventRunning; 226 | 227 | move-object v2, p0 228 | 229 | move-object v3, p1 230 | 231 | move-object v4, p2 232 | 233 | move-object v5, p3 234 | 235 | move-object v6, p4 236 | 237 | move-object v7, p5 238 | 239 | invoke-virtual/range {v0 .. v7}, Lcom/android/server/am/PreventRunning;->match(ILjava/lang/Object;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Landroid/net/Uri;Ljava/util/Set;)I 240 | 241 | move-result v0 242 | 243 | return v0 244 | 245 | .line 43 246 | :cond_0 247 | return v1 248 | .end method 249 | 250 | .method public static onAppDied(Lcom/android/server/am/ProcessRecord;)V 251 | .locals 1 252 | .param p0, "app" # Lcom/android/server/am/ProcessRecord; 253 | 254 | .prologue 255 | .line 62 256 | sget-object v0, Lcom/android/server/am/PreventRunningUtils;->mPreventRunning:Lcom/android/server/am/PreventRunning; 257 | 258 | invoke-virtual {v0, p0}, Lcom/android/server/am/PreventRunning;->onAppDied(Ljava/lang/Object;)V 259 | 260 | .line 63 261 | return-void 262 | .end method 263 | 264 | .method public static onBroadcastIntent(Landroid/content/Intent;)V 265 | .locals 1 266 | .param p0, "intent" # Landroid/content/Intent; 267 | 268 | .prologue 269 | .line 102 270 | sget-object v0, Lcom/android/server/am/PreventRunningUtils;->mPreventRunning:Lcom/android/server/am/PreventRunning; 271 | 272 | invoke-virtual {v0, p0}, Lcom/android/server/am/PreventRunning;->onBroadcastIntent(Landroid/content/Intent;)V 273 | 274 | .line 103 275 | return-void 276 | .end method 277 | 278 | .method public static onCleanUpRemovedTask(Landroid/content/Intent;)V 279 | .locals 2 280 | .param p0, "intent" # Landroid/content/Intent; 281 | 282 | .prologue 283 | .line 74 284 | if-eqz p0, :cond_0 285 | 286 | invoke-virtual {p0}, Landroid/content/Intent;->getComponent()Landroid/content/ComponentName; 287 | 288 | move-result-object v0 289 | 290 | if-eqz v0, :cond_0 291 | 292 | .line 75 293 | sget-object v0, Lcom/android/server/am/PreventRunningUtils;->mPreventRunning:Lcom/android/server/am/PreventRunning; 294 | 295 | invoke-virtual {p0}, Landroid/content/Intent;->getComponent()Landroid/content/ComponentName; 296 | 297 | move-result-object v1 298 | 299 | invoke-virtual {v1}, Landroid/content/ComponentName;->getPackageName()Ljava/lang/String; 300 | 301 | move-result-object v1 302 | 303 | invoke-virtual {v0, v1}, Lcom/android/server/am/PreventRunning;->onCleanUpRemovedTask(Ljava/lang/String;)V 304 | 305 | .line 77 306 | :cond_0 307 | return-void 308 | .end method 309 | 310 | .method public static onDestroyActivity(Landroid/os/IBinder;)V 311 | .locals 2 312 | .param p0, "token" # Landroid/os/IBinder; 313 | 314 | .prologue 315 | .line 116 316 | sget-object v0, Lcom/android/server/am/PreventRunningUtils;->mPreventRunning:Lcom/android/server/am/PreventRunning; 317 | 318 | invoke-static {p0}, Lcom/android/server/am/PreventRunningUtils;->forToken(Landroid/os/IBinder;)Lcom/android/server/am/ActivityRecord; 319 | 320 | move-result-object v1 321 | 322 | invoke-virtual {v0, v1}, Lcom/android/server/am/PreventRunning;->onDestroyActivity(Ljava/lang/Object;)V 323 | 324 | .line 117 325 | return-void 326 | .end method 327 | 328 | .method public static onLaunchActivity(Landroid/os/IBinder;)V 329 | .locals 2 330 | .param p0, "token" # Landroid/os/IBinder; 331 | 332 | .prologue 333 | .line 120 334 | sget-object v0, Lcom/android/server/am/PreventRunningUtils;->mPreventRunning:Lcom/android/server/am/PreventRunning; 335 | 336 | invoke-static {p0}, Lcom/android/server/am/PreventRunningUtils;->forToken(Landroid/os/IBinder;)Lcom/android/server/am/ActivityRecord; 337 | 338 | move-result-object v1 339 | 340 | invoke-virtual {v0, v1}, Lcom/android/server/am/PreventRunning;->onLaunchActivity(Ljava/lang/Object;)V 341 | 342 | .line 121 343 | return-void 344 | .end method 345 | 346 | .method public static onMoveActivityTaskToBack(Landroid/os/IBinder;)V 347 | .locals 3 348 | .param p0, "token" # Landroid/os/IBinder; 349 | 350 | .prologue 351 | const/4 v1, 0x0 352 | 353 | .line 80 354 | invoke-static {p0}, Lcom/android/server/am/PreventRunningUtils;->forToken(Landroid/os/IBinder;)Lcom/android/server/am/ActivityRecord; 355 | 356 | move-result-object v0 357 | 358 | .line 81 359 | .local v0, "ar":Lcom/android/server/am/ActivityRecord; 360 | sget-object v2, Lcom/android/server/am/PreventRunningUtils;->mPreventRunning:Lcom/android/server/am/PreventRunning; 361 | 362 | if-eqz v0, :cond_0 363 | 364 | iget-object v1, v0, Lcom/android/server/am/ActivityRecord;->packageName:Ljava/lang/String; 365 | 366 | :cond_0 367 | invoke-virtual {v2, v1}, Lcom/android/server/am/PreventRunning;->onMoveActivityTaskToBack(Ljava/lang/String;)V 368 | 369 | .line 82 370 | return-void 371 | .end method 372 | 373 | .method public static onResumeActivity(Landroid/os/IBinder;)V 374 | .locals 2 375 | .param p0, "token" # Landroid/os/IBinder; 376 | 377 | .prologue 378 | .line 112 379 | sget-object v0, Lcom/android/server/am/PreventRunningUtils;->mPreventRunning:Lcom/android/server/am/PreventRunning; 380 | 381 | invoke-static {p0}, Lcom/android/server/am/PreventRunningUtils;->forToken(Landroid/os/IBinder;)Lcom/android/server/am/ActivityRecord; 382 | 383 | move-result-object v1 384 | 385 | invoke-virtual {v0, v1}, Lcom/android/server/am/PreventRunning;->onResumeActivity(Ljava/lang/Object;)V 386 | 387 | .line 113 388 | return-void 389 | .end method 390 | 391 | .method public static onStartActivity(ILandroid/app/IApplicationThread;Ljava/lang/String;Landroid/content/Intent;)I 392 | .locals 3 393 | .param p0, "res" # I 394 | .param p1, "caller" # Landroid/app/IApplicationThread; 395 | .param p2, "callingPackage" # Ljava/lang/String; 396 | .param p3, "intent" # Landroid/content/Intent; 397 | 398 | .prologue 399 | .line 52 400 | if-ltz p0, :cond_1 401 | 402 | if-eqz p3, :cond_1 403 | 404 | const-string/jumbo v1, "android.intent.category.HOME" 405 | 406 | invoke-virtual {p3, v1}, Landroid/content/Intent;->hasCategory(Ljava/lang/String;)Z 407 | 408 | move-result v1 409 | 410 | if-nez v1, :cond_0 411 | 412 | const-string/jumbo v1, "android.intent.category.LAUNCHER" 413 | 414 | invoke-virtual {p3, v1}, Landroid/content/Intent;->hasCategory(Ljava/lang/String;)Z 415 | 416 | move-result v1 417 | 418 | if-eqz v1, :cond_1 419 | 420 | .line 53 421 | :cond_0 422 | invoke-static {}, Lcom/android/server/am/PreventRunningUtils;->getAms()Lcom/android/server/am/ActivityManagerService; 423 | 424 | move-result-object v1 425 | 426 | invoke-virtual {v1, p1}, Lcom/android/server/am/ActivityManagerService;->getRecordForAppLocked(Landroid/app/IApplicationThread;)Lcom/android/server/am/ProcessRecord; 427 | 428 | move-result-object v0 429 | 430 | .line 54 431 | .local v0, "callerApp":Lcom/android/server/am/ProcessRecord; 432 | if-eqz v0, :cond_1 433 | 434 | .line 55 435 | sget-object v1, Lcom/android/server/am/PreventRunningUtils;->mPreventRunning:Lcom/android/server/am/PreventRunning; 436 | 437 | iget-object v2, v0, Lcom/android/server/am/ProcessRecord;->info:Landroid/content/pm/ApplicationInfo; 438 | 439 | iget-object v2, v2, Landroid/content/pm/ApplicationInfo;->packageName:Ljava/lang/String; 440 | 441 | invoke-virtual {v1, v2}, Lcom/android/server/am/PreventRunning;->onStartHomeActivity(Ljava/lang/String;)V 442 | 443 | .line 58 444 | .end local v0 # "callerApp":Lcom/android/server/am/ProcessRecord; 445 | :cond_1 446 | return p0 447 | .end method 448 | 449 | .method public static onUserLeavingActivity(Landroid/os/IBinder;ZZ)V 450 | .locals 2 451 | .param p0, "token" # Landroid/os/IBinder; 452 | .param p1, "finishing" # Z 453 | .param p2, "userLeaving" # Z 454 | 455 | .prologue 456 | .line 106 457 | if-eqz p2, :cond_0 458 | 459 | .line 107 460 | sget-object v0, Lcom/android/server/am/PreventRunningUtils;->mPreventRunning:Lcom/android/server/am/PreventRunning; 461 | 462 | invoke-static {p0}, Lcom/android/server/am/PreventRunningUtils;->forToken(Landroid/os/IBinder;)Lcom/android/server/am/ActivityRecord; 463 | 464 | move-result-object v1 465 | 466 | invoke-virtual {v0, v1}, Lcom/android/server/am/PreventRunning;->onUserLeavingActivity(Ljava/lang/Object;)V 467 | 468 | .line 109 469 | :cond_0 470 | return-void 471 | .end method 472 | 473 | .method public static returnFalse(Z)Z 474 | .locals 1 475 | .param p0, "res" # Z 476 | 477 | .prologue 478 | .line 66 479 | sget-object v0, Lcom/android/server/am/PreventRunningUtils;->mPreventRunning:Lcom/android/server/am/PreventRunning; 480 | 481 | invoke-virtual {v0}, Lcom/android/server/am/PreventRunning;->isActiviated()Z 482 | 483 | move-result v0 484 | 485 | if-eqz v0, :cond_0 486 | 487 | .line 67 488 | const/4 v0, 0x0 489 | 490 | return v0 491 | 492 | .line 69 493 | :cond_0 494 | return p0 495 | .end method 496 | 497 | .method public static setSender(Landroid/app/IApplicationThread;)V 498 | .locals 3 499 | .param p0, "caller" # Landroid/app/IApplicationThread; 500 | 501 | .prologue 502 | .line 85 503 | invoke-static {}, Lcom/android/server/am/PreventRunningUtils;->getAms()Lcom/android/server/am/ActivityManagerService; 504 | 505 | move-result-object v1 506 | 507 | invoke-virtual {v1, p0}, Lcom/android/server/am/ActivityManagerService;->getRecordForAppLocked(Landroid/app/IApplicationThread;)Lcom/android/server/am/ProcessRecord; 508 | 509 | move-result-object v0 510 | 511 | .line 86 512 | .local v0, "callerApp":Lcom/android/server/am/ProcessRecord; 513 | sget-object v2, Lcom/android/server/am/PreventRunningUtils;->mPreventRunning:Lcom/android/server/am/PreventRunning; 514 | 515 | if-eqz v0, :cond_0 516 | 517 | iget-object v1, v0, Lcom/android/server/am/ProcessRecord;->info:Landroid/content/pm/ApplicationInfo; 518 | 519 | iget-object v1, v1, Landroid/content/pm/ApplicationInfo;->packageName:Ljava/lang/String; 520 | 521 | :goto_0 522 | invoke-virtual {v2, v1}, Lcom/android/server/am/PreventRunning;->setSender(Ljava/lang/String;)V 523 | 524 | .line 87 525 | return-void 526 | 527 | .line 86 528 | :cond_0 529 | invoke-static {}, Landroid/os/Binder;->getCallingUid()I 530 | 531 | move-result v1 532 | 533 | invoke-static {v1}, Ljava/lang/String;->valueOf(I)Ljava/lang/String; 534 | 535 | move-result-object v1 536 | 537 | goto :goto_0 538 | .end method 539 | -------------------------------------------------------------------------------- /services.jar.out/smali/com/android/server/am/PreventRunning.smali: -------------------------------------------------------------------------------- 1 | .class public Lcom/android/server/am/PreventRunning; 2 | .super Ljava/lang/Object; 3 | .source "PreventRunning.java" 4 | 5 | # interfaces 6 | .implements Lcom/android/server/am/PreventRunningHook; 7 | 8 | 9 | # static fields 10 | .field private static APKS:[Ljava/lang/String; = null 11 | 12 | .field private static final TAG:Ljava/lang/String; = "Prevent" 13 | 14 | .field public static final VERSION:I = 0x133a200 15 | 16 | 17 | # instance fields 18 | .field private mPreventRunning:Lcom/android/server/am/PreventRunningHook; 19 | 20 | 21 | # direct methods 22 | .method static constructor ()V 23 | .locals 3 24 | 25 | .prologue 26 | .line 26 27 | const/4 v0, 0x7 28 | 29 | new-array v0, v0, [Ljava/lang/String; 30 | 31 | .line 27 32 | const-string/jumbo v1, "/system/app/Brevent/Brevent.apk" 33 | 34 | const/4 v2, 0x0 35 | 36 | aput-object v1, v0, v2 37 | 38 | .line 28 39 | const-string/jumbo v1, "/data/app/me.piebridge.prevent-1/base.apk" 40 | 41 | const/4 v2, 0x1 42 | 43 | aput-object v1, v0, v2 44 | 45 | .line 29 46 | const-string/jumbo v1, "/data/app/me.piebridge.prevent-2/base.apk" 47 | 48 | const/4 v2, 0x2 49 | 50 | aput-object v1, v0, v2 51 | 52 | .line 30 53 | const-string/jumbo v1, "/data/app/me.piebridge.prevent-3/base.apk" 54 | 55 | const/4 v2, 0x3 56 | 57 | aput-object v1, v0, v2 58 | 59 | .line 31 60 | const-string/jumbo v1, "/data/app/me.piebridge.prevent-1.apk" 61 | 62 | const/4 v2, 0x4 63 | 64 | aput-object v1, v0, v2 65 | 66 | .line 32 67 | const-string/jumbo v1, "/data/app/me.piebridge.prevent-2.apk" 68 | 69 | const/4 v2, 0x5 70 | 71 | aput-object v1, v0, v2 72 | 73 | .line 33 74 | const-string/jumbo v1, "/data/app/me.piebridge.prevent-3.apk" 75 | 76 | const/4 v2, 0x6 77 | 78 | aput-object v1, v0, v2 79 | 80 | .line 26 81 | sput-object v0, Lcom/android/server/am/PreventRunning;->APKS:[Ljava/lang/String; 82 | 83 | .line 18 84 | return-void 85 | .end method 86 | 87 | .method public constructor ()V 88 | .locals 6 89 | 90 | .prologue 91 | .line 36 92 | invoke-direct {p0}, Ljava/lang/Object;->()V 93 | 94 | .line 37 95 | sget-object v3, Lcom/android/server/am/PreventRunning;->APKS:[Ljava/lang/String; 96 | 97 | const/4 v2, 0x0 98 | 99 | array-length v4, v3 100 | 101 | :goto_0 102 | if-ge v2, v4, :cond_0 103 | 104 | aget-object v0, v3, v2 105 | 106 | .line 38 107 | .local v0, "apk":Ljava/lang/String; 108 | new-instance v1, Ljava/io/File; 109 | 110 | invoke-direct {v1, v0}, Ljava/io/File;->(Ljava/lang/String;)V 111 | 112 | .line 39 113 | .local v1, "file":Ljava/io/File; 114 | invoke-virtual {v1}, Ljava/io/File;->exists()Z 115 | 116 | move-result v5 117 | 118 | if-eqz v5, :cond_1 119 | 120 | invoke-direct {p0, v1}, Lcom/android/server/am/PreventRunning;->initPreventRunning(Ljava/io/File;)Z 121 | 122 | move-result v5 123 | 124 | if-eqz v5, :cond_1 125 | 126 | .line 43 127 | .end local v0 # "apk":Ljava/lang/String; 128 | .end local v1 # "file":Ljava/io/File; 129 | :cond_0 130 | return-void 131 | 132 | .line 37 133 | .restart local v0 # "apk":Ljava/lang/String; 134 | .restart local v1 # "file":Ljava/io/File; 135 | :cond_1 136 | add-int/lit8 v2, v2, 0x1 137 | 138 | goto :goto_0 139 | .end method 140 | 141 | .method private initPreventRunning(Ljava/io/File;)Z 142 | .locals 9 143 | .param p1, "apk" # Ljava/io/File; 144 | 145 | .prologue 146 | .line 47 147 | :try_start_0 148 | invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread; 149 | 150 | move-result-object v6 151 | 152 | invoke-virtual {v6}, Ljava/lang/Thread;->getContextClassLoader()Ljava/lang/ClassLoader; 153 | 154 | move-result-object v1 155 | 156 | .line 48 157 | .local v1, "currentClassLoader":Ljava/lang/ClassLoader; 158 | new-instance v0, Ldalvik/system/DexClassLoader; 159 | 160 | invoke-virtual {p1}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String; 161 | 162 | move-result-object v6 163 | 164 | const-string/jumbo v7, "/cache" 165 | 166 | const/4 v8, 0x0 167 | 168 | invoke-direct {v0, v6, v7, v8, v1}, Ldalvik/system/DexClassLoader;->(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/ClassLoader;)V 169 | 170 | .line 49 171 | .local v0, "classLoader":Ljava/lang/ClassLoader; 172 | const-string/jumbo v6, "Prevent" 173 | 174 | new-instance v7, Ljava/lang/StringBuilder; 175 | 176 | invoke-direct {v7}, Ljava/lang/StringBuilder;->()V 177 | 178 | const-string/jumbo v8, "loading PreventRunning(20161024) from " 179 | 180 | invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; 181 | 182 | move-result-object v7 183 | 184 | invoke-virtual {v7, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder; 185 | 186 | move-result-object v7 187 | 188 | invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; 189 | 190 | move-result-object v7 191 | 192 | invoke-static {v6, v7}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I 193 | 194 | .line 50 195 | const-string/jumbo v6, "me.piebridge.prevent.framework.PreventRunning" 196 | 197 | invoke-virtual {v0, v6}, Ljava/lang/ClassLoader;->loadClass(Ljava/lang/String;)Ljava/lang/Class; 198 | 199 | move-result-object v6 200 | 201 | invoke-virtual {v6}, Ljava/lang/Class;->newInstance()Ljava/lang/Object; 202 | 203 | move-result-object v6 204 | 205 | check-cast v6, Lcom/android/server/am/PreventRunningHook; 206 | 207 | iput-object v6, p0, Lcom/android/server/am/PreventRunning;->mPreventRunning:Lcom/android/server/am/PreventRunningHook; 208 | 209 | .line 51 210 | const v6, 0x133a200 211 | 212 | invoke-virtual {p0, v6}, Lcom/android/server/am/PreventRunning;->setVersion(I)V 213 | 214 | .line 52 215 | const-string/jumbo v6, "native" 216 | 217 | invoke-virtual {p0, v6}, Lcom/android/server/am/PreventRunning;->setMethod(Ljava/lang/String;)V 218 | :try_end_0 219 | .catch Ljava/lang/ClassNotFoundException; {:try_start_0 .. :try_end_0} :catch_3 220 | .catch Ljava/lang/InstantiationException; {:try_start_0 .. :try_end_0} :catch_2 221 | .catch Ljava/lang/IllegalAccessException; {:try_start_0 .. :try_end_0} :catch_1 222 | .catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_0} :catch_0 223 | 224 | .line 53 225 | const/4 v6, 0x1 226 | 227 | return v6 228 | 229 | .line 60 230 | .end local v0 # "classLoader":Ljava/lang/ClassLoader; 231 | .end local v1 # "currentClassLoader":Ljava/lang/ClassLoader; 232 | :catch_0 233 | move-exception v5 234 | 235 | .line 61 236 | .local v5, "t":Ljava/lang/Throwable; 237 | const-string/jumbo v6, "Prevent" 238 | 239 | new-instance v7, Ljava/lang/StringBuilder; 240 | 241 | invoke-direct {v7}, Ljava/lang/StringBuilder;->()V 242 | 243 | const-string/jumbo v8, "cannot load PreventRunning from " 244 | 245 | invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; 246 | 247 | move-result-object v7 248 | 249 | invoke-virtual {v7, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder; 250 | 251 | move-result-object v7 252 | 253 | invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; 254 | 255 | move-result-object v7 256 | 257 | invoke-static {v6, v7, v5}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I 258 | 259 | .line 63 260 | .end local v5 # "t":Ljava/lang/Throwable; 261 | :goto_0 262 | const/4 v6, 0x0 263 | 264 | return v6 265 | 266 | .line 58 267 | :catch_1 268 | move-exception v3 269 | 270 | .line 59 271 | .local v3, "e":Ljava/lang/IllegalAccessException; 272 | const-string/jumbo v6, "Prevent" 273 | 274 | const-string/jumbo v7, "cannot access class" 275 | 276 | invoke-static {v6, v7, v3}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I 277 | 278 | goto :goto_0 279 | 280 | .line 56 281 | .end local v3 # "e":Ljava/lang/IllegalAccessException; 282 | :catch_2 283 | move-exception v4 284 | 285 | .line 57 286 | .local v4, "e":Ljava/lang/InstantiationException; 287 | const-string/jumbo v6, "Prevent" 288 | 289 | const-string/jumbo v7, "cannot instance class" 290 | 291 | invoke-static {v6, v7, v4}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I 292 | 293 | goto :goto_0 294 | 295 | .line 54 296 | .end local v4 # "e":Ljava/lang/InstantiationException; 297 | :catch_3 298 | move-exception v2 299 | 300 | .line 55 301 | .local v2, "e":Ljava/lang/ClassNotFoundException; 302 | const-string/jumbo v6, "Prevent" 303 | 304 | const-string/jumbo v7, "cannot find class" 305 | 306 | invoke-static {v6, v7, v2}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I 307 | 308 | goto :goto_0 309 | .end method 310 | 311 | 312 | # virtual methods 313 | .method public hookBindService(Landroid/content/Intent;)Z 314 | .locals 1 315 | .param p1, "service" # Landroid/content/Intent; 316 | 317 | .prologue 318 | .line 171 319 | iget-object v0, p0, Lcom/android/server/am/PreventRunning;->mPreventRunning:Lcom/android/server/am/PreventRunningHook; 320 | 321 | if-eqz v0, :cond_0 322 | 323 | iget-object v0, p0, Lcom/android/server/am/PreventRunning;->mPreventRunning:Lcom/android/server/am/PreventRunningHook; 324 | 325 | invoke-interface {v0, p1}, Lcom/android/server/am/PreventRunningHook;->hookBindService(Landroid/content/Intent;)Z 326 | 327 | move-result v0 328 | 329 | :goto_0 330 | return v0 331 | 332 | :cond_0 333 | const/4 v0, 0x1 334 | 335 | goto :goto_0 336 | .end method 337 | 338 | .method public hookStartProcessLocked(Landroid/content/Context;Landroid/content/pm/ApplicationInfo;Ljava/lang/String;Landroid/content/ComponentName;)Z 339 | .locals 1 340 | .param p1, "context" # Landroid/content/Context; 341 | .param p2, "info" # Landroid/content/pm/ApplicationInfo; 342 | .param p3, "hostingType" # Ljava/lang/String; 343 | .param p4, "hostingName" # Landroid/content/ComponentName; 344 | 345 | .prologue 346 | .line 143 347 | iget-object v0, p0, Lcom/android/server/am/PreventRunning;->mPreventRunning:Lcom/android/server/am/PreventRunningHook; 348 | 349 | if-eqz v0, :cond_0 350 | 351 | iget-object v0, p0, Lcom/android/server/am/PreventRunning;->mPreventRunning:Lcom/android/server/am/PreventRunningHook; 352 | 353 | invoke-interface {v0, p1, p2, p3, p4}, Lcom/android/server/am/PreventRunningHook;->hookStartProcessLocked(Landroid/content/Context;Landroid/content/pm/ApplicationInfo;Ljava/lang/String;Landroid/content/ComponentName;)Z 354 | 355 | move-result v0 356 | 357 | :goto_0 358 | return v0 359 | 360 | :cond_0 361 | const/4 v0, 0x1 362 | 363 | goto :goto_0 364 | .end method 365 | 366 | .method public hookStartService(Landroid/content/Intent;)Z 367 | .locals 1 368 | .param p1, "service" # Landroid/content/Intent; 369 | 370 | .prologue 371 | .line 176 372 | iget-object v0, p0, Lcom/android/server/am/PreventRunning;->mPreventRunning:Lcom/android/server/am/PreventRunningHook; 373 | 374 | if-eqz v0, :cond_0 375 | 376 | iget-object v0, p0, Lcom/android/server/am/PreventRunning;->mPreventRunning:Lcom/android/server/am/PreventRunningHook; 377 | 378 | invoke-interface {v0, p1}, Lcom/android/server/am/PreventRunningHook;->hookStartService(Landroid/content/Intent;)Z 379 | 380 | move-result v0 381 | 382 | :goto_0 383 | return v0 384 | 385 | :cond_0 386 | const/4 v0, 0x1 387 | 388 | goto :goto_0 389 | .end method 390 | 391 | .method public isActiviated()Z 392 | .locals 1 393 | 394 | .prologue 395 | .line 180 396 | iget-object v0, p0, Lcom/android/server/am/PreventRunning;->mPreventRunning:Lcom/android/server/am/PreventRunningHook; 397 | 398 | if-eqz v0, :cond_0 399 | 400 | const/4 v0, 0x1 401 | 402 | :goto_0 403 | return v0 404 | 405 | :cond_0 406 | const/4 v0, 0x0 407 | 408 | goto :goto_0 409 | .end method 410 | 411 | .method public isExcludingStopped(Ljava/lang/String;)Z 412 | .locals 1 413 | .param p1, "action" # Ljava/lang/String; 414 | 415 | .prologue 416 | .line 138 417 | iget-object v0, p0, Lcom/android/server/am/PreventRunning;->mPreventRunning:Lcom/android/server/am/PreventRunningHook; 418 | 419 | if-eqz v0, :cond_0 420 | 421 | iget-object v0, p0, Lcom/android/server/am/PreventRunning;->mPreventRunning:Lcom/android/server/am/PreventRunningHook; 422 | 423 | invoke-interface {v0, p1}, Lcom/android/server/am/PreventRunningHook;->isExcludingStopped(Ljava/lang/String;)Z 424 | 425 | move-result v0 426 | 427 | :goto_0 428 | return v0 429 | 430 | :cond_0 431 | const/4 v0, 0x1 432 | 433 | goto :goto_0 434 | .end method 435 | 436 | .method public match(ILjava/lang/Object;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Landroid/net/Uri;Ljava/util/Set;)I 437 | .locals 8 438 | .param p1, "match" # I 439 | .param p2, "filter" # Ljava/lang/Object; 440 | .param p3, "action" # Ljava/lang/String; 441 | .param p4, "type" # Ljava/lang/String; 442 | .param p5, "scheme" # Ljava/lang/String; 443 | .param p6, "data" # Landroid/net/Uri; 444 | .annotation system Ldalvik/annotation/Signature; 445 | value = { 446 | "(I", 447 | "Ljava/lang/Object;", 448 | "Ljava/lang/String;", 449 | "Ljava/lang/String;", 450 | "Ljava/lang/String;", 451 | "Landroid/net/Uri;", 452 | "Ljava/util/Set", 453 | "<", 454 | "Ljava/lang/String;", 455 | ">;)I" 456 | } 457 | .end annotation 458 | 459 | .prologue 460 | .line 148 461 | .local p7, "categories":Ljava/util/Set;, "Ljava/util/Set;" 462 | iget-object v0, p0, Lcom/android/server/am/PreventRunning;->mPreventRunning:Lcom/android/server/am/PreventRunningHook; 463 | 464 | if-eqz v0, :cond_0 465 | 466 | .line 149 467 | iget-object v0, p0, Lcom/android/server/am/PreventRunning;->mPreventRunning:Lcom/android/server/am/PreventRunningHook; 468 | 469 | move v1, p1 470 | 471 | move-object v2, p2 472 | 473 | move-object v3, p3 474 | 475 | move-object v4, p4 476 | 477 | move-object v5, p5 478 | 479 | move-object v6, p6 480 | 481 | move-object v7, p7 482 | 483 | invoke-interface/range {v0 .. v7}, Lcom/android/server/am/PreventRunningHook;->match(ILjava/lang/Object;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Landroid/net/Uri;Ljava/util/Set;)I 484 | 485 | move-result v0 486 | 487 | return v0 488 | 489 | .line 151 490 | :cond_0 491 | return p1 492 | .end method 493 | 494 | .method public onAppDied(Ljava/lang/Object;)V 495 | .locals 1 496 | .param p1, "processRecord" # Ljava/lang/Object; 497 | 498 | .prologue 499 | .line 103 500 | iget-object v0, p0, Lcom/android/server/am/PreventRunning;->mPreventRunning:Lcom/android/server/am/PreventRunningHook; 501 | 502 | if-eqz v0, :cond_0 503 | 504 | .line 104 505 | iget-object v0, p0, Lcom/android/server/am/PreventRunning;->mPreventRunning:Lcom/android/server/am/PreventRunningHook; 506 | 507 | invoke-interface {v0, p1}, Lcom/android/server/am/PreventRunningHook;->onAppDied(Ljava/lang/Object;)V 508 | 509 | .line 106 510 | :cond_0 511 | return-void 512 | .end method 513 | 514 | .method public onBroadcastIntent(Landroid/content/Intent;)V 515 | .locals 1 516 | .param p1, "intent" # Landroid/content/Intent; 517 | 518 | .prologue 519 | .line 75 520 | iget-object v0, p0, Lcom/android/server/am/PreventRunning;->mPreventRunning:Lcom/android/server/am/PreventRunningHook; 521 | 522 | if-eqz v0, :cond_0 523 | 524 | .line 76 525 | iget-object v0, p0, Lcom/android/server/am/PreventRunning;->mPreventRunning:Lcom/android/server/am/PreventRunningHook; 526 | 527 | invoke-interface {v0, p1}, Lcom/android/server/am/PreventRunningHook;->onBroadcastIntent(Landroid/content/Intent;)V 528 | 529 | .line 78 530 | :cond_0 531 | return-void 532 | .end method 533 | 534 | .method public onCleanUpRemovedTask(Ljava/lang/String;)V 535 | .locals 1 536 | .param p1, "packageName" # Ljava/lang/String; 537 | 538 | .prologue 539 | .line 82 540 | iget-object v0, p0, Lcom/android/server/am/PreventRunning;->mPreventRunning:Lcom/android/server/am/PreventRunningHook; 541 | 542 | if-eqz v0, :cond_0 543 | 544 | .line 83 545 | iget-object v0, p0, Lcom/android/server/am/PreventRunning;->mPreventRunning:Lcom/android/server/am/PreventRunningHook; 546 | 547 | invoke-interface {v0, p1}, Lcom/android/server/am/PreventRunningHook;->onCleanUpRemovedTask(Ljava/lang/String;)V 548 | 549 | .line 85 550 | :cond_0 551 | return-void 552 | .end method 553 | 554 | .method public onDestroyActivity(Ljava/lang/Object;)V 555 | .locals 1 556 | .param p1, "activityRecord" # Ljava/lang/Object; 557 | 558 | .prologue 559 | .line 131 560 | iget-object v0, p0, Lcom/android/server/am/PreventRunning;->mPreventRunning:Lcom/android/server/am/PreventRunningHook; 561 | 562 | if-eqz v0, :cond_0 563 | 564 | .line 132 565 | iget-object v0, p0, Lcom/android/server/am/PreventRunning;->mPreventRunning:Lcom/android/server/am/PreventRunningHook; 566 | 567 | invoke-interface {v0, p1}, Lcom/android/server/am/PreventRunningHook;->onDestroyActivity(Ljava/lang/Object;)V 568 | 569 | .line 134 570 | :cond_0 571 | return-void 572 | .end method 573 | 574 | .method public onLaunchActivity(Ljava/lang/Object;)V 575 | .locals 1 576 | .param p1, "activityRecord" # Ljava/lang/Object; 577 | 578 | .prologue 579 | .line 110 580 | iget-object v0, p0, Lcom/android/server/am/PreventRunning;->mPreventRunning:Lcom/android/server/am/PreventRunningHook; 581 | 582 | if-eqz v0, :cond_0 583 | 584 | .line 111 585 | iget-object v0, p0, Lcom/android/server/am/PreventRunning;->mPreventRunning:Lcom/android/server/am/PreventRunningHook; 586 | 587 | invoke-interface {v0, p1}, Lcom/android/server/am/PreventRunningHook;->onLaunchActivity(Ljava/lang/Object;)V 588 | 589 | .line 113 590 | :cond_0 591 | return-void 592 | .end method 593 | 594 | .method public onMoveActivityTaskToBack(Ljava/lang/String;)V 595 | .locals 1 596 | .param p1, "packageName" # Ljava/lang/String; 597 | 598 | .prologue 599 | .line 96 600 | iget-object v0, p0, Lcom/android/server/am/PreventRunning;->mPreventRunning:Lcom/android/server/am/PreventRunningHook; 601 | 602 | if-eqz v0, :cond_0 603 | 604 | .line 97 605 | iget-object v0, p0, Lcom/android/server/am/PreventRunning;->mPreventRunning:Lcom/android/server/am/PreventRunningHook; 606 | 607 | invoke-interface {v0, p1}, Lcom/android/server/am/PreventRunningHook;->onMoveActivityTaskToBack(Ljava/lang/String;)V 608 | 609 | .line 99 610 | :cond_0 611 | return-void 612 | .end method 613 | 614 | .method public onResumeActivity(Ljava/lang/Object;)V 615 | .locals 1 616 | .param p1, "activityRecord" # Ljava/lang/Object; 617 | 618 | .prologue 619 | .line 117 620 | iget-object v0, p0, Lcom/android/server/am/PreventRunning;->mPreventRunning:Lcom/android/server/am/PreventRunningHook; 621 | 622 | if-eqz v0, :cond_0 623 | 624 | .line 118 625 | iget-object v0, p0, Lcom/android/server/am/PreventRunning;->mPreventRunning:Lcom/android/server/am/PreventRunningHook; 626 | 627 | invoke-interface {v0, p1}, Lcom/android/server/am/PreventRunningHook;->onResumeActivity(Ljava/lang/Object;)V 628 | 629 | .line 120 630 | :cond_0 631 | return-void 632 | .end method 633 | 634 | .method public onStartHomeActivity(Ljava/lang/String;)V 635 | .locals 1 636 | .param p1, "packageName" # Ljava/lang/String; 637 | 638 | .prologue 639 | .line 89 640 | iget-object v0, p0, Lcom/android/server/am/PreventRunning;->mPreventRunning:Lcom/android/server/am/PreventRunningHook; 641 | 642 | if-eqz v0, :cond_0 643 | 644 | .line 90 645 | iget-object v0, p0, Lcom/android/server/am/PreventRunning;->mPreventRunning:Lcom/android/server/am/PreventRunningHook; 646 | 647 | invoke-interface {v0, p1}, Lcom/android/server/am/PreventRunningHook;->onStartHomeActivity(Ljava/lang/String;)V 648 | 649 | .line 92 650 | :cond_0 651 | return-void 652 | .end method 653 | 654 | .method public onUserLeavingActivity(Ljava/lang/Object;)V 655 | .locals 1 656 | .param p1, "activityRecord" # Ljava/lang/Object; 657 | 658 | .prologue 659 | .line 124 660 | iget-object v0, p0, Lcom/android/server/am/PreventRunning;->mPreventRunning:Lcom/android/server/am/PreventRunningHook; 661 | 662 | if-eqz v0, :cond_0 663 | 664 | .line 125 665 | iget-object v0, p0, Lcom/android/server/am/PreventRunning;->mPreventRunning:Lcom/android/server/am/PreventRunningHook; 666 | 667 | invoke-interface {v0, p1}, Lcom/android/server/am/PreventRunningHook;->onUserLeavingActivity(Ljava/lang/Object;)V 668 | 669 | .line 127 670 | :cond_0 671 | return-void 672 | .end method 673 | 674 | .method public setMethod(Ljava/lang/String;)V 675 | .locals 1 676 | .param p1, "method" # Ljava/lang/String; 677 | 678 | .prologue 679 | .line 164 680 | iget-object v0, p0, Lcom/android/server/am/PreventRunning;->mPreventRunning:Lcom/android/server/am/PreventRunningHook; 681 | 682 | if-eqz v0, :cond_0 683 | 684 | .line 165 685 | iget-object v0, p0, Lcom/android/server/am/PreventRunning;->mPreventRunning:Lcom/android/server/am/PreventRunningHook; 686 | 687 | invoke-interface {v0, p1}, Lcom/android/server/am/PreventRunningHook;->setMethod(Ljava/lang/String;)V 688 | 689 | .line 167 690 | :cond_0 691 | return-void 692 | .end method 693 | 694 | .method public setSender(Ljava/lang/String;)V 695 | .locals 1 696 | .param p1, "sender" # Ljava/lang/String; 697 | 698 | .prologue 699 | .line 68 700 | iget-object v0, p0, Lcom/android/server/am/PreventRunning;->mPreventRunning:Lcom/android/server/am/PreventRunningHook; 701 | 702 | if-eqz v0, :cond_0 703 | 704 | .line 69 705 | iget-object v0, p0, Lcom/android/server/am/PreventRunning;->mPreventRunning:Lcom/android/server/am/PreventRunningHook; 706 | 707 | invoke-interface {v0, p1}, Lcom/android/server/am/PreventRunningHook;->setSender(Ljava/lang/String;)V 708 | 709 | .line 71 710 | :cond_0 711 | return-void 712 | .end method 713 | 714 | .method public setVersion(I)V 715 | .locals 1 716 | .param p1, "version" # I 717 | 718 | .prologue 719 | .line 157 720 | iget-object v0, p0, Lcom/android/server/am/PreventRunning;->mPreventRunning:Lcom/android/server/am/PreventRunningHook; 721 | 722 | if-eqz v0, :cond_0 723 | 724 | .line 158 725 | iget-object v0, p0, Lcom/android/server/am/PreventRunning;->mPreventRunning:Lcom/android/server/am/PreventRunningHook; 726 | 727 | invoke-interface {v0, p1}, Lcom/android/server/am/PreventRunningHook;->setVersion(I)V 728 | 729 | .line 160 730 | :cond_0 731 | return-void 732 | .end method 733 | -------------------------------------------------------------------------------- /framework.jar.out/smali/android/app/INotificationManager.smali: -------------------------------------------------------------------------------- 1 | .class public interface abstract Landroid/app/INotificationManager; 2 | .super Ljava/lang/Object; 3 | .source "INotificationManager.java" 4 | 5 | # interfaces 6 | .implements Landroid/os/IInterface; 7 | 8 | 9 | # annotations 10 | .annotation system Ldalvik/annotation/MemberClasses; 11 | value = { 12 | Landroid/app/INotificationManager$Stub; 13 | } 14 | .end annotation 15 | 16 | 17 | # virtual methods 18 | .method public abstract addAutomaticZenRule(Landroid/app/AutomaticZenRule;)Ljava/lang/String; 19 | .annotation system Ldalvik/annotation/Throws; 20 | value = { 21 | Landroid/os/RemoteException; 22 | } 23 | .end annotation 24 | .end method 25 | 26 | .method public abstract applyAdjustmentFromAssistant(Landroid/service/notification/INotificationListener;Landroid/service/notification/Adjustment;)V 27 | .annotation system Ldalvik/annotation/Throws; 28 | value = { 29 | Landroid/os/RemoteException; 30 | } 31 | .end annotation 32 | .end method 33 | 34 | .method public abstract applyAdjustmentsFromAssistant(Landroid/service/notification/INotificationListener;Ljava/util/List;)V 35 | .annotation system Ldalvik/annotation/Signature; 36 | value = { 37 | "(", 38 | "Landroid/service/notification/INotificationListener;", 39 | "Ljava/util/List", 40 | "<", 41 | "Landroid/service/notification/Adjustment;", 42 | ">;)V" 43 | } 44 | .end annotation 45 | 46 | .annotation system Ldalvik/annotation/Throws; 47 | value = { 48 | Landroid/os/RemoteException; 49 | } 50 | .end annotation 51 | .end method 52 | 53 | .method public abstract applyEnqueuedAdjustmentFromAssistant(Landroid/service/notification/INotificationListener;Landroid/service/notification/Adjustment;)V 54 | .annotation system Ldalvik/annotation/Throws; 55 | value = { 56 | Landroid/os/RemoteException; 57 | } 58 | .end annotation 59 | .end method 60 | 61 | .method public abstract applyRestore([BI)V 62 | .annotation system Ldalvik/annotation/Throws; 63 | value = { 64 | Landroid/os/RemoteException; 65 | } 66 | .end annotation 67 | .end method 68 | 69 | .method public abstract areNotificationsEnabled(Ljava/lang/String;)Z 70 | .annotation system Ldalvik/annotation/Throws; 71 | value = { 72 | Landroid/os/RemoteException; 73 | } 74 | .end annotation 75 | .end method 76 | 77 | .method public abstract areNotificationsEnabledForPackage(Ljava/lang/String;I)Z 78 | .annotation system Ldalvik/annotation/Throws; 79 | value = { 80 | Landroid/os/RemoteException; 81 | } 82 | .end annotation 83 | .end method 84 | 85 | .method public abstract canShowBadge(Ljava/lang/String;I)Z 86 | .annotation system Ldalvik/annotation/Throws; 87 | value = { 88 | Landroid/os/RemoteException; 89 | } 90 | .end annotation 91 | .end method 92 | 93 | .method public abstract cancelAllNotifications(Ljava/lang/String;I)V 94 | .annotation system Ldalvik/annotation/Throws; 95 | value = { 96 | Landroid/os/RemoteException; 97 | } 98 | .end annotation 99 | .end method 100 | 101 | .method public abstract cancelNotificationFromListener(Landroid/service/notification/INotificationListener;Ljava/lang/String;Ljava/lang/String;I)V 102 | .annotation system Ldalvik/annotation/Throws; 103 | value = { 104 | Landroid/os/RemoteException; 105 | } 106 | .end annotation 107 | .end method 108 | 109 | .method public abstract cancelNotificationWithTag(Ljava/lang/String;Ljava/lang/String;II)V 110 | .annotation system Ldalvik/annotation/Throws; 111 | value = { 112 | Landroid/os/RemoteException; 113 | } 114 | .end annotation 115 | .end method 116 | 117 | .method public abstract cancelNotificationsFromListener(Landroid/service/notification/INotificationListener;[Ljava/lang/String;)V 118 | .annotation system Ldalvik/annotation/Throws; 119 | value = { 120 | Landroid/os/RemoteException; 121 | } 122 | .end annotation 123 | .end method 124 | 125 | .method public abstract cancelToast(Ljava/lang/String;Landroid/app/ITransientNotification;)V 126 | .annotation system Ldalvik/annotation/Throws; 127 | value = { 128 | Landroid/os/RemoteException; 129 | } 130 | .end annotation 131 | .end method 132 | 133 | .method public abstract clearData(Ljava/lang/String;IZ)V 134 | .annotation system Ldalvik/annotation/Throws; 135 | value = { 136 | Landroid/os/RemoteException; 137 | } 138 | .end annotation 139 | .end method 140 | 141 | .method public abstract createNotificationChannelGroups(Ljava/lang/String;Landroid/content/pm/ParceledListSlice;)V 142 | .annotation system Ldalvik/annotation/Throws; 143 | value = { 144 | Landroid/os/RemoteException; 145 | } 146 | .end annotation 147 | .end method 148 | 149 | .method public abstract createNotificationChannels(Ljava/lang/String;Landroid/content/pm/ParceledListSlice;)V 150 | .annotation system Ldalvik/annotation/Throws; 151 | value = { 152 | Landroid/os/RemoteException; 153 | } 154 | .end annotation 155 | .end method 156 | 157 | .method public abstract createNotificationChannelsForPackage(Ljava/lang/String;ILandroid/content/pm/ParceledListSlice;)V 158 | .annotation system Ldalvik/annotation/Throws; 159 | value = { 160 | Landroid/os/RemoteException; 161 | } 162 | .end annotation 163 | .end method 164 | 165 | .method public abstract deleteNotificationChannel(Ljava/lang/String;Ljava/lang/String;)V 166 | .annotation system Ldalvik/annotation/Throws; 167 | value = { 168 | Landroid/os/RemoteException; 169 | } 170 | .end annotation 171 | .end method 172 | 173 | .method public abstract deleteNotificationChannelGroup(Ljava/lang/String;Ljava/lang/String;)V 174 | .annotation system Ldalvik/annotation/Throws; 175 | value = { 176 | Landroid/os/RemoteException; 177 | } 178 | .end annotation 179 | .end method 180 | 181 | .method public abstract enqueueNotificationWithTag(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ILandroid/app/Notification;I)V 182 | .annotation system Ldalvik/annotation/Throws; 183 | value = { 184 | Landroid/os/RemoteException; 185 | } 186 | .end annotation 187 | .end method 188 | 189 | .method public abstract enqueueToast(Ljava/lang/String;Landroid/app/ITransientNotification;I)V 190 | .annotation system Ldalvik/annotation/Throws; 191 | value = { 192 | Landroid/os/RemoteException; 193 | } 194 | .end annotation 195 | .end method 196 | 197 | .method public abstract getActiveNotifications(Ljava/lang/String;)[Landroid/service/notification/StatusBarNotification; 198 | .annotation system Ldalvik/annotation/Throws; 199 | value = { 200 | Landroid/os/RemoteException; 201 | } 202 | .end annotation 203 | .end method 204 | 205 | .method public abstract getActiveNotificationsFromListener(Landroid/service/notification/INotificationListener;[Ljava/lang/String;I)Landroid/content/pm/ParceledListSlice; 206 | .annotation system Ldalvik/annotation/Throws; 207 | value = { 208 | Landroid/os/RemoteException; 209 | } 210 | .end annotation 211 | .end method 212 | 213 | .method public abstract getAppActiveNotifications(Ljava/lang/String;I)Landroid/content/pm/ParceledListSlice; 214 | .annotation system Ldalvik/annotation/Throws; 215 | value = { 216 | Landroid/os/RemoteException; 217 | } 218 | .end annotation 219 | .end method 220 | 221 | .method public abstract getAutomaticZenRule(Ljava/lang/String;)Landroid/app/AutomaticZenRule; 222 | .annotation system Ldalvik/annotation/Throws; 223 | value = { 224 | Landroid/os/RemoteException; 225 | } 226 | .end annotation 227 | .end method 228 | 229 | .method public abstract getBackupPayload(I)[B 230 | .annotation system Ldalvik/annotation/Throws; 231 | value = { 232 | Landroid/os/RemoteException; 233 | } 234 | .end annotation 235 | .end method 236 | 237 | .method public abstract getDeletedChannelCount(Ljava/lang/String;I)I 238 | .annotation system Ldalvik/annotation/Throws; 239 | value = { 240 | Landroid/os/RemoteException; 241 | } 242 | .end annotation 243 | .end method 244 | 245 | .method public abstract getEffectsSuppressor()Landroid/content/ComponentName; 246 | .annotation system Ldalvik/annotation/Throws; 247 | value = { 248 | Landroid/os/RemoteException; 249 | } 250 | .end annotation 251 | .end method 252 | 253 | .method public abstract getEnabledNotificationListenerPackages()Ljava/util/List; 254 | .annotation system Ldalvik/annotation/Signature; 255 | value = { 256 | "()", 257 | "Ljava/util/List", 258 | "<", 259 | "Ljava/lang/String;", 260 | ">;" 261 | } 262 | .end annotation 263 | 264 | .annotation system Ldalvik/annotation/Throws; 265 | value = { 266 | Landroid/os/RemoteException; 267 | } 268 | .end annotation 269 | .end method 270 | 271 | .method public abstract getEnabledNotificationListeners(I)Ljava/util/List; 272 | .annotation system Ldalvik/annotation/Signature; 273 | value = { 274 | "(I)", 275 | "Ljava/util/List", 276 | "<", 277 | "Landroid/content/ComponentName;", 278 | ">;" 279 | } 280 | .end annotation 281 | 282 | .annotation system Ldalvik/annotation/Throws; 283 | value = { 284 | Landroid/os/RemoteException; 285 | } 286 | .end annotation 287 | .end method 288 | 289 | .method public abstract getHintsFromListener(Landroid/service/notification/INotificationListener;)I 290 | .annotation system Ldalvik/annotation/Throws; 291 | value = { 292 | Landroid/os/RemoteException; 293 | } 294 | .end annotation 295 | .end method 296 | 297 | .method public abstract getHistoricalNotifications(Ljava/lang/String;I)[Landroid/service/notification/StatusBarNotification; 298 | .annotation system Ldalvik/annotation/Throws; 299 | value = { 300 | Landroid/os/RemoteException; 301 | } 302 | .end annotation 303 | .end method 304 | 305 | .method public abstract getInterruptionFilterFromListener(Landroid/service/notification/INotificationListener;)I 306 | .annotation system Ldalvik/annotation/Throws; 307 | value = { 308 | Landroid/os/RemoteException; 309 | } 310 | .end annotation 311 | .end method 312 | 313 | .method public abstract getNotificationChannel(Ljava/lang/String;Ljava/lang/String;)Landroid/app/NotificationChannel; 314 | .annotation system Ldalvik/annotation/Throws; 315 | value = { 316 | Landroid/os/RemoteException; 317 | } 318 | .end annotation 319 | .end method 320 | 321 | .method public abstract getNotificationChannelForPackage(Ljava/lang/String;ILjava/lang/String;Z)Landroid/app/NotificationChannel; 322 | .annotation system Ldalvik/annotation/Throws; 323 | value = { 324 | Landroid/os/RemoteException; 325 | } 326 | .end annotation 327 | .end method 328 | 329 | .method public abstract getNotificationChannelGroupForPackage(Ljava/lang/String;Ljava/lang/String;I)Landroid/app/NotificationChannelGroup; 330 | .annotation system Ldalvik/annotation/Throws; 331 | value = { 332 | Landroid/os/RemoteException; 333 | } 334 | .end annotation 335 | .end method 336 | 337 | .method public abstract getNotificationChannelGroups(Ljava/lang/String;)Landroid/content/pm/ParceledListSlice; 338 | .annotation system Ldalvik/annotation/Throws; 339 | value = { 340 | Landroid/os/RemoteException; 341 | } 342 | .end annotation 343 | .end method 344 | 345 | .method public abstract getNotificationChannelGroupsForPackage(Ljava/lang/String;IZ)Landroid/content/pm/ParceledListSlice; 346 | .annotation system Ldalvik/annotation/Throws; 347 | value = { 348 | Landroid/os/RemoteException; 349 | } 350 | .end annotation 351 | .end method 352 | 353 | .method public abstract getNotificationChannelGroupsFromPrivilegedListener(Landroid/service/notification/INotificationListener;Ljava/lang/String;Landroid/os/UserHandle;)Landroid/content/pm/ParceledListSlice; 354 | .annotation system Ldalvik/annotation/Throws; 355 | value = { 356 | Landroid/os/RemoteException; 357 | } 358 | .end annotation 359 | .end method 360 | 361 | .method public abstract getNotificationChannels(Ljava/lang/String;)Landroid/content/pm/ParceledListSlice; 362 | .annotation system Ldalvik/annotation/Throws; 363 | value = { 364 | Landroid/os/RemoteException; 365 | } 366 | .end annotation 367 | .end method 368 | 369 | .method public abstract getNotificationChannelsForPackage(Ljava/lang/String;IZ)Landroid/content/pm/ParceledListSlice; 370 | .annotation system Ldalvik/annotation/Throws; 371 | value = { 372 | Landroid/os/RemoteException; 373 | } 374 | .end annotation 375 | .end method 376 | 377 | .method public abstract getNotificationChannelsFromPrivilegedListener(Landroid/service/notification/INotificationListener;Ljava/lang/String;Landroid/os/UserHandle;)Landroid/content/pm/ParceledListSlice; 378 | .annotation system Ldalvik/annotation/Throws; 379 | value = { 380 | Landroid/os/RemoteException; 381 | } 382 | .end annotation 383 | .end method 384 | 385 | .method public abstract getNotificationPolicy(Ljava/lang/String;)Landroid/app/NotificationManager$Policy; 386 | .annotation system Ldalvik/annotation/Throws; 387 | value = { 388 | Landroid/os/RemoteException; 389 | } 390 | .end annotation 391 | .end method 392 | 393 | .method public abstract getNumNotificationChannelsForPackage(Ljava/lang/String;IZ)I 394 | .annotation system Ldalvik/annotation/Throws; 395 | value = { 396 | Landroid/os/RemoteException; 397 | } 398 | .end annotation 399 | .end method 400 | 401 | .method public abstract getPackageImportance(Ljava/lang/String;)I 402 | .annotation system Ldalvik/annotation/Throws; 403 | value = { 404 | Landroid/os/RemoteException; 405 | } 406 | .end annotation 407 | .end method 408 | 409 | .method public abstract getPriority(Ljava/lang/String;I)I 410 | .annotation system Ldalvik/annotation/Throws; 411 | value = { 412 | Landroid/os/RemoteException; 413 | } 414 | .end annotation 415 | .end method 416 | 417 | .method public abstract getRuleInstanceCount(Landroid/content/ComponentName;)I 418 | .annotation system Ldalvik/annotation/Throws; 419 | value = { 420 | Landroid/os/RemoteException; 421 | } 422 | .end annotation 423 | .end method 424 | 425 | .method public abstract getSnoozedNotificationsFromListener(Landroid/service/notification/INotificationListener;I)Landroid/content/pm/ParceledListSlice; 426 | .annotation system Ldalvik/annotation/Throws; 427 | value = { 428 | Landroid/os/RemoteException; 429 | } 430 | .end annotation 431 | .end method 432 | 433 | .method public abstract getZenMode()I 434 | .annotation system Ldalvik/annotation/Throws; 435 | value = { 436 | Landroid/os/RemoteException; 437 | } 438 | .end annotation 439 | .end method 440 | 441 | .method public abstract getZenModeConfig()Landroid/service/notification/ZenModeConfig; 442 | .annotation system Ldalvik/annotation/Throws; 443 | value = { 444 | Landroid/os/RemoteException; 445 | } 446 | .end annotation 447 | .end method 448 | 449 | .method public abstract getZenRules()Ljava/util/List; 450 | .annotation system Ldalvik/annotation/Signature; 451 | value = { 452 | "()", 453 | "Ljava/util/List", 454 | "<", 455 | "Landroid/service/notification/ZenModeConfig$ZenRule;", 456 | ">;" 457 | } 458 | .end annotation 459 | 460 | .annotation system Ldalvik/annotation/Throws; 461 | value = { 462 | Landroid/os/RemoteException; 463 | } 464 | .end annotation 465 | .end method 466 | 467 | .method public abstract isNotificationAssistantAccessGranted(Landroid/content/ComponentName;)Z 468 | .annotation system Ldalvik/annotation/Throws; 469 | value = { 470 | Landroid/os/RemoteException; 471 | } 472 | .end annotation 473 | .end method 474 | 475 | .method public abstract isNotificationListenerAccessGranted(Landroid/content/ComponentName;)Z 476 | .annotation system Ldalvik/annotation/Throws; 477 | value = { 478 | Landroid/os/RemoteException; 479 | } 480 | .end annotation 481 | .end method 482 | 483 | .method public abstract isNotificationListenerAccessGrantedForUser(Landroid/content/ComponentName;I)Z 484 | .annotation system Ldalvik/annotation/Throws; 485 | value = { 486 | Landroid/os/RemoteException; 487 | } 488 | .end annotation 489 | .end method 490 | 491 | .method public abstract isNotificationPolicyAccessGranted(Ljava/lang/String;)Z 492 | .annotation system Ldalvik/annotation/Throws; 493 | value = { 494 | Landroid/os/RemoteException; 495 | } 496 | .end annotation 497 | .end method 498 | 499 | .method public abstract isNotificationPolicyAccessGrantedForPackage(Ljava/lang/String;)Z 500 | .annotation system Ldalvik/annotation/Throws; 501 | value = { 502 | Landroid/os/RemoteException; 503 | } 504 | .end annotation 505 | .end method 506 | 507 | .method public abstract isSystemConditionProviderEnabled(Ljava/lang/String;)Z 508 | .annotation system Ldalvik/annotation/Throws; 509 | value = { 510 | Landroid/os/RemoteException; 511 | } 512 | .end annotation 513 | .end method 514 | 515 | .method public abstract matchesCallFilter(Landroid/os/Bundle;)Z 516 | .annotation system Ldalvik/annotation/Throws; 517 | value = { 518 | Landroid/os/RemoteException; 519 | } 520 | .end annotation 521 | .end method 522 | 523 | .method public abstract notifyConditions(Ljava/lang/String;Landroid/service/notification/IConditionProvider;[Landroid/service/notification/Condition;)V 524 | .annotation system Ldalvik/annotation/Throws; 525 | value = { 526 | Landroid/os/RemoteException; 527 | } 528 | .end annotation 529 | .end method 530 | 531 | .method public abstract onlyHasDefaultChannel(Ljava/lang/String;I)Z 532 | .annotation system Ldalvik/annotation/Throws; 533 | value = { 534 | Landroid/os/RemoteException; 535 | } 536 | .end annotation 537 | .end method 538 | 539 | .method public abstract registerListener(Landroid/service/notification/INotificationListener;Landroid/content/ComponentName;I)V 540 | .annotation system Ldalvik/annotation/Throws; 541 | value = { 542 | Landroid/os/RemoteException; 543 | } 544 | .end annotation 545 | .end method 546 | 547 | .method public abstract removeAutomaticZenRule(Ljava/lang/String;)Z 548 | .annotation system Ldalvik/annotation/Throws; 549 | value = { 550 | Landroid/os/RemoteException; 551 | } 552 | .end annotation 553 | .end method 554 | 555 | .method public abstract removeAutomaticZenRules(Ljava/lang/String;)Z 556 | .annotation system Ldalvik/annotation/Throws; 557 | value = { 558 | Landroid/os/RemoteException; 559 | } 560 | .end annotation 561 | .end method 562 | 563 | .method public abstract requestBindListener(Landroid/content/ComponentName;)V 564 | .annotation system Ldalvik/annotation/Throws; 565 | value = { 566 | Landroid/os/RemoteException; 567 | } 568 | .end annotation 569 | .end method 570 | 571 | .method public abstract requestBindProvider(Landroid/content/ComponentName;)V 572 | .annotation system Ldalvik/annotation/Throws; 573 | value = { 574 | Landroid/os/RemoteException; 575 | } 576 | .end annotation 577 | .end method 578 | 579 | .method public abstract requestHintsFromListener(Landroid/service/notification/INotificationListener;I)V 580 | .annotation system Ldalvik/annotation/Throws; 581 | value = { 582 | Landroid/os/RemoteException; 583 | } 584 | .end annotation 585 | .end method 586 | 587 | .method public abstract requestInterruptionFilterFromListener(Landroid/service/notification/INotificationListener;I)V 588 | .annotation system Ldalvik/annotation/Throws; 589 | value = { 590 | Landroid/os/RemoteException; 591 | } 592 | .end annotation 593 | .end method 594 | 595 | .method public abstract requestUnbindListener(Landroid/service/notification/INotificationListener;)V 596 | .annotation system Ldalvik/annotation/Throws; 597 | value = { 598 | Landroid/os/RemoteException; 599 | } 600 | .end annotation 601 | .end method 602 | 603 | .method public abstract requestUnbindProvider(Landroid/service/notification/IConditionProvider;)V 604 | .annotation system Ldalvik/annotation/Throws; 605 | value = { 606 | Landroid/os/RemoteException; 607 | } 608 | .end annotation 609 | .end method 610 | 611 | .method public abstract setInterruptionFilter(Ljava/lang/String;I)V 612 | .annotation system Ldalvik/annotation/Throws; 613 | value = { 614 | Landroid/os/RemoteException; 615 | } 616 | .end annotation 617 | .end method 618 | 619 | .method public abstract setMediaPlaying(Z)V 620 | .annotation system Ldalvik/annotation/Throws; 621 | value = { 622 | Landroid/os/RemoteException; 623 | } 624 | .end annotation 625 | .end method 626 | 627 | .method public abstract setNotificationAssistantAccessGranted(Landroid/content/ComponentName;Z)V 628 | .annotation system Ldalvik/annotation/Throws; 629 | value = { 630 | Landroid/os/RemoteException; 631 | } 632 | .end annotation 633 | .end method 634 | 635 | .method public abstract setNotificationAssistantAccessGrantedForUser(Landroid/content/ComponentName;IZ)V 636 | .annotation system Ldalvik/annotation/Throws; 637 | value = { 638 | Landroid/os/RemoteException; 639 | } 640 | .end annotation 641 | .end method 642 | 643 | .method public abstract setNotificationListenerAccessGranted(Landroid/content/ComponentName;Z)V 644 | .annotation system Ldalvik/annotation/Throws; 645 | value = { 646 | Landroid/os/RemoteException; 647 | } 648 | .end annotation 649 | .end method 650 | 651 | .method public abstract setNotificationListenerAccessGrantedForUser(Landroid/content/ComponentName;IZ)V 652 | .annotation system Ldalvik/annotation/Throws; 653 | value = { 654 | Landroid/os/RemoteException; 655 | } 656 | .end annotation 657 | .end method 658 | 659 | .method public abstract setNotificationPolicy(Ljava/lang/String;Landroid/app/NotificationManager$Policy;)V 660 | .annotation system Ldalvik/annotation/Throws; 661 | value = { 662 | Landroid/os/RemoteException; 663 | } 664 | .end annotation 665 | .end method 666 | 667 | .method public abstract setNotificationPolicyAccessGranted(Ljava/lang/String;Z)V 668 | .annotation system Ldalvik/annotation/Throws; 669 | value = { 670 | Landroid/os/RemoteException; 671 | } 672 | .end annotation 673 | .end method 674 | 675 | .method public abstract setNotificationPolicyAccessGrantedForUser(Ljava/lang/String;IZ)V 676 | .annotation system Ldalvik/annotation/Throws; 677 | value = { 678 | Landroid/os/RemoteException; 679 | } 680 | .end annotation 681 | .end method 682 | 683 | .method public abstract setNotificationsEnabledForPackage(Ljava/lang/String;IZ)V 684 | .annotation system Ldalvik/annotation/Throws; 685 | value = { 686 | Landroid/os/RemoteException; 687 | } 688 | .end annotation 689 | .end method 690 | 691 | .method public abstract setNotificationsShownFromListener(Landroid/service/notification/INotificationListener;[Ljava/lang/String;)V 692 | .annotation system Ldalvik/annotation/Throws; 693 | value = { 694 | Landroid/os/RemoteException; 695 | } 696 | .end annotation 697 | .end method 698 | 699 | .method public abstract setOnNotificationPostedTrimFromListener(Landroid/service/notification/INotificationListener;I)V 700 | .annotation system Ldalvik/annotation/Throws; 701 | value = { 702 | Landroid/os/RemoteException; 703 | } 704 | .end annotation 705 | .end method 706 | 707 | .method public abstract setShowBadge(Ljava/lang/String;IZ)V 708 | .annotation system Ldalvik/annotation/Throws; 709 | value = { 710 | Landroid/os/RemoteException; 711 | } 712 | .end annotation 713 | .end method 714 | 715 | .method public abstract setZenMode(ILandroid/net/Uri;Ljava/lang/String;)V 716 | .annotation system Ldalvik/annotation/Throws; 717 | value = { 718 | Landroid/os/RemoteException; 719 | } 720 | .end annotation 721 | .end method 722 | 723 | .method public abstract snoozeNotificationUntilContextFromListener(Landroid/service/notification/INotificationListener;Ljava/lang/String;Ljava/lang/String;)V 724 | .annotation system Ldalvik/annotation/Throws; 725 | value = { 726 | Landroid/os/RemoteException; 727 | } 728 | .end annotation 729 | .end method 730 | 731 | .method public abstract snoozeNotificationUntilFromListener(Landroid/service/notification/INotificationListener;Ljava/lang/String;J)V 732 | .annotation system Ldalvik/annotation/Throws; 733 | value = { 734 | Landroid/os/RemoteException; 735 | } 736 | .end annotation 737 | .end method 738 | 739 | .method public abstract unregisterListener(Landroid/service/notification/INotificationListener;I)V 740 | .annotation system Ldalvik/annotation/Throws; 741 | value = { 742 | Landroid/os/RemoteException; 743 | } 744 | .end annotation 745 | .end method 746 | 747 | .method public abstract unsnoozeNotificationFromAssistant(Landroid/service/notification/INotificationListener;Ljava/lang/String;)V 748 | .annotation system Ldalvik/annotation/Throws; 749 | value = { 750 | Landroid/os/RemoteException; 751 | } 752 | .end annotation 753 | .end method 754 | 755 | .method public abstract updateAutomaticZenRule(Ljava/lang/String;Landroid/app/AutomaticZenRule;)Z 756 | .annotation system Ldalvik/annotation/Throws; 757 | value = { 758 | Landroid/os/RemoteException; 759 | } 760 | .end annotation 761 | .end method 762 | 763 | .method public abstract updateNotificationChannelForPackage(Ljava/lang/String;ILandroid/app/NotificationChannel;)V 764 | .annotation system Ldalvik/annotation/Throws; 765 | value = { 766 | Landroid/os/RemoteException; 767 | } 768 | .end annotation 769 | .end method 770 | 771 | .method public abstract updateNotificationChannelFromPrivilegedListener(Landroid/service/notification/INotificationListener;Ljava/lang/String;Landroid/os/UserHandle;Landroid/app/NotificationChannel;)V 772 | .annotation system Ldalvik/annotation/Throws; 773 | value = { 774 | Landroid/os/RemoteException; 775 | } 776 | .end annotation 777 | .end method 778 | -------------------------------------------------------------------------------- /services.jar.out/smali/com/android/server/notification/NotificationManagerService$NotificationListeners.smali: -------------------------------------------------------------------------------- 1 | .class public Lcom/android/server/notification/NotificationManagerService$NotificationListeners; 2 | .super Lcom/android/server/notification/ManagedServices; 3 | .source "NotificationManagerService.java" 4 | 5 | 6 | # annotations 7 | .annotation system Ldalvik/annotation/EnclosingClass; 8 | value = Lcom/android/server/notification/NotificationManagerService; 9 | .end annotation 10 | 11 | .annotation system Ldalvik/annotation/InnerClass; 12 | accessFlags = 0x1 13 | name = "NotificationListeners" 14 | .end annotation 15 | 16 | 17 | # static fields 18 | .field static final TAG_ENABLED_NOTIFICATION_LISTENERS:Ljava/lang/String; = "enabled_listeners" 19 | 20 | 21 | # instance fields 22 | .field private final mLightTrimListeners:Landroid/util/ArraySet; 23 | .annotation system Ldalvik/annotation/Signature; 24 | value = { 25 | "Landroid/util/ArraySet", 26 | "<", 27 | "Lcom/android/server/notification/ManagedServices$ManagedServiceInfo;", 28 | ">;" 29 | } 30 | .end annotation 31 | .end field 32 | 33 | .field final synthetic this$0:Lcom/android/server/notification/NotificationManagerService; 34 | 35 | 36 | # direct methods 37 | .method static synthetic -wrap0(Lcom/android/server/notification/NotificationManagerService$NotificationListeners;Lcom/android/server/notification/ManagedServices$ManagedServiceInfo;I)V 38 | .locals 0 39 | .param p0, "-this" # Lcom/android/server/notification/NotificationManagerService$NotificationListeners; 40 | .param p1, "info" # Lcom/android/server/notification/ManagedServices$ManagedServiceInfo; 41 | .param p2, "interruptionFilter" # I 42 | 43 | .prologue 44 | invoke-direct {p0, p1, p2}, Lcom/android/server/notification/NotificationManagerService$NotificationListeners;->notifyInterruptionFilterChanged(Lcom/android/server/notification/ManagedServices$ManagedServiceInfo;I)V 45 | 46 | return-void 47 | .end method 48 | 49 | .method static synthetic -wrap1(Lcom/android/server/notification/NotificationManagerService$NotificationListeners;Lcom/android/server/notification/ManagedServices$ManagedServiceInfo;I)V 50 | .locals 0 51 | .param p0, "-this" # Lcom/android/server/notification/NotificationManagerService$NotificationListeners; 52 | .param p1, "info" # Lcom/android/server/notification/ManagedServices$ManagedServiceInfo; 53 | .param p2, "hints" # I 54 | 55 | .prologue 56 | invoke-direct {p0, p1, p2}, Lcom/android/server/notification/NotificationManagerService$NotificationListeners;->notifyListenerHintsChanged(Lcom/android/server/notification/ManagedServices$ManagedServiceInfo;I)V 57 | 58 | return-void 59 | .end method 60 | 61 | .method static synthetic -wrap2(Lcom/android/server/notification/NotificationManagerService$NotificationListeners;Lcom/android/server/notification/ManagedServices$ManagedServiceInfo;Landroid/service/notification/StatusBarNotification;Landroid/service/notification/NotificationRankingUpdate;)V 62 | .locals 0 63 | .param p0, "-this" # Lcom/android/server/notification/NotificationManagerService$NotificationListeners; 64 | .param p1, "info" # Lcom/android/server/notification/ManagedServices$ManagedServiceInfo; 65 | .param p2, "sbn" # Landroid/service/notification/StatusBarNotification; 66 | .param p3, "rankingUpdate" # Landroid/service/notification/NotificationRankingUpdate; 67 | 68 | .prologue 69 | invoke-direct {p0, p1, p2, p3}, Lcom/android/server/notification/NotificationManagerService$NotificationListeners;->notifyPosted(Lcom/android/server/notification/ManagedServices$ManagedServiceInfo;Landroid/service/notification/StatusBarNotification;Landroid/service/notification/NotificationRankingUpdate;)V 70 | 71 | return-void 72 | .end method 73 | 74 | .method static synthetic -wrap3(Lcom/android/server/notification/NotificationManagerService$NotificationListeners;Lcom/android/server/notification/ManagedServices$ManagedServiceInfo;Landroid/service/notification/NotificationRankingUpdate;)V 75 | .locals 0 76 | .param p0, "-this" # Lcom/android/server/notification/NotificationManagerService$NotificationListeners; 77 | .param p1, "info" # Lcom/android/server/notification/ManagedServices$ManagedServiceInfo; 78 | .param p2, "rankingUpdate" # Landroid/service/notification/NotificationRankingUpdate; 79 | 80 | .prologue 81 | invoke-direct {p0, p1, p2}, Lcom/android/server/notification/NotificationManagerService$NotificationListeners;->notifyRankingUpdate(Lcom/android/server/notification/ManagedServices$ManagedServiceInfo;Landroid/service/notification/NotificationRankingUpdate;)V 82 | 83 | return-void 84 | .end method 85 | 86 | .method static synthetic -wrap4(Lcom/android/server/notification/NotificationManagerService$NotificationListeners;Lcom/android/server/notification/ManagedServices$ManagedServiceInfo;Landroid/service/notification/StatusBarNotification;Landroid/service/notification/NotificationRankingUpdate;I)V 87 | .locals 0 88 | .param p0, "-this" # Lcom/android/server/notification/NotificationManagerService$NotificationListeners; 89 | .param p1, "info" # Lcom/android/server/notification/ManagedServices$ManagedServiceInfo; 90 | .param p2, "sbn" # Landroid/service/notification/StatusBarNotification; 91 | .param p3, "rankingUpdate" # Landroid/service/notification/NotificationRankingUpdate; 92 | .param p4, "reason" # I 93 | 94 | .prologue 95 | invoke-direct {p0, p1, p2, p3, p4}, Lcom/android/server/notification/NotificationManagerService$NotificationListeners;->notifyRemoved(Lcom/android/server/notification/ManagedServices$ManagedServiceInfo;Landroid/service/notification/StatusBarNotification;Landroid/service/notification/NotificationRankingUpdate;I)V 96 | 97 | return-void 98 | .end method 99 | 100 | .method public constructor (Lcom/android/server/notification/NotificationManagerService;Landroid/content/pm/IPackageManager;)V 101 | .locals 3 102 | .param p1, "this$0" # Lcom/android/server/notification/NotificationManagerService; 103 | .param p2, "pm" # Landroid/content/pm/IPackageManager; 104 | 105 | .prologue 106 | iput-object p1, p0, Lcom/android/server/notification/NotificationManagerService$NotificationListeners;->this$0:Lcom/android/server/notification/NotificationManagerService; 107 | 108 | invoke-virtual {p1}, Lcom/android/server/notification/NotificationManagerService;->getContext()Landroid/content/Context; 109 | 110 | move-result-object v0 111 | 112 | iget-object v1, p1, Lcom/android/server/notification/NotificationManagerService;->mNotificationLock:Ljava/lang/Object; 113 | 114 | invoke-static {p1}, Lcom/android/server/notification/NotificationManagerService;->-get31(Lcom/android/server/notification/NotificationManagerService;)Lcom/android/server/notification/ManagedServices$UserProfiles; 115 | 116 | move-result-object v2 117 | 118 | invoke-direct {p0, v0, v1, v2, p2}, Lcom/android/server/notification/ManagedServices;->(Landroid/content/Context;Ljava/lang/Object;Lcom/android/server/notification/ManagedServices$UserProfiles;Landroid/content/pm/IPackageManager;)V 119 | 120 | new-instance v0, Landroid/util/ArraySet; 121 | 122 | invoke-direct {v0}, Landroid/util/ArraySet;->()V 123 | 124 | iput-object v0, p0, Lcom/android/server/notification/NotificationManagerService$NotificationListeners;->mLightTrimListeners:Landroid/util/ArraySet; 125 | 126 | return-void 127 | .end method 128 | 129 | .method private notifyInterruptionFilterChanged(Lcom/android/server/notification/ManagedServices$ManagedServiceInfo;I)V 130 | .locals 5 131 | .param p1, "info" # Lcom/android/server/notification/ManagedServices$ManagedServiceInfo; 132 | .param p2, "interruptionFilter" # I 133 | 134 | .prologue 135 | iget-object v1, p1, Lcom/android/server/notification/ManagedServices$ManagedServiceInfo;->service:Landroid/os/IInterface; 136 | 137 | check-cast v1, Landroid/service/notification/INotificationListener; 138 | 139 | .local v1, "listener":Landroid/service/notification/INotificationListener; 140 | :try_start_0 141 | invoke-interface {v1, p2}, Landroid/service/notification/INotificationListener;->onInterruptionFilterChanged(I)V 142 | :try_end_0 143 | .catch Landroid/os/RemoteException; {:try_start_0 .. :try_end_0} :catch_0 144 | 145 | :goto_0 146 | return-void 147 | 148 | :catch_0 149 | move-exception v0 150 | 151 | .local v0, "ex":Landroid/os/RemoteException; 152 | iget-object v2, p0, Lcom/android/server/notification/NotificationManagerService$NotificationListeners;->TAG:Ljava/lang/String; 153 | 154 | new-instance v3, Ljava/lang/StringBuilder; 155 | 156 | invoke-direct {v3}, Ljava/lang/StringBuilder;->()V 157 | 158 | const-string/jumbo v4, "unable to notify listener (interruption filter): " 159 | 160 | invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; 161 | 162 | move-result-object v3 163 | 164 | invoke-virtual {v3, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder; 165 | 166 | move-result-object v3 167 | 168 | invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; 169 | 170 | move-result-object v3 171 | 172 | invoke-static {v2, v3, v0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I 173 | 174 | goto :goto_0 175 | .end method 176 | 177 | .method private notifyListenerHintsChanged(Lcom/android/server/notification/ManagedServices$ManagedServiceInfo;I)V 178 | .locals 5 179 | .param p1, "info" # Lcom/android/server/notification/ManagedServices$ManagedServiceInfo; 180 | .param p2, "hints" # I 181 | 182 | .prologue 183 | iget-object v1, p1, Lcom/android/server/notification/ManagedServices$ManagedServiceInfo;->service:Landroid/os/IInterface; 184 | 185 | check-cast v1, Landroid/service/notification/INotificationListener; 186 | 187 | .local v1, "listener":Landroid/service/notification/INotificationListener; 188 | :try_start_0 189 | invoke-interface {v1, p2}, Landroid/service/notification/INotificationListener;->onListenerHintsChanged(I)V 190 | :try_end_0 191 | .catch Landroid/os/RemoteException; {:try_start_0 .. :try_end_0} :catch_0 192 | 193 | :goto_0 194 | return-void 195 | 196 | :catch_0 197 | move-exception v0 198 | 199 | .local v0, "ex":Landroid/os/RemoteException; 200 | iget-object v2, p0, Lcom/android/server/notification/NotificationManagerService$NotificationListeners;->TAG:Ljava/lang/String; 201 | 202 | new-instance v3, Ljava/lang/StringBuilder; 203 | 204 | invoke-direct {v3}, Ljava/lang/StringBuilder;->()V 205 | 206 | const-string/jumbo v4, "unable to notify listener (listener hints): " 207 | 208 | invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; 209 | 210 | move-result-object v3 211 | 212 | invoke-virtual {v3, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder; 213 | 214 | move-result-object v3 215 | 216 | invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; 217 | 218 | move-result-object v3 219 | 220 | invoke-static {v2, v3, v0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I 221 | 222 | goto :goto_0 223 | .end method 224 | 225 | .method private notifyNotificationChannelGroupChanged(Lcom/android/server/notification/ManagedServices$ManagedServiceInfo;Ljava/lang/String;Landroid/os/UserHandle;Landroid/app/NotificationChannelGroup;I)V 226 | .locals 5 227 | .param p1, "info" # Lcom/android/server/notification/ManagedServices$ManagedServiceInfo; 228 | .param p2, "pkg" # Ljava/lang/String; 229 | .param p3, "user" # Landroid/os/UserHandle; 230 | .param p4, "group" # Landroid/app/NotificationChannelGroup; 231 | .param p5, "modificationType" # I 232 | 233 | .prologue 234 | iget-object v1, p1, Lcom/android/server/notification/ManagedServices$ManagedServiceInfo;->service:Landroid/os/IInterface; 235 | 236 | check-cast v1, Landroid/service/notification/INotificationListener; 237 | 238 | .local v1, "listener":Landroid/service/notification/INotificationListener; 239 | :try_start_0 240 | invoke-interface {v1, p2, p3, p4, p5}, Landroid/service/notification/INotificationListener;->onNotificationChannelGroupModification(Ljava/lang/String;Landroid/os/UserHandle;Landroid/app/NotificationChannelGroup;I)V 241 | :try_end_0 242 | .catch Landroid/os/RemoteException; {:try_start_0 .. :try_end_0} :catch_0 243 | 244 | :goto_0 245 | return-void 246 | 247 | :catch_0 248 | move-exception v0 249 | 250 | .local v0, "ex":Landroid/os/RemoteException; 251 | iget-object v2, p0, Lcom/android/server/notification/NotificationManagerService$NotificationListeners;->TAG:Ljava/lang/String; 252 | 253 | new-instance v3, Ljava/lang/StringBuilder; 254 | 255 | invoke-direct {v3}, Ljava/lang/StringBuilder;->()V 256 | 257 | const-string/jumbo v4, "unable to notify listener (channel group changed): " 258 | 259 | invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; 260 | 261 | move-result-object v3 262 | 263 | invoke-virtual {v3, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder; 264 | 265 | move-result-object v3 266 | 267 | invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; 268 | 269 | move-result-object v3 270 | 271 | invoke-static {v2, v3, v0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I 272 | 273 | goto :goto_0 274 | .end method 275 | 276 | .method private notifyPosted(Lcom/android/server/notification/ManagedServices$ManagedServiceInfo;Landroid/service/notification/StatusBarNotification;Landroid/service/notification/NotificationRankingUpdate;)V 277 | .locals 6 278 | .param p1, "info" # Lcom/android/server/notification/ManagedServices$ManagedServiceInfo; 279 | .param p2, "sbn" # Landroid/service/notification/StatusBarNotification; 280 | .param p3, "rankingUpdate" # Landroid/service/notification/NotificationRankingUpdate; 281 | 282 | .prologue 283 | iget-object v1, p1, Lcom/android/server/notification/ManagedServices$ManagedServiceInfo;->service:Landroid/os/IInterface; 284 | 285 | check-cast v1, Landroid/service/notification/INotificationListener; 286 | 287 | .local v1, "listener":Landroid/service/notification/INotificationListener; 288 | new-instance v2, Lcom/android/server/notification/NotificationManagerService$StatusBarNotificationHolder; 289 | 290 | invoke-direct {v2, p2}, Lcom/android/server/notification/NotificationManagerService$StatusBarNotificationHolder;->(Landroid/service/notification/StatusBarNotification;)V 291 | 292 | .local v2, "sbnHolder":Lcom/android/server/notification/NotificationManagerService$StatusBarNotificationHolder; 293 | :try_start_0 294 | invoke-interface {v1, v2, p3}, Landroid/service/notification/INotificationListener;->onNotificationPosted(Landroid/service/notification/IStatusBarNotificationHolder;Landroid/service/notification/NotificationRankingUpdate;)V 295 | :try_end_0 296 | .catch Landroid/os/RemoteException; {:try_start_0 .. :try_end_0} :catch_0 297 | 298 | :goto_0 299 | return-void 300 | 301 | :catch_0 302 | move-exception v0 303 | 304 | .local v0, "ex":Landroid/os/RemoteException; 305 | iget-object v3, p0, Lcom/android/server/notification/NotificationManagerService$NotificationListeners;->TAG:Ljava/lang/String; 306 | 307 | new-instance v4, Ljava/lang/StringBuilder; 308 | 309 | invoke-direct {v4}, Ljava/lang/StringBuilder;->()V 310 | 311 | const-string/jumbo v5, "unable to notify listener (posted): " 312 | 313 | invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; 314 | 315 | move-result-object v4 316 | 317 | invoke-virtual {v4, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder; 318 | 319 | move-result-object v4 320 | 321 | invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; 322 | 323 | move-result-object v4 324 | 325 | invoke-static {v3, v4, v0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I 326 | 327 | goto :goto_0 328 | .end method 329 | 330 | .method private notifyRankingUpdate(Lcom/android/server/notification/ManagedServices$ManagedServiceInfo;Landroid/service/notification/NotificationRankingUpdate;)V 331 | .locals 5 332 | .param p1, "info" # Lcom/android/server/notification/ManagedServices$ManagedServiceInfo; 333 | .param p2, "rankingUpdate" # Landroid/service/notification/NotificationRankingUpdate; 334 | 335 | .prologue 336 | iget-object v1, p1, Lcom/android/server/notification/ManagedServices$ManagedServiceInfo;->service:Landroid/os/IInterface; 337 | 338 | check-cast v1, Landroid/service/notification/INotificationListener; 339 | 340 | .local v1, "listener":Landroid/service/notification/INotificationListener; 341 | :try_start_0 342 | invoke-interface {v1, p2}, Landroid/service/notification/INotificationListener;->onNotificationRankingUpdate(Landroid/service/notification/NotificationRankingUpdate;)V 343 | :try_end_0 344 | .catch Landroid/os/RemoteException; {:try_start_0 .. :try_end_0} :catch_0 345 | 346 | :goto_0 347 | return-void 348 | 349 | :catch_0 350 | move-exception v0 351 | 352 | .local v0, "ex":Landroid/os/RemoteException; 353 | iget-object v2, p0, Lcom/android/server/notification/NotificationManagerService$NotificationListeners;->TAG:Ljava/lang/String; 354 | 355 | new-instance v3, Ljava/lang/StringBuilder; 356 | 357 | invoke-direct {v3}, Ljava/lang/StringBuilder;->()V 358 | 359 | const-string/jumbo v4, "unable to notify listener (ranking update): " 360 | 361 | invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; 362 | 363 | move-result-object v3 364 | 365 | invoke-virtual {v3, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder; 366 | 367 | move-result-object v3 368 | 369 | invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; 370 | 371 | move-result-object v3 372 | 373 | invoke-static {v2, v3, v0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I 374 | 375 | goto :goto_0 376 | .end method 377 | 378 | .method private notifyRemoved(Lcom/android/server/notification/ManagedServices$ManagedServiceInfo;Landroid/service/notification/StatusBarNotification;Landroid/service/notification/NotificationRankingUpdate;I)V 379 | .locals 6 380 | .param p1, "info" # Lcom/android/server/notification/ManagedServices$ManagedServiceInfo; 381 | .param p2, "sbn" # Landroid/service/notification/StatusBarNotification; 382 | .param p3, "rankingUpdate" # Landroid/service/notification/NotificationRankingUpdate; 383 | .param p4, "reason" # I 384 | 385 | .prologue 386 | invoke-virtual {p2}, Landroid/service/notification/StatusBarNotification;->getUserId()I 387 | 388 | move-result v3 389 | 390 | invoke-virtual {p1, v3}, Lcom/android/server/notification/ManagedServices$ManagedServiceInfo;->enabledAndUserMatches(I)Z 391 | 392 | move-result v3 393 | 394 | if-nez v3, :cond_0 395 | 396 | return-void 397 | 398 | :cond_0 399 | iget-object v1, p1, Lcom/android/server/notification/ManagedServices$ManagedServiceInfo;->service:Landroid/os/IInterface; 400 | 401 | check-cast v1, Landroid/service/notification/INotificationListener; 402 | 403 | .local v1, "listener":Landroid/service/notification/INotificationListener; 404 | new-instance v2, Lcom/android/server/notification/NotificationManagerService$StatusBarNotificationHolder; 405 | 406 | invoke-direct {v2, p2}, Lcom/android/server/notification/NotificationManagerService$StatusBarNotificationHolder;->(Landroid/service/notification/StatusBarNotification;)V 407 | 408 | .local v2, "sbnHolder":Lcom/android/server/notification/NotificationManagerService$StatusBarNotificationHolder; 409 | :try_start_0 410 | invoke-interface {v1, v2, p3, p4}, Landroid/service/notification/INotificationListener;->onNotificationRemoved(Landroid/service/notification/IStatusBarNotificationHolder;Landroid/service/notification/NotificationRankingUpdate;I)V 411 | :try_end_0 412 | .catch Landroid/os/RemoteException; {:try_start_0 .. :try_end_0} :catch_0 413 | 414 | :goto_0 415 | return-void 416 | 417 | :catch_0 418 | move-exception v0 419 | 420 | .local v0, "ex":Landroid/os/RemoteException; 421 | iget-object v3, p0, Lcom/android/server/notification/NotificationManagerService$NotificationListeners;->TAG:Ljava/lang/String; 422 | 423 | new-instance v4, Ljava/lang/StringBuilder; 424 | 425 | invoke-direct {v4}, Ljava/lang/StringBuilder;->()V 426 | 427 | const-string/jumbo v5, "unable to notify listener (removed): " 428 | 429 | invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; 430 | 431 | move-result-object v4 432 | 433 | invoke-virtual {v4, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder; 434 | 435 | move-result-object v4 436 | 437 | invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; 438 | 439 | move-result-object v4 440 | 441 | invoke-static {v3, v4, v0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I 442 | 443 | goto :goto_0 444 | .end method 445 | 446 | 447 | # virtual methods 448 | .method protected asInterface(Landroid/os/IBinder;)Landroid/os/IInterface; 449 | .locals 1 450 | .param p1, "binder" # Landroid/os/IBinder; 451 | 452 | .prologue 453 | invoke-static {p1}, Landroid/service/notification/INotificationListener$Stub;->asInterface(Landroid/os/IBinder;)Landroid/service/notification/INotificationListener; 454 | 455 | move-result-object v0 456 | 457 | return-object v0 458 | .end method 459 | 460 | .method protected checkType(Landroid/os/IInterface;)Z 461 | .locals 1 462 | .param p1, "service" # Landroid/os/IInterface; 463 | 464 | .prologue 465 | instance-of v0, p1, Landroid/service/notification/INotificationListener; 466 | 467 | return v0 468 | .end method 469 | 470 | .method protected getConfig()Lcom/android/server/notification/ManagedServices$Config; 471 | .locals 2 472 | 473 | .prologue 474 | new-instance v0, Lcom/android/server/notification/ManagedServices$Config; 475 | 476 | invoke-direct {v0}, Lcom/android/server/notification/ManagedServices$Config;->()V 477 | 478 | .local v0, "c":Lcom/android/server/notification/ManagedServices$Config; 479 | const-string/jumbo v1, "notification listener" 480 | 481 | iput-object v1, v0, Lcom/android/server/notification/ManagedServices$Config;->caption:Ljava/lang/String; 482 | 483 | const-string/jumbo v1, "android.service.notification.NotificationListenerService" 484 | 485 | iput-object v1, v0, Lcom/android/server/notification/ManagedServices$Config;->serviceInterface:Ljava/lang/String; 486 | 487 | const-string/jumbo v1, "enabled_listeners" 488 | 489 | iput-object v1, v0, Lcom/android/server/notification/ManagedServices$Config;->xmlTag:Ljava/lang/String; 490 | 491 | const-string/jumbo v1, "enabled_notification_listeners" 492 | 493 | iput-object v1, v0, Lcom/android/server/notification/ManagedServices$Config;->secureSettingName:Ljava/lang/String; 494 | 495 | const-string/jumbo v1, "android.permission.BIND_NOTIFICATION_LISTENER_SERVICE" 496 | 497 | iput-object v1, v0, Lcom/android/server/notification/ManagedServices$Config;->bindPermission:Ljava/lang/String; 498 | 499 | const-string/jumbo v1, "android.settings.ACTION_NOTIFICATION_LISTENER_SETTINGS" 500 | 501 | iput-object v1, v0, Lcom/android/server/notification/ManagedServices$Config;->settingsAction:Ljava/lang/String; 502 | 503 | const v1, 0x104041a 504 | 505 | iput v1, v0, Lcom/android/server/notification/ManagedServices$Config;->clientLabel:I 506 | 507 | return-object v0 508 | .end method 509 | 510 | .method public getOnNotificationPostedTrim(Lcom/android/server/notification/ManagedServices$ManagedServiceInfo;)I 511 | .locals 1 512 | .param p1, "info" # Lcom/android/server/notification/ManagedServices$ManagedServiceInfo; 513 | 514 | .prologue 515 | iget-object v0, p0, Lcom/android/server/notification/NotificationManagerService$NotificationListeners;->mLightTrimListeners:Landroid/util/ArraySet; 516 | 517 | invoke-virtual {v0, p1}, Landroid/util/ArraySet;->contains(Ljava/lang/Object;)Z 518 | 519 | move-result v0 520 | 521 | if-eqz v0, :cond_0 522 | 523 | const/4 v0, 0x1 524 | 525 | :goto_0 526 | return v0 527 | 528 | :cond_0 529 | const/4 v0, 0x0 530 | 531 | goto :goto_0 532 | .end method 533 | 534 | .method public isListenerPackage(Ljava/lang/String;)Z 535 | .locals 5 536 | .param p1, "packageName" # Ljava/lang/String; 537 | 538 | .prologue 539 | const/4 v4, 0x0 540 | 541 | if-nez p1, :cond_0 542 | 543 | return v4 544 | 545 | :cond_0 546 | iget-object v2, p0, Lcom/android/server/notification/NotificationManagerService$NotificationListeners;->this$0:Lcom/android/server/notification/NotificationManagerService; 547 | 548 | iget-object v3, v2, Lcom/android/server/notification/NotificationManagerService;->mNotificationLock:Ljava/lang/Object; 549 | 550 | monitor-enter v3 551 | 552 | :try_start_0 553 | invoke-virtual {p0}, Lcom/android/server/notification/NotificationManagerService$NotificationListeners;->getServices()Ljava/util/List; 554 | 555 | move-result-object v2 556 | 557 | invoke-interface {v2}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator; 558 | 559 | move-result-object v1 560 | 561 | .local v1, "serviceInfo$iterator":Ljava/util/Iterator; 562 | :cond_1 563 | invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z 564 | 565 | move-result v2 566 | 567 | if-eqz v2, :cond_2 568 | 569 | invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object; 570 | 571 | move-result-object v0 572 | 573 | check-cast v0, Lcom/android/server/notification/ManagedServices$ManagedServiceInfo; 574 | 575 | .local v0, "serviceInfo":Lcom/android/server/notification/ManagedServices$ManagedServiceInfo; 576 | iget-object v2, v0, Lcom/android/server/notification/ManagedServices$ManagedServiceInfo;->component:Landroid/content/ComponentName; 577 | 578 | invoke-virtual {v2}, Landroid/content/ComponentName;->getPackageName()Ljava/lang/String; 579 | 580 | move-result-object v2 581 | 582 | invoke-virtual {p1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z 583 | :try_end_0 584 | .catchall {:try_start_0 .. :try_end_0} :catchall_0 585 | 586 | move-result v2 587 | 588 | if-eqz v2, :cond_1 589 | 590 | const/4 v2, 0x1 591 | 592 | monitor-exit v3 593 | 594 | return v2 595 | 596 | .end local v0 # "serviceInfo":Lcom/android/server/notification/ManagedServices$ManagedServiceInfo; 597 | :cond_2 598 | monitor-exit v3 599 | 600 | return v4 601 | 602 | .end local v1 # "serviceInfo$iterator":Ljava/util/Iterator; 603 | :catchall_0 604 | move-exception v2 605 | 606 | monitor-exit v3 607 | 608 | throw v2 609 | .end method 610 | 611 | .method synthetic lambda$-com_android_server_notification_NotificationManagerService$NotificationListeners_252113(Lcom/android/server/notification/ManagedServices$ManagedServiceInfo;Ljava/lang/String;Landroid/os/UserHandle;Landroid/app/NotificationChannel;I)V 612 | .locals 1 613 | .param p1, "serviceInfo" # Lcom/android/server/notification/ManagedServices$ManagedServiceInfo; 614 | .param p2, "pkg" # Ljava/lang/String; 615 | .param p3, "user" # Landroid/os/UserHandle; 616 | .param p4, "channel" # Landroid/app/NotificationChannel; 617 | .param p5, "modificationType" # I 618 | 619 | .prologue 620 | iget-object v0, p0, Lcom/android/server/notification/NotificationManagerService$NotificationListeners;->this$0:Lcom/android/server/notification/NotificationManagerService; 621 | 622 | invoke-virtual {v0, p1}, Lcom/android/server/notification/NotificationManagerService;->hasCompanionDevice(Lcom/android/server/notification/ManagedServices$ManagedServiceInfo;)Z 623 | 624 | move-result v0 625 | 626 | if-eqz v0, :cond_0 627 | 628 | invoke-virtual/range {p0 .. p5}, Lcom/android/server/notification/NotificationManagerService$NotificationListeners;->notifyNotificationChannelChanged(Lcom/android/server/notification/ManagedServices$ManagedServiceInfo;Ljava/lang/String;Landroid/os/UserHandle;Landroid/app/NotificationChannel;I)V 629 | 630 | :cond_0 631 | return-void 632 | .end method 633 | 634 | .method synthetic lambda$-com_android_server_notification_NotificationManagerService$NotificationListeners_252925(Lcom/android/server/notification/ManagedServices$ManagedServiceInfo;Ljava/lang/String;Landroid/os/UserHandle;Landroid/app/NotificationChannelGroup;I)V 635 | .locals 1 636 | .param p1, "serviceInfo" # Lcom/android/server/notification/ManagedServices$ManagedServiceInfo; 637 | .param p2, "pkg" # Ljava/lang/String; 638 | .param p3, "user" # Landroid/os/UserHandle; 639 | .param p4, "group" # Landroid/app/NotificationChannelGroup; 640 | .param p5, "modificationType" # I 641 | 642 | .prologue 643 | iget-object v0, p0, Lcom/android/server/notification/NotificationManagerService$NotificationListeners;->this$0:Lcom/android/server/notification/NotificationManagerService; 644 | 645 | invoke-virtual {v0, p1}, Lcom/android/server/notification/NotificationManagerService;->hasCompanionDevice(Lcom/android/server/notification/ManagedServices$ManagedServiceInfo;)Z 646 | 647 | move-result v0 648 | 649 | if-eqz v0, :cond_0 650 | 651 | invoke-direct/range {p0 .. p5}, Lcom/android/server/notification/NotificationManagerService$NotificationListeners;->notifyNotificationChannelGroupChanged(Lcom/android/server/notification/ManagedServices$ManagedServiceInfo;Ljava/lang/String;Landroid/os/UserHandle;Landroid/app/NotificationChannelGroup;I)V 652 | 653 | :cond_0 654 | return-void 655 | .end method 656 | 657 | .method public notifyInterruptionFilterChanged(I)V 658 | .locals 4 659 | .param p1, "interruptionFilter" # I 660 | 661 | .prologue 662 | invoke-virtual {p0}, Lcom/android/server/notification/NotificationManagerService$NotificationListeners;->getServices()Ljava/util/List; 663 | 664 | move-result-object v2 665 | 666 | invoke-interface {v2}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator; 667 | 668 | move-result-object v1 669 | 670 | .local v1, "serviceInfo$iterator":Ljava/util/Iterator; 671 | :cond_0 672 | :goto_0 673 | invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z 674 | 675 | move-result v2 676 | 677 | if-eqz v2, :cond_1 678 | 679 | invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object; 680 | 681 | move-result-object v0 682 | 683 | check-cast v0, Lcom/android/server/notification/ManagedServices$ManagedServiceInfo; 684 | 685 | .local v0, "serviceInfo":Lcom/android/server/notification/ManagedServices$ManagedServiceInfo; 686 | invoke-virtual {v0}, Lcom/android/server/notification/ManagedServices$ManagedServiceInfo;->isEnabledForCurrentProfiles()Z 687 | 688 | move-result v2 689 | 690 | if-eqz v2, :cond_0 691 | 692 | iget-object v2, p0, Lcom/android/server/notification/NotificationManagerService$NotificationListeners;->this$0:Lcom/android/server/notification/NotificationManagerService; 693 | 694 | invoke-static {v2}, Lcom/android/server/notification/NotificationManagerService;->-get12(Lcom/android/server/notification/NotificationManagerService;)Lcom/android/server/notification/NotificationManagerService$WorkerHandler; 695 | 696 | move-result-object v2 697 | 698 | new-instance v3, Lcom/android/server/notification/NotificationManagerService$NotificationListeners$6; 699 | 700 | invoke-direct {v3, p0, v0, p1}, Lcom/android/server/notification/NotificationManagerService$NotificationListeners$6;->(Lcom/android/server/notification/NotificationManagerService$NotificationListeners;Lcom/android/server/notification/ManagedServices$ManagedServiceInfo;I)V 701 | 702 | invoke-virtual {v2, v3}, Lcom/android/server/notification/NotificationManagerService$WorkerHandler;->post(Ljava/lang/Runnable;)Z 703 | 704 | goto :goto_0 705 | 706 | .end local v0 # "serviceInfo":Lcom/android/server/notification/ManagedServices$ManagedServiceInfo; 707 | :cond_1 708 | return-void 709 | .end method 710 | 711 | .method public notifyListenerHintsChangedLocked(I)V 712 | .locals 4 713 | .param p1, "hints" # I 714 | .annotation build Lcom/android/internal/annotations/GuardedBy; 715 | value = "mNotificationLock" 716 | .end annotation 717 | 718 | .prologue 719 | invoke-virtual {p0}, Lcom/android/server/notification/NotificationManagerService$NotificationListeners;->getServices()Ljava/util/List; 720 | 721 | move-result-object v2 722 | 723 | invoke-interface {v2}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator; 724 | 725 | move-result-object v1 726 | 727 | .local v1, "serviceInfo$iterator":Ljava/util/Iterator; 728 | :cond_0 729 | :goto_0 730 | invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z 731 | 732 | move-result v2 733 | 734 | if-eqz v2, :cond_1 735 | 736 | invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object; 737 | 738 | move-result-object v0 739 | 740 | check-cast v0, Lcom/android/server/notification/ManagedServices$ManagedServiceInfo; 741 | 742 | .local v0, "serviceInfo":Lcom/android/server/notification/ManagedServices$ManagedServiceInfo; 743 | invoke-virtual {v0}, Lcom/android/server/notification/ManagedServices$ManagedServiceInfo;->isEnabledForCurrentProfiles()Z 744 | 745 | move-result v2 746 | 747 | if-eqz v2, :cond_0 748 | 749 | iget-object v2, p0, Lcom/android/server/notification/NotificationManagerService$NotificationListeners;->this$0:Lcom/android/server/notification/NotificationManagerService; 750 | 751 | invoke-static {v2}, Lcom/android/server/notification/NotificationManagerService;->-get12(Lcom/android/server/notification/NotificationManagerService;)Lcom/android/server/notification/NotificationManagerService$WorkerHandler; 752 | 753 | move-result-object v2 754 | 755 | new-instance v3, Lcom/android/server/notification/NotificationManagerService$NotificationListeners$5; 756 | 757 | invoke-direct {v3, p0, v0, p1}, Lcom/android/server/notification/NotificationManagerService$NotificationListeners$5;->(Lcom/android/server/notification/NotificationManagerService$NotificationListeners;Lcom/android/server/notification/ManagedServices$ManagedServiceInfo;I)V 758 | 759 | invoke-virtual {v2, v3}, Lcom/android/server/notification/NotificationManagerService$WorkerHandler;->post(Ljava/lang/Runnable;)Z 760 | 761 | goto :goto_0 762 | 763 | .end local v0 # "serviceInfo":Lcom/android/server/notification/ManagedServices$ManagedServiceInfo; 764 | :cond_1 765 | return-void 766 | .end method 767 | 768 | .method notifyNotificationChannelChanged(Lcom/android/server/notification/ManagedServices$ManagedServiceInfo;Ljava/lang/String;Landroid/os/UserHandle;Landroid/app/NotificationChannel;I)V 769 | .locals 5 770 | .param p1, "info" # Lcom/android/server/notification/ManagedServices$ManagedServiceInfo; 771 | .param p2, "pkg" # Ljava/lang/String; 772 | .param p3, "user" # Landroid/os/UserHandle; 773 | .param p4, "channel" # Landroid/app/NotificationChannel; 774 | .param p5, "modificationType" # I 775 | 776 | .prologue 777 | iget-object v1, p1, Lcom/android/server/notification/ManagedServices$ManagedServiceInfo;->service:Landroid/os/IInterface; 778 | 779 | check-cast v1, Landroid/service/notification/INotificationListener; 780 | 781 | .local v1, "listener":Landroid/service/notification/INotificationListener; 782 | :try_start_0 783 | invoke-interface {v1, p2, p3, p4, p5}, Landroid/service/notification/INotificationListener;->onNotificationChannelModification(Ljava/lang/String;Landroid/os/UserHandle;Landroid/app/NotificationChannel;I)V 784 | :try_end_0 785 | .catch Landroid/os/RemoteException; {:try_start_0 .. :try_end_0} :catch_0 786 | 787 | :goto_0 788 | return-void 789 | 790 | :catch_0 791 | move-exception v0 792 | 793 | .local v0, "ex":Landroid/os/RemoteException; 794 | iget-object v2, p0, Lcom/android/server/notification/NotificationManagerService$NotificationListeners;->TAG:Ljava/lang/String; 795 | 796 | new-instance v3, Ljava/lang/StringBuilder; 797 | 798 | invoke-direct {v3}, Ljava/lang/StringBuilder;->()V 799 | 800 | const-string/jumbo v4, "unable to notify listener (channel changed): " 801 | 802 | invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; 803 | 804 | move-result-object v3 805 | 806 | invoke-virtual {v3, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder; 807 | 808 | move-result-object v3 809 | 810 | invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; 811 | 812 | move-result-object v3 813 | 814 | invoke-static {v2, v3, v0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I 815 | 816 | goto :goto_0 817 | .end method 818 | 819 | .method protected notifyNotificationChannelChanged(Ljava/lang/String;Landroid/os/UserHandle;Landroid/app/NotificationChannel;I)V 820 | .locals 10 821 | .param p1, "pkg" # Ljava/lang/String; 822 | .param p2, "user" # Landroid/os/UserHandle; 823 | .param p3, "channel" # Landroid/app/NotificationChannel; 824 | .param p4, "modificationType" # I 825 | 826 | .prologue 827 | if-nez p3, :cond_0 828 | 829 | return-void 830 | 831 | :cond_0 832 | invoke-virtual {p0}, Lcom/android/server/notification/NotificationManagerService$NotificationListeners;->getServices()Ljava/util/List; 833 | 834 | move-result-object v0 835 | 836 | invoke-interface {v0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator; 837 | 838 | move-result-object v8 839 | 840 | .local v8, "serviceInfo$iterator":Ljava/util/Iterator; 841 | :cond_1 842 | :goto_0 843 | invoke-interface {v8}, Ljava/util/Iterator;->hasNext()Z 844 | 845 | move-result v0 846 | 847 | if-eqz v0, :cond_2 848 | 849 | invoke-interface {v8}, Ljava/util/Iterator;->next()Ljava/lang/Object; 850 | 851 | move-result-object v4 852 | 853 | check-cast v4, Lcom/android/server/notification/ManagedServices$ManagedServiceInfo; 854 | 855 | .local v4, "serviceInfo":Lcom/android/server/notification/ManagedServices$ManagedServiceInfo; 856 | invoke-static {}, Landroid/os/UserHandle;->getCallingUserId()I 857 | 858 | move-result v0 859 | 860 | invoke-virtual {v4, v0}, Lcom/android/server/notification/ManagedServices$ManagedServiceInfo;->enabledAndUserMatches(I)Z 861 | 862 | move-result v0 863 | 864 | if-eqz v0, :cond_1 865 | 866 | invoke-static {}, Lcom/android/internal/os/BackgroundThread;->getHandler()Landroid/os/Handler; 867 | 868 | move-result-object v9 869 | 870 | new-instance v0, Lcom/android/server/notification/-$Lambda$0oXbfIRCVxclfVVwXaE3J61tRFA$2; 871 | 872 | const/4 v1, 0x0 873 | 874 | move v2, p4 875 | 876 | move-object v3, p0 877 | 878 | move-object v5, p1 879 | 880 | move-object v6, p2 881 | 882 | move-object v7, p3 883 | 884 | invoke-direct/range {v0 .. v7}, Lcom/android/server/notification/-$Lambda$0oXbfIRCVxclfVVwXaE3J61tRFA$2;->(BILjava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V 885 | 886 | invoke-virtual {v9, v0}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z 887 | 888 | goto :goto_0 889 | 890 | .end local v4 # "serviceInfo":Lcom/android/server/notification/ManagedServices$ManagedServiceInfo; 891 | :cond_2 892 | return-void 893 | .end method 894 | 895 | .method protected notifyNotificationChannelGroupChanged(Ljava/lang/String;Landroid/os/UserHandle;Landroid/app/NotificationChannelGroup;I)V 896 | .locals 10 897 | .param p1, "pkg" # Ljava/lang/String; 898 | .param p2, "user" # Landroid/os/UserHandle; 899 | .param p3, "group" # Landroid/app/NotificationChannelGroup; 900 | .param p4, "modificationType" # I 901 | 902 | .prologue 903 | if-nez p3, :cond_0 904 | 905 | return-void 906 | 907 | :cond_0 908 | invoke-virtual {p0}, Lcom/android/server/notification/NotificationManagerService$NotificationListeners;->getServices()Ljava/util/List; 909 | 910 | move-result-object v0 911 | 912 | invoke-interface {v0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator; 913 | 914 | move-result-object v8 915 | 916 | .local v8, "serviceInfo$iterator":Ljava/util/Iterator; 917 | :cond_1 918 | :goto_0 919 | invoke-interface {v8}, Ljava/util/Iterator;->hasNext()Z 920 | 921 | move-result v0 922 | 923 | if-eqz v0, :cond_2 924 | 925 | invoke-interface {v8}, Ljava/util/Iterator;->next()Ljava/lang/Object; 926 | 927 | move-result-object v4 928 | 929 | check-cast v4, Lcom/android/server/notification/ManagedServices$ManagedServiceInfo; 930 | 931 | .local v4, "serviceInfo":Lcom/android/server/notification/ManagedServices$ManagedServiceInfo; 932 | invoke-static {}, Landroid/os/UserHandle;->getCallingUserId()I 933 | 934 | move-result v0 935 | 936 | invoke-virtual {v4, v0}, Lcom/android/server/notification/ManagedServices$ManagedServiceInfo;->enabledAndUserMatches(I)Z 937 | 938 | move-result v0 939 | 940 | if-eqz v0, :cond_1 941 | 942 | invoke-static {}, Lcom/android/internal/os/BackgroundThread;->getHandler()Landroid/os/Handler; 943 | 944 | move-result-object v9 945 | 946 | new-instance v0, Lcom/android/server/notification/-$Lambda$0oXbfIRCVxclfVVwXaE3J61tRFA$2; 947 | 948 | const/4 v1, 0x1 949 | 950 | move v2, p4 951 | 952 | move-object v3, p0 953 | 954 | move-object v5, p1 955 | 956 | move-object v6, p2 957 | 958 | move-object v7, p3 959 | 960 | invoke-direct/range {v0 .. v7}, Lcom/android/server/notification/-$Lambda$0oXbfIRCVxclfVVwXaE3J61tRFA$2;->(BILjava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V 961 | 962 | invoke-virtual {v9, v0}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z 963 | 964 | goto :goto_0 965 | 966 | .end local v4 # "serviceInfo":Lcom/android/server/notification/ManagedServices$ManagedServiceInfo; 967 | :cond_2 968 | return-void 969 | .end method 970 | 971 | .method public notifyPostedLocked(Landroid/service/notification/StatusBarNotification;Landroid/service/notification/StatusBarNotification;)V 972 | .locals 10 973 | .param p1, "sbn" # Landroid/service/notification/StatusBarNotification; 974 | .param p2, "oldSbn" # Landroid/service/notification/StatusBarNotification; 975 | .annotation build Lcom/android/internal/annotations/GuardedBy; 976 | value = "mNotificationLock" 977 | .end annotation 978 | 979 | .prologue 980 | new-instance v6, Lcom/android/server/notification/NotificationManagerService$TrimCache; 981 | 982 | iget-object v8, p0, Lcom/android/server/notification/NotificationManagerService$NotificationListeners;->this$0:Lcom/android/server/notification/NotificationManagerService; 983 | 984 | invoke-direct {v6, v8, p1}, Lcom/android/server/notification/NotificationManagerService$TrimCache;->(Lcom/android/server/notification/NotificationManagerService;Landroid/service/notification/StatusBarNotification;)V 985 | 986 | .local v6, "trimCache":Lcom/android/server/notification/NotificationManagerService$TrimCache; 987 | invoke-virtual {p0}, Lcom/android/server/notification/NotificationManagerService$NotificationListeners;->getServices()Ljava/util/List; 988 | 989 | move-result-object v8 990 | 991 | invoke-interface {v8}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator; 992 | 993 | move-result-object v1 994 | 995 | .local v1, "info$iterator":Ljava/util/Iterator; 996 | :cond_0 997 | :goto_0 998 | invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z 999 | 1000 | move-result v8 1001 | 1002 | if-eqz v8, :cond_4 1003 | 1004 | invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object; 1005 | 1006 | move-result-object v0 1007 | 1008 | check-cast v0, Lcom/android/server/notification/ManagedServices$ManagedServiceInfo; 1009 | 1010 | .local v0, "info":Lcom/android/server/notification/ManagedServices$ManagedServiceInfo; 1011 | iget-object v8, p0, Lcom/android/server/notification/NotificationManagerService$NotificationListeners;->this$0:Lcom/android/server/notification/NotificationManagerService; 1012 | 1013 | invoke-static {v8, p1, v0}, Lcom/android/server/notification/NotificationManagerService;->-wrap3(Lcom/android/server/notification/NotificationManagerService;Landroid/service/notification/StatusBarNotification;Lcom/android/server/notification/ManagedServices$ManagedServiceInfo;)Z 1014 | 1015 | move-result v5 1016 | 1017 | .local v5, "sbnVisible":Z 1018 | if-eqz p2, :cond_2 1019 | 1020 | iget-object v8, p0, Lcom/android/server/notification/NotificationManagerService$NotificationListeners;->this$0:Lcom/android/server/notification/NotificationManagerService; 1021 | 1022 | invoke-static {v8, p2, v0}, Lcom/android/server/notification/NotificationManagerService;->-wrap3(Lcom/android/server/notification/NotificationManagerService;Landroid/service/notification/StatusBarNotification;Lcom/android/server/notification/ManagedServices$ManagedServiceInfo;)Z 1023 | 1024 | move-result v3 1025 | 1026 | :goto_1 1027 | if-nez v3, :cond_1 1028 | 1029 | xor-int/lit8 v8, v5, 0x1 1030 | 1031 | if-nez v8, :cond_0 1032 | 1033 | :cond_1 1034 | iget-object v8, p0, Lcom/android/server/notification/NotificationManagerService$NotificationListeners;->this$0:Lcom/android/server/notification/NotificationManagerService; 1035 | 1036 | invoke-static {v8, v0}, Lcom/android/server/notification/NotificationManagerService;->-wrap0(Lcom/android/server/notification/NotificationManagerService;Lcom/android/server/notification/ManagedServices$ManagedServiceInfo;)Landroid/service/notification/NotificationRankingUpdate; 1037 | 1038 | move-result-object v7 1039 | 1040 | .local v7, "update":Landroid/service/notification/NotificationRankingUpdate; 1041 | if-eqz v3, :cond_3 1042 | 1043 | xor-int/lit8 v8, v5, 0x1 1044 | 1045 | if-eqz v8, :cond_3 1046 | 1047 | invoke-virtual {p2}, Landroid/service/notification/StatusBarNotification;->cloneLight()Landroid/service/notification/StatusBarNotification; 1048 | 1049 | move-result-object v2 1050 | 1051 | .local v2, "oldSbnLightClone":Landroid/service/notification/StatusBarNotification; 1052 | iget-object v8, p0, Lcom/android/server/notification/NotificationManagerService$NotificationListeners;->this$0:Lcom/android/server/notification/NotificationManagerService; 1053 | 1054 | invoke-static {v8}, Lcom/android/server/notification/NotificationManagerService;->-get12(Lcom/android/server/notification/NotificationManagerService;)Lcom/android/server/notification/NotificationManagerService$WorkerHandler; 1055 | 1056 | move-result-object v8 1057 | 1058 | new-instance v9, Lcom/android/server/notification/NotificationManagerService$NotificationListeners$1; 1059 | 1060 | invoke-direct {v9, p0, v0, v2, v7}, Lcom/android/server/notification/NotificationManagerService$NotificationListeners$1;->(Lcom/android/server/notification/NotificationManagerService$NotificationListeners;Lcom/android/server/notification/ManagedServices$ManagedServiceInfo;Landroid/service/notification/StatusBarNotification;Landroid/service/notification/NotificationRankingUpdate;)V 1061 | 1062 | invoke-virtual {v8, v9}, Lcom/android/server/notification/NotificationManagerService$WorkerHandler;->post(Ljava/lang/Runnable;)Z 1063 | 1064 | goto :goto_0 1065 | 1066 | .end local v2 # "oldSbnLightClone":Landroid/service/notification/StatusBarNotification; 1067 | .end local v7 # "update":Landroid/service/notification/NotificationRankingUpdate; 1068 | :cond_2 1069 | const/4 v3, 0x0 1070 | 1071 | .local v3, "oldSbnVisible":Z 1072 | goto :goto_1 1073 | 1074 | .end local v3 # "oldSbnVisible":Z 1075 | .restart local v7 # "update":Landroid/service/notification/NotificationRankingUpdate; 1076 | :cond_3 1077 | invoke-virtual {v6, v0}, Lcom/android/server/notification/NotificationManagerService$TrimCache;->ForListener(Lcom/android/server/notification/ManagedServices$ManagedServiceInfo;)Landroid/service/notification/StatusBarNotification; 1078 | 1079 | move-result-object v4 1080 | 1081 | .local v4, "sbnToPost":Landroid/service/notification/StatusBarNotification; 1082 | iget-object v8, p0, Lcom/android/server/notification/NotificationManagerService$NotificationListeners;->this$0:Lcom/android/server/notification/NotificationManagerService; 1083 | 1084 | invoke-static {v8}, Lcom/android/server/notification/NotificationManagerService;->-get12(Lcom/android/server/notification/NotificationManagerService;)Lcom/android/server/notification/NotificationManagerService$WorkerHandler; 1085 | 1086 | move-result-object v8 1087 | 1088 | new-instance v9, Lcom/android/server/notification/NotificationManagerService$NotificationListeners$2; 1089 | 1090 | invoke-direct {v9, p0, v0, v4, v7}, Lcom/android/server/notification/NotificationManagerService$NotificationListeners$2;->(Lcom/android/server/notification/NotificationManagerService$NotificationListeners;Lcom/android/server/notification/ManagedServices$ManagedServiceInfo;Landroid/service/notification/StatusBarNotification;Landroid/service/notification/NotificationRankingUpdate;)V 1091 | 1092 | invoke-virtual {v8, v9}, Lcom/android/server/notification/NotificationManagerService$WorkerHandler;->post(Ljava/lang/Runnable;)Z 1093 | 1094 | goto :goto_0 1095 | 1096 | .end local v0 # "info":Lcom/android/server/notification/ManagedServices$ManagedServiceInfo; 1097 | .end local v4 # "sbnToPost":Landroid/service/notification/StatusBarNotification; 1098 | .end local v5 # "sbnVisible":Z 1099 | .end local v7 # "update":Landroid/service/notification/NotificationRankingUpdate; 1100 | :cond_4 1101 | return-void 1102 | .end method 1103 | 1104 | .method public notifyRankingUpdateLocked()V 1105 | .locals 5 1106 | .annotation build Lcom/android/internal/annotations/GuardedBy; 1107 | value = "mNotificationLock" 1108 | .end annotation 1109 | 1110 | .prologue 1111 | invoke-virtual {p0}, Lcom/android/server/notification/NotificationManagerService$NotificationListeners;->getServices()Ljava/util/List; 1112 | 1113 | move-result-object v3 1114 | 1115 | invoke-interface {v3}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator; 1116 | 1117 | move-result-object v1 1118 | 1119 | .local v1, "serviceInfo$iterator":Ljava/util/Iterator; 1120 | :cond_0 1121 | :goto_0 1122 | invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z 1123 | 1124 | move-result v3 1125 | 1126 | if-eqz v3, :cond_1 1127 | 1128 | invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object; 1129 | 1130 | move-result-object v0 1131 | 1132 | check-cast v0, Lcom/android/server/notification/ManagedServices$ManagedServiceInfo; 1133 | 1134 | .local v0, "serviceInfo":Lcom/android/server/notification/ManagedServices$ManagedServiceInfo; 1135 | invoke-virtual {v0}, Lcom/android/server/notification/ManagedServices$ManagedServiceInfo;->isEnabledForCurrentProfiles()Z 1136 | 1137 | move-result v3 1138 | 1139 | if-eqz v3, :cond_0 1140 | 1141 | iget-object v3, p0, Lcom/android/server/notification/NotificationManagerService$NotificationListeners;->this$0:Lcom/android/server/notification/NotificationManagerService; 1142 | 1143 | invoke-static {v3, v0}, Lcom/android/server/notification/NotificationManagerService;->-wrap0(Lcom/android/server/notification/NotificationManagerService;Lcom/android/server/notification/ManagedServices$ManagedServiceInfo;)Landroid/service/notification/NotificationRankingUpdate; 1144 | 1145 | move-result-object v2 1146 | 1147 | .local v2, "update":Landroid/service/notification/NotificationRankingUpdate; 1148 | iget-object v3, p0, Lcom/android/server/notification/NotificationManagerService$NotificationListeners;->this$0:Lcom/android/server/notification/NotificationManagerService; 1149 | 1150 | invoke-static {v3}, Lcom/android/server/notification/NotificationManagerService;->-get12(Lcom/android/server/notification/NotificationManagerService;)Lcom/android/server/notification/NotificationManagerService$WorkerHandler; 1151 | 1152 | move-result-object v3 1153 | 1154 | new-instance v4, Lcom/android/server/notification/NotificationManagerService$NotificationListeners$4; 1155 | 1156 | invoke-direct {v4, p0, v0, v2}, Lcom/android/server/notification/NotificationManagerService$NotificationListeners$4;->(Lcom/android/server/notification/NotificationManagerService$NotificationListeners;Lcom/android/server/notification/ManagedServices$ManagedServiceInfo;Landroid/service/notification/NotificationRankingUpdate;)V 1157 | 1158 | invoke-virtual {v3, v4}, Lcom/android/server/notification/NotificationManagerService$WorkerHandler;->post(Ljava/lang/Runnable;)Z 1159 | 1160 | goto :goto_0 1161 | 1162 | .end local v0 # "serviceInfo":Lcom/android/server/notification/ManagedServices$ManagedServiceInfo; 1163 | .end local v2 # "update":Landroid/service/notification/NotificationRankingUpdate; 1164 | :cond_1 1165 | return-void 1166 | .end method 1167 | 1168 | .method public notifyRemovedLocked(Landroid/service/notification/StatusBarNotification;I)V 1169 | .locals 8 1170 | .param p1, "sbn" # Landroid/service/notification/StatusBarNotification; 1171 | .param p2, "reason" # I 1172 | .annotation build Lcom/android/internal/annotations/GuardedBy; 1173 | value = "mNotificationLock" 1174 | .end annotation 1175 | 1176 | .prologue 1177 | invoke-virtual {p1}, Landroid/service/notification/StatusBarNotification;->cloneLight()Landroid/service/notification/StatusBarNotification; 1178 | 1179 | move-result-object v3 1180 | 1181 | .local v3, "sbnLight":Landroid/service/notification/StatusBarNotification; 1182 | invoke-virtual {p0}, Lcom/android/server/notification/NotificationManagerService$NotificationListeners;->getServices()Ljava/util/List; 1183 | 1184 | move-result-object v0 1185 | 1186 | invoke-interface {v0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator; 1187 | 1188 | move-result-object v6 1189 | 1190 | .local v6, "info$iterator":Ljava/util/Iterator; 1191 | :cond_0 1192 | :goto_0 1193 | invoke-interface {v6}, Ljava/util/Iterator;->hasNext()Z 1194 | 1195 | move-result v0 1196 | 1197 | if-eqz v0, :cond_1 1198 | 1199 | invoke-interface {v6}, Ljava/util/Iterator;->next()Ljava/lang/Object; 1200 | 1201 | move-result-object v2 1202 | 1203 | check-cast v2, Lcom/android/server/notification/ManagedServices$ManagedServiceInfo; 1204 | 1205 | .local v2, "info":Lcom/android/server/notification/ManagedServices$ManagedServiceInfo; 1206 | iget-object v0, p0, Lcom/android/server/notification/NotificationManagerService$NotificationListeners;->this$0:Lcom/android/server/notification/NotificationManagerService; 1207 | 1208 | invoke-static {v0, p1, v2}, Lcom/android/server/notification/NotificationManagerService;->-wrap3(Lcom/android/server/notification/NotificationManagerService;Landroid/service/notification/StatusBarNotification;Lcom/android/server/notification/ManagedServices$ManagedServiceInfo;)Z 1209 | 1210 | move-result v0 1211 | 1212 | if-eqz v0, :cond_0 1213 | 1214 | iget-object v0, p0, Lcom/android/server/notification/NotificationManagerService$NotificationListeners;->this$0:Lcom/android/server/notification/NotificationManagerService; 1215 | 1216 | invoke-static {v0, v2}, Lcom/android/server/notification/NotificationManagerService;->-wrap0(Lcom/android/server/notification/NotificationManagerService;Lcom/android/server/notification/ManagedServices$ManagedServiceInfo;)Landroid/service/notification/NotificationRankingUpdate; 1217 | 1218 | move-result-object v4 1219 | 1220 | .local v4, "update":Landroid/service/notification/NotificationRankingUpdate; 1221 | iget-object v0, p0, Lcom/android/server/notification/NotificationManagerService$NotificationListeners;->this$0:Lcom/android/server/notification/NotificationManagerService; 1222 | 1223 | invoke-static {v0}, Lcom/android/server/notification/NotificationManagerService;->-get12(Lcom/android/server/notification/NotificationManagerService;)Lcom/android/server/notification/NotificationManagerService$WorkerHandler; 1224 | 1225 | move-result-object v7 1226 | 1227 | new-instance v0, Lcom/android/server/notification/NotificationManagerService$NotificationListeners$3; 1228 | 1229 | move-object v1, p0 1230 | 1231 | move v5, p2 1232 | 1233 | invoke-direct/range {v0 .. v5}, Lcom/android/server/notification/NotificationManagerService$NotificationListeners$3;->(Lcom/android/server/notification/NotificationManagerService$NotificationListeners;Lcom/android/server/notification/ManagedServices$ManagedServiceInfo;Landroid/service/notification/StatusBarNotification;Landroid/service/notification/NotificationRankingUpdate;I)V 1234 | 1235 | invoke-virtual {v7, v0}, Lcom/android/server/notification/NotificationManagerService$WorkerHandler;->post(Ljava/lang/Runnable;)Z 1236 | 1237 | goto :goto_0 1238 | 1239 | .end local v2 # "info":Lcom/android/server/notification/ManagedServices$ManagedServiceInfo; 1240 | .end local v4 # "update":Landroid/service/notification/NotificationRankingUpdate; 1241 | :cond_1 1242 | return-void 1243 | .end method 1244 | 1245 | .method public onServiceAdded(Lcom/android/server/notification/ManagedServices$ManagedServiceInfo;)V 1246 | .locals 5 1247 | .param p1, "info" # Lcom/android/server/notification/ManagedServices$ManagedServiceInfo; 1248 | 1249 | .prologue 1250 | iget-object v1, p1, Lcom/android/server/notification/ManagedServices$ManagedServiceInfo;->service:Landroid/os/IInterface; 1251 | 1252 | check-cast v1, Landroid/service/notification/INotificationListener; 1253 | 1254 | .local v1, "listener":Landroid/service/notification/INotificationListener; 1255 | iget-object v3, p0, Lcom/android/server/notification/NotificationManagerService$NotificationListeners;->this$0:Lcom/android/server/notification/NotificationManagerService; 1256 | 1257 | iget-object v4, v3, Lcom/android/server/notification/NotificationManagerService;->mNotificationLock:Ljava/lang/Object; 1258 | 1259 | monitor-enter v4 1260 | 1261 | :try_start_0 1262 | iget-object v3, p0, Lcom/android/server/notification/NotificationManagerService$NotificationListeners;->this$0:Lcom/android/server/notification/NotificationManagerService; 1263 | 1264 | invoke-static {v3, p1}, Lcom/android/server/notification/NotificationManagerService;->-wrap0(Lcom/android/server/notification/NotificationManagerService;Lcom/android/server/notification/ManagedServices$ManagedServiceInfo;)Landroid/service/notification/NotificationRankingUpdate; 1265 | :try_end_0 1266 | .catchall {:try_start_0 .. :try_end_0} :catchall_0 1267 | 1268 | move-result-object v2 1269 | 1270 | .local v2, "update":Landroid/service/notification/NotificationRankingUpdate; 1271 | monitor-exit v4 1272 | 1273 | :try_start_1 1274 | invoke-interface {v1, v2}, Landroid/service/notification/INotificationListener;->onListenerConnected(Landroid/service/notification/NotificationRankingUpdate;)V 1275 | :try_end_1 1276 | .catch Landroid/os/RemoteException; {:try_start_1 .. :try_end_1} :catch_0 1277 | 1278 | :goto_0 1279 | return-void 1280 | 1281 | .end local v2 # "update":Landroid/service/notification/NotificationRankingUpdate; 1282 | :catchall_0 1283 | move-exception v3 1284 | 1285 | monitor-exit v4 1286 | 1287 | throw v3 1288 | 1289 | .restart local v2 # "update":Landroid/service/notification/NotificationRankingUpdate; 1290 | :catch_0 1291 | move-exception v0 1292 | 1293 | .local v0, "e":Landroid/os/RemoteException; 1294 | goto :goto_0 1295 | .end method 1296 | 1297 | .method protected onServiceRemovedLocked(Lcom/android/server/notification/ManagedServices$ManagedServiceInfo;)V 1298 | .locals 1 1299 | .param p1, "removed" # Lcom/android/server/notification/ManagedServices$ManagedServiceInfo; 1300 | .annotation build Lcom/android/internal/annotations/GuardedBy; 1301 | value = "mNotificationLock" 1302 | .end annotation 1303 | 1304 | .prologue 1305 | iget-object v0, p0, Lcom/android/server/notification/NotificationManagerService$NotificationListeners;->this$0:Lcom/android/server/notification/NotificationManagerService; 1306 | 1307 | invoke-static {v0, p1}, Lcom/android/server/notification/NotificationManagerService;->-wrap4(Lcom/android/server/notification/NotificationManagerService;Lcom/android/server/notification/ManagedServices$ManagedServiceInfo;)Z 1308 | 1309 | move-result v0 1310 | 1311 | if-eqz v0, :cond_0 1312 | 1313 | iget-object v0, p0, Lcom/android/server/notification/NotificationManagerService$NotificationListeners;->this$0:Lcom/android/server/notification/NotificationManagerService; 1314 | 1315 | invoke-static {v0}, Lcom/android/server/notification/NotificationManagerService;->-wrap38(Lcom/android/server/notification/NotificationManagerService;)V 1316 | 1317 | iget-object v0, p0, Lcom/android/server/notification/NotificationManagerService$NotificationListeners;->this$0:Lcom/android/server/notification/NotificationManagerService; 1318 | 1319 | invoke-static {v0}, Lcom/android/server/notification/NotificationManagerService;->-wrap36(Lcom/android/server/notification/NotificationManagerService;)V 1320 | 1321 | :cond_0 1322 | iget-object v0, p0, Lcom/android/server/notification/NotificationManagerService$NotificationListeners;->mLightTrimListeners:Landroid/util/ArraySet; 1323 | 1324 | invoke-virtual {v0, p1}, Landroid/util/ArraySet;->remove(Ljava/lang/Object;)Z 1325 | 1326 | return-void 1327 | .end method 1328 | 1329 | .method public setOnNotificationPostedTrimLocked(Lcom/android/server/notification/ManagedServices$ManagedServiceInfo;I)V 1330 | .locals 1 1331 | .param p1, "info" # Lcom/android/server/notification/ManagedServices$ManagedServiceInfo; 1332 | .param p2, "trim" # I 1333 | .annotation build Lcom/android/internal/annotations/GuardedBy; 1334 | value = "mNotificationLock" 1335 | .end annotation 1336 | 1337 | .prologue 1338 | const/4 v0, 0x1 1339 | 1340 | if-ne p2, v0, :cond_0 1341 | 1342 | iget-object v0, p0, Lcom/android/server/notification/NotificationManagerService$NotificationListeners;->mLightTrimListeners:Landroid/util/ArraySet; 1343 | 1344 | invoke-virtual {v0, p1}, Landroid/util/ArraySet;->add(Ljava/lang/Object;)Z 1345 | 1346 | :goto_0 1347 | return-void 1348 | 1349 | :cond_0 1350 | iget-object v0, p0, Lcom/android/server/notification/NotificationManagerService$NotificationListeners;->mLightTrimListeners:Landroid/util/ArraySet; 1351 | 1352 | invoke-virtual {v0, p1}, Landroid/util/ArraySet;->remove(Ljava/lang/Object;)Z 1353 | 1354 | goto :goto_0 1355 | .end method 1356 | --------------------------------------------------------------------------------