1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2019 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<!-- The collection of resources for theming the appearance of a device -->
18<resources xmlns:android="http://schemas.android.com/apk/res/android">
19
20    <overlayable name="CellBroadcastCustomization">
21
22        <!-- START VENDOR CUSTOMIZATION -->
23        <policy type="product|system|vendor">
24            <!-- START THEME / STYLE -->
25            <item type="style" name="CellBroadcastAlertTheme"/>
26            <item type="style" name="CellBroadcastOptOutTheme"/>
27            <item type="style" name="CellBroadcastListActivityTheme"/>
28            <item type="style" name="CellBroadcastSettingsTheme"/>
29
30            <!-- All attributes defined in app level need to exposed to overlay the AlerDialog and
31                 CellBroadcastAlertDialog layouts -->
32            <item type="attr" name="preferenceFragmentCompatStyle"/>
33            <item type="attr" name="switchPreferenceStyle"/>
34            <item type="attr" name="preferenceCategoryStyle"/>
35            <item type="attr" name="preferenceStyle"/>
36            <item type="attr" name="dialogPreferenceStyle"/>
37
38            <item type="attr" name="preferenceTheme"/>
39            <item type="attr" name="allowDividerAfterLastItem"/>
40            <item type="attr" name="allowDividerAbove"/>
41            <item type="attr" name="allowDividerBelow"/>
42            <item type="attr" name="singleLineTitle"/>
43
44            <item type="attr" name="alertDialogTheme"/>
45            <item type="attr" name="alertDialogStyle"/>
46            <item type="attr" name="listLayout"/>
47            <item type="attr" name="listItemLayout"/>
48            <item type="attr" name="multiChoiceItemLayout"/>
49            <item type="attr" name="singleChoiceItemLayout"/>
50
51            <item type="attr" name="windowActionBar"/>
52            <item type="attr" name="colorAccent"/>
53
54            <!-- Declare the IDs used in overlayable layouts like CellBroadcastAlertDialog -->
55            <item type="id" name="parentPanel"/>
56            <item type="id" name="topPanel"/>
57            <item type="id" name="titleDividerTop"/>
58            <item type="id" name="title_template"/>
59            <item type="id" name="icon"/>
60            <item type="id" name="alertTitle"/>
61            <item type="id" name="titleDivider"/>
62            <item type="id" name="contentPanel"/>
63            <item type="id" name="scrollView"/>
64            <item type="id" name="message"/>
65            <item type="id" name="pictogramPanel"/>
66            <item type="id" name="pictogramImage"/>
67            <item type="id" name="buttonPanel"/>
68            <item type="id" name="dismissButton"/>
69            <!-- END THEME / STYLE -->
70
71            <!-- START DIMEN -->
72            <item type="dimen" name="alert_dialog_title_height"/>
73            <item type="dimen" name="alert_dialog_button_bar_height"/>
74            <!-- Max height of alert dialog's text content -->
75            <item type="dimen" name="alert_dialog_maxheight_content_panel"/>
76            <!-- END DIMEN -->
77
78            <!-- START COLOR -->
79            <item type="color" name="notification_color"/>
80            <item type="color" name="cell_broadcast_color_primary"/>
81            <item type="color" name="cell_broadcast_color_primary_dark"/>
82            <!-- END COLOR -->
83
84            <!-- Customize launcher icon for cellbroadcast history -->
85            <item type="mipmap" name="ic_launcher_cell_broadcast" />
86
87            <!-- START CHANNEL related configurations which allows customization -->
88            <!-- Presidential alert is default on and cannot be turned off.
89            AOSP CBR app does not show presidential alert in settings, however OEM can choose to
90            display a greyout presidential alert settings by overriding below config -->
91            <item type="bool" name="show_presidential_alerts_settings" />
92            <item type="bool" name="show_message_history_in_launcher" />
93
94            <!-- Some JP carriers requires to enable 0xA807 in additional_cbs_channels_strings
95            but only for certain products. OEMs can customize below config by including 0xA807
96            or not per product configuration-->
97            <item type="array" name="additional_cbs_channels_strings" />
98
99            <!-- Allow OEM to customize link_method. By default, use smart
100            linkify except for countries which do not allow link copy. -->
101            <!-- Text links generating method. Could be one of the followings.
102             "none": Not adding any link to message texts.
103             "legacy_linkify": Use the legacy linkify to add links to message texts.
104             "smart_linkify": Use machine learning based smart linkify to add
105             links to message texts.
106             "smart_linkify_no_copy: Use machine learning based smart linkify but
107             hipe copy menu-->
108            <item type="string" name="link_method" />
109            <!-- END CHANNEL related configurations -->
110
111            <!-- Some countries like KR requires to display CB messages inside SMS inbox.
112            allow customization for sms sender name -->
113            <item type="string" name="sms_cb_sender_name_default" />
114            <!-- Value of sms sender display name to be shown in SMS inbox for presidential alerts -->
115            <item type="string" name="sms_cb_sender_name_presidential" />
116            <!-- Value of sms sender display name to be shown in SMS inbox for emergency alerts -->
117            <!-- mapping to emergency_alerts_channels_range_strings channel range -->
118            <item type="string" name="sms_cb_sender_name_emergency" />
119            <!-- Value of sms sender display name to be shown in SMS inbox for public safety alerts -->
120            <item type="string" name="sms_cb_sender_name_public_safety" />
121            <item type="bool" name="enable_write_alerts_to_sms_inbox" />
122            <item type="bool" name="always_mark_sms_read" />
123
124            <!-- Whether to disable the opt-out dialog for all channels -->
125            <item type="bool" name="disable_opt_out_dialog" />
126
127            <!-- Whether to retry message history data migration after db creation
128           Note, please only enable this flag when upgrade to R, enabling this
129           flag during OTA might cause history data inserted twice.-->
130            <item type="bool" name="retry_message_history_data_migration" />
131            <!-- Allow user to enable/disable audio speech alert (text-to-speech for received
132            messages)-->
133            <item type="bool" name="show_alert_speech_setting" />
134            <item type="bool" name="show_main_switch_settings" />
135
136            <!-- Whether to enable alert handling during active voice call. OEMs overriding this value
137            should note that some countries require that it be turned off by default (e.g. JP).-->
138            <item type="bool" name="enable_alert_handling_during_call" />
139
140            <!-- Default value which determines whether spoken alerts enabled -->
141            <item type="bool" name="enable_alert_speech_default" />
142
143            <!-- Default value of whether to display a notification with pop-up dialog in the foreground.
144            KR carriers mandate to always show notifications along with alert dialog. -->
145            <item type="bool" name="show_alert_dialog_with_notification" />
146
147            <!-- Whether to display a notification with the pop-up dialog in the foreground when the
148            device has active connections to companion devices. -->
149            <item type="bool" name="show_notification_if_connected_to_companion_devices" />
150
151            <!-- Whether enable LED flash when playing alert tones -->
152            <item type="bool" name="enable_led_flash" />
153
154            <!-- Whether to show the alert dialog at the bottom of the screen in order to avoid
155                 blocking other content -->
156            <item type="bool" name="alert_dialog_bottom" />
157
158            <!-- Temporarily enable string customization to address translation issues. All translation issues will be fixed in S by upstreaming -->
159            <!-- Dialog title for presidential level alert. [CHAR LIMIT=50] -->
160            <!-- The name of the Cell Broadcast Receiver app. [CHAR LIMIT=NONE] -->
161            <item type="string" name="app_label" />
162            <item type="string" name="sms_cb_settings" />
163            <item type="string" name="cell_broadcast_settings_not_available"/>
164            <item type="string" name="button_dismiss"/>
165            <item type="string" name="no_cell_broadcasts"/>
166            <item type="string" name="menu_preferences"/>
167            <item type="string" name="menu_delete_all"/>
168            <item type="string" name="message_options"/>
169            <item type="string" name="menu_view_details"/>
170            <item type="string" name="menu_delete"/>
171            <item type="string" name="view_details_title"/>
172            <item type="string" name="view_details_debugging_title"/>
173            <item type="string" name="confirm_delete_broadcast"/>
174            <item type="string" name="confirm_delete_all_broadcasts"/>
175            <item type="string" name="button_delete"/>
176            <item type="string" name="button_cancel"/>
177            <item type="string" name="etws_earthquake_warning"/>
178            <item type="string" name="etws_tsunami_warning"/>
179            <item type="string" name="etws_earthquake_and_tsunami_warning"/>
180            <item type="string" name="etws_test_message"/>
181            <item type="string" name="etws_other_emergency_type"/>
182            <item type="string" name="cmas_presidential_level_alert"/>
183            <item type="string" name="cmas_extreme_alert"/>
184            <item type="string" name="cmas_extreme_immediate_observed_alert"/>
185            <item type="string" name="cmas_extreme_immediate_likely_alert"/>
186            <item type="string" name="cmas_severe_alert"/>
187            <item type="string" name="cmas_amber_alert"/>
188            <item type="string" name="cmas_required_monthly_test"/>
189            <item type="string" name="cmas_exercise_alert"/>
190            <item type="string" name="cmas_operator_defined_alert"/>
191            <item type="string" name="pws_other_message_identifiers" />
192            <item type="string" name="cb_other_message_identifiers"/>
193            <item type="string" name="public_safety_message"/>
194            <item type="string" name="state_local_test_alert"/>
195            <item type="string" name="emergency_alert"/>
196            <item type="string" name="emergency_alerts_title"/>
197            <item type="string" name="notification_channel_broadcast_messages"/>
198            <item type="string" name="notification_channel_emergency_alerts"/>
199            <item type="string" name="notification_channel_broadcast_messages_in_voicecall"/>
200            <item type="string" name="enable_alerts_master_toggle_title"/>
201            <item type="string" name="enable_alerts_master_toggle_summary"/>
202            <item type="string" name="alert_reminder_interval_title"/>
203            <item type="string" name="alert_reminder_interval_summary"/>
204            <item type="string" name="alert_reminder_dialog_title"/>
205            <item type="string" name="emergency_alert_history_title"/>
206            <item type="string" name="alert_preferences_title"/>
207            <item type="string" name="enable_etws_test_alerts_title"/>
208            <item type="string" name="enable_etws_test_alerts_summary"/>
209            <item type="string" name="enable_cmas_extreme_threat_alerts_title"/>
210            <item type="string" name="enable_cmas_extreme_threat_alerts_summary"/>
211            <item type="string" name="enable_cmas_severe_threat_alerts_title"/>
212            <item type="string" name="enable_cmas_severe_threat_alerts_summary"/>
213            <item type="string" name="enable_cmas_amber_alerts_title"/>
214            <item type="string" name="enable_cmas_amber_alerts_summary"/>
215            <item type="string" name="enable_alert_message_title"/>
216            <item type="string" name="enable_alert_message_summary"/>
217            <item type="string" name="enable_public_safety_messages_title"/>
218            <item type="string" name="enable_public_safety_messages_summary"/>
219            <item type="string" name="enable_full_screen_public_safety_messages_title" />
220            <item type="string" name="enable_full_screen_public_safety_messages_summary" />
221            <item type="string" name="enable_state_local_test_alerts_title"/>
222            <item type="string" name="enable_state_local_test_alerts_summary"/>
223            <item type="string" name="enable_emergency_alerts_message_title"/>
224            <item type="string" name="enable_emergency_alerts_message_summary"/>
225            <item type="string" name="enable_cmas_test_alerts_title"/>
226            <item type="string" name="enable_cmas_test_alerts_summary"/>
227            <item type="string" name="enable_alert_vibrate_title"/>
228            <item type="string" name="enable_alert_vibrate_summary"/>
229            <item type="string" name="override_dnd_title"/>
230            <item type="string" name="override_dnd_summary"/>
231            <item type="string" name="enable_area_update_info_alerts_title"/>
232            <item type="string" name="enable_area_update_info_alerts_summary"/>
233
234            <item type="string" name="cmas_category_heading"/>
235            <item type="string" name="cmas_category_geo"/>
236            <item type="string" name="cmas_category_met"/>
237            <item type="string" name="cmas_category_safety"/>
238            <item type="string" name="cmas_category_security"/>
239            <item type="string" name="cmas_category_rescue"/>
240            <item type="string" name="cmas_category_fire"/>
241            <item type="string" name="cmas_category_health"/>
242            <item type="string" name="cmas_category_env"/>
243            <item type="string" name="cmas_category_transport"/>
244            <item type="string" name="cmas_category_infra"/>
245            <item type="string" name="cmas_category_cbrne"/>
246            <item type="string" name="cmas_category_other"/>
247            <item type="string" name="cmas_response_heading"/>
248            <item type="string" name="cmas_response_shelter"/>
249            <item type="string" name="cmas_response_evacuate"/>
250            <item type="string" name="cmas_response_prepare"/>
251            <item type="string" name="cmas_response_execute"/>
252            <item type="string" name="cmas_response_monitor"/>
253            <item type="string" name="cmas_response_avoid"/>
254            <item type="string" name="cmas_response_assess"/>
255            <item type="string" name="cmas_response_none"/>
256            <item type="string" name="cmas_severity_heading"/>
257            <item type="string" name="cmas_severity_extreme"/>
258            <item type="string" name="cmas_severity_severe"/>
259            <item type="string" name="cmas_urgency_heading"/>
260            <item type="string" name="cmas_urgency_immediate"/>
261            <item type="string" name="cmas_urgency_expected"/>
262            <item type="string" name="cmas_certainty_heading"/>
263            <item type="string" name="cmas_certainty_observed"/>
264            <item type="string" name="cmas_certainty_likely"/>
265            <item type="string" name="delivery_time_heading"/>
266            <item type="string" name="notification_multiple"/>
267            <item type="string" name="notification_multiple_title"/>
268            <item type="string" name="show_cmas_opt_out_summary"/>
269            <item type="string" name="show_cmas_opt_out_title"/>
270            <item type="string" name="cmas_opt_out_dialog_text"/>
271            <item type="string" name="cmas_opt_out_button_yes" />
272            <item type="string" name="cmas_opt_out_button_no" />
273            <item type="string" name="cb_list_activity_title" />
274            <item type="string" name="emergency_alert_settings_title_watches" />
275            <item type="string" name="enable_cmas_presidential_alerts_title" />
276            <item type="string" name="enable_cmas_presidential_alerts_summary" />
277            <item type="string" name="receive_cmas_in_second_language_title" />
278            <item type="string" name="receive_cmas_in_second_language_summary" />
279            <item type="string" name="alerts_header_summary" />
280            <item type="string" name="testing_mode_enabled" />
281            <item type="string" name="testing_mode_disabled" />
282            <item type="string" name="show_all_messages" />
283            <item type="string" name="show_regular_messages" />
284            <item type="string" name="message_identifier" />
285            <item type="string" name="message_serial_number" />
286            <item type="string" name="data_coding_scheme" />
287            <item type="string" name="message_content" />
288            <item type="string" name="location_check_time" />
289            <item type="string" name="message_displayed" />
290            <item type="string" name="message_coordinates" />
291            <item type="string" name="maximum_waiting_time" />
292            <item type="string" name="seconds" />
293            <item type="string" name="message_copied" />
294            <item type="string" name="enable_alert_speech_title" />
295            <item type="string" name="enable_alert_speech_summary" />
296            <item type="string" name="enable_exercise_test_alerts_title" />
297            <item type="string" name="enable_exercise_test_alerts_summary" />
298            <item type="string" name="enable_operator_defined_test_alerts_title" />
299            <item type="string" name="enable_operator_defined_test_alerts_summary" />
300
301            <!-- START GENERAL CONFIGS -->
302            <item type="string" name="config_headlineFontFamily" />
303            <!-- END GENERAL CONFIGS -->
304        </policy>
305        <!-- END VENDOR CUSTOMIZATION -->
306
307    </overlayable>
308
309</resources>
310