The Usage Reporting Api allows apps to report usage within the app to platform. Apps with the the OBSERVE_APP_USAGE permission may register observers that use the reported in-app usage. Test: manual (using the included Usage Reporter App) Test: atest CtsUsageStatsTestCases:UsageReportingTest Test: atest FrameworksServicesTests:AppTimeLimitControllerTests Bug: 112486938 Change-Id: Iddd6f0993bbbf68a2032b34d473ef8d67da7747a
23 lines
702 B
XML
23 lines
702 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<!--
|
|
Note: Add android:sharedUserId="android.uid.system" to the root element to simulate the system UID
|
|
caller case.
|
|
-->
|
|
|
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
|
package="com.android.tests.usagereporter"
|
|
>
|
|
|
|
<application android:label="@string/reporter_app">
|
|
<activity android:name="UsageReporterActivity"
|
|
android:label="UsageReporter">
|
|
<intent-filter>
|
|
<action android:name="android.intent.action.MAIN" />
|
|
<category android:name="android.intent.category.LAUNCHER" />
|
|
</intent-filter>
|
|
</activity>
|
|
|
|
</application>
|
|
</manifest>
|