Teach NetworkPolicy limits to "snooze" when requested by user, and notify with both dialog and notification. Register for network alerts through NMS to trigger updates immediately instead of waiting for next stats update. Enforce that all NetworkPolicy are unique on a template basis, and move SCREEN_ON/OFF broadcasts to background thread. Launch SystemUI and Settings directly instead of using actions, and include full NetworkTemplate in extras. Tests to verify notification and snooze behavior. Bug: 5057979, 5023579, 4723336, 5045721 Change-Id: I03724beff94a7c0547cb5220431ba8d4cd44d077
99 lines
4.0 KiB
XML
99 lines
4.0 KiB
XML
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
|
package="com.android.systemui"
|
|
android:sharedUserId="android.uid.system"
|
|
android:process="system"
|
|
>
|
|
|
|
<uses-permission android:name="android.permission.STATUS_BAR_SERVICE" />
|
|
<uses-permission android:name="android.permission.BLUETOOTH" />
|
|
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
|
|
<uses-permission android:name="android.permission.GET_TASKS" />
|
|
<uses-permission android:name="android.permission.MANAGE_USB" />
|
|
|
|
<application
|
|
android:persistent="true"
|
|
android:allowClearUserData="false"
|
|
android:hardwareAccelerated="true"
|
|
android:label="@string/app_label"
|
|
android:icon="@drawable/ic_launcher_settings">
|
|
|
|
<!-- Broadcast receiver that gets the broadcast at boot time and starts
|
|
up everything else.
|
|
TODO: Should have an android:permission attribute
|
|
-->
|
|
<service android:name="SystemUIService"
|
|
android:exported="true"
|
|
/>
|
|
|
|
<!-- started from PhoneWindowManager
|
|
TODO: Should have an android:permission attribute -->
|
|
<service android:name=".screenshot.TakeScreenshotService"
|
|
android:exported="false" />
|
|
|
|
<service android:name=".LoadAverageService"
|
|
android:exported="true" />
|
|
|
|
<receiver android:name=".BootReceiver" >
|
|
<intent-filter>
|
|
<action android:name="android.intent.action.BOOT_COMPLETED" />
|
|
</intent-filter>
|
|
</receiver>
|
|
|
|
<activity android:name=".usb.UsbStorageActivity"
|
|
android:excludeFromRecents="true">
|
|
</activity>
|
|
<activity android:name="com.android.internal.app.ExternalMediaFormatActivity"
|
|
android:theme="@*android:style/Theme.Dialog.Alert"
|
|
android:excludeFromRecents="true">
|
|
</activity>
|
|
|
|
<!-- started from UsbDeviceSettingsManager -->
|
|
<activity android:name=".usb.UsbConfirmActivity"
|
|
android:exported="true"
|
|
android:permission="android.permission.MANAGE_USB"
|
|
android:theme="@*android:style/Theme.Holo.Dialog.Alert"
|
|
android:finishOnCloseSystemDialogs="true"
|
|
android:excludeFromRecents="true">
|
|
</activity>
|
|
|
|
<!-- started from UsbDeviceSettingsManager -->
|
|
<activity android:name=".usb.UsbPermissionActivity"
|
|
android:exported="true"
|
|
android:permission="android.permission.MANAGE_USB"
|
|
android:theme="@*android:style/Theme.Holo.Dialog.Alert"
|
|
android:finishOnCloseSystemDialogs="true"
|
|
android:excludeFromRecents="true">
|
|
</activity>
|
|
|
|
<!-- started from UsbDeviceSettingsManager -->
|
|
<activity android:name=".usb.UsbResolverActivity"
|
|
android:exported="true"
|
|
android:permission="android.permission.MANAGE_USB"
|
|
android:theme="@*android:style/Theme.Holo.Dialog.Alert"
|
|
android:finishOnCloseSystemDialogs="true"
|
|
android:excludeFromRecents="true">
|
|
</activity>
|
|
|
|
<!-- started from UsbDeviceSettingsManager -->
|
|
<activity android:name=".usb.UsbAccessoryUriActivity"
|
|
android:exported="true"
|
|
android:permission="android.permission.MANAGE_USB"
|
|
android:theme="@*android:style/Theme.Holo.Dialog.Alert"
|
|
android:finishOnCloseSystemDialogs="true"
|
|
android:excludeFromRecents="true">
|
|
</activity>
|
|
|
|
<!-- started from NetworkPolicyManagerService -->
|
|
<activity
|
|
android:name=".net.NetworkOverLimitActivity"
|
|
android:exported="true"
|
|
android:permission="android.permission.MANAGE_NETWORK_POLICY"
|
|
android:theme="@android:style/Theme.Holo.Panel"
|
|
android:finishOnCloseSystemDialogs="true"
|
|
android:launchMode="singleTop"
|
|
android:taskAffinity="com.android.systemui.net"
|
|
android:excludeFromRecents="true" />
|
|
|
|
</application>
|
|
</manifest>
|