diff options
author | Nikita Ioffe <ioffe@google.com> | 2021-07-15 14:29:00 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2021-07-15 14:29:00 +0000 |
commit | 187f53597fc52b8a4b7763125a664dc99cdd1f7b (patch) | |
tree | 793141ba0740f623e9815c883fbc50e11c79c523 | |
parent | 36eaa49ffd1383c74e08a04241f9a2d647d1d08d (diff) | |
parent | 35943c235058fbffbb0446c6137a6ae7a48a5a9d (diff) | |
download | apex-187f53597fc52b8a4b7763125a664dc99cdd1f7b.tar.gz |
Update apex shims in preparation for rebootless update CTS tests am: 35943c2350
Original change: https://googleplex-android-review.googlesource.com/c/platform/system/apex/+/15286687
Change-Id: Iba243dbe24e87c0d77cac27f60a3da59cbe151ff
-rw-r--r-- | shim/build/Android.bp | 28 | ||||
-rw-r--r-- | shim/build/manifest_not_pre_installed.json | 3 | ||||
-rw-r--r-- | shim/build/manifest_v2_with_post_install_hook.json | 3 | ||||
-rw-r--r-- | shim/build/manifest_v2_with_pre_install_hook.json | 3 |
4 files changed, 25 insertions, 12 deletions
diff --git a/shim/build/Android.bp b/shim/build/Android.bp index 830cbe16..2fa99bf5 100644 --- a/shim/build/Android.bp +++ b/shim/build/Android.bp @@ -101,7 +101,8 @@ apex { apex { name: "com.android.apex.cts.shim.v2_sign_payload_with_different_key", - manifest: "manifest_v2.json", + // Use manifest_v2_rebootless to also re-use this APEX in the rebootless update test case. + manifest: "manifest_v2_rebootless.json", androidManifest: "AndroidManifest.xml", file_contexts: ":apex.test-file_contexts", key: "com.android.apex.cts.shim.debug.key", @@ -139,7 +140,8 @@ apex { apex { name: "com.android.apex.cts.shim.v2_unsigned_payload", - manifest: "manifest_v2.json", + // Use manifest_v2_rebootless to also re-use this APEX in the rebootless update test case. + manifest: "manifest_v2_rebootless.json", androidManifest: "AndroidManifest.xml", file_contexts: ":apex.test-file_contexts", key: "com.android.apex.cts.shim.key", @@ -154,7 +156,8 @@ apex { override_apex { name: "com.android.apex.cts.shim.v2_different_package_name", package_name: "com.android.apex.cts.shim.different", - base: "com.android.apex.cts.shim.v2", + // Use rebootless APEX to re-use this APEX in the rebootless update test case. + base: "com.android.apex.cts.shim.v2_rebootless", } genrule { @@ -174,7 +177,8 @@ prebuilt_etc { // to stage it should fail. apex { name: "com.android.apex.cts.shim.v2_wrong_sha", - manifest: "manifest_v2.json", + // Use manifest_v2_rebootless to also re-use this APEX in the rebootless update test case. + manifest: "manifest_v2_rebootless.json", androidManifest: "AndroidManifest.xml", file_contexts: ":apex.test-file_contexts", key: "com.android.apex.cts.shim.key", @@ -192,7 +196,8 @@ prebuilt_etc { apex { name: "com.android.apex.cts.shim.v2_additional_file", - manifest: "manifest_v2.json", + // Use manifest_v2_rebootless to also re-use this APEX in the rebootless update test case. + manifest: "manifest_v2_rebootless.json", androidManifest: "AndroidManifest.xml", file_contexts: ":apex.test-file_contexts", key: "com.android.apex.cts.shim.key", @@ -211,7 +216,8 @@ prebuilt_etc { apex { name: "com.android.apex.cts.shim.v2_additional_folder", - manifest: "manifest_v2.json", + // Use manifest_v2_rebootless to also re-use this APEX in the rebootless update test case. + manifest: "manifest_v2_rebootless.json", androidManifest: "AndroidManifest.xml", file_contexts: ":apex.test-file_contexts", key: "com.android.apex.cts.shim.key", @@ -261,6 +267,7 @@ genrule { ":com.android.apex.cts.shim.v2_apk_in_apex_sdk_target_p", ":com.android.apex.cts.shim.v2_rebootless", ":com.android.apex.cts.shim.v3", + ":com.android.apex.cts.shim.v3_rebootless", ":com.android.apex.cts.shim.v3_signed_bob", ":com.android.apex.cts.shim.v3_signed_bob_rot", ], @@ -335,7 +342,8 @@ apex { apex { name: "com.android.apex.cts.shim.v2_different_certificate", - manifest: "manifest_v2.json", + // Use manifest_v2_rebootless to also re-use this APEX in the rebootless update test case. + manifest: "manifest_v2_rebootless.json", androidManifest: "AndroidManifest.xml", file_contexts: ":apex.test-file_contexts", key: "com.android.apex.cts.shim.key", @@ -521,7 +529,8 @@ genrule { // Apex shim that targets an old sdk (P) apex { name: "com.android.apex.cts.shim.v2_sdk_target_p", - manifest: "manifest_v2.json", + // Use manifest_v2_rebootless to also re-use this APEX in the rebootless update test case. + manifest: "manifest_v2_rebootless.json", androidManifest: "AndroidManifestSdkTargetP.xml", file_contexts: ":apex.test-file_contexts", key: "com.android.apex.cts.shim.key", @@ -547,7 +556,8 @@ apex { // Apex shim with unsigned apk genrule { name: "com.android.apex.cts.shim.v2_unsigned_apk_container", - srcs: [":com.android.apex.cts.shim.v2"], + // Use shim.v2_rebootless to re-use same APEX in the rebootless update test case. + srcs: [":com.android.apex.cts.shim.v2_rebootless"], out: ["com.android.apex.cts.shim.v2_unsigned_apk_container.apex"], cmd: "cp -v $(in) $(out) && zip -d $(out) META-INF*", } diff --git a/shim/build/manifest_not_pre_installed.json b/shim/build/manifest_not_pre_installed.json index 078e1aec..6653f8da 100644 --- a/shim/build/manifest_not_pre_installed.json +++ b/shim/build/manifest_not_pre_installed.json @@ -1,4 +1,5 @@ { "name": "com.android.apex.cts.shim_not_pre_installed", - "version": 1 + "version": 1, + "supportsRebootlessUpdate": true } diff --git a/shim/build/manifest_v2_with_post_install_hook.json b/shim/build/manifest_v2_with_post_install_hook.json index 7faecd8c..a4e3f019 100644 --- a/shim/build/manifest_v2_with_post_install_hook.json +++ b/shim/build/manifest_v2_with_post_install_hook.json @@ -1,5 +1,6 @@ { "name": "com.android.apex.cts.shim", "version": 2, - "postInstallHook": "/bin/false" + "postInstallHook": "/bin/false", + "supportsRebootlessUpdate": true } diff --git a/shim/build/manifest_v2_with_pre_install_hook.json b/shim/build/manifest_v2_with_pre_install_hook.json index 57bd6203..e2a874c8 100644 --- a/shim/build/manifest_v2_with_pre_install_hook.json +++ b/shim/build/manifest_v2_with_pre_install_hook.json @@ -1,5 +1,6 @@ { "name": "com.android.apex.cts.shim", "version": 2, - "preInstallHook": "/bin/true" + "preInstallHook": "/bin/true", + "supportsRebootlessUpdate": true } |