DeviceOwnerReceiver: Add minimal support for device owner API

SessionInstaller can commit silent installs if the app is device owner. Implemented on
request of users.

This still needs user to set the app as device owner manually using ADB (only possible
if the device has no accounts setup yet).

Co-authored-by: Syuugo <pub@s1204.me>
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
Aayush Gupta
2024-04-24 15:41:26 +05:30
parent 00532f200e
commit 933b7b6886
7 changed files with 62 additions and 0 deletions

View File

@@ -439,4 +439,9 @@
<!-- DownloadPreference -->
<string name="pref_download_cache_title">Keep downloads cache</string>
<string name="pref_download_cache_summary">How long to preserve downloads cache (failed, cancelled and completed), in hours</string>
<!-- InstallationPreference -->
<string name="pref_clear_device_owner_title">Clear device owner</string>
<string name="pref_clear_device_owner_summary">Removes Aurora Store as the device owner app</string>
<string name="pref_clear_device_owner_desc">This will revoke session installer\'s permission to silently install app. Proceed with clearing device ownership?</string>
</resources>