1# Properties used only in /system
2#
3# DO NOT ADD system_internal_prop here.
4# Instead, add to private/property.te.
5# TODO(b/150331497): move these to private/property.te
6system_internal_prop(apexd_prop)
7system_internal_prop(bootloader_boot_reason_prop)
8system_internal_prop(device_config_activity_manager_native_boot_prop)
9system_internal_prop(device_config_boot_count_prop)
10system_internal_prop(device_config_input_native_boot_prop)
11system_internal_prop(device_config_media_native_prop)
12system_internal_prop(device_config_netd_native_prop)
13system_internal_prop(device_config_reset_performed_prop)
14system_internal_prop(device_config_runtime_native_boot_prop)
15system_internal_prop(device_config_runtime_native_prop)
16system_internal_prop(firstboot_prop)
17
18compatible_property_only(`
19    # DO NOT ADD ANY PROPERTIES HERE
20    system_internal_prop(boottime_prop)
21    system_internal_prop(bpf_progs_loaded_prop)
22    system_internal_prop(charger_prop)
23    system_internal_prop(cold_boot_done_prop)
24    system_internal_prop(ctl_adbd_prop)
25    system_internal_prop(ctl_apexd_prop)
26    system_internal_prop(ctl_bootanim_prop)
27    system_internal_prop(ctl_bugreport_prop)
28    system_internal_prop(ctl_console_prop)
29    system_internal_prop(ctl_dumpstate_prop)
30    system_internal_prop(ctl_fuse_prop)
31    system_internal_prop(ctl_gsid_prop)
32    system_internal_prop(ctl_interface_restart_prop)
33    system_internal_prop(ctl_interface_stop_prop)
34    system_internal_prop(ctl_mdnsd_prop)
35    system_internal_prop(ctl_restart_prop)
36    system_internal_prop(ctl_rildaemon_prop)
37    system_internal_prop(ctl_sigstop_prop)
38    system_internal_prop(dynamic_system_prop)
39    system_internal_prop(heapprofd_enabled_prop)
40    system_internal_prop(llkd_prop)
41    system_internal_prop(lpdumpd_prop)
42    system_internal_prop(mmc_prop)
43    system_internal_prop(mock_ota_prop)
44    system_internal_prop(net_dns_prop)
45    system_internal_prop(overlay_prop)
46    system_internal_prop(persistent_properties_ready_prop)
47    system_internal_prop(safemode_prop)
48    system_internal_prop(system_lmk_prop)
49    system_internal_prop(system_trace_prop)
50    system_internal_prop(test_boot_reason_prop)
51    system_internal_prop(time_prop)
52    system_internal_prop(traced_enabled_prop)
53    system_internal_prop(traced_lazy_prop)
54')
55
56# Properties which can't be written outside system
57system_restricted_prop(aac_drc_prop)
58system_restricted_prop(binder_cache_bluetooth_server_prop)
59system_restricted_prop(binder_cache_system_server_prop)
60system_restricted_prop(binder_cache_telephony_server_prop)
61system_restricted_prop(boot_status_prop)
62system_restricted_prop(bootloader_prop)
63system_restricted_prop(bq_config_prop)
64system_restricted_prop(build_prop)
65system_restricted_prop(charger_status_prop)
66system_restricted_prop(fingerprint_prop)
67system_restricted_prop(hal_instrumentation_prop)
68system_restricted_prop(init_service_status_prop)
69system_restricted_prop(libc_debug_prop)
70system_restricted_prop(module_sdkextensions_prop)
71system_restricted_prop(nnapi_ext_deny_product_prop)
72system_restricted_prop(property_service_version_prop)
73system_restricted_prop(provisioned_prop)
74system_restricted_prop(restorecon_prop)
75system_restricted_prop(retaildemo_prop)
76system_restricted_prop(socket_hook_prop)
77system_restricted_prop(system_boot_reason_prop)
78system_restricted_prop(system_jvmti_agent_prop)
79system_restricted_prop(usb_prop)
80system_restricted_prop(userspace_reboot_exported_prop)
81system_restricted_prop(vold_status_prop)
82system_restricted_prop(vts_status_prop)
83
84compatible_property_only(`
85    # DO NOT ADD ANY PROPERTIES HERE
86    system_restricted_prop(config_prop)
87    system_restricted_prop(cppreopt_prop)
88    system_restricted_prop(dalvik_prop)
89    system_restricted_prop(debuggerd_prop)
90    system_restricted_prop(default_prop)
91    system_restricted_prop(device_logging_prop)
92    system_restricted_prop(dhcp_prop)
93    system_restricted_prop(dumpstate_prop)
94    system_restricted_prop(exported3_system_prop)
95    system_restricted_prop(exported_dumpstate_prop)
96    system_restricted_prop(exported_secure_prop)
97    system_restricted_prop(heapprofd_prop)
98    system_restricted_prop(net_radio_prop)
99    system_restricted_prop(pan_result_prop)
100    system_restricted_prop(persist_debug_prop)
101    system_restricted_prop(shell_prop)
102    system_restricted_prop(test_harness_prop)
103    system_restricted_prop(theme_prop)
104    system_restricted_prop(use_memfd_prop)
105    system_restricted_prop(vold_prop)
106')
107
108# Properties which can be written only by vendor_init
109system_vendor_config_prop(aaudio_config_prop)
110system_vendor_config_prop(adbd_config_prop)
111system_vendor_config_prop(apk_verity_prop)
112system_vendor_config_prop(audio_config_prop)
113system_vendor_config_prop(build_odm_prop)
114system_vendor_config_prop(build_vendor_prop)
115system_vendor_config_prop(camera_calibration_prop)
116system_vendor_config_prop(camera_config_prop)
117system_vendor_config_prop(charger_config_prop)
118system_vendor_config_prop(cpu_variant_prop)
119system_vendor_config_prop(dalvik_config_prop)
120system_vendor_config_prop(drm_service_config_prop)
121system_vendor_config_prop(exported_camera_prop)
122system_vendor_config_prop(exported_config_prop)
123system_vendor_config_prop(exported_default_prop)
124system_vendor_config_prop(ffs_config_prop)
125system_vendor_config_prop(graphics_config_prop)
126system_vendor_config_prop(hdmi_config_prop)
127system_vendor_config_prop(incremental_prop)
128system_vendor_config_prop(keyguard_config_prop)
129system_vendor_config_prop(lmkd_config_prop)
130system_vendor_config_prop(media_config_prop)
131system_vendor_config_prop(media_variant_prop)
132system_vendor_config_prop(mediadrm_config_prop)
133system_vendor_config_prop(oem_unlock_prop)
134system_vendor_config_prop(packagemanager_config_prop)
135system_vendor_config_prop(recovery_config_prop)
136system_vendor_config_prop(sendbug_config_prop)
137system_vendor_config_prop(storage_config_prop)
138system_vendor_config_prop(storagemanager_config_prop)
139system_vendor_config_prop(surfaceflinger_prop)
140system_vendor_config_prop(systemsound_config_prop)
141system_vendor_config_prop(telephony_config_prop)
142system_vendor_config_prop(tombstone_config_prop)
143system_vendor_config_prop(usb_config_prop)
144system_vendor_config_prop(userspace_reboot_config_prop)
145system_vendor_config_prop(vehicle_hal_prop)
146system_vendor_config_prop(vendor_security_patch_level_prop)
147system_vendor_config_prop(vendor_socket_hook_prop)
148system_vendor_config_prop(virtual_ab_prop)
149system_vendor_config_prop(vndk_prop)
150system_vendor_config_prop(vts_config_prop)
151system_vendor_config_prop(vold_config_prop)
152system_vendor_config_prop(wifi_config_prop)
153system_vendor_config_prop(zram_config_prop)
154
155# Properties with no restrictions
156system_public_prop(audio_prop)
157system_public_prop(bluetooth_a2dp_offload_prop)
158system_public_prop(bluetooth_audio_hal_prop)
159system_public_prop(bluetooth_prop)
160system_public_prop(ctl_default_prop)
161system_public_prop(ctl_interface_start_prop)
162system_public_prop(ctl_start_prop)
163system_public_prop(ctl_stop_prop)
164system_public_prop(dalvik_runtime_prop)
165system_public_prop(debug_prop)
166system_public_prop(dumpstate_options_prop)
167system_public_prop(exported_system_prop)
168system_public_prop(exported2_system_prop)
169system_public_prop(exported3_radio_prop)
170system_public_prop(exported_bluetooth_prop)
171system_public_prop(exported_overlay_prop)
172system_public_prop(exported_pm_prop)
173system_public_prop(ffs_control_prop)
174system_public_prop(sota_prop)
175system_public_prop(hwservicemanager_prop)
176system_public_prop(lmkd_prop)
177system_public_prop(logd_prop)
178system_public_prop(logpersistd_logging_prop)
179system_public_prop(log_prop)
180system_public_prop(log_tag_prop)
181system_public_prop(lowpan_prop)
182system_public_prop(nfc_prop)
183system_public_prop(ota_prop)
184system_public_prop(powerctl_prop)
185system_public_prop(radio_prop)
186system_public_prop(serialno_prop)
187system_public_prop(surfaceflinger_color_prop)
188system_public_prop(system_prop)
189system_public_prop(telephony_status_prop)
190system_public_prop(usb_control_prop)
191system_public_prop(wifi_hal_prop)
192system_public_prop(wifi_log_prop)
193system_public_prop(wifi_prop)
194system_public_prop(zram_control_prop)
195
196# Properties used in default HAL implementations
197vendor_internal_prop(rebootescrow_hal_prop)
198
199# Properties which are public for devices launching with Android O or earlier
200# This should not be used for any new properties.
201not_compatible_property(`
202    # DO NOT ADD ANY PROPERTIES HERE
203    system_public_prop(boottime_prop)
204    system_public_prop(bpf_progs_loaded_prop)
205    system_public_prop(charger_prop)
206    system_public_prop(cold_boot_done_prop)
207    system_public_prop(ctl_adbd_prop)
208    system_public_prop(ctl_apexd_prop)
209    system_public_prop(ctl_bootanim_prop)
210    system_public_prop(ctl_bugreport_prop)
211    system_public_prop(ctl_console_prop)
212    system_public_prop(ctl_dumpstate_prop)
213    system_public_prop(ctl_fuse_prop)
214    system_public_prop(ctl_gsid_prop)
215    system_public_prop(ctl_interface_restart_prop)
216    system_public_prop(ctl_interface_stop_prop)
217    system_public_prop(ctl_mdnsd_prop)
218    system_public_prop(ctl_restart_prop)
219    system_public_prop(ctl_rildaemon_prop)
220    system_public_prop(ctl_sigstop_prop)
221    system_public_prop(dynamic_system_prop)
222    system_public_prop(heapprofd_enabled_prop)
223    system_public_prop(llkd_prop)
224    system_public_prop(lpdumpd_prop)
225    system_public_prop(mmc_prop)
226    system_public_prop(mock_ota_prop)
227    system_public_prop(net_dns_prop)
228    system_public_prop(overlay_prop)
229    system_public_prop(persistent_properties_ready_prop)
230    system_public_prop(safemode_prop)
231    system_public_prop(system_lmk_prop)
232    system_public_prop(system_trace_prop)
233    system_public_prop(test_boot_reason_prop)
234    system_public_prop(time_prop)
235    system_public_prop(traced_enabled_prop)
236    system_public_prop(traced_lazy_prop)
237
238    system_public_prop(config_prop)
239    system_public_prop(cppreopt_prop)
240    system_public_prop(dalvik_prop)
241    system_public_prop(debuggerd_prop)
242    system_public_prop(default_prop)
243    system_public_prop(device_logging_prop)
244    system_public_prop(dhcp_prop)
245    system_public_prop(dumpstate_prop)
246    system_public_prop(exported3_system_prop)
247    system_public_prop(exported_dumpstate_prop)
248    system_public_prop(exported_secure_prop)
249    system_public_prop(heapprofd_prop)
250    system_public_prop(net_radio_prop)
251    system_public_prop(pan_result_prop)
252    system_public_prop(persist_debug_prop)
253    system_public_prop(shell_prop)
254    system_public_prop(test_harness_prop)
255    system_public_prop(theme_prop)
256    system_public_prop(use_memfd_prop)
257    system_public_prop(vold_prop)
258')
259
260type vendor_default_prop, property_type;
261
262typeattribute log_prop log_property_type;
263typeattribute log_tag_prop log_property_type;
264typeattribute wifi_log_prop log_property_type;
265
266allow property_type tmpfs:filesystem associate;
267
268# core_property_type should not be used for new properties or
269# device specific properties. Properties with this attribute
270# are readable to everyone, which is overly broad and should
271# be avoided.
272# New properties should have appropriate read / write access
273# control rules written.
274
275typeattribute audio_prop         core_property_type;
276typeattribute config_prop        core_property_type;
277typeattribute cppreopt_prop      core_property_type;
278typeattribute dalvik_prop        core_property_type;
279typeattribute debuggerd_prop     core_property_type;
280typeattribute debug_prop         core_property_type;
281typeattribute default_prop       core_property_type;
282typeattribute dhcp_prop          core_property_type;
283typeattribute dumpstate_prop     core_property_type;
284typeattribute logd_prop          core_property_type;
285typeattribute net_radio_prop     core_property_type;
286typeattribute nfc_prop           core_property_type;
287typeattribute ota_prop           core_property_type;
288typeattribute pan_result_prop    core_property_type;
289typeattribute persist_debug_prop core_property_type;
290typeattribute powerctl_prop      core_property_type;
291typeattribute radio_prop         core_property_type;
292typeattribute restorecon_prop    core_property_type;
293typeattribute shell_prop         core_property_type;
294typeattribute system_prop        core_property_type;
295typeattribute usb_prop           core_property_type;
296typeattribute vold_prop          core_property_type;
297