-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathAndroid.bp
65 lines (53 loc) · 1.57 KB
/
Android.bp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
android_app {
name: "omnirom-res",
sdk_version: "core_platform",
certificate: "platform",
manifest: "AndroidManifest.xml",
resource_dirs: ["res"],
export_package_resources: true,
// Disable dexpreopt and verify_uses_libraries check as the app
// contains no Java code to be dexpreopted.
enforce_uses_libs: false,
dex_preopt: {
enabled: false,
},
// Soong special-cases omnirom-res to install this alongside
// the libraries at /system/framework/omnirom-res.apk.
// Generate private symbols into the org.omnirom.omnilib.R class
// so they are not accessible to 3rd party apps.
aaptflags: [
"--private-symbols",
"org.omnirom.omnilib",
// Framework doesn't need versioning since it IS the platform.
"--no-auto-version",
// Allow overlay to add resource
"--auto-add-overlay",
// Tell aapt to create "extending (non-application)" resource IDs,
// since these resources will be used by many apps.
"--allow-reserved-package-id",
// Use id 0x3f (one less than app id).
"--package-id",
"63",
],
}
filegroup {
name: "omnirom-internal",
srcs: [
"src/org/omnirom/omnilib/utils/OmniSettings.java",
],
path: "src",
}
java_library {
name: "OmniLib",
installable: true,
sdk_version: "core_platform",
srcs: [
"src/**/*.java",
// For the generated R.java and Manifest.java
":omnirom-res{.aapt.srcjar}",
],
libs: [
"framework",
"OmniPreference",
],
}