blob: a28f5fbaba0b6ffbd2e85bb1aadd66acfcdb34ff [file] [log] [blame]
Chad Brubaker19f98d92017-03-10 13:31:38 -08001/*
2 * Copyright (C) 2017 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17package android.os;
18
Shuo Qiane3efafd2020-03-03 19:51:13 -080019import android.annotation.RequiresPermission;
Shuo Qian43c2f472020-03-16 13:12:57 -070020import android.annotation.SdkConstant;
21import android.annotation.SdkConstant.SdkConstantType;
Chad Brubaker19f98d92017-03-10 13:31:38 -080022import android.annotation.SystemApi;
23
24/**
25 * Intents used to provide unbundled updates of system data.
26 * All require the UPDATE_CONFIG permission.
27 *
28 * @see com.android.server.updates
29 * @hide
30 */
31@SystemApi
32public final class ConfigUpdate {
33
34 /**
35 * Update system wide certificate pins for TLS connections.
36 * @hide
37 */
38 @SystemApi
39 public static final String ACTION_UPDATE_PINS = "android.intent.action.UPDATE_PINS";
40
41 /**
42 * Update system wide Intent firewall.
43 * @hide
44 */
45 @SystemApi
46 public static final String ACTION_UPDATE_INTENT_FIREWALL
47 = "android.intent.action.UPDATE_INTENT_FIREWALL";
48
49 /**
50 * Update list of permium SMS short codes.
51 * @hide
52 */
53 @SystemApi
54 public static final String ACTION_UPDATE_SMS_SHORT_CODES
55 = "android.intent.action.UPDATE_SMS_SHORT_CODES";
56
57 /**
58 * Update list of carrier provisioning URLs.
59 * @hide
60 */
61 @SystemApi
62 public static final String ACTION_UPDATE_CARRIER_PROVISIONING_URLS
63 = "android.intent.action.UPDATE_CARRIER_PROVISIONING_URLS";
64
65 /**
66 * Update set of trusted logs used for Certificate Transparency support for TLS connections.
67 * @hide
68 */
69 @SystemApi
70 public static final String ACTION_UPDATE_CT_LOGS
71 = "android.intent.action.UPDATE_CT_LOGS";
72
Chad Brubakerdf9bd4f2017-04-06 13:35:23 -070073 /**
Abodunrinwa Toki51c42032017-04-02 19:16:01 +010074 * Update language detection model file.
75 * @hide
76 */
77 @SystemApi
78 public static final String ACTION_UPDATE_LANG_ID = "android.intent.action.UPDATE_LANG_ID";
79
Abodunrinwa Tokibb957d12017-04-12 14:40:46 +010080 /**
81 * Update smart selection model file.
82 * @hide
83 */
84 @SystemApi
85 public static final String ACTION_UPDATE_SMART_SELECTION
86 = "android.intent.action.UPDATE_SMART_SELECTION";
87
Ricky Wai3b123af2018-01-22 12:12:42 +000088 /**
Abodunrinwa Tokif438e142018-10-30 19:13:04 +000089 * Update conversation actions model file.
90 * @hide
91 */
92 @SystemApi
93 public static final String ACTION_UPDATE_CONVERSATION_ACTIONS
94 = "android.intent.action.UPDATE_CONVERSATION_ACTIONS";
95
96 /**
Ricky Wai3b123af2018-01-22 12:12:42 +000097 * Update network watchlist config file.
98 * @hide
99 */
100 @SystemApi
101 public static final String ACTION_UPDATE_NETWORK_WATCHLIST
102 = "android.intent.action.UPDATE_NETWORK_WATCHLIST";
103
fionaxu2776ed52018-05-08 11:57:53 -0700104 /**
fionaxu3083d0b2018-05-16 18:52:27 -0700105 * Broadcast intent action indicating that the updated carrier id config is available.
106 * <p>Extra: "VERSION" the numeric version of the new data. Devices should only install if the
107 * update version is newer than the current one.
108 * <p>Extra: "REQUIRED_HASH" the hash of the current update data.
109 * <p>Input: {@link android.content.Intent#getData} is URI of downloaded carrier id file.
110 * Devices should pick up the downloaded file and persist to the database
111 * {@link com.android.providers.telephony.CarrierIdProvider}.
112 *
fionaxu2776ed52018-05-08 11:57:53 -0700113 * @hide
114 */
115 @SystemApi
116 public static final String ACTION_UPDATE_CARRIER_ID_DB
117 = "android.os.action.UPDATE_CARRIER_ID_DB";
118
Shuo Qian8163b802019-10-14 13:10:11 -0700119 /**
Shuo Qiane3efafd2020-03-03 19:51:13 -0800120 * Update the emergency number database into the devices.
121 * <p>Extra: {@link #EXTRA_VERSION} the numeric version of the database.
122 * <p>Extra: {@link #EXTRA_REQUIRED_HASH} the hash of the database.
123 * <p>Input: {@link android.content.Intent#getData} the URI to download emergency number
124 * database.
Shuo Qian8163b802019-10-14 13:10:11 -0700125 *
126 * @hide
127 */
128 @SystemApi
Shuo Qiane3efafd2020-03-03 19:51:13 -0800129 @RequiresPermission(android.Manifest.permission.UPDATE_CONFIG)
Shuo Qian43c2f472020-03-16 13:12:57 -0700130 @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
Shuo Qian8163b802019-10-14 13:10:11 -0700131 public static final String ACTION_UPDATE_EMERGENCY_NUMBER_DB =
132 "android.os.action.UPDATE_EMERGENCY_NUMBER_DB";
133
Shuo Qiane3efafd2020-03-03 19:51:13 -0800134 /**
135 * An integer to indicate the numeric version of the new data. Devices should only install
136 * if the update version is newer than the current one.
137 *
138 * @hide
139 */
140 @SystemApi
141 public static final String EXTRA_VERSION = "android.os.extra.VERSION";
142
143 /**
144 * A string to indicate the hash of the data.
145 *
146 * @hide
147 */
148 @SystemApi
149 public static final String EXTRA_REQUIRED_HASH = "android.os.extra.REQUIRED_HASH";
150
Chad Brubaker19f98d92017-03-10 13:31:38 -0800151 private ConfigUpdate() {
152 }
153}