mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
Test files for Activity Alias
This commit is contained in:
@@ -0,0 +1,58 @@
|
||||
<?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>
|
||||
|
||||
</application>
|
||||
|
||||
</manifest>
|
||||
@@ -0,0 +1,3 @@
|
||||
| .AnotherAlias | .AnotherActivity |
|
||||
| .MainAlias | .MainActivity |
|
||||
| .SecondAlias | .MainActivity |
|
||||
@@ -0,0 +1,6 @@
|
||||
import java
|
||||
|
||||
import semmle.code.xml.AndroidManifest
|
||||
|
||||
from AndroidActivityAliasXmlElement alias
|
||||
select alias.getComponentName(), alias.getTarget().getComponentName()
|
||||
Reference in New Issue
Block a user