mirror of
https://github.com/github/codeql.git
synced 2026-04-28 18:25:24 +02:00
Merge branch 'main' into jcogs33/mad-metrics-query
This commit is contained in:
@@ -1 +1,2 @@
|
||||
| exprs.kt:278:52:278:66 | <error expr> | ErrorExpr | unexpected dead end |
|
||||
| exprs.kt:278:52:278:66 | { ... } | BlockStmt | unexpected dead end |
|
||||
|
||||
@@ -0,0 +1,85 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
package="com.example.myapplication">
|
||||
|
||||
<application
|
||||
android:allowBackup="false"
|
||||
android:dataExtractionRules="@xml/data_extraction_rules"
|
||||
android:fullBackupContent="@xml/backup_rules"
|
||||
android:icon="@mipmap/ic_launcher"
|
||||
android:label="@string/app_name"
|
||||
android:roundIcon="@mipmap/ic_launcher_round"
|
||||
android:supportsRtl="true"
|
||||
|
||||
android:theme="@style/Theme.MyApplication"
|
||||
tools:targetApi="31">
|
||||
|
||||
<activity
|
||||
android:name=".MainActivity"
|
||||
android:exported="true"
|
||||
android:label="@string/app_name"
|
||||
android:theme="@style/Theme.MyApplication.NoActionBar">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
|
||||
<category android:name="android.intent.category.LAUNCHER" />
|
||||
</intent-filter>
|
||||
</activity>
|
||||
|
||||
<activity
|
||||
android:name=".AnotherActivity"
|
||||
android:exported="true"
|
||||
android:label="@string/app_name"
|
||||
android:theme="@style/Theme.MyApplication.NoActionBar">
|
||||
</activity>
|
||||
|
||||
|
||||
<activity-alias
|
||||
android:name=".MainAlias"
|
||||
android:exported="true"
|
||||
android:label="@string/app_name"
|
||||
android:targetActivity=".MainActivity"></activity-alias>
|
||||
|
||||
<activity-alias
|
||||
android:name=".SecondAlias"
|
||||
android:exported="true"
|
||||
android:label="@string/app_name"
|
||||
android:targetActivity=".MainActivity"></activity-alias>
|
||||
|
||||
<activity-alias
|
||||
android:name=".AnotherAlias"
|
||||
android:exported="true"
|
||||
android:label="@string/app_name"
|
||||
android:targetActivity="com.example.myapplication.AnotherActivity"></activity-alias>
|
||||
<activity
|
||||
android:name=".ExampleActivity"
|
||||
android:exported="false"
|
||||
android:label="@string/app_name"
|
||||
></activity>
|
||||
|
||||
<activity-alias
|
||||
android:name=".ExampleAlias"
|
||||
android:exported="true"
|
||||
android:label="@string/app_name"
|
||||
android:targetActivity=".ExampleActivity">
|
||||
</activity-alias>
|
||||
|
||||
<activity
|
||||
android:name=".Example2Activity"
|
||||
android:exported="false"
|
||||
android:label="@string/app_name">
|
||||
</activity>
|
||||
|
||||
<activity-alias
|
||||
android:name=".Example2Alias"
|
||||
android:label="@string/app_name"
|
||||
android:targetActivity=".Example2Activity">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN"></action>
|
||||
<action android:name="android.intent.category.LAUNCHER"></action>
|
||||
</intent-filter>
|
||||
</activity-alias>
|
||||
</application>
|
||||
|
||||
</manifest>
|
||||
@@ -0,0 +1,7 @@
|
||||
package com.example.myapplication;
|
||||
|
||||
import android.app.Activity;
|
||||
|
||||
public class Example2Activity extends Activity {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package com.example.myapplication;
|
||||
|
||||
import android.app.Activity;
|
||||
|
||||
public class ExampleActivity extends Activity {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
| .AnotherAlias | .AnotherActivity |
|
||||
| .Example2Alias | .Example2Activity |
|
||||
| .ExampleAlias | .ExampleActivity |
|
||||
| .MainAlias | .MainActivity |
|
||||
| .SecondAlias | .MainActivity |
|
||||
@@ -0,0 +1,5 @@
|
||||
import java
|
||||
import semmle.code.xml.AndroidManifest
|
||||
|
||||
from AndroidActivityAliasXmlElement alias
|
||||
select alias.getComponentName(), alias.getTarget().getComponentName()
|
||||
@@ -0,0 +1,4 @@
|
||||
| Example2Activity.java:5:14:5:29 | Example2Activity | AndroidManifest.xml:68:9:72:20 | activity |
|
||||
| Example2Activity.java:5:14:5:29 | Example2Activity | AndroidManifest.xml:74:9:82:26 | activity-alias |
|
||||
| ExampleActivity.java:5:14:5:28 | ExampleActivity | AndroidManifest.xml:55:9:59:25 | activity |
|
||||
| ExampleActivity.java:5:14:5:28 | ExampleActivity | AndroidManifest.xml:61:9:66:26 | activity-alias |
|
||||
@@ -0,0 +1,6 @@
|
||||
import java
|
||||
import semmle.code.java.frameworks.android.Android
|
||||
|
||||
from ExportableAndroidComponent component
|
||||
where component.isExported()
|
||||
select component, component.getAndroidComponentXmlElement()
|
||||
@@ -0,0 +1 @@
|
||||
//semmle-extractor-options: --javac-args -cp ${testdir}/../../../../stubs/google-android-9.0.0/
|
||||
@@ -1,25 +1,11 @@
|
||||
| p;AbstractImplOfExternalSPI;AbstractImplOfExternalSPI;();generated |
|
||||
| p;Factory;getIntValue;();generated |
|
||||
| p;FinalClass;FinalClass;();generated |
|
||||
| p;FinalClass;returnsConstant;();generated |
|
||||
| p;FluentAPI$Inner;Inner;();generated |
|
||||
| p;FluentAPI$Inner;notThis;(String);generated |
|
||||
| p;FluentAPI;FluentAPI;();generated |
|
||||
| p;ImmutablePojo;getX;();generated |
|
||||
| p;ImplOfExternalSPI;ImplOfExternalSPI;();generated |
|
||||
| p;InnerClasses$CaptureMe;CaptureMe;();generated |
|
||||
| p;InnerClasses;InnerClasses;();generated |
|
||||
| p;InnerHolder;InnerHolder;();generated |
|
||||
| p;Joiner;length;();generated |
|
||||
| p;MultipleImpls$Strat1;Strat1;();generated |
|
||||
| p;MultipleImpls$Strat2;Strat2;();generated |
|
||||
| p;MultipleImpls$Strat3;Strat3;();generated |
|
||||
| p;MultipleImpls$Strategy;doSomething;(String);generated |
|
||||
| p;MultipleImpls;MultipleImpls;();generated |
|
||||
| p;ParamFlow;ParamFlow;();generated |
|
||||
| p;ParamFlow;ignorePrimitiveReturnValue;(String);generated |
|
||||
| p;ParamFlow;mapType;(Class);generated |
|
||||
| p;Pojo;Pojo;();generated |
|
||||
| p;Pojo;doNotSetValue;(String);generated |
|
||||
| p;Pojo;getBigDecimal;();generated |
|
||||
| p;Pojo;getBigInt;();generated |
|
||||
@@ -31,13 +17,10 @@
|
||||
| p;Pojo;getPrimitiveArray;();generated |
|
||||
| p;PrivateFlowViaPublicInterface$SPI;openStream;();generated |
|
||||
| p;PrivateFlowViaPublicInterface$SPI;openStreamNone;();generated |
|
||||
| p;PrivateFlowViaPublicInterface;PrivateFlowViaPublicInterface;();generated |
|
||||
| p;PrivateFlowViaPublicInterface;createAnSPIWithoutTrackingFile;(File);generated |
|
||||
| p;Sinks;Sinks;();generated |
|
||||
| p;Sinks;copyFileToDirectory;(Path,Path,CopyOption[]);generated |
|
||||
| p;Sinks;propagate;(String);generated |
|
||||
| p;Sinks;readUrl;(URL,Charset);generated |
|
||||
| p;Sources;Sources;();generated |
|
||||
| p;Sources;readUrl;(URL);generated |
|
||||
| p;Sources;socketStream;();generated |
|
||||
| p;Sources;sourceToParameter;(InputStream[],List);generated |
|
||||
|
||||
Reference in New Issue
Block a user