From 1c2d75899633c0a57e076407b42781550138f85a Mon Sep 17 00:00:00 2001 From: Jooyung Han Date: Wed, 8 Sep 2021 22:46:42 +0900 Subject: [PATCH] Update microdroid's built-in apexes i18n apex is non-updatable and has no-hashtree in its payload image. Without hashtree, apex can't be dm-verity mounted. So microroid should have the apex as a built-in (in /system/apex) so that it can be directly loop-mounted. Bug: n/a Test: MicrodroidHostTestCases Change-Id: Iea5d9cd7b39e909259ed452258395cfb20804f70 --- microdroid/Android.bp | 3 +++ virtualizationservice/src/payload.rs | 3 +-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/microdroid/Android.bp b/microdroid/Android.bp index 1638f6fc..e4334cb3 100644 --- a/microdroid/Android.bp +++ b/microdroid/Android.bp @@ -101,7 +101,10 @@ android_system_image { multilib: { common: { deps: [ + // non-updatable & mandatory apexes + "com.android.i18n", "com.android.runtime", + "microdroid_plat_sepolicy.cil", "microdroid_plat_mapping_file", ], diff --git a/virtualizationservice/src/payload.rs b/virtualizationservice/src/payload.rs index 75ba6c77..9662fa35 100644 --- a/virtualizationservice/src/payload.rs +++ b/virtualizationservice/src/payload.rs @@ -31,8 +31,7 @@ use vmconfig::open_parcel_file; /// The list of APEXes which microdroid requires. // TODO(b/192200378) move this to microdroid.json? -const MICRODROID_REQUIRED_APEXES: [&str; 3] = - ["com.android.adbd", "com.android.i18n", "com.android.os.statsd"]; +const MICRODROID_REQUIRED_APEXES: [&str; 2] = ["com.android.adbd", "com.android.os.statsd"]; const APEX_INFO_LIST_PATH: &str = "/apex/apex-info-list.xml";