2022-04-17 01:52:45 +00:00
|
|
|
//
|
|
|
|
// Copyright (C) 2022 StatiXOS
|
2022-09-12 12:42:50 +00:00
|
|
|
// Copyright (C) 2022 Paranoid Android
|
2022-08-03 19:05:50 +00:00
|
|
|
// SPDX-License-Identifer: Apache-2.0
|
2022-04-17 01:52:45 +00:00
|
|
|
//
|
|
|
|
|
|
|
|
package {
|
2022-09-12 12:42:50 +00:00
|
|
|
default_applicable_licenses: ["packages_apps_Aospa_ThemePicker_license"],
|
2022-08-03 19:05:50 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Added automatically by a large-scale-change
|
|
|
|
// See: http://go/android-license-faq
|
|
|
|
license {
|
2022-09-12 12:42:50 +00:00
|
|
|
name: "packages_apps_Aospa_ThemePicker_license",
|
2022-08-03 19:05:50 +00:00
|
|
|
visibility: [":__subpackages__"],
|
|
|
|
license_kinds: [
|
|
|
|
"SPDX-license-identifier-Apache-2.0",
|
|
|
|
],
|
|
|
|
license_text: [
|
|
|
|
"NOTICE",
|
|
|
|
],
|
2022-04-17 01:52:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
filegroup {
|
2022-09-12 12:42:50 +00:00
|
|
|
name: "ParanoidThemePicker_srcs",
|
2022-04-17 01:52:45 +00:00
|
|
|
srcs: [
|
|
|
|
"src/**/*.java",
|
|
|
|
"src/**/*.kt",
|
|
|
|
],
|
|
|
|
}
|
|
|
|
|
|
|
|
filegroup {
|
2022-09-12 12:42:50 +00:00
|
|
|
name: "ParanoidThemePicker_Manifest",
|
2022-04-17 01:52:45 +00:00
|
|
|
srcs: [
|
|
|
|
"AndroidManifest.xml",
|
|
|
|
],
|
|
|
|
}
|
|
|
|
|
|
|
|
genrule {
|
2022-09-12 12:42:50 +00:00
|
|
|
name: "ParanoidThemePicker_res",
|
2022-04-17 01:52:45 +00:00
|
|
|
tools: ["soong_zip"],
|
|
|
|
srcs: [
|
|
|
|
"res/**/*"
|
|
|
|
],
|
2022-09-12 12:42:50 +00:00
|
|
|
out: ["ParanoidThemePicker_res.zip"],
|
2022-04-17 01:52:45 +00:00
|
|
|
cmd: "INPUTS=($(in)) && "
|
|
|
|
+ "RES_DIR=$$(dirname $$(dirname $${INPUTS[0]})) && "
|
|
|
|
+ "$(location soong_zip) -o $(out) -C $$RES_DIR -D $$RES_DIR"
|
|
|
|
}
|
|
|
|
|
2023-03-18 14:36:37 +00:00
|
|
|
genrule {
|
|
|
|
name: "ParanoidThemePicker_res_overrides",
|
|
|
|
tools: ["soong_zip"],
|
|
|
|
srcs: [
|
|
|
|
"res_override/**/*",
|
|
|
|
],
|
|
|
|
out: ["ThemePicker_res_overrides.zip"],
|
|
|
|
cmd: "INPUTS=($(in)) && "
|
|
|
|
+ "RES_DIR=$$(dirname $$(dirname $${INPUTS[0]})) && "
|
|
|
|
+ "$(location soong_zip) -o $(out) -C $$RES_DIR -D $$RES_DIR"
|
|
|
|
}
|
|
|
|
|
2022-04-16 06:20:38 +00:00
|
|
|
android_library {
|
2022-09-12 12:42:50 +00:00
|
|
|
name: "ParanoidThemePicker-core",
|
2022-04-17 01:52:45 +00:00
|
|
|
|
2023-03-14 03:44:44 +00:00
|
|
|
defaults: ["ThemePicker_defaults"],
|
2022-04-17 01:52:45 +00:00
|
|
|
|
2022-04-16 06:20:38 +00:00
|
|
|
optimize: {
|
|
|
|
enabled: false,
|
|
|
|
},
|
|
|
|
|
2022-12-06 19:58:15 +00:00
|
|
|
resource_dirs: ["res", "res_override"],
|
2022-04-16 06:20:38 +00:00
|
|
|
|
|
|
|
resource_zips: [":WallpaperPicker2_res", ":ThemePicker_res"],
|
|
|
|
|
|
|
|
kotlincflags: ["-Xjvm-default=enable"],
|
|
|
|
}
|
|
|
|
|
|
|
|
//
|
|
|
|
// Build app code.
|
|
|
|
//
|
|
|
|
android_app {
|
2022-09-12 12:42:50 +00:00
|
|
|
name: "ParanoidThemePicker",
|
2022-04-16 06:20:38 +00:00
|
|
|
|
|
|
|
static_libs: [
|
2022-09-12 12:42:50 +00:00
|
|
|
"ParanoidThemePicker-core",
|
2022-04-16 06:20:38 +00:00
|
|
|
],
|
|
|
|
|
2022-04-17 01:52:45 +00:00
|
|
|
srcs: [
|
|
|
|
":WallpaperPicker2_srcs",
|
|
|
|
":ThemePicker_srcs",
|
2022-09-12 12:42:50 +00:00
|
|
|
":ParanoidThemePicker_srcs",
|
2022-04-17 01:52:45 +00:00
|
|
|
"src_override/**/*.java",
|
|
|
|
"src_override/**/*.kt",
|
|
|
|
],
|
|
|
|
|
2022-08-16 05:23:57 +00:00
|
|
|
jni_libs: [
|
|
|
|
"librenderscript-toolkit",
|
|
|
|
],
|
|
|
|
|
2022-04-17 01:52:45 +00:00
|
|
|
use_embedded_native_libs: true,
|
|
|
|
|
2023-03-18 14:36:37 +00:00
|
|
|
resource_zips: [":WallpaperPicker2_res", ":ThemePicker_res", ":ParanoidThemePicker_res", ":ParanoidThemePicker_res_overrides"],
|
2022-04-17 01:52:45 +00:00
|
|
|
|
|
|
|
optimize: {
|
|
|
|
enabled: false,
|
|
|
|
},
|
|
|
|
kotlincflags: ["-Xjvm-default=enable"],
|
|
|
|
certificate: "platform",
|
|
|
|
|
|
|
|
privileged: true,
|
|
|
|
system_ext_specific: true,
|
|
|
|
platform_apis: true,
|
|
|
|
manifest: "AndroidManifest.xml",
|
|
|
|
additional_manifests: [":WallpaperPicker2_Manifest", ":ThemePicker_Manifest"],
|
|
|
|
|
|
|
|
overrides: ["ThemePicker", "WallpaperPicker2", "WallpaperPicker"],
|
2019-11-01 20:14:29 +00:00
|
|
|
|
2020-09-15 01:27:19 +00:00
|
|
|
required: [
|
|
|
|
"privapp_whitelist_com.android.wallpaper",
|
|
|
|
"default_permissions_com.android.wallpaper",
|
2022-12-27 08:09:00 +00:00
|
|
|
"ThemesStub"
|
2020-09-15 01:27:19 +00:00
|
|
|
],
|
2019-11-01 20:14:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
prebuilt_etc {
|
|
|
|
name: "privapp_whitelist_com.android.wallpaper",
|
|
|
|
system_ext_specific: true,
|
|
|
|
src: "privapp_whitelist_com.android.wallpaper.xml",
|
|
|
|
sub_dir: "permissions",
|
|
|
|
filename_from_src: true,
|
2022-04-17 01:52:45 +00:00
|
|
|
}
|
2020-09-15 01:27:19 +00:00
|
|
|
|
|
|
|
prebuilt_etc_xml {
|
|
|
|
name: "default_permissions_com.android.wallpaper",
|
|
|
|
src: "default_permissions_com.android.wallpaper.xml",
|
|
|
|
system_ext_specific: true,
|
|
|
|
filename_from_src: true,
|
|
|
|
sub_dir: "default-permissions",
|
|
|
|
}
|