Add targets for tablet/tv product variants
Some string resources in PackageInstaller use different values depending on the form factor of the target device. At the moment, their values are determined at compile time with the aapt option "--product <type>". Test: manual build Bug: 230547007 Change-Id: I2cd789b8c3a2ee93f1eaad4079bc69d48ea39917
This commit is contained in:
@@ -47,3 +47,39 @@ android_app {
|
||||
"androidx.leanback_leanback",
|
||||
],
|
||||
}
|
||||
|
||||
android_app {
|
||||
name: "PackageInstaller_tablet",
|
||||
defaults: ["platform_app_defaults"],
|
||||
|
||||
srcs: ["src/**/*.java"],
|
||||
|
||||
certificate: "platform",
|
||||
privileged: true,
|
||||
platform_apis: true,
|
||||
rename_resources_package: false,
|
||||
|
||||
static_libs: [
|
||||
"xz-java",
|
||||
"androidx.leanback_leanback",
|
||||
],
|
||||
aaptflags: ["--product tablet"],
|
||||
}
|
||||
|
||||
android_app {
|
||||
name: "PackageInstaller_tv",
|
||||
defaults: ["platform_app_defaults"],
|
||||
|
||||
srcs: ["src/**/*.java"],
|
||||
|
||||
certificate: "platform",
|
||||
privileged: true,
|
||||
platform_apis: true,
|
||||
rename_resources_package: false,
|
||||
|
||||
static_libs: [
|
||||
"xz-java",
|
||||
"androidx.leanback_leanback",
|
||||
],
|
||||
aaptflags: ["--product tv"],
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user