NotificationCompatSideChannelService.java
2.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
package android.support.v4.app;
import android.app.Notification;
import android.app.Service;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.os.Build.VERSION;
import android.os.IBinder;
import android.os.RemoteException;
public abstract class NotificationCompatSideChannelService
extends Service
{
final void a(int paramInt, String paramString)
{
String[] arrayOfString = getPackageManager().getPackagesForUid(paramInt);
int j = arrayOfString.length;
int i = 0;
while (i < j)
{
if (arrayOfString[i].equals(paramString)) {
return;
}
i += 1;
}
throw new SecurityException("NotificationSideChannelService: Uid " + paramInt + " is not authorized for package " + paramString);
}
public abstract void cancel(String paramString1, int paramInt, String paramString2);
public abstract void cancelAll(String paramString);
public abstract void notify(String paramString1, int paramInt, String paramString2, Notification paramNotification);
public IBinder onBind(Intent paramIntent)
{
if ((!paramIntent.getAction().equals("android.support.BIND_NOTIFICATION_SIDE_CHANNEL")) || (Build.VERSION.SDK_INT > 19)) {
return null;
}
return new a();
}
final class a
extends INotificationSideChannel.Stub
{
a() {}
public final void cancel(String paramString1, int paramInt, String paramString2)
throws RemoteException
{
NotificationCompatSideChannelService.this.a(getCallingUid(), paramString1);
long l = clearCallingIdentity();
try
{
NotificationCompatSideChannelService.this.cancel(paramString1, paramInt, paramString2);
return;
}
finally
{
restoreCallingIdentity(l);
}
}
public final void cancelAll(String paramString)
{
NotificationCompatSideChannelService.this.a(getCallingUid(), paramString);
long l = clearCallingIdentity();
try
{
NotificationCompatSideChannelService.this.cancelAll(paramString);
return;
}
finally
{
restoreCallingIdentity(l);
}
}
public final void notify(String paramString1, int paramInt, String paramString2, Notification paramNotification)
throws RemoteException
{
NotificationCompatSideChannelService.this.a(getCallingUid(), paramString1);
long l = clearCallingIdentity();
try
{
NotificationCompatSideChannelService.this.notify(paramString1, paramInt, paramString2, paramNotification);
return;
}
finally
{
restoreCallingIdentity(l);
}
}
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/android/support/v4/app/NotificationCompatSideChannelService.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/