android-activity-alias

How to start activity-alias of another app which has permission?

自古美人都是妖i 提交于 2021-01-28 22:23:57
问题 I have an app which has an activity and activity-alias. I am trying to call this activity from another app through activity-alias but it crashes when i add permission in activity-alias. If no permission is added, it works fine. <permission android:name="com.USE_SASETTINGS" android:protectionLevel="normal" /> <activity android:name=".DemoActivity" android:exported="true"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category

Extract / distinguish ActivityAlias name from TargetActivity

自古美人都是妖i 提交于 2019-12-08 16:03:24
问题 I have multiple ActivityAliases which all start one single TargetActivity . Inside of my TargetActivity I try to distinguish the alias that started the TargetActivity . The aliases are defined in Manifest as launchables (intent-filter), which will be displayed as shortcuts on the homescreen. The user will click on the shortcut and android will start the activity, which I defined in the " android:targetActivity=.. " tag. For that I currently extract the componentName from the Intent , which is