File tree Expand file tree Collapse file tree
lib/semmle/code/java/security
test/query-tests/security/CWE-926 Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,10 +9,10 @@ class ImplicitlyExportedAndroidComponent extends AndroidComponentXmlElement {
99 this .hasAnIntentFilterElement ( ) and
1010 not this .getAnIntentFilterElement ( ) .getACategoryElement ( ) .getCategoryName ( ) =
1111 "android.intent.category.LAUNCHER" and
12+ not this .getAnIntentFilterElement ( ) .getAnActionElement ( ) .getActionName ( ) =
13+ "android.intent.action.MAIN" and
1214 not this .requiresPermissions ( ) and
1315 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 ( )
1717 }
1818}
Original file line number Diff line number Diff line change 102102 </intent-filter >
103103 </activity >
104104
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+
105112 </application >
106113
107114</manifest >
You can’t perform that action at this time.
0 commit comments