Add an automatic storage management job service.
This service runs once a day when plugged in when the device has
under 15% free space remaining. If the FeatureFactory has a
storage management job, it runs the job to begin to free up space
on the device.
This is a temporary landing place and will be refactored very
quickly out of Settings.
Bug: 28600825
Change-Id: Id2ebb42a333b3b4e3daef4e50cf985fe055b85c7
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index 7617c39..112af28 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -2971,6 +2971,22 @@
<action android:name="android.service.quicksettings.action.QS_TILE" />
</intent-filter>
</service>
+
+ <!-- Automatic storage management tasks. -->
+ <service
+ android:name=".deletionhelper.AutomaticStorageManagementJobService"
+ android:label="@string/automatic_storage_manager_service_label"
+ android:permission="android.permission.BIND_JOB_SERVICE"
+ android:enabled="@bool/enable_automatic_storage_management"
+ android:exported="false"/>
+
+ <receiver android:name=".deletionhelper.AutomaticStorageBroadcastReceiver"
+ android:enabled="@bool/enable_automatic_storage_management">
+ <intent-filter>
+ <action android:name="android.intent.action.BOOT_COMPLETED" />
+ </intent-filter>
+ </receiver>
+
<!-- This is the longest AndroidManifest.xml ever. -->
</application>
</manifest>