1// Copyright (C) 2019 The Android Open Source Project 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); 4// you may not use this file except in compliance with the License. 5// You may obtain a copy of the License at 6// 7// http://www.apache.org/licenses/LICENSE-2.0 8// 9// Unless required by applicable law or agreed to in writing, software 10// distributed under the License is distributed on an "AS IS" BASIS, 11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12// See the License for the specific language governing permissions and 13// limitations under the License. 14 15package { 16 default_team: "trendy_team_framework_android_packages", 17 default_applicable_licenses: ["Android-Apache-2.0"], 18} 19 20java_test_host { 21 name: "CtsStagedInstallHostTestCases", 22 defaults: ["cts_defaults"], 23 srcs: [ 24 "src/**/*.java", 25 ":apex-info-list", 26 ], 27 libs: [ 28 "cts-tradefed", 29 "cts-shim-host-lib", 30 "tradefed", 31 "truth", 32 "hamcrest", 33 "hamcrest-library", 34 ], 35 static_libs: ["cts-install-lib-host"], 36 data: [ 37 ":deapexer.zip", 38 ], 39 device_common_data: [ 40 ":StagedInstallTest", 41 ], 42 test_suites: [ 43 "cts", 44 "general-tests", 45 "mts", 46 ], 47} 48 49android_test_helper_app { 50 name: "StagedInstallTest", 51 srcs: ["app/src/**/*.java"], 52 manifest: "app/AndroidManifest.xml", 53 java_resources: [ 54 ":ApexKeyRotationTestV2_SignedBob", 55 ":ApexKeyRotationTestV2_SignedBobRot", 56 ":ApexKeyRotationTestV2_SignedBobRotRollback", 57 ":ApexKeyRotationTestV3_SignedBob", 58 ":ApexKeyRotationTestV3_SignedBobRot", 59 ":StagedInstallTestApexV1_NotPreInstalled", 60 ":StagedInstallTestApexV2_AdditionalFile", 61 ":StagedInstallTestApexV2_AdditionalFolder", 62 ":StagedInstallTestApexV2_DifferentCertificate", 63 ":StagedInstallTestApexV2_DifferentPackageName", 64 ":StagedInstallTestApexV2_WithPostInstallHook", 65 ":StagedInstallTestApexV2_WithPreInstallHook", 66 ":StagedInstallTestApexV2_WrongSha", 67 ":StagedInstallTestApexV2_WithoutApkInApex", 68 ":StagedInstallTestAppSamePackageNameAsApex", 69 ":StagedInstallTestApexV2_SdkTargetP", 70 ":StagedInstallTestApexV2_ApkInApexSdkTargetP", 71 ":StagedInstallTestCorruptedApex_b146895998", 72 ":StagedInstallTestApexV2_NoApkSignature", 73 ":StagedInstallTestApexV2_UnsignedPayload", 74 ":StagedInstallTestApexV2_SignPayloadWithDifferentKey", 75 ":StagedInstallTestApexV2_Rebootless", 76 ":StagedInstallTestApexV3_Rebootless", 77 ], 78 static_libs: [ 79 "androidx.test.runner", 80 "androidx.test.core", 81 "truth", 82 "cts-install-lib", 83 ], 84 sdk_version: "test_current", 85 test_suites: ["device-tests"], 86 87} 88 89android_test_helper_app { 90 name: "StagedInstallTestAppSamePackageNameAsApex", 91 92 srcs: ["testdata/apk/src/**/*java"], 93 94 manifest: "testdata/apk/StagedInstallTestAppSamePackageNameAsApex.xml", 95} 96 97prebuilt_apex { 98 name: "ApexKeyRotationTestV2_SignedBob", 99 arch: { 100 arm: { 101 src: "testdata/apex/arm/com.android.apex.cts.shim.v2_signed_bob.apex", 102 }, 103 arm64: { 104 src: "testdata/apex/arm/com.android.apex.cts.shim.v2_signed_bob.apex", 105 }, 106 riscv64: { 107 src: "testdata/apex/riscv64/com.android.apex.cts.shim.v2_signed_bob.apex", 108 }, 109 x86: { 110 src: "testdata/apex/x86/com.android.apex.cts.shim.v2_signed_bob.apex", 111 }, 112 x86_64: { 113 src: "testdata/apex/x86/com.android.apex.cts.shim.v2_signed_bob.apex", 114 }, 115 }, 116 filename: "com.android.apex.cts.shim.v2_signed_bob.apex", 117 installable: false, 118} 119 120prebuilt_apex { 121 name: "ApexKeyRotationTestV2_SignedBobRot", 122 arch: { 123 arm: { 124 src: "testdata/apex/arm/com.android.apex.cts.shim.v2_signed_bob_rot.apex", 125 }, 126 arm64: { 127 src: "testdata/apex/arm/com.android.apex.cts.shim.v2_signed_bob_rot.apex", 128 }, 129 riscv64: { 130 src: "testdata/apex/riscv64/com.android.apex.cts.shim.v2_signed_bob_rot.apex", 131 }, 132 x86: { 133 src: "testdata/apex/x86/com.android.apex.cts.shim.v2_signed_bob_rot.apex", 134 }, 135 x86_64: { 136 src: "testdata/apex/x86/com.android.apex.cts.shim.v2_signed_bob_rot.apex", 137 }, 138 }, 139 filename: "com.android.apex.cts.shim.v2_signed_bob_rot.apex", 140 installable: false, 141} 142 143prebuilt_apex { 144 name: "ApexKeyRotationTestV2_SignedBobRotRollback", 145 arch: { 146 arm: { 147 src: "testdata/apex/arm/com.android.apex.cts.shim.v2_signed_bob_rot_rollback.apex", 148 }, 149 arm64: { 150 src: "testdata/apex/arm/com.android.apex.cts.shim.v2_signed_bob_rot_rollback.apex", 151 }, 152 riscv64: { 153 src: "testdata/apex/riscv64/com.android.apex.cts.shim.v2_signed_bob_rot_rollback.apex", 154 }, 155 x86: { 156 src: "testdata/apex/x86/com.android.apex.cts.shim.v2_signed_bob_rot_rollback.apex", 157 }, 158 x86_64: { 159 src: "testdata/apex/x86/com.android.apex.cts.shim.v2_signed_bob_rot_rollback.apex", 160 }, 161 }, 162 filename: "com.android.apex.cts.shim.v2_signed_bob_rot_rollback.apex", 163 installable: false, 164} 165 166prebuilt_apex { 167 name: "ApexKeyRotationTestV3_SignedBob", 168 arch: { 169 arm: { 170 src: "testdata/apex/arm/com.android.apex.cts.shim.v3_signed_bob.apex", 171 }, 172 arm64: { 173 src: "testdata/apex/arm/com.android.apex.cts.shim.v3_signed_bob.apex", 174 }, 175 riscv64: { 176 src: "testdata/apex/riscv64/com.android.apex.cts.shim.v3_signed_bob.apex", 177 }, 178 x86: { 179 src: "testdata/apex/x86/com.android.apex.cts.shim.v3_signed_bob.apex", 180 }, 181 x86_64: { 182 src: "testdata/apex/x86/com.android.apex.cts.shim.v3_signed_bob.apex", 183 }, 184 }, 185 filename: "com.android.apex.cts.shim.v3_signed_bob.apex", 186 installable: false, 187} 188 189prebuilt_apex { 190 name: "ApexKeyRotationTestV3_SignedBobRot", 191 arch: { 192 arm: { 193 src: "testdata/apex/arm/com.android.apex.cts.shim.v3_signed_bob_rot.apex", 194 }, 195 arm64: { 196 src: "testdata/apex/arm/com.android.apex.cts.shim.v3_signed_bob_rot.apex", 197 }, 198 riscv64: { 199 src: "testdata/apex/riscv64/com.android.apex.cts.shim.v3_signed_bob_rot.apex", 200 }, 201 x86: { 202 src: "testdata/apex/x86/com.android.apex.cts.shim.v3_signed_bob_rot.apex", 203 }, 204 x86_64: { 205 src: "testdata/apex/x86/com.android.apex.cts.shim.v3_signed_bob_rot.apex", 206 }, 207 }, 208 filename: "com.android.apex.cts.shim.v3_signed_bob_rot.apex", 209 installable: false, 210} 211 212prebuilt_apex { 213 name: "StagedInstallTestApexV1", 214 arch: { 215 arm: { 216 src: "testdata/apex/arm/com.android.apex.cts.shim.v1.apex", 217 }, 218 arm64: { 219 src: "testdata/apex/arm/com.android.apex.cts.shim.v1.apex", 220 }, 221 riscv64: { 222 src: "testdata/apex/riscv64/com.android.apex.cts.shim.v1.apex", 223 }, 224 x86: { 225 src: "testdata/apex/x86/com.android.apex.cts.shim.v1.apex", 226 }, 227 x86_64: { 228 src: "testdata/apex/x86/com.android.apex.cts.shim.v1.apex", 229 }, 230 }, 231 filename: "com.android.apex.cts.shim.v1.apex", 232 installable: false, 233} 234 235prebuilt_apex { 236 name: "StagedInstallTestApexV2", 237 arch: { 238 arm: { 239 src: "testdata/apex/arm/com.android.apex.cts.shim.v2.apex", 240 }, 241 arm64: { 242 src: "testdata/apex/arm/com.android.apex.cts.shim.v2.apex", 243 }, 244 riscv64: { 245 src: "testdata/apex/riscv64/com.android.apex.cts.shim.v2.apex", 246 }, 247 x86: { 248 src: "testdata/apex/x86/com.android.apex.cts.shim.v2.apex", 249 }, 250 x86_64: { 251 src: "testdata/apex/x86/com.android.apex.cts.shim.v2.apex", 252 }, 253 }, 254 filename: "com.android.apex.cts.shim.v2.apex", 255 installable: false, 256} 257 258prebuilt_apex { 259 name: "StagedInstallTestApexV3", 260 arch: { 261 arm: { 262 src: "testdata/apex/arm/com.android.apex.cts.shim.v3.apex", 263 }, 264 arm64: { 265 src: "testdata/apex/arm/com.android.apex.cts.shim.v3.apex", 266 }, 267 riscv64: { 268 src: "testdata/apex/riscv64/com.android.apex.cts.shim.v3.apex", 269 }, 270 x86: { 271 src: "testdata/apex/x86/com.android.apex.cts.shim.v3.apex", 272 }, 273 x86_64: { 274 src: "testdata/apex/x86/com.android.apex.cts.shim.v3.apex", 275 }, 276 }, 277 filename: "com.android.apex.cts.shim.v3.apex", 278 installable: false, 279} 280 281prebuilt_apex { 282 name: "StagedInstallTestApexV2_AddApkToApex", 283 arch: { 284 arm: { 285 src: "testdata/apex/arm/com.android.apex.cts.shim.v2_add_apk_to_apex.apex", 286 }, 287 arm64: { 288 src: "testdata/apex/arm/com.android.apex.cts.shim.v2_add_apk_to_apex.apex", 289 }, 290 riscv64: { 291 src: "testdata/apex/riscv64/com.android.apex.cts.shim.v2_add_apk_to_apex.apex", 292 }, 293 x86: { 294 src: "testdata/apex/x86/com.android.apex.cts.shim.v2_add_apk_to_apex.apex", 295 }, 296 x86_64: { 297 src: "testdata/apex/x86/com.android.apex.cts.shim.v2_add_apk_to_apex.apex", 298 }, 299 }, 300 filename: "com.android.apex.cts.shim.v2_add_apk_to_apex.apex", 301 installable: false, 302} 303 304prebuilt_apex { 305 name: "StagedInstallTestApexV2_AdditionalFile", 306 arch: { 307 arm: { 308 src: "testdata/apex/arm/com.android.apex.cts.shim.v2_additional_file.apex", 309 }, 310 arm64: { 311 src: "testdata/apex/arm/com.android.apex.cts.shim.v2_additional_file.apex", 312 }, 313 riscv64: { 314 src: "testdata/apex/riscv64/com.android.apex.cts.shim.v2_additional_file.apex", 315 }, 316 x86: { 317 src: "testdata/apex/x86/com.android.apex.cts.shim.v2_additional_file.apex", 318 }, 319 x86_64: { 320 src: "testdata/apex/x86/com.android.apex.cts.shim.v2_additional_file.apex", 321 }, 322 }, 323 filename: "com.android.apex.cts.shim.v2_additional_file.apex", 324 installable: false, 325} 326 327prebuilt_apex { 328 name: "StagedInstallTestApexV2_AdditionalFolder", 329 arch: { 330 arm: { 331 src: "testdata/apex/arm/com.android.apex.cts.shim.v2_additional_folder.apex", 332 }, 333 arm64: { 334 src: "testdata/apex/arm/com.android.apex.cts.shim.v2_additional_folder.apex", 335 }, 336 riscv64: { 337 src: "testdata/apex/riscv64/com.android.apex.cts.shim.v2_additional_folder.apex", 338 }, 339 x86: { 340 src: "testdata/apex/x86/com.android.apex.cts.shim.v2_additional_folder.apex", 341 }, 342 x86_64: { 343 src: "testdata/apex/x86/com.android.apex.cts.shim.v2_additional_folder.apex", 344 }, 345 }, 346 filename: "com.android.apex.cts.shim.v2_additional_folder.apex", 347 installable: false, 348} 349 350prebuilt_apex { 351 name: "StagedInstallTestApexV2_WithPostInstallHook", 352 arch: { 353 arm: { 354 src: "testdata/apex/arm/com.android.apex.cts.shim.v2_with_post_install_hook.apex", 355 }, 356 arm64: { 357 src: "testdata/apex/arm/com.android.apex.cts.shim.v2_with_post_install_hook.apex", 358 }, 359 riscv64: { 360 src: "testdata/apex/riscv64/com.android.apex.cts.shim.v2_with_post_install_hook.apex", 361 }, 362 x86: { 363 src: "testdata/apex/x86/com.android.apex.cts.shim.v2_with_post_install_hook.apex", 364 }, 365 x86_64: { 366 src: "testdata/apex/x86/com.android.apex.cts.shim.v2_with_post_install_hook.apex", 367 }, 368 }, 369 filename: "com.android.apex.cts.shim.v2_with_post_install_hook.apex", 370 installable: false, 371} 372 373prebuilt_apex { 374 name: "StagedInstallTestApexV2_WithPreInstallHook", 375 arch: { 376 arm: { 377 src: "testdata/apex/arm/com.android.apex.cts.shim.v2_with_pre_install_hook.apex", 378 }, 379 arm64: { 380 src: "testdata/apex/arm/com.android.apex.cts.shim.v2_with_pre_install_hook.apex", 381 }, 382 riscv64: { 383 src: "testdata/apex/riscv64/com.android.apex.cts.shim.v2_with_pre_install_hook.apex", 384 }, 385 x86: { 386 src: "testdata/apex/x86/com.android.apex.cts.shim.v2_with_pre_install_hook.apex", 387 }, 388 x86_64: { 389 src: "testdata/apex/x86/com.android.apex.cts.shim.v2_with_pre_install_hook.apex", 390 }, 391 }, 392 filename: "com.android.apex.cts.shim.v2_with_pre_install_hook.apex", 393 installable: false, 394} 395 396prebuilt_apex { 397 name: "StagedInstallTestApexV2_WrongSha", 398 arch: { 399 arm: { 400 src: "testdata/apex/arm/com.android.apex.cts.shim.v2_wrong_sha.apex", 401 }, 402 arm64: { 403 src: "testdata/apex/arm/com.android.apex.cts.shim.v2_wrong_sha.apex", 404 }, 405 riscv64: { 406 src: "testdata/apex/riscv64/com.android.apex.cts.shim.v2_wrong_sha.apex", 407 }, 408 x86: { 409 src: "testdata/apex/x86/com.android.apex.cts.shim.v2_wrong_sha.apex", 410 }, 411 x86_64: { 412 src: "testdata/apex/x86/com.android.apex.cts.shim.v2_wrong_sha.apex", 413 }, 414 }, 415 filename: "com.android.apex.cts.shim.v2_wrong_sha.apex", 416 installable: false, 417} 418 419prebuilt_apex { 420 name: "StagedInstallTestApexV2_WithoutApkInApex", 421 arch: { 422 arm: { 423 src: "testdata/apex/arm/com.android.apex.cts.shim.v2_without_apk_in_apex.apex", 424 }, 425 arm64: { 426 src: "testdata/apex/arm/com.android.apex.cts.shim.v2_without_apk_in_apex.apex", 427 }, 428 riscv64: { 429 src: "testdata/apex/riscv64/com.android.apex.cts.shim.v2_without_apk_in_apex.apex", 430 }, 431 x86: { 432 src: "testdata/apex/x86/com.android.apex.cts.shim.v2_without_apk_in_apex.apex", 433 }, 434 x86_64: { 435 src: "testdata/apex/x86/com.android.apex.cts.shim.v2_without_apk_in_apex.apex", 436 }, 437 }, 438 filename: "com.android.apex.cts.shim.v2_without_apk_in_apex.apex", 439 installable: false, 440} 441 442prebuilt_apex { 443 name: "StagedInstallTestApexV1_NotPreInstalled", 444 arch: { 445 arm: { 446 src: "testdata/apex/arm/com.android.apex.cts.shim_not_pre_installed.apex", 447 }, 448 arm64: { 449 src: "testdata/apex/arm/com.android.apex.cts.shim_not_pre_installed.apex", 450 }, 451 riscv64: { 452 src: "testdata/apex/riscv64/com.android.apex.cts.shim_not_pre_installed.apex", 453 }, 454 x86: { 455 src: "testdata/apex/x86/com.android.apex.cts.shim_not_pre_installed.apex", 456 }, 457 x86_64: { 458 src: "testdata/apex/x86/com.android.apex.cts.shim_not_pre_installed.apex", 459 }, 460 }, 461 filename: "com.android.apex.cts.shim_not_pre_installed.apex", 462 installable: false, 463} 464 465prebuilt_apex { 466 name: "StagedInstallTestApexV2_DifferentCertificate", 467 arch: { 468 arm: { 469 src: "testdata/apex/arm/com.android.apex.cts.shim.v2_different_certificate.apex", 470 }, 471 arm64: { 472 src: "testdata/apex/arm/com.android.apex.cts.shim.v2_different_certificate.apex", 473 }, 474 riscv64: { 475 src: "testdata/apex/riscv64/com.android.apex.cts.shim.v2_different_certificate.apex", 476 }, 477 x86: { 478 src: "testdata/apex/x86/com.android.apex.cts.shim.v2_different_certificate.apex", 479 }, 480 x86_64: { 481 src: "testdata/apex/x86/com.android.apex.cts.shim.v2_different_certificate.apex", 482 }, 483 }, 484 filename: "com.android.apex.cts.shim.v2_different_certificate.apex", 485 installable: false, 486} 487 488prebuilt_apex { 489 name: "StagedInstallTestApexV2_DifferentPackageName", 490 arch: { 491 arm: { 492 src: "testdata/apex/arm/com.android.apex.cts.shim.v2_different_package_name.apex", 493 }, 494 arm64: { 495 src: "testdata/apex/arm/com.android.apex.cts.shim.v2_different_package_name.apex", 496 }, 497 riscv64: { 498 src: "testdata/apex/riscv64/com.android.apex.cts.shim.v2_different_package_name.apex", 499 }, 500 x86: { 501 src: "testdata/apex/x86/com.android.apex.cts.shim.v2_different_package_name.apex", 502 }, 503 x86_64: { 504 src: "testdata/apex/x86/com.android.apex.cts.shim.v2_different_package_name.apex", 505 }, 506 }, 507 filename: "com.android.apex.cts.shim.v2_different_package_name.apex", 508 installable: false, 509} 510 511prebuilt_apex { 512 name: "StagedInstallTestApexV2_SdkTargetP", 513 arch: { 514 arm: { 515 src: "testdata/apex/arm/com.android.apex.cts.shim.v2_sdk_target_p.apex", 516 }, 517 arm64: { 518 src: "testdata/apex/arm/com.android.apex.cts.shim.v2_sdk_target_p.apex", 519 }, 520 riscv64: { 521 src: "testdata/apex/riscv64/com.android.apex.cts.shim.v2_sdk_target_p.apex", 522 }, 523 x86: { 524 src: "testdata/apex/x86/com.android.apex.cts.shim.v2_sdk_target_p.apex", 525 }, 526 x86_64: { 527 src: "testdata/apex/x86/com.android.apex.cts.shim.v2_sdk_target_p.apex", 528 }, 529 }, 530 filename: "com.android.apex.cts.shim.v2_sdk_target_p.apex", 531 installable: false, 532} 533 534prebuilt_apex { 535 name: "StagedInstallTestApexV2_ApkInApexSdkTargetP", 536 arch: { 537 arm: { 538 src: "testdata/apex/arm/com.android.apex.cts.shim.v2_apk_in_apex_sdk_target_p.apex", 539 }, 540 arm64: { 541 src: "testdata/apex/arm/com.android.apex.cts.shim.v2_apk_in_apex_sdk_target_p.apex", 542 }, 543 riscv64: { 544 src: "testdata/apex/riscv64/com.android.apex.cts.shim.v2_apk_in_apex_sdk_target_p.apex", 545 }, 546 x86: { 547 src: "testdata/apex/x86/com.android.apex.cts.shim.v2_apk_in_apex_sdk_target_p.apex", 548 }, 549 x86_64: { 550 src: "testdata/apex/x86/com.android.apex.cts.shim.v2_apk_in_apex_sdk_target_p.apex", 551 }, 552 }, 553 filename: "com.android.apex.cts.shim.v2_apk_in_apex_sdk_target_p.apex", 554 installable: false, 555} 556 557prebuilt_apex { 558 name: "StagedInstallTestCorruptedApex_b146895998", 559 src: "testdata/apex/corrupted_b146895998.apex", 560 filename: "corrupted_b146895998.apex", 561 installable: false, 562} 563 564prebuilt_apex { 565 name: "StagedInstallTestApexV2_NoApkSignature", 566 arch: { 567 arm: { 568 src: "testdata/apex/arm/com.android.apex.cts.shim.v2_unsigned_apk_container.apex", 569 }, 570 arm64: { 571 src: "testdata/apex/arm/com.android.apex.cts.shim.v2_unsigned_apk_container.apex", 572 }, 573 riscv64: { 574 src: "testdata/apex/riscv64/com.android.apex.cts.shim.v2_unsigned_apk_container.apex", 575 }, 576 x86: { 577 src: "testdata/apex/x86/com.android.apex.cts.shim.v2_unsigned_apk_container.apex", 578 }, 579 x86_64: { 580 src: "testdata/apex/x86/com.android.apex.cts.shim.v2_unsigned_apk_container.apex", 581 }, 582 }, 583 filename: "com.android.apex.cts.shim.v2_unsigned_apk_container.apex", 584 installable: false, 585} 586 587prebuilt_apex { 588 name: "StagedInstallTestApexV2_UnsignedPayload", 589 arch: { 590 arm: { 591 src: "testdata/apex/arm/com.android.apex.cts.shim.v2_unsigned_payload.apex", 592 }, 593 arm64: { 594 src: "testdata/apex/arm/com.android.apex.cts.shim.v2_unsigned_payload.apex", 595 }, 596 riscv64: { 597 src: "testdata/apex/riscv64/com.android.apex.cts.shim.v2_unsigned_payload.apex", 598 }, 599 x86: { 600 src: "testdata/apex/x86/com.android.apex.cts.shim.v2_unsigned_payload.apex", 601 }, 602 x86_64: { 603 src: "testdata/apex/x86/com.android.apex.cts.shim.v2_unsigned_payload.apex", 604 }, 605 }, 606 filename: "com.android.apex.cts.shim.v2_unsigned_payload.apex", 607 installable: false, 608} 609 610ApexFilenameSigningPayloadWithDifferentKey = "com.android.apex.cts.shim.v2_sign_payload_with_different_key.apex" 611prebuilt_apex { 612 name: "StagedInstallTestApexV2_SignPayloadWithDifferentKey", 613 arch: { 614 arm: { 615 src: "testdata/apex/arm/" + ApexFilenameSigningPayloadWithDifferentKey, 616 }, 617 arm64: { 618 src: "testdata/apex/arm/" + ApexFilenameSigningPayloadWithDifferentKey, 619 }, 620 x86: { 621 src: "testdata/apex/x86/" + ApexFilenameSigningPayloadWithDifferentKey, 622 }, 623 x86_64: { 624 src: "testdata/apex/x86/" + ApexFilenameSigningPayloadWithDifferentKey, 625 }, 626 }, 627 filename: ApexFilenameSigningPayloadWithDifferentKey, 628 installable: false, 629} 630 631prebuilt_apex { 632 name: "StagedInstallTestApexV2_Rebootless", 633 arch: { 634 arm: { 635 src: "testdata/apex/arm/com.android.apex.cts.shim.v2_rebootless.apex", 636 }, 637 arm64: { 638 src: "testdata/apex/arm/com.android.apex.cts.shim.v2_rebootless.apex", 639 }, 640 riscv64: { 641 src: "testdata/apex/riscv64/com.android.apex.cts.shim.v2_rebootless.apex", 642 }, 643 x86: { 644 src: "testdata/apex/x86/com.android.apex.cts.shim.v2_rebootless.apex", 645 }, 646 x86_64: { 647 src: "testdata/apex/x86/com.android.apex.cts.shim.v2_rebootless.apex", 648 }, 649 }, 650 filename: "com.android.apex.cts.shim.v2_rebootless.apex", 651 installable: false, 652} 653 654prebuilt_apex { 655 name: "StagedInstallTestApexV3_Rebootless", 656 arch: { 657 arm: { 658 src: "testdata/apex/arm/com.android.apex.cts.shim.v3_rebootless.apex", 659 }, 660 arm64: { 661 src: "testdata/apex/arm/com.android.apex.cts.shim.v3_rebootless.apex", 662 }, 663 riscv64: { 664 src: "testdata/apex/riscv64/com.android.apex.cts.shim.v3_rebootless.apex", 665 }, 666 x86: { 667 src: "testdata/apex/x86/com.android.apex.cts.shim.v3_rebootless.apex", 668 }, 669 x86_64: { 670 src: "testdata/apex/x86/com.android.apex.cts.shim.v3_rebootless.apex", 671 }, 672 }, 673 filename: "com.android.apex.cts.shim.v3_rebootless.apex", 674 installable: false, 675} 676 677// collects deapexer and its dependency modules (libc++ and debugfs_static) to the zip file. 678genrule { 679 name: "deapexer.zip", 680 tools: [ 681 "deapexer", 682 "debugfs_static", 683 "fsck.erofs", 684 "soong_zip", 685 ], 686 cmd: "rm -rf mkdir $(genDir)/deapexer && mkdir $(genDir)/deapexer && " + 687 "cp $(location deapexer) $(genDir)/deapexer && " + 688 "cp $(location debugfs_static) $(genDir)/deapexer && " + 689 "cp $(location fsck.erofs) $(genDir)/deapexer && " + 690 "HOST_OUT_SHARED_LIBRARIES=$$(dirname $(location deapexer))/../lib64 && " + 691 "cp $${HOST_OUT_SHARED_LIBRARIES}/libc++.* $(genDir)/deapexer && " + 692 "$(location soong_zip) -o $(out) -C $(genDir)/deapexer -D $(genDir)/deapexer", 693 out: ["deapexer.zip"], 694} 695 696test_module_config_host { 697 name: "CtsStagedInstallHostTestCases_NoLarge", 698 base: "CtsStagedInstallHostTestCases", 699 test_suites: ["general-tests"], 700 exclude_annotations: ["android.platform.test.annotations.LargeTest"], 701} 702