summaryrefslogtreecommitdiff
path: root/core/res
diff options
context:
space:
mode:
authorJiachen Zhao <zhaojiac@google.com>2020-12-01 17:40:28 -0800
committerTianjie <xunchang@google.com>2021-01-20 11:48:28 -0800
commit91d8ff41d135f971e63ecb59a68cc490fd37544d (patch)
treefa4a198c4ce655d580568c3180db31713a572470 /core/res
parent775a1db2c2a55cb3b8b4442f8d10da9859c9e602 (diff)
Create the ResumeOnRebootService.
This is the base class for service that provides wrapping/unwrapping of the opaque blob needed for ResumeOnReboot operation. The package needs to provide a wrap and unwrap implementation for handling the opaque blob, that's secure even when on device keystore and clock is compromised. This can be achieved by using tamper-resistant hardware such as a secure element with a secure clock, or using a remote server to store and retrieve data and manage timing. Bug: 172780686 Test: atest FrameworksServicesTests:ResumeOnRebootServiceProviderTests Change-Id: I98378be6963194c2e6faef8ebc441066b75a0bbf Merged-In: I98378be6963194c2e6faef8ebc441066b75a0bbf (cherry picked from commit e1f51ddab63a54b7d66d3971b5301b66787e47cf)
Diffstat (limited to 'core/res')
-rw-r--r--core/res/AndroidManifest.xml6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/res/AndroidManifest.xml b/core/res/AndroidManifest.xml
index 714a09d02264..03ef35b80475 100644
--- a/core/res/AndroidManifest.xml
+++ b/core/res/AndroidManifest.xml
@@ -2979,6 +2979,12 @@
<permission android:name="android.permission.RECOVERY"
android:protectionLevel="signature|privileged" />
+ <!-- @SystemApi Allows an application to do certain operations needed for
+ resume on reboot feature.
+ @hide -->
+ <permission android:name="android.permission.BIND_RESUME_ON_REBOOT_SERVICE"
+ android:protectionLevel="signature" />
+
<!-- @SystemApi Allows an application to read system update info.
@hide -->
<permission android:name="android.permission.READ_SYSTEM_UPDATE_INFO"