xref: /aosp_15_r20/frameworks/base/tests/UsageStatsTest/AndroidManifest.xml (revision d57664e9bc4670b3ecf6748a746a57c557b6bc9e)
1*d57664e9SAndroid Build Coastguard Worker<?xml version="1.0" encoding="utf-8"?>
2*d57664e9SAndroid Build Coastguard Worker<!--
3*d57664e9SAndroid Build Coastguard Worker  Note: Add android:sharedUserId="android.uid.system" to the root element to simulate the system UID
4*d57664e9SAndroid Build Coastguard Worker  caller case.
5*d57664e9SAndroid Build Coastguard Worker-->
6*d57664e9SAndroid Build Coastguard Worker
7*d57664e9SAndroid Build Coastguard Worker<manifest xmlns:android="http://schemas.android.com/apk/res/android"
8*d57664e9SAndroid Build Coastguard Worker     package="com.android.tests.usagestats">
9*d57664e9SAndroid Build Coastguard Worker
10*d57664e9SAndroid Build Coastguard Worker    <uses-permission android:name="android.permission.PACKAGE_USAGE_STATS"/>
11*d57664e9SAndroid Build Coastguard Worker    <uses-permission android:name="android.permission.OBSERVE_APP_USAGE"/>
12*d57664e9SAndroid Build Coastguard Worker    <uses-permission android:name="android.permission.SUSPEND_APPS"/>
13*d57664e9SAndroid Build Coastguard Worker
14*d57664e9SAndroid Build Coastguard Worker    <application android:label="Usage Access Test">
15*d57664e9SAndroid Build Coastguard Worker        <activity android:name=".UsageStatsActivity"
16*d57664e9SAndroid Build Coastguard Worker             android:label="Device Usage History"
17*d57664e9SAndroid Build Coastguard Worker             android:exported="true">
18*d57664e9SAndroid Build Coastguard Worker            <intent-filter>
19*d57664e9SAndroid Build Coastguard Worker                <action android:name="android.intent.action.MAIN"/>
20*d57664e9SAndroid Build Coastguard Worker                <category android:name="android.intent.category.LAUNCHER"/>
21*d57664e9SAndroid Build Coastguard Worker            </intent-filter>
22*d57664e9SAndroid Build Coastguard Worker        </activity>
23*d57664e9SAndroid Build Coastguard Worker
24*d57664e9SAndroid Build Coastguard Worker        <activity android:name=".UsageLogActivity"/>
25*d57664e9SAndroid Build Coastguard Worker
26*d57664e9SAndroid Build Coastguard Worker    </application>
27*d57664e9SAndroid Build Coastguard Worker</manifest>
28