File tree Expand file tree Collapse file tree 3 files changed +60
-6
lines changed
java/ql/test/query-tests/security/CWE-926
TestApplicationPermission Expand file tree Collapse file tree 3 files changed +60
-6
lines changed Original file line number Diff line number Diff line change 43
43
<action android : name =" android.intent.action.DOCUMENTS_PROVIDER" />
44
44
45
45
</intent-filter >
46
- </service >
46
+ </provider >
47
47
48
48
<!-- Safe: 'android:exported' explicitly set --> <activity
49
49
android : name =" .Activity"
73
73
<action android : name =" android.intent.action.DOCUMENTS_PROVIDER" />
74
74
75
75
</intent-filter >
76
- </service >
76
+ </provider >
77
+
78
+ <!-- $ hasImplicitExport --> <provider
79
+ android : name =" .MyCloudProvider"
80
+ android : readPermission =" .TestRead" >
81
+ <intent-filter >
82
+ <action android : name =" android.intent.action.DOCUMENTS_PROVIDER" />
83
+
84
+ </intent-filter >
85
+ </provider >
86
+
87
+ <!-- $ hasImplicitExport --> <provider
88
+ android : name =" .MyCloudProvider"
89
+ android : writePermission =" .TestWrite" >
90
+ <intent-filter >
91
+ <action android : name =" android.intent.action.DOCUMENTS_PROVIDER" />
92
+
93
+ </intent-filter >
94
+ </provider >
77
95
78
96
<!-- Safe: has category 'android.intent.category.LAUNCHER' --> <activity
79
97
android : name =" .Activity" >
Original file line number Diff line number Diff line change 44
44
<action android : name =" android.intent.action.DOCUMENTS_PROVIDER" />
45
45
46
46
</intent-filter >
47
- </service >
47
+ </provider >
48
48
49
49
<!-- Safe: 'android:exported' explicitly set --> <activity
50
50
android : name =" .Activity"
74
74
<action android : name =" android.intent.action.DOCUMENTS_PROVIDER" />
75
75
76
76
</intent-filter >
77
- </service >
77
+ </provider >
78
+
79
+ <!-- Safe: 'application' element has 'permission' attribute --> <provider
80
+ android : name =" .MyCloudProvider"
81
+ android : readPermission =" .TestRead" >
82
+ <intent-filter >
83
+ <action android : name =" android.intent.action.DOCUMENTS_PROVIDER" />
84
+
85
+ </intent-filter >
86
+ </provider >
87
+
88
+ <!-- Safe: 'application' element has 'permission' attribute --> <provider
89
+ android : name =" .MyCloudProvider"
90
+ android : writePermission =" .TestWrite" >
91
+ <intent-filter >
92
+ <action android : name =" android.intent.action.DOCUMENTS_PROVIDER" />
93
+
94
+ </intent-filter >
95
+ </provider >
78
96
79
97
<!-- Safe: has category 'android.intent.category.LAUNCHER' --> <activity
80
98
android : name =" .Activity" >
Original file line number Diff line number Diff line change 43
43
<action android : name =" android.intent.action.DOCUMENTS_PROVIDER" />
44
44
45
45
</intent-filter >
46
- </service >
46
+ </provider >
47
47
48
48
<!-- Safe: 'android:exported' explicitly set --> <activity
49
49
android : name =" .Activity"
73
73
<action android : name =" android.intent.action.DOCUMENTS_PROVIDER" />
74
74
75
75
</intent-filter >
76
- </service >
76
+ </provider >
77
+
78
+ <!-- Safe: in build directory --> <provider
79
+ android : name =" .MyCloudProvider"
80
+ android : readPermission =" .TestRead" >
81
+ <intent-filter >
82
+ <action android : name =" android.intent.action.DOCUMENTS_PROVIDER" />
83
+
84
+ </intent-filter >
85
+ </provider >
86
+
87
+ <!-- Safe: in build directory --> <provider
88
+ android : name =" .MyCloudProvider"
89
+ android : writePermission =" .TestWrite" >
90
+ <intent-filter >
91
+ <action android : name =" android.intent.action.DOCUMENTS_PROVIDER" />
92
+
93
+ </intent-filter >
94
+ </provider >
77
95
78
96
<!-- Safe: has category 'android.intent.category.LAUNCHER' --> <activity
79
97
android : name =" .Activity" >
You can’t perform that action at this time.
0 commit comments