@@ -29,10 +29,10 @@ public static void testPendingIntentAsAnExtra(Context ctx)
29
29
PendingIntent pi = PendingIntent .getActivity (ctx , 0 , baseIntent , 0 );
30
30
Intent fwdIntent = new Intent ();
31
31
fwdIntent .putExtra ("fwdIntent" , pi );
32
- ctx .startActivity (fwdIntent ); // $hasTaintFlow
33
- ctx .startActivities (new Intent [] {fwdIntent }); // $hasTaintFlow
32
+ ctx .startActivity (fwdIntent ); // $hasImplicitPendingIntent
33
+ ctx .startActivities (new Intent [] {fwdIntent }); // $hasImplicitPendingIntent
34
34
ctx .startService (fwdIntent ); // Safe
35
- ctx .sendBroadcast (fwdIntent ); // $hasTaintFlow
35
+ ctx .sendBroadcast (fwdIntent ); // $hasImplicitPendingIntent
36
36
37
37
fwdIntent .setPackage ("a.safe.package" ); // Sanitizer
38
38
ctx .startActivity (fwdIntent ); // Safe
@@ -43,15 +43,15 @@ public static void testPendingIntentAsAnExtra(Context ctx)
43
43
PendingIntent pi = PendingIntent .getActivityAsUser (ctx , 0 , baseIntent , 0 , null , null );
44
44
Intent fwdIntent = new Intent ();
45
45
fwdIntent .putExtra ("fwdIntent" , pi );
46
- ctx .startActivity (fwdIntent ); // $hasTaintFlow
46
+ ctx .startActivity (fwdIntent ); // $hasImplicitPendingIntent
47
47
}
48
48
49
49
{
50
50
Intent baseIntent = new Intent ();
51
51
PendingIntent pi = PendingIntent .getActivities (ctx , 0 , new Intent [] {baseIntent }, 0 );
52
52
Intent fwdIntent = new Intent ();
53
53
fwdIntent .putExtra ("fwdIntent" , pi );
54
- ctx .startActivity (fwdIntent ); // $hasTaintFlow
54
+ ctx .startActivity (fwdIntent ); // $hasImplicitPendingIntent
55
55
}
56
56
57
57
{
@@ -60,39 +60,39 @@ public static void testPendingIntentAsAnExtra(Context ctx)
60
60
0 , null , null );
61
61
Intent fwdIntent = new Intent ();
62
62
fwdIntent .putExtra ("fwdIntent" , pi );
63
- ctx .startActivity (fwdIntent ); // $hasTaintFlow
63
+ ctx .startActivity (fwdIntent ); // $hasImplicitPendingIntent
64
64
}
65
65
66
66
{
67
67
Intent baseIntent = new Intent ();
68
68
PendingIntent pi = PendingIntent .getBroadcast (ctx , 0 , baseIntent , 0 );
69
69
Intent fwdIntent = new Intent ();
70
70
fwdIntent .putExtra ("fwdIntent" , pi );
71
- ctx .sendBroadcast (fwdIntent ); // $hasTaintFlow
71
+ ctx .sendBroadcast (fwdIntent ); // $hasImplicitPendingIntent
72
72
}
73
73
74
74
{
75
75
Intent baseIntent = new Intent ();
76
76
PendingIntent pi = PendingIntent .getBroadcastAsUser (ctx , 0 , baseIntent , 0 , null );
77
77
Intent fwdIntent = new Intent ();
78
78
fwdIntent .putExtra ("fwdIntent" , pi );
79
- ctx .sendBroadcast (fwdIntent ); // $hasTaintFlow
79
+ ctx .sendBroadcast (fwdIntent ); // $hasImplicitPendingIntent
80
80
}
81
81
82
82
{
83
83
Intent baseIntent = new Intent ();
84
84
PendingIntent pi = PendingIntent .getService (ctx , 0 , baseIntent , 0 );
85
85
Intent fwdIntent = new Intent ();
86
86
fwdIntent .putExtra ("fwdIntent" , pi );
87
- ctx .startActivity (fwdIntent ); // $hasTaintFlow
87
+ ctx .startActivity (fwdIntent ); // $hasImplicitPendingIntent
88
88
}
89
89
90
90
{
91
91
Intent baseIntent = new Intent ();
92
92
PendingIntent pi = PendingIntent .getForegroundService (ctx , 0 , baseIntent , 0 );
93
93
Intent fwdIntent = new Intent ();
94
94
fwdIntent .putExtra ("fwdIntent" , pi );
95
- ctx .startActivity (fwdIntent ); // $hasTaintFlow
95
+ ctx .startActivity (fwdIntent ); // $hasImplicitPendingIntent
96
96
}
97
97
98
98
{
@@ -144,7 +144,7 @@ public static void testPendingIntentAsAnExtra(Context ctx)
144
144
PendingIntent pi = PendingIntent .getActivity (ctx , 0 , baseIntent , flag ); // Sanitizer
145
145
Intent fwdIntent = new Intent ();
146
146
fwdIntent .putExtra ("fwdIntent" , pi );
147
- ctx .startActivity (fwdIntent ); // $ SPURIOUS: $ hasTaintFlow
147
+ ctx .startActivity (fwdIntent ); // $ SPURIOUS: $ hasImplicitPendingIntent
148
148
}
149
149
}
150
150
@@ -155,10 +155,10 @@ public static void testPendingIntentWrappedInAnotherPendingIntent(Context ctx,
155
155
PendingIntent pi = PendingIntent .getActivity (ctx , 0 , baseIntent , 0 );
156
156
Intent fwdIntent = new Intent ();
157
157
fwdIntent .putExtra ("fwdIntent" , pi );
158
- other .send (ctx , 0 , fwdIntent ); // $hasTaintFlow
159
- other .send (ctx , 0 , fwdIntent , null , null ); // $hasTaintFlow
160
- other .send (ctx , 0 , fwdIntent , null , null , null ); // $hasTaintFlow
161
- other .send (ctx , 0 , fwdIntent , null , null , null , null ); // $hasTaintFlow
158
+ other .send (ctx , 0 , fwdIntent ); // $hasImplicitPendingIntent
159
+ other .send (ctx , 0 , fwdIntent , null , null ); // $hasImplicitPendingIntent
160
+ other .send (ctx , 0 , fwdIntent , null , null , null ); // $hasImplicitPendingIntent
161
+ other .send (ctx , 0 , fwdIntent , null , null , null , null ); // $hasImplicitPendingIntent
162
162
}
163
163
}
164
164
@@ -173,9 +173,9 @@ public static void testPendingIntentInANotification(Context ctx)
173
173
new Notification .Builder (ctx ).addAction (aBuilder .build ());
174
174
Notification notification = nBuilder .build ();
175
175
NotificationManager nManager = new NotificationManager ();
176
- nManager .notifyAsPackage ("targetPackage" , "tag" , 0 , notification ); // $hasTaintFlow
177
- nManager .notify (0 , notification ); // $hasTaintFlow
178
- nManager .notifyAsUser ("" , 0 , notification , null ); // $hasTaintFlow
176
+ nManager .notifyAsPackage ("targetPackage" , "tag" , 0 , notification ); // $hasImplicitPendingIntent
177
+ nManager .notify (0 , notification ); // $hasImplicitPendingIntent
178
+ nManager .notifyAsUser ("" , 0 , notification , null ); // $hasImplicitPendingIntent
179
179
}
180
180
{
181
181
Intent baseIntent = new Intent ();
@@ -215,7 +215,7 @@ public void onCreate(Bundle bundle) {
215
215
PendingIntent pi = PendingIntent .getActivity (null , 0 , baseIntent , 0 );
216
216
Intent fwdIntent = new Intent ();
217
217
fwdIntent .putExtra ("fwdIntent" , pi );
218
- setResult (0 , fwdIntent ); // $hasTaintFlow
218
+ setResult (0 , fwdIntent ); // $hasImplicitPendingIntent
219
219
}
220
220
}
221
221
@@ -232,7 +232,7 @@ public Slice onBindSlice(Uri sliceUri) {
232
232
ListBuilder listBuilder = new ListBuilder (getContext (), sliceUri , null );
233
233
listBuilder .addRow (new ListBuilder .RowBuilder ().setTitle ("Title" )
234
234
.setPrimaryAction (activityAction ));
235
- return listBuilder .build (); // $hasTaintFlow
235
+ return listBuilder .build (); // $hasImplicitPendingIntent
236
236
237
237
} else if (sliceUri .getAuthority ().equals ("2" )) {
238
238
Intent baseIntent = new Intent (getContext (), Activity .class ); // Sanitizer
@@ -259,7 +259,7 @@ public Slice onBindSlice(Uri sliceUri) {
259
259
SliceAction action = SliceAction .createDeeplink (mPendingIntent , null , 0 , "" );
260
260
ListBuilder listBuilder = new ListBuilder (getContext (), sliceUri , 0 );
261
261
listBuilder .addRow (new ListBuilder .RowBuilder (sliceUri ).setPrimaryAction (action ));
262
- return listBuilder .build (); // $hasTaintFlow
262
+ return listBuilder .build (); // $hasImplicitPendingIntent
263
263
}
264
264
}
265
265
@@ -268,7 +268,7 @@ public PendingIntent onCreatePermissionRequest(Uri sliceUri, String callingPacka
268
268
if (sliceUri .getAuthority ().equals ("1" )) {
269
269
Intent baseIntent = new Intent ();
270
270
PendingIntent pi = PendingIntent .getActivity (getContext (), 0 , baseIntent , 0 );
271
- return pi ; // $hasTaintFlow
271
+ return pi ; // $hasImplicitPendingIntent
272
272
} else {
273
273
Intent baseIntent = new Intent ();
274
274
PendingIntent pi = PendingIntent .getActivity (getContext (), 0 , baseIntent ,
0 commit comments