Adding alarms and reminders activity
Adding a settings screen to control the permission SCHEDULE_EXACT_ALARM.
Apps can start this by starting a newly introduced API intent
REQUEST_SCHEDULE_EXACT_ALARM.
Test: make -j RunSettingsRoboTests
Manually by UI inspection:
Settings -> Apps -> Special App access -> Alarms and Reminders
or by running:
adb shell am start -a android.settings.REQUEST_SCHEDULE_EXACT_ALARM
Bug: 171306433
Bug: 171305516
Change-Id: I1293d38fc50a22b2af46f80ab24f676ed632f964
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index e5a9db4..86d7992 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -3066,6 +3066,33 @@
</activity>
<activity
+ android:name="Settings$AlarmsAndRemindersActivity"
+ android:exported="true"
+ android:label="@string/alarms_and_reminders_label">
+ <intent-filter android:priority="1">
+ <action android:name="android.settings.REQUEST_SCHEDULE_EXACT_ALARM" />
+ <category android:name="android.intent.category.DEFAULT" />
+ </intent-filter>
+ <meta-data android:name="com.android.settings.FRAGMENT_CLASS"
+ android:value="com.android.settings.applications.manageapplications.ManageApplications" />
+ <meta-data android:name="com.android.settings.PRIMARY_PROFILE_CONTROLLED"
+ android:value="true" />
+ </activity>
+
+ <activity
+ android:name="Settings$AlarmsAndRemindersAppActivity"
+ android:exported="true"
+ android:label="@string/alarms_and_reminders_label">
+ <intent-filter android:priority="1">
+ <action android:name="android.settings.REQUEST_SCHEDULE_EXACT_ALARM" />
+ <category android:name="android.intent.category.DEFAULT" />
+ <data android:scheme="package" />
+ </intent-filter>
+ <meta-data android:name="com.android.settings.FRAGMENT_CLASS"
+ android:value="com.android.settings.applications.appinfo.AlarmsAndRemindersDetails" />
+ </activity>
+
+ <activity
android:name="Settings$ManageExternalSourcesActivity"
android:exported="true"
android:label="@string/install_other_apps">