1package { 2 default_team: "trendy_team_framework_android_packages", 3 // See: http://go/android-license-faq 4 // A large-scale-change added 'default_applicable_licenses' to import 5 // all of the 'license_kinds' from "frameworks_base_license" 6 // to get the below license kinds: 7 // SPDX-license-identifier-Apache-2.0 8 default_applicable_licenses: ["frameworks_base_license"], 9} 10 11android_test_helper_app { 12 name: "FrameworksServicesTests_install_bad_dex_", 13 defaults: ["FrameworksServicesTests_apks_defaults"], 14 15 srcs: ["src/**/*.java"], 16} 17 18// Inject bad classes.dex file. 19java_genrule { 20 name: "FrameworksServicesTests_install_bad_dex", 21 tools: [ 22 "soong_zip", 23 "merge_zips", 24 ], 25 srcs: [ 26 ":FrameworksServicesTests_install_bad_dex_", 27 "classes.dex", 28 ], 29 out: ["FrameworksServicesTests_install_bad_dex.apk"], 30 cmd: "$(location soong_zip) -o $(genDir)/classes.dex.zip -j -f $(location classes.dex) && " + 31 "$(location merge_zips) -ignore-duplicates $(out) $(genDir)/classes.dex.zip " + 32 "$(location :FrameworksServicesTests_install_bad_dex_)", 33} 34