blob: d9d1f93137a0572e8a2bc8c78ab41bb77ce063f6 [file] [log] [blame]
micky38798506412023-10-23 16:33:47 +02001android_app {
2 name: "omnirom-res",
Michael Bestas58aaa272025-03-06 17:50:19 +02003 use_resource_processor: false,
micky38798506412023-10-23 16:33:47 +02004 sdk_version: "core_platform",
5 certificate: "platform",
6 manifest: "AndroidManifest.xml",
7
Vachounetb669cc82020-10-14 16:25:09 +02008 resource_dirs: ["res"],
micky38798506412023-10-23 16:33:47 +02009 export_package_resources: true,
10
11 // Disable dexpreopt and verify_uses_libraries check as the app
12 // contains no Java code to be dexpreopted.
13 enforce_uses_libs: false,
14 dex_preopt: {
15 enabled: false,
16 },
17
18 // Soong special-cases omnirom-res to install this alongside
19 // the libraries at /system/framework/omnirom-res.apk.
20
21 // Generate private symbols into the org.omnirom.omnilib.R class
22 // so they are not accessible to 3rd party apps.
23 aaptflags: [
24 "--private-symbols",
25 "org.omnirom.omnilib",
26
27 // Framework doesn't need versioning since it IS the platform.
28 "--no-auto-version",
29
30 // Allow overlay to add resource
31 "--auto-add-overlay",
32
33 // Tell aapt to create "extending (non-application)" resource IDs,
34 // since these resources will be used by many apps.
35 "--allow-reserved-package-id",
36 // Use id 0x3f (one less than app id).
37 "--package-id",
38 "63",
39 ],
Vachounetb669cc82020-10-14 16:25:09 +020040}
micky38731a81aa2022-08-31 14:13:50 +020041
micky387e3f75892025-01-05 19:53:41 -050042// Used by frameworks
micky387d8df7542023-10-25 13:51:23 +020043filegroup {
44 name: "omnirom-internal",
45 srcs: [
46 "src/org/omnirom/omnilib/utils/OmniSettings.java",
47 ],
48 path: "src",
49}
50
Luofan Chen120a40d2023-03-01 19:12:53 +080051// The OmniRom Platform Framework Library
52// ============================================================
53
54omnirom_sdk_LOCAL_STATIC_JAVA_LIBRARIES = [
Oliver Scott778f7752025-02-20 12:37:48 -050055 "vendor.lineage.health-V2-java",
Luofan Chen120a40d2023-03-01 19:12:53 +080056]
57
micky387e3f75892025-01-05 19:53:41 -050058// Used by services
59java_library {
60 name: "omnirom.internal",
Luofan Chen120a40d2023-03-01 19:12:53 +080061 static_libs: omnirom_sdk_LOCAL_STATIC_JAVA_LIBRARIES,
micky387e3f75892025-01-05 19:53:41 -050062 srcs: [
63 "src/org/omnirom/omnilib/utils/*.java",
Luofan Chen120a40d2023-03-01 19:12:53 +080064 "sdk/**/*.java",
65 "sdk/**/I*.aidl",
micky387e3f75892025-01-05 19:53:41 -050066
67 // For the generated R.java and Manifest.java
68 ":omnirom-res{.aapt.srcjar}",
69 ],
70}
71
micky38798506412023-10-23 16:33:47 +020072java_library {
73 name: "OmniLib",
74 installable: true,
75 sdk_version: "core_platform",
Luofan Chen120a40d2023-03-01 19:12:53 +080076 static_libs: omnirom_sdk_LOCAL_STATIC_JAVA_LIBRARIES,
micky38798506412023-10-23 16:33:47 +020077
78 srcs: [
79 "src/**/*.java",
Luofan Chen120a40d2023-03-01 19:12:53 +080080 "sdk/**/*.java",
81 "sdk/**/I*.aidl",
micky38798506412023-10-23 16:33:47 +020082
83 // For the generated R.java and Manifest.java
84 ":omnirom-res{.aapt.srcjar}",
85 ],
86
87 libs: [
88 "framework",
89 "OmniPreference",
Adnan Begovic01561422025-01-04 16:13:21 -050090 "services",
micky38798506412023-10-23 16:33:47 +020091 ],
Luofan Chen120a40d2023-03-01 19:12:53 +080092
93 // Include aidl files from omnirom.app namespace as well as internal src aidl files
94 aidl: {
95 local_include_dirs: ["sdk/src"],
96 },
micky38731a81aa2022-08-31 14:13:50 +020097}