File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed
lib/semmle/code/java/security
test/query-tests/security/CWE-926 Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -9,10 +9,10 @@ class ImplicitlyExportedAndroidComponent extends AndroidComponentXmlElement {
9
9
this .hasAnIntentFilterElement ( ) and
10
10
not this .getAnIntentFilterElement ( ) .getACategoryElement ( ) .getCategoryName ( ) =
11
11
"android.intent.category.LAUNCHER" and
12
+ not this .getAnIntentFilterElement ( ) .getAnActionElement ( ) .getActionName ( ) =
13
+ "android.intent.action.MAIN" and
12
14
not this .requiresPermissions ( ) and
13
15
not this .getParent ( ) .( AndroidApplicationXmlElement ) .requiresPermissions ( ) and
14
- not this .getFile ( ) .( AndroidManifestXmlFile ) .isInBuildDirectory ( ) //and
15
- //not this.getAnIntentFilterElement().getAnActionElement().getActionName() =
16
- // "android.intent.action.MAIN"
16
+ not this .getFile ( ) .( AndroidManifestXmlFile ) .isInBuildDirectory ( )
17
17
}
18
18
}
Original file line number Diff line number Diff line change 102
102
</intent-filter >
103
103
</activity >
104
104
105
+ <!-- Safe: has action 'android.intent.category.MAIN' --> <activity
106
+ android : name =" .Activity" >
107
+ <intent-filter >
108
+ <action android : name =" android.intent.action.MAIN" />
109
+ </intent-filter >
110
+ </activity >
111
+
105
112
</application >
106
113
107
114
</manifest >
You can’t perform that action at this time.
0 commit comments