summaryrefslogtreecommitdiff
path: root/telephony/java/com/android
diff options
context:
space:
mode:
authorMichele Berionne <mberionne@google.com>2020-11-19 22:46:42 +0000
committerMichele Berionne <mberionne@google.com>2021-02-22 19:43:09 +0000
commitae77970ae1bcb8efd7171f285b6e9f2728797674 (patch)
tree50cddacefa10836ea25dd5d102988cff269f4004 /telephony/java/com/android
parent1c276e759153e1eb987c3b5a7a50fee04e1d7239 (diff)
Add new API for unattended reboot.
CTS-Coverage-Bug: 179310594 Bug: 160784387 Test: manual Change-Id: I59b7ff7afec9846a114ee8d20f14d22cf69f0680 Merged-In: I59b7ff7afec9846a114ee8d20f14d22cf69f0680 (cherry picked from commit 726fa0a5f400f95558dcb31effbb98fee67b54ed)
Diffstat (limited to 'telephony/java/com/android')
-rw-r--r--telephony/java/com/android/internal/telephony/ITelephony.aidl14
1 files changed, 14 insertions, 0 deletions
diff --git a/telephony/java/com/android/internal/telephony/ITelephony.aidl b/telephony/java/com/android/internal/telephony/ITelephony.aidl
index 77d46f4c39cd..e270b8dc3fe4 100644
--- a/telephony/java/com/android/internal/telephony/ITelephony.aidl
+++ b/telephony/java/com/android/internal/telephony/ITelephony.aidl
@@ -2414,4 +2414,18 @@ interface ITelephony {
*/
void clearSignalStrengthUpdateRequest(int subId, in SignalStrengthUpdateRequest request,
String callingPackage);
+
+ /**
+ * Prepare TelephonyManager for an unattended reboot. The reboot is
+ * required to be done shortly after the API is invoked.
+ *
+ * Requires system privileges.
+ *
+ * @return {@link #PREPARE_UNATTENDED_REBOOT_SUCCESS} in case of success.
+ * {@link #PREPARE_UNATTENDED_REBOOT_PIN_REQUIRED} if the device contains
+ * at least one SIM card for which the user needs to manually enter the PIN
+ * code after the reboot. {@link #PREPARE_UNATTENDED_REBOOT_ERROR} in case
+ * of error.
+ */
+ int prepareForUnattendedReboot();
}