eeb2c7e712
Improve the warning logs when setting up preferred activities to help identify when there are issues and what they are. Also improve the algorithm a little to still apply permissions when resetting them and there are additional third party apps, as long as the additional app is something like another browser and the preferred activity being set is more specific (has a better match). And add an example of using manifest-based preferred activities in to ActivityTest -- and yes it DOES work! :p Change-Id: I1ff39e03a5df6526206e0c3882085396b355d814
68 lines
3.3 KiB
XML
68 lines
3.3 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- Copyright (C) 2008 The Android Open Source Project
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
-->
|
|
|
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
|
package="com.google.android.test.activity">
|
|
<uses-permission android:name="android.permission.GET_TASKS" />
|
|
<uses-permission android:name="android.permission.REORDER_TASKS" />
|
|
<uses-permission android:name="android.permission.REMOVE_TASKS" />
|
|
<uses-permission android:name="android.permission.READ_FRAME_BUFFER" />
|
|
<uses-permission android:name="android.permission.INTERACT_ACROSS_USERS" />
|
|
<uses-permission android:name="android.permission.INTERACT_ACROSS_USERS_FULL" />
|
|
<uses-permission android:name="android.permission.MANAGE_USERS" />
|
|
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />
|
|
<application android:label="ActivityTest">
|
|
<activity android:name="ActivityTestMain">
|
|
<intent-filter>
|
|
<action android:name="android.intent.action.MAIN" />
|
|
<category android:name="android.intent.category.LAUNCHER" />
|
|
</intent-filter>
|
|
<intent-filter>
|
|
<action android:name="android.intent.action.VIEW" />
|
|
<category android:name="android.intent.category.DEFAULT" />
|
|
<category android:name="android.intent.category.BROWSABLE" />
|
|
<data android:scheme="http" android:host="www.angryredplanet.com"
|
|
android:pathPrefix="" />
|
|
</intent-filter>
|
|
<preferred>
|
|
<action android:name="android.intent.action.VIEW" />
|
|
<category android:name="android.intent.category.DEFAULT" />
|
|
<category android:name="android.intent.category.BROWSABLE" />
|
|
<data android:scheme="http" android:host="www.angryredplanet.com"
|
|
android:pathPrefix="" />
|
|
</preferred>
|
|
</activity>
|
|
<activity android:name="SpamActivity" android:label="Spam!"
|
|
android:documentLaunchMode="always">
|
|
</activity>
|
|
<activity android:name="DocActivity" android:label="Some doc">
|
|
</activity>
|
|
<service android:name="SingleUserService"
|
|
android:singleUser="true" android:exported="true">
|
|
</service>
|
|
<service android:name="ServiceUserTarget">
|
|
</service>
|
|
<receiver android:name="UserTarget">
|
|
</receiver>
|
|
<receiver android:name="SingleUserReceiver"
|
|
android:singleUser="true" android:exported="true" >
|
|
</receiver>
|
|
<provider android:name="SingleUserProvider"
|
|
android:authorities="com.google.android.test.activity.single_user"
|
|
android:singleUser="true" android:exported="true" />
|
|
</application>
|
|
</manifest>
|