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 {
|
2024-10-02 17:42:41 +00:00
|
|
|
default_applicable_licenses: ["packages_apps_Paranoid_ThemePicker_license"],
|
2022-08-03 19:05:50 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Added automatically by a large-scale-change
|
|
|
|
// See: http://go/android-license-faq
|
|
|
|
license {
|
2024-10-02 17:42:41 +00:00
|
|
|
name: "packages_apps_Paranoid_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
|
|
|
}
|
|
|
|
|
2024-01-09 01:10:53 +00:00
|
|
|
java_library {
|
|
|
|
name: "ParanoidThemePickerOverridesLib",
|
2022-04-17 01:52:45 +00:00
|
|
|
srcs: [
|
2024-01-09 01:10:53 +00:00
|
|
|
"src_override/**/*.java",
|
|
|
|
"src_override/**/*.kt",
|
|
|
|
],
|
|
|
|
libs: [
|
|
|
|
"hilt_android",
|
|
|
|
"ParanoidThemePickerLib",
|
2022-04-17 01:52:45 +00:00
|
|
|
],
|
|
|
|
}
|
|
|
|
|
|
|
|
filegroup {
|
2022-09-12 12:42:50 +00:00
|
|
|
name: "ParanoidThemePicker_Manifest",
|
2022-04-17 01:52:45 +00:00
|
|
|
srcs: [
|
|
|
|
"AndroidManifest.xml",
|
|
|
|
],
|
|
|
|
}
|
|
|
|
|
2024-01-09 01:10:53 +00:00
|
|
|
android_library {
|
|
|
|
name: "ParanoidThemePickerLib",
|
2022-04-16 06:20:38 +00:00
|
|
|
|
|
|
|
static_libs: [
|
2023-12-17 04:55:07 +00:00
|
|
|
"guava",
|
|
|
|
"monet",
|
|
|
|
"renderscript_toolkit",
|
2024-01-09 01:10:53 +00:00
|
|
|
"ThemePickerLib",
|
2024-01-08 23:36:58 +00:00
|
|
|
"WallpaperPicker2Lib",
|
2023-12-17 04:55:07 +00:00
|
|
|
"SettingsLibSettingsTheme",
|
|
|
|
"SystemUI-statsd",
|
|
|
|
"styleprotoslite",
|
2024-01-09 01:10:53 +00:00
|
|
|
"androidx.lifecycle_lifecycle-livedata-ktx",
|
|
|
|
"androidx.lifecycle_lifecycle-runtime-ktx",
|
|
|
|
"androidx.lifecycle_lifecycle-viewmodel-ktx",
|
|
|
|
"androidx.recyclerview_recyclerview",
|
|
|
|
"SystemUICustomizationLib",
|
|
|
|
"hilt_android",
|
2022-04-16 06:20:38 +00:00
|
|
|
],
|
|
|
|
|
2022-04-17 01:52:45 +00:00
|
|
|
srcs: [
|
2024-01-09 01:10:53 +00:00
|
|
|
"src/**/*.java",
|
|
|
|
"src/**/*.kt",
|
|
|
|
],
|
|
|
|
|
|
|
|
resource_dirs: [
|
|
|
|
"res",
|
|
|
|
"res_override",
|
|
|
|
],
|
|
|
|
|
|
|
|
manifest: "AndroidManifest-empty.xml",
|
|
|
|
}
|
|
|
|
|
|
|
|
java_defaults {
|
|
|
|
name: "ParanoidThemePicker_defaults",
|
|
|
|
static_libs: [
|
|
|
|
"ThemePickerLib",
|
|
|
|
"ParanoidThemePickerLib",
|
|
|
|
"ThemePickerOverridesLib",
|
|
|
|
"ParanoidThemePickerOverridesLib",
|
|
|
|
"hilt_android",
|
2022-04-17 01:52:45 +00:00
|
|
|
],
|
|
|
|
|
2022-08-16 05:23:57 +00:00
|
|
|
jni_libs: [
|
|
|
|
"librenderscript-toolkit",
|
|
|
|
],
|
|
|
|
|
2024-01-09 01:10:53 +00:00
|
|
|
required: ["android.software.theme_picker.xml"],
|
2022-04-17 01:52:45 +00:00
|
|
|
|
2024-01-09 01:10:53 +00:00
|
|
|
use_embedded_native_libs: true,
|
2022-04-17 01:52:45 +00:00
|
|
|
|
|
|
|
optimize: {
|
|
|
|
enabled: false,
|
|
|
|
},
|
2023-07-19 21:26:55 +00:00
|
|
|
kotlincflags: ["-Xjvm-default=all"],
|
2022-04-17 01:52:45 +00:00
|
|
|
certificate: "platform",
|
|
|
|
|
|
|
|
privileged: true,
|
|
|
|
system_ext_specific: true,
|
2024-01-09 01:10:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
//
|
|
|
|
// Build app code.
|
|
|
|
//
|
|
|
|
android_app {
|
|
|
|
name: "ParanoidThemePicker",
|
|
|
|
defaults: ["ParanoidThemePicker_defaults"],
|
|
|
|
|
2022-04-17 01:52:45 +00:00
|
|
|
platform_apis: true,
|
|
|
|
manifest: "AndroidManifest.xml",
|
|
|
|
additional_manifests: [":WallpaperPicker2_Manifest", ":ThemePicker_Manifest"],
|
2024-01-09 01:10:53 +00:00
|
|
|
overrides: ["WallpaperPicker", "WallpaperPicker2", "ThemePicker"],
|
2020-09-15 01:27:19 +00:00
|
|
|
required: [
|
|
|
|
"privapp_whitelist_com.android.wallpaper",
|
|
|
|
"default_permissions_com.android.wallpaper",
|
2022-09-12 14:09:44 +00:00
|
|
|
"ParanoidColorStub",
|
2020-09-15 01:27:19 +00:00
|
|
|
],
|
2023-10-25 17:15:02 +00:00
|
|
|
certificate: "platform",
|
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",
|
|
|
|
}
|
2024-01-09 01:10:53 +00:00
|
|
|
|
|
|
|
android_app {
|
|
|
|
name: "ParanoidColorStub",
|
|
|
|
manifest: "AndroidManifest-Stub.xml",
|
|
|
|
resource_dirs: ["res-stub"],
|
|
|
|
|
|
|
|
certificate: "platform",
|
|
|
|
product_specific: true,
|
|
|
|
sdk_version: "current",
|
|
|
|
}
|