From be20495f0bce4509c32bce2cdeaac3e3aea0754d Mon Sep 17 00:00:00 2001 From: Yo Chiang Date: Wed, 19 Feb 2020 16:40:46 +0800 Subject: [PATCH] Key revocation check is permissive when device is unlocked imageValidationThrowOrWarning() logs the error as a warning if device bootloader is unlocked, else re-throw the error. Device lock state is queried via PersistentDataBlockManager service. Bug: 128892201 Test: adb shell am start-activity \ -n com.android.dynsystem/com.android.dynsystem.VerificationActivity \ -a android.os.image.action.START_INSTALL \ --el KEY_USERDATA_SIZE 8192 \ -d file:///storage/emulated/0/Download/aosp_arm64-dsu_test.zip \ --es ${IMAGE_KEY} Test: Observe the logcat Change-Id: I895e70d90624afda2bf7cd3b34ea8d21a1702163 --- data/etc/privapp-permissions-platform.xml | 1 + .../AndroidManifest.xml | 1 + .../dynsystem/InstallationAsyncTask.java | 19 ++++++++++++++----- 3 files changed, 16 insertions(+), 5 deletions(-) diff --git a/data/etc/privapp-permissions-platform.xml b/data/etc/privapp-permissions-platform.xml index 821909da24902..e3700d4292774 100644 --- a/data/etc/privapp-permissions-platform.xml +++ b/data/etc/privapp-permissions-platform.xml @@ -377,6 +377,7 @@ applications that come with the platform + diff --git a/packages/DynamicSystemInstallationService/AndroidManifest.xml b/packages/DynamicSystemInstallationService/AndroidManifest.xml index d718eae9293c5..b4d520d7d71ab 100644 --- a/packages/DynamicSystemInstallationService/AndroidManifest.xml +++ b/packages/DynamicSystemInstallationService/AndroidManifest.xml @@ -7,6 +7,7 @@ +