aboutsummaryrefslogtreecommitdiff
path: root/apex/com.android.geotz/Android.bp
blob: f4e9bbcf9694ef6f28d75edeebabb2bf8818bf3e (plain)
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
// Copyright (C) 2020 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

// Defaults shared between real and test versions of the APEX.
package {
    default_applicable_licenses: ["Android-Apache-2.0"],
}

apex_defaults {
    name: "com.android.geotz-defaults",
    updatable: true,
    generate_hashtree: false,
    min_sdk_version: "31",

    // Explicit because the defaulting behavior only works for the real
    // module.
    file_contexts: ":com.android.geotz-file_contexts",

    systemserverclasspath_fragments: ["com.android.geotz-systemserverclasspath-fragment"],

    // Shared signing information.
    key: "com.android.geotz.key",
    certificate: ":com.android.geotz.certificate",
}

apex_key {
    name: "com.android.geotz.key",
    public_key: "com.android.geotz.avbpubkey",
    private_key: "com.android.geotz.pem",
}

android_app_certificate {
    name: "com.android.geotz.certificate",
    certificate: "com.android.geotz",
}

// Encapsulate the contributions made by the com.android.geotz to the systemserverclasspath.
systemserverclasspath_fragment {
    name: "com.android.geotz-systemserverclasspath-fragment",
    // This name is hardcoded on Android S with associated AndroidManifest.xml
    // entries in the system server. Do not remove until all releases use an
    // APK.
    contents: ["geotz"],
    apex_available: ["com.android.geotz"],
}

// The definition for the real (not test) geotz APEX.
apex {
    name: "com.android.geotz",
    defaults: ["com.android.geotz-defaults"],
    manifest: "manifest.json",
    prebuilts: [
        "apex_tzs2.dat",
    ],
}

// A library intended to be added to the system server classpath.
java_library {
    name: "geotz",
    java_resource_dirs: ["resources/"],
    srcs: [
        "src/main/java/**/*.java",
    ],
    static_libs: [
        "offlinelocationtimezoneprovider",
    ],
    sdk_version: "system_31",
    // TODO(b/188773212): force dex compilation for inclusion in bootclasspath_fragment.
    compile_dex: true,
    apex_available: [
        "com.android.geotz",
    ],
}