Chad Brubaker | 19f98d9 | 2017-03-10 13:31:38 -0800 | [diff] [blame] | 1 | /* |
| 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 | |
| 17 | package android.os; |
| 18 | |
Shuo Qian | e3efafd | 2020-03-03 19:51:13 -0800 | [diff] [blame] | 19 | import android.annotation.RequiresPermission; |
Shuo Qian | 43c2f47 | 2020-03-16 13:12:57 -0700 | [diff] [blame] | 20 | import android.annotation.SdkConstant; |
| 21 | import android.annotation.SdkConstant.SdkConstantType; |
Chad Brubaker | 19f98d9 | 2017-03-10 13:31:38 -0800 | [diff] [blame] | 22 | import 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 |
| 32 | public 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 Brubaker | df9bd4f | 2017-04-06 13:35:23 -0700 | [diff] [blame] | 73 | /** |
Abodunrinwa Toki | 51c4203 | 2017-04-02 19:16:01 +0100 | [diff] [blame] | 74 | * 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 Toki | bb957d1 | 2017-04-12 14:40:46 +0100 | [diff] [blame] | 80 | /** |
| 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 Wai | 3b123af | 2018-01-22 12:12:42 +0000 | [diff] [blame] | 88 | /** |
Abodunrinwa Toki | f438e14 | 2018-10-30 19:13:04 +0000 | [diff] [blame] | 89 | * 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 Wai | 3b123af | 2018-01-22 12:12:42 +0000 | [diff] [blame] | 97 | * 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 | |
fionaxu | 2776ed5 | 2018-05-08 11:57:53 -0700 | [diff] [blame] | 104 | /** |
fionaxu | 3083d0b | 2018-05-16 18:52:27 -0700 | [diff] [blame] | 105 | * 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 | * |
fionaxu | 2776ed5 | 2018-05-08 11:57:53 -0700 | [diff] [blame] | 113 | * @hide |
| 114 | */ |
| 115 | @SystemApi |
| 116 | public static final String ACTION_UPDATE_CARRIER_ID_DB |
| 117 | = "android.os.action.UPDATE_CARRIER_ID_DB"; |
| 118 | |
Shuo Qian | 8163b80 | 2019-10-14 13:10:11 -0700 | [diff] [blame] | 119 | /** |
Shuo Qian | e3efafd | 2020-03-03 19:51:13 -0800 | [diff] [blame] | 120 | * 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 Qian | 8163b80 | 2019-10-14 13:10:11 -0700 | [diff] [blame] | 125 | * |
| 126 | * @hide |
| 127 | */ |
| 128 | @SystemApi |
Shuo Qian | e3efafd | 2020-03-03 19:51:13 -0800 | [diff] [blame] | 129 | @RequiresPermission(android.Manifest.permission.UPDATE_CONFIG) |
Shuo Qian | 43c2f47 | 2020-03-16 13:12:57 -0700 | [diff] [blame] | 130 | @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION) |
Shuo Qian | 8163b80 | 2019-10-14 13:10:11 -0700 | [diff] [blame] | 131 | public static final String ACTION_UPDATE_EMERGENCY_NUMBER_DB = |
| 132 | "android.os.action.UPDATE_EMERGENCY_NUMBER_DB"; |
| 133 | |
Shuo Qian | e3efafd | 2020-03-03 19:51:13 -0800 | [diff] [blame] | 134 | /** |
| 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 Brubaker | 19f98d9 | 2017-03-10 13:31:38 -0800 | [diff] [blame] | 151 | private ConfigUpdate() { |
| 152 | } |
| 153 | } |