• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  ~ Copyright (C) 2020 The Android Open Source Project
4  ~
5  ~ Licensed under the Apache License, Version 2.0 (the "License");
6  ~ you may not use this file except in compliance with the License.
7  ~ You may obtain a copy of the License at
8  ~
9  ~      http://www.apache.org/licenses/LICENSE-2.0
10  ~
11  ~ Unless required by applicable law or agreed to in writing, software
12  ~ distributed under the License is distributed on an "AS IS" BASIS,
13  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  ~ See the License for the specific language governing permissions and
15  ~ limitations under the License.
16  -->
17
18<manifest xmlns:android="http://schemas.android.com/apk/res/android"
19          package="com.android.frameworks.core.batterystatsviewer">
20
21    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
22    <uses-permission android:name="android.permission.BATTERY_STATS"/>
23    <uses-permission android:name="android.permission.CHANGE_COMPONENT_ENABLED_STATE"/>
24    <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS"/>
25    <uses-permission android:name="android.permission.QUERY_ALL_PACKAGES"/>
26
27    <application
28        android:theme="@style/Theme"
29        android:icon="@mipmap/ic_launcher"
30        android:roundIcon="@mipmap/ic_launcher_round"
31        android:label="Battery Stats Viewer">
32        <activity android:name=".BatteryConsumerPickerActivity"
33                  android:label="Battery Stats"
34                  android:launchMode="singleTop"
35                  android:exported="true"
36                  android:enabled="false">
37            <intent-filter>
38                <action android:name="android.intent.action.MAIN"/>
39                <category android:name="android.intent.category.LAUNCHER"/>
40            </intent-filter>
41        </activity>
42
43        <activity android:name=".BatteryStatsViewerActivity"
44                  android:label="Battery Stats"
45                  android:parentActivityName=".BatteryConsumerPickerActivity"/>
46
47        <activity android:name=".TrampolineActivity"
48            android:exported="true"
49            android:theme="@android:style/Theme.NoDisplay">
50            <intent-filter>
51                <action android:name="com.android.settings.action.IA_SETTINGS"/>
52                <category android:name="android.intent.category.DEFAULT" />
53            </intent-filter>
54
55            <meta-data android:name="com.android.settings.category"
56                android:value="com.android.settings.category.ia.development" />
57            <meta-data android:name="com.android.settings.title"
58                android:resource="@string/settings_title" />
59            <meta-data android:name="com.android.settings.summary"
60                android:resource="@string/settings_summary" />
61            <meta-data android:name="com.android.settings.group_key"
62                android:value="debug_debugging_category" />
63            <meta-data android:name="com.android.settings.order"
64                android:value="2" />
65        </activity>
66    </application>
67</manifest>
68