Browse Source

[Settings] Exclude system/priv-app/SettingsRoboTestStub APK as we do not set proper whitelist permission policy for it in any xml file at /system/etc/permissions, thus resulting in a boot loop

main
Pekka Helenius 3 years ago
parent
commit
8a16d7eeb8
1 changed files with 91 additions and 0 deletions
  1. +91
    -0
      lineage_src_root/packages/apps/Settings/tests/robotests/Android.bp

+ 91
- 0
lineage_src_root/packages/apps/Settings/tests/robotests/Android.bp View File

@ -0,0 +1,91 @@
//############################################################
// Build SettingsRoboTestStub.apk which includes test-only resources.#
//############################################################
package {
// See: http://go/android-license-faq
// A large-scale-change added 'default_applicable_licenses' to import
// all of the 'license_kinds' from "packages_apps_Settings_license"
// to get the below license kinds:
// SPDX-license-identifier-Apache-2.0
default_applicable_licenses: ["packages_apps_Settings_license"],
}
android_app {
name: "SettingsRoboTestStub",
defaults: [
"SettingsLibDefaults",
"SettingsLib-search-defaults",
],
platform_apis: true,
certificate: "platform",
privileged: true,
resource_dirs: ["res"],
static_libs: [
"Settings-core",
"androidx-constraintlayout_constraintlayout",
"androidx.slice_slice-builders",
"androidx.slice_slice-core",
"androidx.slice_slice-view",
"androidx.core_core",
"androidx.appcompat_appcompat",
"androidx.cardview_cardview",
"androidx.preference_preference",
"androidx.recyclerview_recyclerview",
"com.google.android.material_material",
"setupcompat",
"setupdesign",
"androidx-constraintlayout_constraintlayout-solver",
"androidx.lifecycle_lifecycle-runtime",
"androidx.lifecycle_lifecycle-extensions",
"androidx.test.core",
"androidx.test.runner",
"androidx.test.ext.junit",
"guava",
"jsr305",
"settings-contextual-card-protos-lite",
"settings-log-bridge-protos-lite",
"contextualcards",
"settings-logtags",
"zxing-core-1.7",
],
aaptflags: ["--extra-packages com.android.settings"],
libs: [
"telephony-common",
"ims-common",
],
uses_libs: ["org.apache.http.legacy"],
enabled: false,
}
//############################################################
// Settings Robolectric test target. #
//############################################################
android_robolectric_test {
name: "SettingsRoboTests",
srcs: [
"src/**/*.java",
],
static_libs: [
"SettingsLib-robo-testutils",
"android-support-annotations",
"androidx.test.core",
"androidx.test.runner",
"androidx.test.ext.junit",
],
java_resource_dirs: ["config", "resources"],
instrumentation_for: "SettingsRoboTestStub",
test_options: {
timeout: 36000,
shards: 10,
},
coverage_libs: [
"Settings-core",
"SettingsLib",
"SettingsLib-search",
],
enabled: false,
}

Loading…
Cancel
Save