1 #pragma once
2 
3 #ifndef ANDROID_PERMISSION_FLAGS
4 #define ANDROID_PERMISSION_FLAGS(FLAG) ANDROID_PERMISSION_FLAGS_##FLAG
5 #endif
6 
7 #ifndef ANDROID_PERMISSION_FLAGS_APPOP_ACCESS_TRACKING_LOGGING_ENABLED
8 #define ANDROID_PERMISSION_FLAGS_APPOP_ACCESS_TRACKING_LOGGING_ENABLED false
9 #endif
10 #ifndef ANDROID_PERMISSION_FLAGS_APPOP_MODE_CACHING_ENABLED
11 #define ANDROID_PERMISSION_FLAGS_APPOP_MODE_CACHING_ENABLED false
12 #endif
13 #ifndef ANDROID_PERMISSION_FLAGS_CHECK_OP_OVERLOAD_API_ENABLED
14 #define ANDROID_PERMISSION_FLAGS_CHECK_OP_OVERLOAD_API_ENABLED false
15 #endif
16 #ifndef ANDROID_PERMISSION_FLAGS_CROSS_USER_ROLE_PLATFORM_API_ENABLED
17 #define ANDROID_PERMISSION_FLAGS_CROSS_USER_ROLE_PLATFORM_API_ENABLED false
18 #endif
19 #ifndef ANDROID_PERMISSION_FLAGS_DELAY_UID_STATE_CHANGES_FROM_CAPABILITY_UPDATES
20 #define ANDROID_PERMISSION_FLAGS_DELAY_UID_STATE_CHANGES_FROM_CAPABILITY_UPDATES false
21 #endif
22 #ifndef ANDROID_PERMISSION_FLAGS_DEVICE_AWARE_APP_OP_NEW_SCHEMA_ENABLED
23 #define ANDROID_PERMISSION_FLAGS_DEVICE_AWARE_APP_OP_NEW_SCHEMA_ENABLED false
24 #endif
25 #ifndef ANDROID_PERMISSION_FLAGS_DEVICE_AWARE_PERMISSION_APIS_ENABLED
26 #define ANDROID_PERMISSION_FLAGS_DEVICE_AWARE_PERMISSION_APIS_ENABLED true
27 #endif
28 #ifndef ANDROID_PERMISSION_FLAGS_DEVICE_AWARE_PERMISSIONS_ENABLED
29 #define ANDROID_PERMISSION_FLAGS_DEVICE_AWARE_PERMISSIONS_ENABLED true
30 #endif
31 #ifndef ANDROID_PERMISSION_FLAGS_DEVICE_ID_IN_OP_PROXY_INFO_ENABLED
32 #define ANDROID_PERMISSION_FLAGS_DEVICE_ID_IN_OP_PROXY_INFO_ENABLED false
33 #endif
34 #ifndef ANDROID_PERMISSION_FLAGS_DEVICE_POLICY_MANAGEMENT_ROLE_SPLIT_CREATE_MANAGED_PROFILE_ENABLED
35 #define ANDROID_PERMISSION_FLAGS_DEVICE_POLICY_MANAGEMENT_ROLE_SPLIT_CREATE_MANAGED_PROFILE_ENABLED false
36 #endif
37 #ifndef ANDROID_PERMISSION_FLAGS_DONT_REMOVE_EXISTING_UID_STATES
38 #define ANDROID_PERMISSION_FLAGS_DONT_REMOVE_EXISTING_UID_STATES true
39 #endif
40 #ifndef ANDROID_PERMISSION_FLAGS_ENABLE_AIAI_PROXIED_TEXT_CLASSIFIERS
41 #define ANDROID_PERMISSION_FLAGS_ENABLE_AIAI_PROXIED_TEXT_CLASSIFIERS false
42 #endif
43 #ifndef ANDROID_PERMISSION_FLAGS_ENABLE_OTP_IN_TEXT_CLASSIFIERS
44 #define ANDROID_PERMISSION_FLAGS_ENABLE_OTP_IN_TEXT_CLASSIFIERS false
45 #endif
46 #ifndef ANDROID_PERMISSION_FLAGS_ENABLE_SQLITE_APPOPS_ACCESSES
47 #define ANDROID_PERMISSION_FLAGS_ENABLE_SQLITE_APPOPS_ACCESSES false
48 #endif
49 #ifndef ANDROID_PERMISSION_FLAGS_ENHANCED_CONFIRMATION_IN_CALL_APIS_ENABLED
50 #define ANDROID_PERMISSION_FLAGS_ENHANCED_CONFIRMATION_IN_CALL_APIS_ENABLED false
51 #endif
52 #ifndef ANDROID_PERMISSION_FLAGS_ENHANCED_CONFIRMATION_MODE_APIS_ENABLED
53 #define ANDROID_PERMISSION_FLAGS_ENHANCED_CONFIRMATION_MODE_APIS_ENABLED true
54 #endif
55 #ifndef ANDROID_PERMISSION_FLAGS_FINE_POWER_MONITOR_PERMISSION
56 #define ANDROID_PERMISSION_FLAGS_FINE_POWER_MONITOR_PERMISSION false
57 #endif
58 #ifndef ANDROID_PERMISSION_FLAGS_GET_EMERGENCY_ROLE_HOLDER_API_ENABLED
59 #define ANDROID_PERMISSION_FLAGS_GET_EMERGENCY_ROLE_HOLDER_API_ENABLED true
60 #endif
61 #ifndef ANDROID_PERMISSION_FLAGS_HEALTH_CONNECT_BACKUP_RESTORE_PERMISSION_ENABLED
62 #define ANDROID_PERMISSION_FLAGS_HEALTH_CONNECT_BACKUP_RESTORE_PERMISSION_ENABLED false
63 #endif
64 #ifndef ANDROID_PERMISSION_FLAGS_NOTE_OP_BATCHING_ENABLED
65 #define ANDROID_PERMISSION_FLAGS_NOTE_OP_BATCHING_ENABLED false
66 #endif
67 #ifndef ANDROID_PERMISSION_FLAGS_PERMISSION_REQUEST_SHORT_CIRCUIT_ENABLED
68 #define ANDROID_PERMISSION_FLAGS_PERMISSION_REQUEST_SHORT_CIRCUIT_ENABLED false
69 #endif
70 #ifndef ANDROID_PERMISSION_FLAGS_PERMISSION_TREE_APIS_DEPRECATED
71 #define ANDROID_PERMISSION_FLAGS_PERMISSION_TREE_APIS_DEPRECATED false
72 #endif
73 #ifndef ANDROID_PERMISSION_FLAGS_RANGING_PERMISSION_ENABLED
74 #define ANDROID_PERMISSION_FLAGS_RANGING_PERMISSION_ENABLED false
75 #endif
76 #ifndef ANDROID_PERMISSION_FLAGS_RATE_LIMIT_BATCHED_NOTE_OP_ASYNC_CALLBACKS_ENABLED
77 #define ANDROID_PERMISSION_FLAGS_RATE_LIMIT_BATCHED_NOTE_OP_ASYNC_CALLBACKS_ENABLED false
78 #endif
79 #ifndef ANDROID_PERMISSION_FLAGS_REPLACE_BODY_SENSOR_PERMISSION_ENABLED
80 #define ANDROID_PERMISSION_FLAGS_REPLACE_BODY_SENSOR_PERMISSION_ENABLED false
81 #endif
82 #ifndef ANDROID_PERMISSION_FLAGS_RUNTIME_PERMISSION_APPOPS_MAPPING_ENABLED
83 #define ANDROID_PERMISSION_FLAGS_RUNTIME_PERMISSION_APPOPS_MAPPING_ENABLED true
84 #endif
85 #ifndef ANDROID_PERMISSION_FLAGS_SENSITIVE_CONTENT_IMPROVEMENTS
86 #define ANDROID_PERMISSION_FLAGS_SENSITIVE_CONTENT_IMPROVEMENTS true
87 #endif
88 #ifndef ANDROID_PERMISSION_FLAGS_SENSITIVE_CONTENT_METRICS_BUGFIX
89 #define ANDROID_PERMISSION_FLAGS_SENSITIVE_CONTENT_METRICS_BUGFIX true
90 #endif
91 #ifndef ANDROID_PERMISSION_FLAGS_SENSITIVE_CONTENT_RECENTS_SCREENSHOT_BUGFIX
92 #define ANDROID_PERMISSION_FLAGS_SENSITIVE_CONTENT_RECENTS_SCREENSHOT_BUGFIX true
93 #endif
94 #ifndef ANDROID_PERMISSION_FLAGS_SENSITIVE_NOTIFICATION_APP_PROTECTION
95 #define ANDROID_PERMISSION_FLAGS_SENSITIVE_NOTIFICATION_APP_PROTECTION true
96 #endif
97 #ifndef ANDROID_PERMISSION_FLAGS_SIGNATURE_PERMISSION_ALLOWLIST_ENABLED
98 #define ANDROID_PERMISSION_FLAGS_SIGNATURE_PERMISSION_ALLOWLIST_ENABLED true
99 #endif
100 #ifndef ANDROID_PERMISSION_FLAGS_SUPERVISION_ROLE_PERMISSION_UPDATE_ENABLED
101 #define ANDROID_PERMISSION_FLAGS_SUPERVISION_ROLE_PERMISSION_UPDATE_ENABLED false
102 #endif
103 #ifndef ANDROID_PERMISSION_FLAGS_SYSTEM_SERVER_ROLE_CONTROLLER_ENABLED
104 #define ANDROID_PERMISSION_FLAGS_SYSTEM_SERVER_ROLE_CONTROLLER_ENABLED true
105 #endif
106 #ifndef ANDROID_PERMISSION_FLAGS_SYSTEM_VENDOR_INTELLIGENCE_ROLE_ENABLED
107 #define ANDROID_PERMISSION_FLAGS_SYSTEM_VENDOR_INTELLIGENCE_ROLE_ENABLED false
108 #endif
109 #ifndef ANDROID_PERMISSION_FLAGS_TEXT_CLASSIFIER_CHOICE_API_ENABLED
110 #define ANDROID_PERMISSION_FLAGS_TEXT_CLASSIFIER_CHOICE_API_ENABLED false
111 #endif
112 #ifndef ANDROID_PERMISSION_FLAGS_UNKNOWN_CALL_PACKAGE_INSTALL_BLOCKING_ENABLED
113 #define ANDROID_PERMISSION_FLAGS_UNKNOWN_CALL_PACKAGE_INSTALL_BLOCKING_ENABLED false
114 #endif
115 #ifndef ANDROID_PERMISSION_FLAGS_UPDATABLE_TEXT_CLASSIFIER_FOR_OTP_DETECTION_ENABLED
116 #define ANDROID_PERMISSION_FLAGS_UPDATABLE_TEXT_CLASSIFIER_FOR_OTP_DETECTION_ENABLED false
117 #endif
118 #ifndef ANDROID_PERMISSION_FLAGS_USE_PROFILE_LABELS_FOR_DEFAULT_APP_SECTION_TITLES
119 #define ANDROID_PERMISSION_FLAGS_USE_PROFILE_LABELS_FOR_DEFAULT_APP_SECTION_TITLES false
120 #endif
121 #ifndef ANDROID_PERMISSION_FLAGS_WALLET_ROLE_CROSS_USER_ENABLED
122 #define ANDROID_PERMISSION_FLAGS_WALLET_ROLE_CROSS_USER_ENABLED false
123 #endif
124 
125 #ifdef __cplusplus
126 
127 #include <memory>
128 
129 namespace android::permission::flags {
130 
131 class flag_provider_interface {
132 public:
133     virtual ~flag_provider_interface() = default;
134     virtual bool allow_host_permission_dialogs_on_virtual_devices() = 0;
135     virtual bool appop_access_tracking_logging_enabled() = 0;
136     virtual bool appop_mode_caching_enabled() = 0;
137     virtual bool check_op_overload_api_enabled() = 0;
138     virtual bool check_op_validate_package() = 0;
139     virtual bool cross_user_role_platform_api_enabled() = 0;
140     virtual bool delay_uid_state_changes_from_capability_updates() = 0;
141     virtual bool device_aware_app_op_new_schema_enabled() = 0;
142     virtual bool device_aware_permission_apis_enabled() = 0;
143     virtual bool device_aware_permissions_enabled() = 0;
144     virtual bool device_id_in_op_proxy_info_enabled() = 0;
145     virtual bool device_policy_management_role_split_create_managed_profile_enabled() = 0;
146     virtual bool dont_remove_existing_uid_states() = 0;
147     virtual bool enable_aiai_proxied_text_classifiers() = 0;
148     virtual bool enable_otp_in_text_classifiers() = 0;
149     virtual bool enable_sqlite_appops_accesses() = 0;
150     virtual bool enhanced_confirmation_in_call_apis_enabled() = 0;
151     virtual bool enhanced_confirmation_mode_apis_enabled() = 0;
152     virtual bool factory_reset_prep_permission_apis() = 0;
153     virtual bool fine_power_monitor_permission() = 0;
154     virtual bool finish_running_ops_for_killed_packages() = 0;
155     virtual bool get_emergency_role_holder_api_enabled() = 0;
156     virtual bool health_connect_backup_restore_permission_enabled() = 0;
157     virtual bool ignore_process_text() = 0;
158     virtual bool location_bypass_privacy_dashboard_enabled() = 0;
159     virtual bool note_op_batching_enabled() = 0;
160     virtual bool op_enable_mobile_data_by_user() = 0;
161     virtual bool permission_request_short_circuit_enabled() = 0;
162     virtual bool permission_tree_apis_deprecated() = 0;
163     virtual bool ranging_permission_enabled() = 0;
164     virtual bool rate_limit_batched_note_op_async_callbacks_enabled() = 0;
165     virtual bool replace_body_sensor_permission_enabled() = 0;
166     virtual bool retail_demo_role_enabled() = 0;
167     virtual bool runtime_permission_appops_mapping_enabled() = 0;
168     virtual bool sensitive_content_improvements() = 0;
169     virtual bool sensitive_content_metrics_bugfix() = 0;
170     virtual bool sensitive_content_recents_screenshot_bugfix() = 0;
171     virtual bool sensitive_notification_app_protection() = 0;
172     virtual bool server_side_attribution_registration() = 0;
173     virtual bool set_next_attribution_source() = 0;
174     virtual bool should_register_attribution_source() = 0;
175     virtual bool signature_permission_allowlist_enabled() = 0;
176     virtual bool supervision_role_permission_update_enabled() = 0;
177     virtual bool sync_on_op_noted_api() = 0;
178     virtual bool system_selection_toolbar_enabled() = 0;
179     virtual bool system_server_role_controller_enabled() = 0;
180     virtual bool system_vendor_intelligence_role_enabled() = 0;
181     virtual bool text_classifier_choice_api_enabled() = 0;
182     virtual bool unknown_call_package_install_blocking_enabled() = 0;
183     virtual bool updatable_text_classifier_for_otp_detection_enabled() = 0;
184     virtual bool use_frozen_aware_remote_callback_list() = 0;
185     virtual bool use_profile_labels_for_default_app_section_titles() = 0;
186     virtual bool use_system_selection_toolbar_in_sysui() = 0;
187     virtual bool voice_activation_permission_apis() = 0;
188     virtual bool wallet_role_cross_user_enabled() = 0;
189     virtual bool wallet_role_enabled() = 0;
190     virtual bool wallet_role_icon_property_enabled() = 0;
191 };
192 
193 extern std::unique_ptr<flag_provider_interface> provider_;
194 
195 
allow_host_permission_dialogs_on_virtual_devices()196 inline bool allow_host_permission_dialogs_on_virtual_devices() {
197     return false;
198 }
appop_access_tracking_logging_enabled()199 inline bool appop_access_tracking_logging_enabled() {
200     return ANDROID_PERMISSION_FLAGS_APPOP_ACCESS_TRACKING_LOGGING_ENABLED;
201 }
appop_mode_caching_enabled()202 inline bool appop_mode_caching_enabled() {
203     return ANDROID_PERMISSION_FLAGS_APPOP_MODE_CACHING_ENABLED;
204 }
check_op_overload_api_enabled()205 inline bool check_op_overload_api_enabled() {
206     return ANDROID_PERMISSION_FLAGS_CHECK_OP_OVERLOAD_API_ENABLED;
207 }
check_op_validate_package()208 inline bool check_op_validate_package() {
209     return false;
210 }
cross_user_role_platform_api_enabled()211 inline bool cross_user_role_platform_api_enabled() {
212     return ANDROID_PERMISSION_FLAGS_CROSS_USER_ROLE_PLATFORM_API_ENABLED;
213 }
delay_uid_state_changes_from_capability_updates()214 inline bool delay_uid_state_changes_from_capability_updates() {
215     return ANDROID_PERMISSION_FLAGS_DELAY_UID_STATE_CHANGES_FROM_CAPABILITY_UPDATES;
216 }
device_aware_app_op_new_schema_enabled()217 inline bool device_aware_app_op_new_schema_enabled() {
218     return ANDROID_PERMISSION_FLAGS_DEVICE_AWARE_APP_OP_NEW_SCHEMA_ENABLED;
219 }
device_aware_permission_apis_enabled()220 inline bool device_aware_permission_apis_enabled() {
221     return ANDROID_PERMISSION_FLAGS_DEVICE_AWARE_PERMISSION_APIS_ENABLED;
222 }
device_aware_permissions_enabled()223 inline bool device_aware_permissions_enabled() {
224     return ANDROID_PERMISSION_FLAGS_DEVICE_AWARE_PERMISSIONS_ENABLED;
225 }
device_id_in_op_proxy_info_enabled()226 inline bool device_id_in_op_proxy_info_enabled() {
227     return ANDROID_PERMISSION_FLAGS_DEVICE_ID_IN_OP_PROXY_INFO_ENABLED;
228 }
device_policy_management_role_split_create_managed_profile_enabled()229 inline bool device_policy_management_role_split_create_managed_profile_enabled() {
230     return ANDROID_PERMISSION_FLAGS_DEVICE_POLICY_MANAGEMENT_ROLE_SPLIT_CREATE_MANAGED_PROFILE_ENABLED;
231 }
dont_remove_existing_uid_states()232 inline bool dont_remove_existing_uid_states() {
233     return ANDROID_PERMISSION_FLAGS_DONT_REMOVE_EXISTING_UID_STATES;
234 }
enable_aiai_proxied_text_classifiers()235 inline bool enable_aiai_proxied_text_classifiers() {
236     return ANDROID_PERMISSION_FLAGS_ENABLE_AIAI_PROXIED_TEXT_CLASSIFIERS;
237 }
enable_otp_in_text_classifiers()238 inline bool enable_otp_in_text_classifiers() {
239     return ANDROID_PERMISSION_FLAGS_ENABLE_OTP_IN_TEXT_CLASSIFIERS;
240 }
enable_sqlite_appops_accesses()241 inline bool enable_sqlite_appops_accesses() {
242     return ANDROID_PERMISSION_FLAGS_ENABLE_SQLITE_APPOPS_ACCESSES;
243 }
enhanced_confirmation_in_call_apis_enabled()244 inline bool enhanced_confirmation_in_call_apis_enabled() {
245     return ANDROID_PERMISSION_FLAGS_ENHANCED_CONFIRMATION_IN_CALL_APIS_ENABLED;
246 }
enhanced_confirmation_mode_apis_enabled()247 inline bool enhanced_confirmation_mode_apis_enabled() {
248     return ANDROID_PERMISSION_FLAGS_ENHANCED_CONFIRMATION_MODE_APIS_ENABLED;
249 }
factory_reset_prep_permission_apis()250 inline bool factory_reset_prep_permission_apis() {
251     return true;
252 }
fine_power_monitor_permission()253 inline bool fine_power_monitor_permission() {
254     return ANDROID_PERMISSION_FLAGS_FINE_POWER_MONITOR_PERMISSION;
255 }
finish_running_ops_for_killed_packages()256 inline bool finish_running_ops_for_killed_packages() {
257     return true;
258 }
get_emergency_role_holder_api_enabled()259 inline bool get_emergency_role_holder_api_enabled() {
260     return ANDROID_PERMISSION_FLAGS_GET_EMERGENCY_ROLE_HOLDER_API_ENABLED;
261 }
health_connect_backup_restore_permission_enabled()262 inline bool health_connect_backup_restore_permission_enabled() {
263     return ANDROID_PERMISSION_FLAGS_HEALTH_CONNECT_BACKUP_RESTORE_PERMISSION_ENABLED;
264 }
ignore_process_text()265 inline bool ignore_process_text() {
266     return false;
267 }
location_bypass_privacy_dashboard_enabled()268 inline bool location_bypass_privacy_dashboard_enabled() {
269     return true;
270 }
note_op_batching_enabled()271 inline bool note_op_batching_enabled() {
272     return ANDROID_PERMISSION_FLAGS_NOTE_OP_BATCHING_ENABLED;
273 }
op_enable_mobile_data_by_user()274 inline bool op_enable_mobile_data_by_user() {
275     return true;
276 }
permission_request_short_circuit_enabled()277 inline bool permission_request_short_circuit_enabled() {
278     return ANDROID_PERMISSION_FLAGS_PERMISSION_REQUEST_SHORT_CIRCUIT_ENABLED;
279 }
permission_tree_apis_deprecated()280 inline bool permission_tree_apis_deprecated() {
281     return ANDROID_PERMISSION_FLAGS_PERMISSION_TREE_APIS_DEPRECATED;
282 }
ranging_permission_enabled()283 inline bool ranging_permission_enabled() {
284     return ANDROID_PERMISSION_FLAGS_RANGING_PERMISSION_ENABLED;
285 }
rate_limit_batched_note_op_async_callbacks_enabled()286 inline bool rate_limit_batched_note_op_async_callbacks_enabled() {
287     return ANDROID_PERMISSION_FLAGS_RATE_LIMIT_BATCHED_NOTE_OP_ASYNC_CALLBACKS_ENABLED;
288 }
replace_body_sensor_permission_enabled()289 inline bool replace_body_sensor_permission_enabled() {
290     return ANDROID_PERMISSION_FLAGS_REPLACE_BODY_SENSOR_PERMISSION_ENABLED;
291 }
retail_demo_role_enabled()292 inline bool retail_demo_role_enabled() {
293     return true;
294 }
runtime_permission_appops_mapping_enabled()295 inline bool runtime_permission_appops_mapping_enabled() {
296     return ANDROID_PERMISSION_FLAGS_RUNTIME_PERMISSION_APPOPS_MAPPING_ENABLED;
297 }
sensitive_content_improvements()298 inline bool sensitive_content_improvements() {
299     return ANDROID_PERMISSION_FLAGS_SENSITIVE_CONTENT_IMPROVEMENTS;
300 }
sensitive_content_metrics_bugfix()301 inline bool sensitive_content_metrics_bugfix() {
302     return ANDROID_PERMISSION_FLAGS_SENSITIVE_CONTENT_METRICS_BUGFIX;
303 }
sensitive_content_recents_screenshot_bugfix()304 inline bool sensitive_content_recents_screenshot_bugfix() {
305     return ANDROID_PERMISSION_FLAGS_SENSITIVE_CONTENT_RECENTS_SCREENSHOT_BUGFIX;
306 }
sensitive_notification_app_protection()307 inline bool sensitive_notification_app_protection() {
308     return ANDROID_PERMISSION_FLAGS_SENSITIVE_NOTIFICATION_APP_PROTECTION;
309 }
server_side_attribution_registration()310 inline bool server_side_attribution_registration() {
311     return true;
312 }
set_next_attribution_source()313 inline bool set_next_attribution_source() {
314     return false;
315 }
should_register_attribution_source()316 inline bool should_register_attribution_source() {
317     return true;
318 }
signature_permission_allowlist_enabled()319 inline bool signature_permission_allowlist_enabled() {
320     return ANDROID_PERMISSION_FLAGS_SIGNATURE_PERMISSION_ALLOWLIST_ENABLED;
321 }
supervision_role_permission_update_enabled()322 inline bool supervision_role_permission_update_enabled() {
323     return ANDROID_PERMISSION_FLAGS_SUPERVISION_ROLE_PERMISSION_UPDATE_ENABLED;
324 }
sync_on_op_noted_api()325 inline bool sync_on_op_noted_api() {
326     return false;
327 }
system_selection_toolbar_enabled()328 inline bool system_selection_toolbar_enabled() {
329     return false;
330 }
system_server_role_controller_enabled()331 inline bool system_server_role_controller_enabled() {
332     return ANDROID_PERMISSION_FLAGS_SYSTEM_SERVER_ROLE_CONTROLLER_ENABLED;
333 }
system_vendor_intelligence_role_enabled()334 inline bool system_vendor_intelligence_role_enabled() {
335     return ANDROID_PERMISSION_FLAGS_SYSTEM_VENDOR_INTELLIGENCE_ROLE_ENABLED;
336 }
text_classifier_choice_api_enabled()337 inline bool text_classifier_choice_api_enabled() {
338     return ANDROID_PERMISSION_FLAGS_TEXT_CLASSIFIER_CHOICE_API_ENABLED;
339 }
unknown_call_package_install_blocking_enabled()340 inline bool unknown_call_package_install_blocking_enabled() {
341     return ANDROID_PERMISSION_FLAGS_UNKNOWN_CALL_PACKAGE_INSTALL_BLOCKING_ENABLED;
342 }
updatable_text_classifier_for_otp_detection_enabled()343 inline bool updatable_text_classifier_for_otp_detection_enabled() {
344     return ANDROID_PERMISSION_FLAGS_UPDATABLE_TEXT_CLASSIFIER_FOR_OTP_DETECTION_ENABLED;
345 }
use_frozen_aware_remote_callback_list()346 inline bool use_frozen_aware_remote_callback_list() {
347     return false;
348 }
use_profile_labels_for_default_app_section_titles()349 inline bool use_profile_labels_for_default_app_section_titles() {
350     return ANDROID_PERMISSION_FLAGS_USE_PROFILE_LABELS_FOR_DEFAULT_APP_SECTION_TITLES;
351 }
use_system_selection_toolbar_in_sysui()352 inline bool use_system_selection_toolbar_in_sysui() {
353     return false;
354 }
voice_activation_permission_apis()355 inline bool voice_activation_permission_apis() {
356     return false;
357 }
wallet_role_cross_user_enabled()358 inline bool wallet_role_cross_user_enabled() {
359     return ANDROID_PERMISSION_FLAGS_WALLET_ROLE_CROSS_USER_ENABLED;
360 }
wallet_role_enabled()361 inline bool wallet_role_enabled() {
362     return true;
363 }
wallet_role_icon_property_enabled()364 inline bool wallet_role_icon_property_enabled() {
365     return false;
366 }
367 
368 }
369 
370 extern "C" {
371 #endif // __cplusplus
372 
373 
374 bool android_permission_flags_allow_host_permission_dialogs_on_virtual_devices();
375 bool android_permission_flags_appop_access_tracking_logging_enabled();
376 bool android_permission_flags_appop_mode_caching_enabled();
377 bool android_permission_flags_check_op_overload_api_enabled();
378 bool android_permission_flags_check_op_validate_package();
379 bool android_permission_flags_cross_user_role_platform_api_enabled();
380 bool android_permission_flags_delay_uid_state_changes_from_capability_updates();
381 bool android_permission_flags_device_aware_app_op_new_schema_enabled();
382 bool android_permission_flags_device_aware_permission_apis_enabled();
383 bool android_permission_flags_device_aware_permissions_enabled();
384 bool android_permission_flags_device_id_in_op_proxy_info_enabled();
385 bool android_permission_flags_device_policy_management_role_split_create_managed_profile_enabled();
386 bool android_permission_flags_dont_remove_existing_uid_states();
387 bool android_permission_flags_enable_aiai_proxied_text_classifiers();
388 bool android_permission_flags_enable_otp_in_text_classifiers();
389 bool android_permission_flags_enable_sqlite_appops_accesses();
390 bool android_permission_flags_enhanced_confirmation_in_call_apis_enabled();
391 bool android_permission_flags_enhanced_confirmation_mode_apis_enabled();
392 bool android_permission_flags_factory_reset_prep_permission_apis();
393 bool android_permission_flags_fine_power_monitor_permission();
394 bool android_permission_flags_finish_running_ops_for_killed_packages();
395 bool android_permission_flags_get_emergency_role_holder_api_enabled();
396 bool android_permission_flags_health_connect_backup_restore_permission_enabled();
397 bool android_permission_flags_ignore_process_text();
398 bool android_permission_flags_location_bypass_privacy_dashboard_enabled();
399 bool android_permission_flags_note_op_batching_enabled();
400 bool android_permission_flags_op_enable_mobile_data_by_user();
401 bool android_permission_flags_permission_request_short_circuit_enabled();
402 bool android_permission_flags_permission_tree_apis_deprecated();
403 bool android_permission_flags_ranging_permission_enabled();
404 bool android_permission_flags_rate_limit_batched_note_op_async_callbacks_enabled();
405 bool android_permission_flags_replace_body_sensor_permission_enabled();
406 bool android_permission_flags_retail_demo_role_enabled();
407 bool android_permission_flags_runtime_permission_appops_mapping_enabled();
408 bool android_permission_flags_sensitive_content_improvements();
409 bool android_permission_flags_sensitive_content_metrics_bugfix();
410 bool android_permission_flags_sensitive_content_recents_screenshot_bugfix();
411 bool android_permission_flags_sensitive_notification_app_protection();
412 bool android_permission_flags_server_side_attribution_registration();
413 bool android_permission_flags_set_next_attribution_source();
414 bool android_permission_flags_should_register_attribution_source();
415 bool android_permission_flags_signature_permission_allowlist_enabled();
416 bool android_permission_flags_supervision_role_permission_update_enabled();
417 bool android_permission_flags_sync_on_op_noted_api();
418 bool android_permission_flags_system_selection_toolbar_enabled();
419 bool android_permission_flags_system_server_role_controller_enabled();
420 bool android_permission_flags_system_vendor_intelligence_role_enabled();
421 bool android_permission_flags_text_classifier_choice_api_enabled();
422 bool android_permission_flags_unknown_call_package_install_blocking_enabled();
423 bool android_permission_flags_updatable_text_classifier_for_otp_detection_enabled();
424 bool android_permission_flags_use_frozen_aware_remote_callback_list();
425 bool android_permission_flags_use_profile_labels_for_default_app_section_titles();
426 bool android_permission_flags_use_system_selection_toolbar_in_sysui();
427 bool android_permission_flags_voice_activation_permission_apis();
428 bool android_permission_flags_wallet_role_cross_user_enabled();
429 bool android_permission_flags_wallet_role_enabled();
430 bool android_permission_flags_wallet_role_icon_property_enabled();
431 
432 #ifdef __cplusplus
433 } // extern "C"
434 #endif
435 
436