This repository has been archived by the owner on Jul 24, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
/
Android.bp
67 lines (60 loc) · 1.62 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
66
67
soong_namespace {
}
python_binary_host {
name: "carriersettings_extractor",
defaults: ["carrier_extractor_defaults"],
srcs: [
"carriersettings_extractor.py",
],
libs: [
"libprotobuf-python",
"carriersettings_extractor-proto",
],
}
python_defaults {
name: "carrier_extractor_defaults",
version: {
py3: {
embedded_launcher: false,
},
},
host_supported: true,
}
python_library_host {
name: "carriersettings_extractor-proto",
defaults: ["carrier_extractor_defaults"],
srcs: [
"*.proto",
],
proto: {
canonical_path_from_root: false,
},
}
genrule {
name: "carrier_extraction-apn",
tools: ["carriersettings_extractor"],
cmd: "$(location carriersettings_extractor) vendor/google_devices/$$TARGET_PRODUCT/proprietary/product/etc/CarrierSettings/ . $(genDir)/apns-conf.xml $(genDir)/carrierconfig-vendor.xml $$TARGET_PRODUCT",
out: [
"apns-conf.xml",
],
}
genrule {
name: "carrier_extraction-cc",
tools: ["carriersettings_extractor"],
cmd: "$(location carriersettings_extractor) vendor/google_devices/$$TARGET_PRODUCT/proprietary/product/etc/CarrierSettings/ . $(genDir)/apns-conf.xml $(genDir)/carrierconfig-vendor.xml $$TARGET_PRODUCT",
out: [
"carrierconfig-vendor.xml",
],
}
prebuilt_etc {
name: "extracted-apns",
filename: "apns-conf.xml",
product_specific: true,
src: ":carrier_extraction-apn",
}
prebuilt_etc {
name: "extracted-carrierconfig",
filename: "carrierconfig-vendor.xml",
product_specific: true,
src: ":carrier_extraction-cc",
}