• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1###########################################
2# Root
3/                   u:object_r:rootfs:s0
4
5# Data files
6/adb_keys           u:object_r:adb_keys_file:s0
7/build\.prop        u:object_r:rootfs:s0
8/default\.prop      u:object_r:rootfs:s0
9/fstab\..*          u:object_r:rootfs:s0
10/init\..*           u:object_r:rootfs:s0
11/res(/.*)?          u:object_r:rootfs:s0
12/selinux_version    u:object_r:rootfs:s0
13/ueventd\..*        u:object_r:rootfs:s0
14/verity_key         u:object_r:rootfs:s0
15
16# Executables
17/init               u:object_r:init_exec:s0
18/sbin(/.*)?         u:object_r:rootfs:s0
19
20# For kernel modules
21/lib(/.*)?          u:object_r:rootfs:s0
22
23# Empty directories
24/lost\+found        u:object_r:rootfs:s0
25/acct               u:object_r:cgroup:s0
26/config             u:object_r:rootfs:s0
27/data_mirror        u:object_r:mirror_data_file:s0
28/debug_ramdisk      u:object_r:tmpfs:s0
29/mnt                u:object_r:tmpfs:s0
30/proc               u:object_r:rootfs:s0
31/second_stage_resources u:object_r:tmpfs:s0
32/sys                u:object_r:sysfs:s0
33/apex               u:object_r:apex_mnt_dir:s0
34
35# Postinstall directories
36/postinstall         u:object_r:postinstall_mnt_dir:s0
37/postinstall/apex    u:object_r:postinstall_apex_mnt_dir:s0
38
39/apex/(\.(bootstrap|default)-)?apex-info-list.xml u:object_r:apex_info_file:s0
40
41# Symlinks
42/bin                u:object_r:rootfs:s0
43/bugreports         u:object_r:rootfs:s0
44/charger            u:object_r:rootfs:s0
45/d                  u:object_r:rootfs:s0
46/etc                u:object_r:rootfs:s0
47/sdcard             u:object_r:rootfs:s0
48
49# SELinux policy files
50/vendor_file_contexts   u:object_r:file_contexts_file:s0
51/nonplat_file_contexts  u:object_r:file_contexts_file:s0
52/plat_file_contexts     u:object_r:file_contexts_file:s0
53/product_file_contexts  u:object_r:file_contexts_file:s0
54/mapping_sepolicy\.cil   u:object_r:sepolicy_file:s0
55/nonplat_sepolicy\.cil   u:object_r:sepolicy_file:s0
56/plat_sepolicy\.cil      u:object_r:sepolicy_file:s0
57/plat_property_contexts  u:object_r:property_contexts_file:s0
58/product_property_contexts  u:object_r:property_contexts_file:s0
59/nonplat_property_contexts  u:object_r:property_contexts_file:s0
60/vendor_property_contexts   u:object_r:property_contexts_file:s0
61/seapp_contexts     u:object_r:seapp_contexts_file:s0
62/nonplat_seapp_contexts     u:object_r:seapp_contexts_file:s0
63/vendor_seapp_contexts      u:object_r:seapp_contexts_file:s0
64/plat_seapp_contexts     u:object_r:seapp_contexts_file:s0
65/sepolicy           u:object_r:sepolicy_file:s0
66/plat_service_contexts   u:object_r:service_contexts_file:s0
67/plat_hwservice_contexts   u:object_r:hwservice_contexts_file:s0
68/plat_keystore2_key_contexts u:object_r:keystore2_key_contexts_file:s0
69/nonplat_service_contexts   u:object_r:nonplat_service_contexts_file:s0
70# Use nonplat_service_contexts_file to allow servicemanager to read it
71# on non full-treble devices.
72/vendor_service_contexts    u:object_r:nonplat_service_contexts_file:s0
73/nonplat_hwservice_contexts   u:object_r:hwservice_contexts_file:s0
74/vendor_hwservice_contexts    u:object_r:hwservice_contexts_file:s0
75/vndservice_contexts   u:object_r:vndservice_contexts_file:s0
76
77##########################
78# Devices
79#
80/dev(/.*)?		u:object_r:device:s0
81/dev/adf[0-9]*		u:object_r:graphics_device:s0
82/dev/adf-interface[0-9]*\.[0-9]*	u:object_r:graphics_device:s0
83/dev/adf-overlay-engine[0-9]*\.[0-9]*	u:object_r:graphics_device:s0
84/dev/ashmem		u:object_r:ashmem_device:s0
85/dev/ashmem(.*)?	u:object_r:ashmem_libcutils_device:s0
86/dev/audio.*		u:object_r:audio_device:s0
87/dev/binder		u:object_r:binder_device:s0
88/dev/block(/.*)?	u:object_r:block_device:s0
89/dev/block/dm-[0-9]+	u:object_r:dm_device:s0
90/dev/block/loop[0-9]*	u:object_r:loop_device:s0
91/dev/block/vd[a-z][0-9]*  u:object_r:vd_device:s0
92/dev/block/vold/.+	u:object_r:vold_device:s0
93/dev/block/ram[0-9]*	u:object_r:ram_device:s0
94/dev/block/zram[0-9]*	u:object_r:ram_device:s0
95/dev/boringssl/selftest(/.*)?	u:object_r:boringssl_self_test_marker:s0
96/dev/bus/usb(.*)?       u:object_r:usb_device:s0
97/dev/console		u:object_r:console_device:s0
98/dev/cpu_variant:.*     u:object_r:dev_cpu_variant:s0
99/dev/dma_heap(/.*)?     u:object_r:dmabuf_heap_device:s0
100/dev/dma_heap/system    u:object_r:dmabuf_system_heap_device:s0
101/dev/dma_heap/system-uncached    u:object_r:dmabuf_system_heap_device:s0
102/dev/dma_heap/system-secure(.*)	 u:object_r:dmabuf_system_secure_heap_device:s0
103/dev/dm-user(/.*)?	u:object_r:dm_user_device:s0
104/dev/device-mapper	u:object_r:dm_device:s0
105/dev/eac		u:object_r:audio_device:s0
106/dev/event-log-tags     u:object_r:runtime_event_log_tags_file:s0
107/dev/cgroup_info(/.*)?  u:object_r:cgroup_rc_file:s0
108/dev/fscklogs(/.*)?	u:object_r:fscklogs:s0
109/dev/fuse		u:object_r:fuse_device:s0
110/dev/gnss[0-9]+		u:object_r:gnss_device:s0
111/dev/graphics(/.*)?	u:object_r:graphics_device:s0
112/dev/hw_random		u:object_r:hw_random_device:s0
113/dev/hwbinder		u:object_r:hwbinder_device:s0
114/dev/input(/.*)?	u:object_r:input_device:s0
115/dev/iio:device[0-9]+   u:object_r:iio_device:s0
116/dev/ion		u:object_r:ion_device:s0
117/dev/keychord   u:object_r:keychord_device:s0
118/dev/loop-control	u:object_r:loop_control_device:s0
119/dev/modem.*		u:object_r:radio_device:s0
120/dev/mtp_usb		u:object_r:mtp_device:s0
121/dev/pmsg0		u:object_r:pmsg_device:s0
122/dev/pn544		u:object_r:nfc_device:s0
123/dev/port		u:object_r:port_device:s0
124/dev/ppp		u:object_r:ppp_device:s0
125/dev/ptmx		u:object_r:ptmx_device:s0
126/dev/pvrsrvkm		u:object_r:gpu_device:s0
127/dev/kmsg		u:object_r:kmsg_device:s0
128/dev/kmsg_debug	u:object_r:kmsg_debug_device:s0
129/dev/kvm		u:object_r:kvm_device:s0
130/dev/null		u:object_r:null_device:s0
131/dev/nvhdcp1		u:object_r:video_device:s0
132/dev/random		u:object_r:random_device:s0
133/dev/rpmsg-omx[0-9]	u:object_r:rpmsg_device:s0
134/dev/rproc_user	u:object_r:rpmsg_device:s0
135/dev/rtc[0-9]      u:object_r:rtc_device:s0
136/dev/snd(/.*)?		u:object_r:audio_device:s0
137/dev/socket(/.*)?	u:object_r:socket_device:s0
138/dev/socket/adbd	u:object_r:adbd_socket:s0
139/dev/socket/dnsproxyd	u:object_r:dnsproxyd_socket:s0
140/dev/socket/dumpstate	u:object_r:dumpstate_socket:s0
141/dev/socket/fwmarkd	u:object_r:fwmarkd_socket:s0
142/dev/socket/lmkd        u:object_r:lmkd_socket:s0
143/dev/socket/logd	u:object_r:logd_socket:s0
144/dev/socket/logdr	u:object_r:logdr_socket:s0
145/dev/socket/logdw	u:object_r:logdw_socket:s0
146/dev/socket/statsdw	u:object_r:statsdw_socket:s0
147/dev/socket/mdns	u:object_r:mdns_socket:s0
148/dev/socket/mdnsd	u:object_r:mdnsd_socket:s0
149/dev/socket/mtpd	u:object_r:mtpd_socket:s0
150/dev/socket/pdx/system/buffer_hub	u:object_r:pdx_bufferhub_dir:s0
151/dev/socket/pdx/system/buffer_hub/client	u:object_r:pdx_bufferhub_client_endpoint_socket:s0
152/dev/socket/pdx/system/performance	u:object_r:pdx_performance_dir:s0
153/dev/socket/pdx/system/performance/client	u:object_r:pdx_performance_client_endpoint_socket:s0
154/dev/socket/pdx/system/vr/display	u:object_r:pdx_display_dir:s0
155/dev/socket/pdx/system/vr/display/client	u:object_r:pdx_display_client_endpoint_socket:s0
156/dev/socket/pdx/system/vr/display/manager	u:object_r:pdx_display_manager_endpoint_socket:s0
157/dev/socket/pdx/system/vr/display/screenshot	u:object_r:pdx_display_screenshot_endpoint_socket:s0
158/dev/socket/pdx/system/vr/display/vsync	u:object_r:pdx_display_vsync_endpoint_socket:s0
159/dev/socket/property_service	u:object_r:property_socket:s0
160/dev/socket/racoon	u:object_r:racoon_socket:s0
161/dev/socket/recovery    u:object_r:recovery_socket:s0
162/dev/socket/rild	u:object_r:rild_socket:s0
163/dev/socket/rild-debug	u:object_r:rild_debug_socket:s0
164/dev/socket/snapuserd u:object_r:snapuserd_socket:s0
165/dev/socket/tombstoned_crash u:object_r:tombstoned_crash_socket:s0
166/dev/socket/tombstoned_java_trace u:object_r:tombstoned_java_trace_socket:s0
167/dev/socket/tombstoned_intercept u:object_r:tombstoned_intercept_socket:s0
168/dev/socket/traced_consumer	u:object_r:traced_consumer_socket:s0
169/dev/socket/traced_perf	u:object_r:traced_perf_socket:s0
170/dev/socket/traced_producer	u:object_r:traced_producer_socket:s0
171/dev/socket/heapprofd	u:object_r:heapprofd_socket:s0
172/dev/socket/uncrypt	u:object_r:uncrypt_socket:s0
173/dev/socket/wpa_eth[0-9] u:object_r:wpa_socket:s0
174/dev/socket/wpa_wlan[0-9] u:object_r:wpa_socket:s0
175/dev/socket/zygote	u:object_r:zygote_socket:s0
176/dev/socket/zygote_secondary	u:object_r:zygote_socket:s0
177/dev/socket/usap_pool_primary	u:object_r:zygote_socket:s0
178/dev/socket/usap_pool_secondary	u:object_r:zygote_socket:s0
179/dev/spdif_out.*	u:object_r:audio_device:s0
180/dev/sys/block/by-name/userdata(/.*)?	u:object_r:userdata_sysdev:s0
181/dev/sys/fs/by-name/userdata(/.*)?	u:object_r:userdata_sysdev:s0
182/dev/tty		u:object_r:owntty_device:s0
183/dev/tty[0-9]*		u:object_r:tty_device:s0
184/dev/ttyS[0-9]*		u:object_r:serial_device:s0
185/dev/ttyUSB[0-9]*	u:object_r:usb_serial_device:s0
186/dev/ttyACM[0-9]*	u:object_r:usb_serial_device:s0
187/dev/tun		u:object_r:tun_device:s0
188/dev/uhid		u:object_r:uhid_device:s0
189/dev/uinput		u:object_r:uhid_device:s0
190/dev/uio[0-9]*		u:object_r:uio_device:s0
191/dev/urandom		u:object_r:random_device:s0
192/dev/usb_accessory	u:object_r:usbaccessory_device:s0
193/dev/v4l-touch[0-9]*	u:object_r:input_device:s0
194/dev/vhost-vsock	u:object_r:kvm_device:s0
195/dev/video[0-9]*	u:object_r:video_device:s0
196/dev/vndbinder		u:object_r:vndbinder_device:s0
197/dev/watchdog		u:object_r:watchdog_device:s0
198/dev/xt_qtaguid	u:object_r:qtaguid_device:s0
199/dev/zero		u:object_r:zero_device:s0
200/dev/__properties__ u:object_r:properties_device:s0
201/dev/__properties__/property_info   u:object_r:property_info:s0
202#############################
203# Linker configuration
204#
205/linkerconfig(/.*)?          u:object_r:linkerconfig_file:s0
206#############################
207# System files
208#
209/system(/.*)?		u:object_r:system_file:s0
210/system/apex/com.android.art	u:object_r:art_apex_dir:s0
211/system/lib(64)?(/.*)?		u:object_r:system_lib_file:s0
212/system/lib(64)?/bootstrap(/.*)? u:object_r:system_bootstrap_lib_file:s0
213/system/bin/mm_events		u:object_r:mm_events_exec:s0
214/system/bin/atrace	u:object_r:atrace_exec:s0
215/system/bin/auditctl	u:object_r:auditctl_exec:s0
216/system/bin/bcc                 u:object_r:rs_exec:s0
217/system/bin/blank_screen	u:object_r:blank_screen_exec:s0
218/system/bin/boringssl_self_test(32|64) u:object_r:boringssl_self_test_exec:s0
219/system/bin/charger		u:object_r:charger_exec:s0
220/system/bin/canhalconfigurator  u:object_r:canhalconfigurator_exec:s0
221/system/bin/e2fsdroid		u:object_r:e2fs_exec:s0
222/system/bin/mke2fs		u:object_r:e2fs_exec:s0
223/system/bin/e2fsck	--	u:object_r:fsck_exec:s0
224/system/bin/fsck\.exfat	--	u:object_r:fsck_exec:s0
225/system/bin/fsck\.f2fs	--	u:object_r:fsck_exec:s0
226/system/bin/init		u:object_r:init_exec:s0
227# TODO(/123600489): merge mini-keyctl into toybox
228/system/bin/mini-keyctl	--	u:object_r:toolbox_exec:s0
229/system/bin/fsverity_init	u:object_r:fsverity_init_exec:s0
230/system/bin/sload_f2fs	--	u:object_r:e2fs_exec:s0
231/system/bin/make_f2fs	--	u:object_r:e2fs_exec:s0
232/system/bin/fsck_msdos	--	u:object_r:fsck_exec:s0
233/system/bin/tcpdump	--	u:object_r:tcpdump_exec:s0
234/system/bin/tune2fs	--	u:object_r:fsck_exec:s0
235/system/bin/resize2fs	--	u:object_r:fsck_exec:s0
236/system/bin/toolbox	--	u:object_r:toolbox_exec:s0
237/system/bin/toybox	--	u:object_r:toolbox_exec:s0
238/system/bin/ld\.mc              u:object_r:rs_exec:s0
239/system/bin/logcat	--	u:object_r:logcat_exec:s0
240/system/bin/logcatd	--	u:object_r:logcat_exec:s0
241/system/bin/sh		--	u:object_r:shell_exec:s0
242/system/bin/run-as	--	u:object_r:runas_exec:s0
243/system/bin/bootanimation u:object_r:bootanim_exec:s0
244/system/bin/bootstat		u:object_r:bootstat_exec:s0
245/system/bin/app_process32	u:object_r:zygote_exec:s0
246/system/bin/app_process64	u:object_r:zygote_exec:s0
247/system/bin/servicemanager	u:object_r:servicemanager_exec:s0
248/system/bin/hwservicemanager	u:object_r:hwservicemanager_exec:s0
249/system/bin/surfaceflinger	u:object_r:surfaceflinger_exec:s0
250/system/bin/gpuservice	u:object_r:gpuservice_exec:s0
251/system/bin/bufferhubd	u:object_r:bufferhubd_exec:s0
252/system/bin/performanced	u:object_r:performanced_exec:s0
253/system/bin/drmserver	u:object_r:drmserver_exec:s0
254/system/bin/dumpstate   u:object_r:dumpstate_exec:s0
255/system/bin/incident   u:object_r:incident_exec:s0
256/system/bin/incidentd   u:object_r:incidentd_exec:s0
257/system/bin/incident_helper  u:object_r:incident_helper_exec:s0
258/system/bin/iw                   u:object_r:iw_exec:s0
259/system/bin/netutils-wrapper-1\.0    u:object_r:netutils_wrapper_exec:s0
260/system/bin/vold	u:object_r:vold_exec:s0
261/system/bin/netd	u:object_r:netd_exec:s0
262/system/bin/wificond	u:object_r:wificond_exec:s0
263/system/bin/audioserver	u:object_r:audioserver_exec:s0
264/system/bin/mediadrmserver	u:object_r:mediadrmserver_exec:s0
265/system/bin/mediaserver	u:object_r:mediaserver_exec:s0
266/system/bin/mediametrics	u:object_r:mediametrics_exec:s0
267/system/bin/cameraserver	u:object_r:cameraserver_exec:s0
268/system/bin/mediaextractor	u:object_r:mediaextractor_exec:s0
269/system/bin/mediaswcodec	u:object_r:mediaswcodec_exec:s0
270/system/bin/mediatranscoding	u:object_r:mediatranscoding_exec:s0
271/system/bin/mediatuner	        u:object_r:mediatuner_exec:s0
272/system/bin/mdnsd	u:object_r:mdnsd_exec:s0
273/system/bin/installd	u:object_r:installd_exec:s0
274/system/bin/otapreopt_chroot   u:object_r:otapreopt_chroot_exec:s0
275/system/bin/otapreopt_slot   u:object_r:otapreopt_slot_exec:s0
276/system/bin/credstore	u:object_r:credstore_exec:s0
277/system/bin/keystore	u:object_r:keystore_exec:s0
278/system/bin/keystore2	u:object_r:keystore_exec:s0
279/system/bin/fingerprintd u:object_r:fingerprintd_exec:s0
280/system/bin/gatekeeperd u:object_r:gatekeeperd_exec:s0
281/system/bin/tombstoned u:object_r:tombstoned_exec:s0
282/system/bin/recovery-persist     u:object_r:recovery_persist_exec:s0
283/system/bin/recovery-refresh     u:object_r:recovery_refresh_exec:s0
284/system/bin/sdcard      u:object_r:sdcardd_exec:s0
285/system/bin/snapshotctl      u:object_r:snapshotctl_exec:s0
286/system/bin/dhcpcd      u:object_r:dhcp_exec:s0
287/system/bin/dhcpcd-6\.8\.2	u:object_r:dhcp_exec:s0
288/system/bin/mtpd	u:object_r:mtp_exec:s0
289/system/bin/pppd	u:object_r:ppp_exec:s0
290/system/bin/racoon	u:object_r:racoon_exec:s0
291/system/xbin/su		u:object_r:su_exec:s0
292/system/bin/dnsmasq     u:object_r:dnsmasq_exec:s0
293/system/bin/healthd     u:object_r:healthd_exec:s0
294/system/bin/clatd	u:object_r:clatd_exec:s0
295/system/bin/linker(64)? u:object_r:system_linker_exec:s0
296/system/bin/linkerconfig u:object_r:linkerconfig_exec:s0
297/system/bin/bootstrap/linker(64)? u:object_r:system_linker_exec:s0
298/system/bin/bootstrap/linkerconfig u:object_r:linkerconfig_exec:s0
299/system/bin/llkd        u:object_r:llkd_exec:s0
300/system/bin/lmkd        u:object_r:lmkd_exec:s0
301/system/bin/usbd   u:object_r:usbd_exec:s0
302/system/bin/inputflinger u:object_r:inputflinger_exec:s0
303/system/bin/logd        u:object_r:logd_exec:s0
304/system/bin/lpdumpd        u:object_r:lpdumpd_exec:s0
305/system/bin/rss_hwm_reset	u:object_r:rss_hwm_reset_exec:s0
306/system/bin/perfetto        u:object_r:perfetto_exec:s0
307/system/bin/traced        u:object_r:traced_exec:s0
308/system/bin/traced_perf        u:object_r:traced_perf_exec:s0
309/system/bin/traced_probes        u:object_r:traced_probes_exec:s0
310/system/bin/heapprofd        u:object_r:heapprofd_exec:s0
311/system/bin/uncrypt     u:object_r:uncrypt_exec:s0
312/system/bin/update_verifier u:object_r:update_verifier_exec:s0
313/system/bin/logwrapper  u:object_r:system_file:s0
314/system/bin/vdc         u:object_r:vdc_exec:s0
315/system/bin/cppreopts\.sh   u:object_r:cppreopts_exec:s0
316/system/bin/preloads_copy\.sh u:object_r:preloads_copy_exec:s0
317/system/bin/preopt2cachename u:object_r:preopt2cachename_exec:s0
318/system/bin/viewcompiler     u:object_r:viewcompiler_exec:s0
319/system/bin/iorapd          u:object_r:iorapd_exec:s0
320/system/bin/iorap\.inode2filename u:object_r:iorap_inode2filename_exec:s0
321/system/bin/iorap\.prefetcherd u:object_r:iorap_prefetcherd_exec:s0
322/system/bin/sgdisk      u:object_r:sgdisk_exec:s0
323/system/bin/blkid       u:object_r:blkid_exec:s0
324/system/bin/tzdatacheck u:object_r:tzdatacheck_exec:s0
325/system/bin/flags_health_check -- u:object_r:flags_health_check_exec:s0
326/system/bin/idmap u:object_r:idmap_exec:s0
327/system/bin/idmap2(d)?           u:object_r:idmap_exec:s0
328/system/bin/update_engine        u:object_r:update_engine_exec:s0
329/system/bin/profcollectd         u:object_r:profcollectd_exec:s0
330/system/bin/profcollectctl       u:object_r:profcollectd_exec:s0
331/system/bin/storaged             u:object_r:storaged_exec:s0
332/system/bin/wpantund             u:object_r:wpantund_exec:s0
333/system/bin/virtual_touchpad     u:object_r:virtual_touchpad_exec:s0
334/system/bin/hw/android\.frameworks\.bufferhub@1\.0-service    u:object_r:fwk_bufferhub_exec:s0
335/system/bin/hw/android\.hidl\.allocator@1\.0-service          u:object_r:hal_allocator_default_exec:s0
336/system/bin/hw/android\.system\.suspend@1\.0-service          u:object_r:system_suspend_exec:s0
337/system/etc/cgroups\.json               u:object_r:cgroup_desc_file:s0
338/system/etc/task_profiles/cgroups_[0-9]+\.json               u:object_r:cgroup_desc_api_file:s0
339/system/etc/event-log-tags              u:object_r:system_event_log_tags_file:s0
340/system/etc/group                       u:object_r:system_group_file:s0
341/system/etc/ld\.config.*                u:object_r:system_linker_config_file:s0
342/system/etc/passwd                      u:object_r:system_passwd_file:s0
343/system/etc/seccomp_policy(/.*)?        u:object_r:system_seccomp_policy_file:s0
344/system/etc/security/cacerts(/.*)?      u:object_r:system_security_cacerts_file:s0
345/system/etc/selinux/mapping/[0-9]+\.[0-9]+\.cil       u:object_r:sepolicy_file:s0
346/system/etc/selinux/plat_mac_permissions\.xml u:object_r:mac_perms_file:s0
347/system/etc/selinux/plat_property_contexts  u:object_r:property_contexts_file:s0
348/system/etc/selinux/plat_service_contexts  u:object_r:service_contexts_file:s0
349/system/etc/selinux/plat_hwservice_contexts  u:object_r:hwservice_contexts_file:s0
350/system/etc/selinux/plat_keystore2_key_contexts  u:object_r:keystore2_key_contexts_file:s0
351/system/etc/selinux/plat_file_contexts  u:object_r:file_contexts_file:s0
352/system/etc/selinux/plat_seapp_contexts  u:object_r:seapp_contexts_file:s0
353/system/etc/selinux/plat_sepolicy\.cil       u:object_r:sepolicy_file:s0
354/system/etc/selinux/plat_and_mapping_sepolicy\.cil\.sha256 u:object_r:sepolicy_file:s0
355/system/etc/task_profiles\.json  u:object_r:task_profiles_file:s0
356/system/etc/task_profiles/task_profiles_[0-9]+\.json  u:object_r:task_profiles_api_file:s0
357/system/usr/share/zoneinfo(/.*)? u:object_r:system_zoneinfo_file:s0
358/system/bin/vr_hwc               u:object_r:vr_hwc_exec:s0
359/system/bin/adbd                 u:object_r:adbd_exec:s0
360/system/bin/vold_prepare_subdirs u:object_r:vold_prepare_subdirs_exec:s0
361/system/bin/stats                u:object_r:stats_exec:s0
362/system/bin/statsd               u:object_r:statsd_exec:s0
363/system/bin/bpfloader            u:object_r:bpfloader_exec:s0
364/system/bin/wait_for_keymaster   u:object_r:wait_for_keymaster_exec:s0
365/system/bin/watchdogd            u:object_r:watchdogd_exec:s0
366/system/bin/apexd                u:object_r:apexd_exec:s0
367/system/bin/gsid                 u:object_r:gsid_exec:s0
368/system/bin/simpleperf           u:object_r:simpleperf_exec:s0
369/system/bin/simpleperf_app_runner    u:object_r:simpleperf_app_runner_exec:s0
370/system/bin/migrate_legacy_obb_data\.sh u:object_r:migrate_legacy_obb_data_exec:s0
371/system/bin/android\.frameworks\.automotive\.display@1\.0-service u:object_r:automotive_display_service_exec:s0
372/system/bin/snapuserd            u:object_r:snapuserd_exec:s0
373/system/bin/odsign               u:object_r:odsign_exec:s0
374
375#############################
376# Vendor files
377#
378/(vendor|system/vendor)(/.*)?                  u:object_r:vendor_file:s0
379/(vendor|system/vendor)/bin/sh                 u:object_r:vendor_shell_exec:s0
380/(vendor|system/vendor)/bin/toybox_vendor      u:object_r:vendor_toolbox_exec:s0
381/(vendor|system/vendor)/bin/toolbox            u:object_r:vendor_toolbox_exec:s0
382/(vendor|system/vendor)/etc(/.*)?              u:object_r:vendor_configs_file:s0
383/(vendor|system/vendor)/etc/cgroups\.json      u:object_r:vendor_cgroup_desc_file:s0
384/(vendor|system/vendor)/etc/task_profiles\.json    u:object_r:vendor_task_profiles_file:s0
385
386/(vendor|system/vendor)/lib(64)?/egl(/.*)?     u:object_r:same_process_hal_file:s0
387
388/(vendor|system/vendor)/lib(64)?/vndk-sp(/.*)? u:object_r:vndk_sp_file:s0
389
390/(vendor|system/vendor)/manifest\.xml           u:object_r:vendor_configs_file:s0
391/(vendor|system/vendor)/compatibility_matrix\.xml u:object_r:vendor_configs_file:s0
392/(vendor|system/vendor)/etc/vintf(/.*)?        u:object_r:vendor_configs_file:s0
393/(vendor|system/vendor)/app(/.*)?              u:object_r:vendor_app_file:s0
394/(vendor|system/vendor)/priv-app(/.*)?         u:object_r:vendor_app_file:s0
395/(vendor|system/vendor)/overlay(/.*)?          u:object_r:vendor_overlay_file:s0
396/(vendor|system/vendor)/framework(/.*)?        u:object_r:vendor_framework_file:s0
397
398/(vendor|system/vendor)/apex(/[^/]+){0,2}                      u:object_r:vendor_apex_file:s0
399/(vendor|system/vendor)/bin/misc_writer                        u:object_r:vendor_misc_writer_exec:s0
400/(vendor|system/vendor)/bin/boringssl_self_test(32|64)         u:object_r:vendor_boringssl_self_test_exec:s0
401
402# HAL location
403/(vendor|system/vendor)/lib(64)?/hw            u:object_r:vendor_hal_file:s0
404
405/(vendor|system/vendor)/etc/selinux/nonplat_service_contexts u:object_r:nonplat_service_contexts_file:s0
406
407/(vendor|system/vendor)/etc/selinux/vendor_service_contexts u:object_r:vendor_service_contexts_file:s0
408
409#############################
410# OEM and ODM files
411#
412/(odm|vendor/odm)(/.*)?                       u:object_r:vendor_file:s0
413/(odm|vendor/odm)/lib(64)?/egl(/.*)?          u:object_r:same_process_hal_file:s0
414/(odm|vendor/odm)/lib(64)?/hw                 u:object_r:vendor_hal_file:s0
415/(odm|vendor/odm)/lib(64)?/vndk-sp(/.*)?      u:object_r:vndk_sp_file:s0
416/(odm|vendor/odm)/bin/sh                      u:object_r:vendor_shell_exec:s0
417/(odm|vendor/odm)/etc(/.*)?                   u:object_r:vendor_configs_file:s0
418/(odm|vendor/odm)/app(/.*)?                   u:object_r:vendor_app_file:s0
419/(odm|vendor/odm)/priv-app(/.*)?              u:object_r:vendor_app_file:s0
420/(odm|vendor/odm)/overlay(/.*)?               u:object_r:vendor_overlay_file:s0
421/(odm|vendor/odm)/framework(/.*)?             u:object_r:vendor_framework_file:s0
422
423# Input configuration
424/(odm|vendor/odm|vendor|system/vendor)/usr/keylayout(/.*)?\.kl        u:object_r:vendor_keylayout_file:s0
425/(odm|vendor/odm|vendor|system/vendor)/usr/keychars(/.*)?\.kcm        u:object_r:vendor_keychars_file:s0
426/(odm|vendor/odm|vendor|system/vendor)/usr/idc(/.*)?\.idc             u:object_r:vendor_idc_file:s0
427
428/oem(/.*)?              u:object_r:oemfs:s0
429/oem/overlay(/.*)?      u:object_r:vendor_overlay_file:s0
430
431# The precompiled monolithic sepolicy will be under /odm only when
432# BOARD_USES_ODMIMAGE is true: a separate odm.img is built.
433/odm/etc/selinux/precompiled_sepolicy                           u:object_r:sepolicy_file:s0
434/odm/etc/selinux/precompiled_sepolicy\.plat_and_mapping\.sha256 u:object_r:sepolicy_file:s0
435
436/(odm|vendor/odm)/etc/selinux/odm_sepolicy\.cil                  u:object_r:sepolicy_file:s0
437/(odm|vendor/odm)/etc/selinux/odm_file_contexts                 u:object_r:file_contexts_file:s0
438/(odm|vendor/odm)/etc/selinux/odm_seapp_contexts                u:object_r:seapp_contexts_file:s0
439/(odm|vendor/odm)/etc/selinux/odm_property_contexts             u:object_r:property_contexts_file:s0
440/(odm|vendor/odm)/etc/selinux/odm_hwservice_contexts            u:object_r:hwservice_contexts_file:s0
441/(odm|vendor/odm)/etc/selinux/odm_keystore2_key_contexts         u:object_r:keystore2_key_contexts_file:s0
442/(odm|vendor/odm)/etc/selinux/odm_mac_permissions\.xml           u:object_r:mac_perms_file:s0
443
444#############################
445# Product files
446#
447/(product|system/product)(/.*)?                                 u:object_r:system_file:s0
448/(product|system/product)/etc/group                             u:object_r:system_group_file:s0
449/(product|system/product)/etc/passwd                            u:object_r:system_passwd_file:s0
450/(product|system/product)/overlay(/.*)?                         u:object_r:vendor_overlay_file:s0
451
452/(product|system/product)/etc/selinux/product_file_contexts      u:object_r:file_contexts_file:s0
453/(product|system/product)/etc/selinux/product_hwservice_contexts u:object_r:hwservice_contexts_file:s0
454/(product|system/product)/etc/selinux/product_keystore2_key_contexts u:object_r:keystore2_key_contexts_file:s0
455/(product|system/product)/etc/selinux/product_property_contexts  u:object_r:property_contexts_file:s0
456/(product|system/product)/etc/selinux/product_seapp_contexts     u:object_r:seapp_contexts_file:s0
457/(product|system/product)/etc/selinux/product_service_contexts   u:object_r:service_contexts_file:s0
458/(product|system/product)/etc/selinux/product_mac_permissions\.xml u:object_r:mac_perms_file:s0
459
460/(product|system/product)/lib(64)?(/.*)?                         u:object_r:system_lib_file:s0
461
462#############################
463# SystemExt files
464#
465/(system_ext|system/system_ext)(/.*)?               u:object_r:system_file:s0
466/(system_ext|system/system_ext)/etc/group           u:object_r:system_group_file:s0
467/(system_ext|system/system_ext)/etc/passwd          u:object_r:system_passwd_file:s0
468/(system_ext|system/system_ext)/overlay(/.*)?       u:object_r:vendor_overlay_file:s0
469
470/(system_ext|system/system_ext)/etc/selinux/system_ext_file_contexts        u:object_r:file_contexts_file:s0
471/(system_ext|system/system_ext)/etc/selinux/system_ext_hwservice_contexts   u:object_r:hwservice_contexts_file:s0
472/(system_ext|system/system_ext)/etc/selinux/system_ext_keystore2_key_contexts u:object_r:keystore2_key_contexts_file:s0
473/(system_ext|system/system_ext)/etc/selinux/system_ext_property_contexts    u:object_r:property_contexts_file:s0
474/(system_ext|system/system_ext)/etc/selinux/system_ext_seapp_contexts       u:object_r:seapp_contexts_file:s0
475/(system_ext|system/system_ext)/etc/selinux/system_ext_service_contexts     u:object_r:service_contexts_file:s0
476/(system_ext|system/system_ext)/etc/selinux/system_ext_mac_permissions\.xml u:object_r:mac_perms_file:s0
477
478/(system_ext|system/system_ext)/bin/aidl_lazy_test_server   u:object_r:aidl_lazy_test_server_exec:s0
479/(system_ext|system/system_ext)/bin/hidl_lazy_test_server   u:object_r:hidl_lazy_test_server_exec:s0
480
481/(system_ext|system/system_ext)/lib(64)?(/.*)?      u:object_r:system_lib_file:s0
482
483#############################
484# VendorDlkm files
485# This includes VENDOR Dynamically Loadable Kernel Modules and other misc files.
486#
487/(vendor_dlkm|vendor/vendor_dlkm|system/vendor/vendor_dlkm)(/.*)?         u:object_r:vendor_file:s0
488
489#############################
490# OdmDlkm files
491# This includes ODM Dynamically Loadable Kernel Modules and other misc files.
492#
493/(odm_dlkm|vendor/odm_dlkm|system/vendor/odm_dlkm)(/.*)?                  u:object_r:vendor_file:s0
494
495#############################
496# Vendor files from /(product|system/product)/vendor_overlay
497#
498# NOTE: For additional vendor file contexts for vendor overlay files,
499# use device specific file_contexts.
500#
501/(product|system/product)/vendor_overlay/[0-9]+/.*          u:object_r:vendor_file:s0
502
503#############################
504# Data files
505#
506# NOTE: When modifying existing label rules, changes may also need to
507# propagate to the "Expanded data files" section.
508#
509/data		u:object_r:system_data_root_file:s0
510/data/(.*)?		u:object_r:system_data_file:s0
511/data/system/environ(/.*)? u:object_r:environ_system_data_file:s0
512/data/system/packages\.list u:object_r:packages_list_file:s0
513/data/unencrypted(/.*)?         u:object_r:unencrypted_data_file:s0
514/data/backup(/.*)?		u:object_r:backup_data_file:s0
515/data/secure/backup(/.*)?	u:object_r:backup_data_file:s0
516/data/system/ndebugsocket	u:object_r:system_ndebug_socket:s0
517/data/system/unsolzygotesocket  u:object_r:system_unsolzygote_socket:s0
518/data/drm(/.*)?		u:object_r:drm_data_file:s0
519/data/resource-cache(/.*)? u:object_r:resourcecache_data_file:s0
520/data/dalvik-cache(/.*)? u:object_r:dalvikcache_data_file:s0
521/data/ota(/.*)? u:object_r:ota_data_file:s0
522/data/ota_package(/.*)? u:object_r:ota_package_file:s0
523/data/adb(/.*)?		u:object_r:adb_data_file:s0
524/data/anr(/.*)?		u:object_r:anr_data_file:s0
525/data/apex(/.*)?		u:object_r:apex_data_file:s0
526/data/apex/active/(.*)?		u:object_r:staging_data_file:s0
527/data/apex/backup/(.*)?		u:object_r:staging_data_file:s0
528/data/apex/decompressed/(.*)?    u:object_r:staging_data_file:s0
529/data/apex/ota_reserved(/.*)?       u:object_r:apex_ota_reserved_file:s0
530/data/app(/.*)?                       u:object_r:apk_data_file:s0
531# Traditional /data/app/[packageName]-[randomString]/base.apk location
532/data/app/[^/]+/oat(/.*)?                u:object_r:dalvikcache_data_file:s0
533# /data/app/[randomStringA]/[packageName]-[randomStringB]/base.apk layout
534/data/app/[^/]+/[^/]+/oat(/.*)?                u:object_r:dalvikcache_data_file:s0
535/data/app/vmdl[^/]+\.tmp(/.*)?           u:object_r:apk_tmp_file:s0
536/data/app/vmdl[^/]+\.tmp/oat(/.*)?           u:object_r:dalvikcache_data_file:s0
537/data/app-private(/.*)?               u:object_r:apk_private_data_file:s0
538/data/app-private/vmdl.*\.tmp(/.*)?   u:object_r:apk_private_tmp_file:s0
539/data/gsi(/.*)?        u:object_r:gsi_data_file:s0
540/data/gsi_persistent_data    u:object_r:gsi_persistent_data_file:s0
541/data/gsi/ota(/.*)?    u:object_r:ota_image_data_file:s0
542/data/tombstones(/.*)?	u:object_r:tombstone_data_file:s0
543/data/vendor/tombstones/wifi(/.*)? u:object_r:tombstone_wifi_data_file:s0
544/data/local/tests(/.*)?	u:object_r:shell_test_data_file:s0
545/data/local/tmp(/.*)?	u:object_r:shell_data_file:s0
546/data/local/tmp/ltp(/.*)?   u:object_r:nativetest_data_file:s0
547/data/local/traces(/.*)?	u:object_r:trace_data_file:s0
548/data/media(/.*)?	u:object_r:media_rw_data_file:s0
549/data/mediadrm(/.*)?	u:object_r:media_data_file:s0
550/data/nativetest(/.*)?	u:object_r:nativetest_data_file:s0
551/data/nativetest64(/.*)?	u:object_r:nativetest_data_file:s0
552# This directory was removed after Q Beta 2, but we need to preserve labels for upgrading devices.
553/data/pkg_staging(/.*)?		u:object_r:staging_data_file:s0
554/data/property(/.*)?	u:object_r:property_data_file:s0
555/data/preloads(/.*)?	u:object_r:preloads_data_file:s0
556/data/preloads/media(/.*)?	u:object_r:preloads_media_file:s0
557/data/preloads/demo(/.*)?	u:object_r:preloads_media_file:s0
558/data/server_configurable_flags(/.*)? u:object_r:server_configurable_flags_data_file:s0
559/data/app-staging(/.*)?		u:object_r:staging_data_file:s0
560# Ensure we have the same labels as /data/app or /data/apex/active
561# to avoid restorecon conflicts
562/data/rollback/\d+/[^/]+/.*\.apk  u:object_r:apk_data_file:s0
563/data/rollback/\d+/[^/]+/.*\.apex u:object_r:staging_data_file:s0
564/data/fonts/files(/.*)?     u:object_r:font_data_file:s0
565
566# Misc data
567/data/misc/adb(/.*)?            u:object_r:adb_keys_file:s0
568/data/misc/a11ytrace(/.*)?      u:object_r:accessibility_trace_data_file:s0
569/data/misc/apexdata(/.*)?       u:object_r:apex_module_data_file:s0
570/data/misc/apexdata/com\.android\.art(/.*)?           u:object_r:apex_art_data_file:s0
571/data/misc/apexdata/com\.android\.permission(/.*)?    u:object_r:apex_permission_data_file:s0
572/data/misc/apexdata/com\.android\.scheduling(/.*)?    u:object_r:apex_scheduling_data_file:s0
573/data/misc/apexdata/com\.android\.wifi(/.*)?          u:object_r:apex_wifi_data_file:s0
574/data/misc/apexrollback(/.*)?   u:object_r:apex_rollback_data_file:s0
575/data/misc/apns(/.*)?           u:object_r:radio_data_file:s0
576/data/misc/appcompat(/.*)?      u:object_r:appcompat_data_file:s0
577/data/misc/audio(/.*)?          u:object_r:audio_data_file:s0
578/data/misc/audioserver(/.*)?    u:object_r:audioserver_data_file:s0
579/data/misc/audiohal(/.*)?       u:object_r:audiohal_data_file:s0
580/data/misc/bootstat(/.*)?       u:object_r:bootstat_data_file:s0
581/data/misc/boottrace(/.*)?      u:object_r:boottrace_data_file:s0
582/data/misc/bluetooth(/.*)?      u:object_r:bluetooth_data_file:s0
583/data/misc/bluetooth/logs(/.*)? u:object_r:bluetooth_logs_data_file:s0
584/data/misc/bluedroid(/.*)?      u:object_r:bluetooth_data_file:s0
585/data/misc/bluedroid/\.a2dp_ctrl u:object_r:bluetooth_socket:s0
586/data/misc/bluedroid/\.a2dp_data u:object_r:bluetooth_socket:s0
587/data/misc/camera(/.*)?         u:object_r:camera_data_file:s0
588/data/misc/carrierid(/.*)?      u:object_r:radio_data_file:s0
589/data/misc/dhcp(/.*)?           u:object_r:dhcp_data_file:s0
590/data/misc/dhcp-6\.8\.2(/.*)?     u:object_r:dhcp_data_file:s0
591/data/misc/emergencynumberdb(/.*)?     u:object_r:emergency_data_file:s0
592/data/misc/gatekeeper(/.*)?     u:object_r:gatekeeper_data_file:s0
593/data/misc/incidents(/.*)?	    u:object_r:incident_data_file:s0
594/data/misc/installd(/.*)?		u:object_r:install_data_file:s0
595/data/misc/keychain(/.*)?       u:object_r:keychain_data_file:s0
596/data/misc/credstore(/.*)?       u:object_r:credstore_data_file:s0
597/data/misc/keystore(/.*)?       u:object_r:keystore_data_file:s0
598/data/misc/logd(/.*)?           u:object_r:misc_logd_file:s0
599/data/misc/media(/.*)?          u:object_r:media_data_file:s0
600/data/misc/net(/.*)?            u:object_r:net_data_file:s0
601/data/misc/network_watchlist(/.*)? u:object_r:network_watchlist_data_file:s0
602/data/misc/nfc/logs(/.*)?       u:object_r:nfc_logs_data_file:s0
603/data/misc/odrefresh(/.*)?      u:object_r:odrefresh_data_file:s0
604/data/misc/odsign(/.*)?         u:object_r:odsign_data_file:s0
605/data/misc/perfetto-traces/bugreport(.*)? u:object_r:perfetto_traces_bugreport_data_file:s0
606/data/misc/perfetto-traces(/.*)?          u:object_r:perfetto_traces_data_file:s0
607/data/misc/perfetto-configs(/.*)?         u:object_r:perfetto_configs_data_file:s0
608/data/misc/prereboot(/.*)?      u:object_r:prereboot_data_file:s0
609/data/misc/profcollectd(/.*)?   u:object_r:profcollectd_data_file:s0
610/data/misc/radio(/.*)?          u:object_r:radio_core_data_file:s0
611/data/misc/recovery(/.*)?       u:object_r:recovery_data_file:s0
612/data/misc/shared_relro(/.*)?   u:object_r:shared_relro_file:s0
613/data/misc/sms(/.*)?            u:object_r:radio_data_file:s0
614/data/misc/snapshotctl_log(/.*)?      u:object_r:snapshotctl_log_data_file:s0
615/data/misc/stats-active-metric(/.*)? u:object_r:stats_data_file:s0
616/data/misc/stats-data(/.*)?     u:object_r:stats_data_file:s0
617/data/misc/stats-service(/.*)?  u:object_r:stats_data_file:s0
618/data/misc/stats-metadata(/.*)? u:object_r:stats_data_file:s0
619/data/misc/systemkeys(/.*)?     u:object_r:systemkeys_data_file:s0
620/data/misc/textclassifier(/.*)?       u:object_r:textclassifier_data_file:s0
621/data/misc/train-info(/.*)?     u:object_r:stats_data_file:s0
622/data/misc/user(/.*)?           u:object_r:misc_user_data_file:s0
623/data/misc/vpn(/.*)?            u:object_r:vpn_data_file:s0
624/data/misc/wifi(/.*)?           u:object_r:wifi_data_file:s0
625/data/misc_ce/[0-9]+/wifi(/.*)? u:object_r:wifi_data_file:s0
626/data/misc/wifi/sockets(/.*)?   u:object_r:wpa_socket:s0
627/data/misc/wifi/sockets/wpa_ctrl.*   u:object_r:system_wpa_socket:s0
628/data/misc/zoneinfo(/.*)?       u:object_r:zoneinfo_data_file:s0
629/data/misc/vold(/.*)?           u:object_r:vold_data_file:s0
630/data/misc/iorapd(/.*)?         u:object_r:iorapd_data_file:s0
631/data/misc/update_engine(/.*)?  u:object_r:update_engine_data_file:s0
632/data/misc/update_engine_log(/.*)?  u:object_r:update_engine_log_data_file:s0
633/data/system/dropbox(/.*)?      u:object_r:dropbox_data_file:s0
634/data/system/heapdump(/.*)?     u:object_r:heapdump_data_file:s0
635/data/misc/trace(/.*)?          u:object_r:method_trace_data_file:s0
636/data/misc/wmtrace(/.*)?        u:object_r:wm_trace_data_file:s0
637# TODO(calin) label profile reference differently so that only
638# profman run as a special user can write to them
639/data/misc/profiles/cur(/[0-9]+)?   u:object_r:user_profile_root_file:s0
640/data/misc/profiles/cur/[0-9]+/.*   u:object_r:user_profile_data_file:s0
641/data/misc/profiles/ref(/.*)?       u:object_r:user_profile_data_file:s0
642/data/misc/profman(/.*)?        u:object_r:profman_dump_data_file:s0
643/data/vendor(/.*)?              u:object_r:vendor_data_file:s0
644/data/vendor_ce(/.*)?           u:object_r:vendor_data_file:s0
645/data/vendor_de(/.*)?           u:object_r:vendor_data_file:s0
646
647# storaged proto files
648/data/misc_de/[0-9]+/storaged(/.*)?       u:object_r:storaged_data_file:s0
649/data/misc_ce/[0-9]+/storaged(/.*)?       u:object_r:storaged_data_file:s0
650
651# Fingerprint data
652/data/system/users/[0-9]+/fpdata(/.*)? u:object_r:fingerprintd_data_file:s0
653
654# Fingerprint vendor data file
655/data/vendor_de/[0-9]+/fpdata(/.*)? u:object_r:fingerprint_vendor_data_file:s0
656
657# Face vendor data file
658/data/vendor_de/[0-9]+/facedata(/.*)? u:object_r:face_vendor_data_file:s0
659/data/vendor_ce/[0-9]+/facedata(/.*)? u:object_r:face_vendor_data_file:s0
660
661# Iris vendor data file
662/data/vendor_de/[0-9]+/irisdata(/.*)? u:object_r:iris_vendor_data_file:s0
663
664# Bootchart data
665/data/bootchart(/.*)?		u:object_r:bootchart_data_file:s0
666
667# App data snapshots (managed by installd).
668/data/misc_de/[0-9]+/rollback(/.*)?       u:object_r:rollback_data_file:s0
669/data/misc_ce/[0-9]+/rollback(/.*)?       u:object_r:rollback_data_file:s0
670
671# Apex data directories
672/data/misc_de/[0-9]+/apexdata(/.*)?       u:object_r:apex_module_data_file:s0
673/data/misc_ce/[0-9]+/apexdata(/.*)?       u:object_r:apex_module_data_file:s0
674/data/misc_ce/[0-9]+/apexdata/com\.android\.appsearch(/.*)?   u:object_r:apex_appsearch_data_file:s0
675/data/misc_de/[0-9]+/apexdata/com\.android\.permission(/.*)?  u:object_r:apex_permission_data_file:s0
676/data/misc_ce/[0-9]+/apexdata/com\.android\.permission(/.*)?  u:object_r:apex_permission_data_file:s0
677/data/misc_de/[0-9]+/apexdata/com\.android\.wifi(/.*)?  u:object_r:apex_wifi_data_file:s0
678/data/misc_ce/[0-9]+/apexdata/com\.android\.wifi(/.*)?  u:object_r:apex_wifi_data_file:s0
679
680# Apex rollback directories
681/data/misc_de/[0-9]+/apexrollback(/.*)?   u:object_r:apex_rollback_data_file:s0
682/data/misc_ce/[0-9]+/apexrollback(/.*)?   u:object_r:apex_rollback_data_file:s0
683
684# Incremental directories
685/data/incremental(/.*)?                                 u:object_r:apk_data_file:s0
686/data/incremental/MT_[^/]+/mount/.pending_reads         u:object_r:incremental_control_file:s0
687/data/incremental/MT_[^/]+/mount/.log                   u:object_r:incremental_control_file:s0
688/data/incremental/MT_[^/]+/mount/.blocks_written        u:object_r:incremental_control_file:s0
689
690#############################
691# Expanded data files
692#
693/mnt/expand(/.*)?                                   u:object_r:mnt_expand_file:s0
694/mnt/expand/[^/]+(/.*)?                             u:object_r:system_data_file:s0
695/mnt/expand/[^/]+/app(/.*)?                         u:object_r:apk_data_file:s0
696/mnt/expand/[^/]+/app/[^/]+/oat(/.*)?               u:object_r:dalvikcache_data_file:s0
697# /mnt/expand/..../app/[randomStringA]/[packageName]-[randomStringB]/base.apk layout
698/mnt/expand/[^/]+/app/[^/]+/[^/]+/oat(/.*)?        u:object_r:dalvikcache_data_file:s0
699/mnt/expand/[^/]+/app/vmdl[^/]+\.tmp(/.*)?          u:object_r:apk_tmp_file:s0
700/mnt/expand/[^/]+/app/vmdl[^/]+\.tmp/oat(/.*)?      u:object_r:dalvikcache_data_file:s0
701/mnt/expand/[^/]+/local/tmp(/.*)?                   u:object_r:shell_data_file:s0
702/mnt/expand/[^/]+/media(/.*)?                       u:object_r:media_rw_data_file:s0
703/mnt/expand/[^/]+/misc/vold(/.*)?                   u:object_r:vold_data_file:s0
704
705# coredump directory for userdebug/eng devices
706/cores(/.*)?                    u:object_r:coredump_file:s0
707
708# Wallpaper files
709/data/system/users/[0-9]+/wallpaper_lock_orig	u:object_r:wallpaper_file:s0
710/data/system/users/[0-9]+/wallpaper_lock	u:object_r:wallpaper_file:s0
711/data/system/users/[0-9]+/wallpaper_orig	u:object_r:wallpaper_file:s0
712/data/system/users/[0-9]+/wallpaper		u:object_r:wallpaper_file:s0
713
714# Ringtone files
715/data/system_de/[0-9]+/ringtones(/.*)?          u:object_r:ringtone_file:s0
716
717# ShortcutManager icons, e.g.
718#   /data/system_ce/0/shortcut_service/bitmaps/com.example.app/1457472879282.png
719/data/system_ce/[0-9]+/shortcut_service/bitmaps(/.*)? u:object_r:shortcut_manager_icons:s0
720
721# User icon files
722/data/system/users/[0-9]+/photo\.png             u:object_r:icon_file:s0
723
724# vold per-user data
725/data/misc_de/[0-9]+/vold(/.*)?           u:object_r:vold_data_file:s0
726/data/misc_ce/[0-9]+/vold(/.*)?           u:object_r:vold_data_file:s0
727
728# iorapd per-user data
729/data/misc_ce/[0-9]+/iorapd(/.*)?           u:object_r:iorapd_data_file:s0
730
731# Backup service persistent per-user bookkeeping
732/data/system_ce/[0-9]+/backup(/.*)?		u:object_r:backup_data_file:s0
733# Backup service temporary per-user data for inter-change with apps
734/data/system_ce/[0-9]+/backup_stage(/.*)?	u:object_r:backup_data_file:s0
735
736#############################
737# efs files
738#
739/efs(/.*)?		u:object_r:efs_file:s0
740
741#############################
742# Cache files
743#
744/cache(/.*)?		u:object_r:cache_file:s0
745/cache/recovery(/.*)?	u:object_r:cache_recovery_file:s0
746# General backup/restore interchange with apps
747/cache/backup_stage(/.*)?	u:object_r:cache_backup_file:s0
748# LocalTransport (backup) uses this subtree
749/cache/backup(/.*)?		u:object_r:cache_private_backup_file:s0
750
751#############################
752# Overlayfs support directories
753#
754/cache/overlay(/.*)?            u:object_r:overlayfs_file:s0
755/mnt/scratch(/.*)?              u:object_r:overlayfs_file:s0
756
757/data/cache(/.*)?		u:object_r:cache_file:s0
758/data/cache/recovery(/.*)?	u:object_r:cache_recovery_file:s0
759# General backup/restore interchange with apps
760/data/cache/backup_stage(/.*)?	u:object_r:cache_backup_file:s0
761# LocalTransport (backup) uses this subtree
762/data/cache/backup(/.*)?	u:object_r:cache_private_backup_file:s0
763
764#############################
765# Metadata files
766#
767/metadata(/.*)?           u:object_r:metadata_file:s0
768/metadata/apex(/.*)?      u:object_r:apex_metadata_file:s0
769/metadata/vold(/.*)?      u:object_r:vold_metadata_file:s0
770/metadata/gsi(/.*)?       u:object_r:gsi_metadata_file:s0
771/metadata/gsi/dsu/active  u:object_r:gsi_public_metadata_file:s0
772/metadata/gsi/dsu/booted  u:object_r:gsi_public_metadata_file:s0
773/metadata/gsi/dsu/lp_names  u:object_r:gsi_public_metadata_file:s0
774/metadata/gsi/dsu/[^/]+/metadata_encryption_dir u:object_r:gsi_public_metadata_file:s0
775/metadata/gsi/ota(/.*)?   u:object_r:ota_metadata_file:s0
776/metadata/password_slots(/.*)?    u:object_r:password_slot_metadata_file:s0
777/metadata/ota(/.*)?       u:object_r:ota_metadata_file:s0
778/metadata/bootstat(/.*)?  u:object_r:metadata_bootstat_file:s0
779/metadata/staged-install(/.*)?    u:object_r:staged_install_file:s0
780/metadata/userspacereboot(/.*)?    u:object_r:userspace_reboot_metadata_file:s0
781/metadata/watchdog(/.*)?    u:object_r:watchdog_metadata_file:s0
782
783#############################
784# asec containers
785/mnt/asec(/.*)?             u:object_r:asec_apk_file:s0
786/mnt/asec/[^/]+/[^/]+\.zip  u:object_r:asec_public_file:s0
787/mnt/asec/[^/]+/lib(/.*)?   u:object_r:asec_public_file:s0
788/data/app-asec(/.*)?        u:object_r:asec_image_file:s0
789
790#############################
791# external storage
792/mnt/media_rw(/.*)?         u:object_r:mnt_media_rw_file:s0
793/mnt/user(/.*)?             u:object_r:mnt_user_file:s0
794/mnt/pass_through(/.*)?     u:object_r:mnt_pass_through_file:s0
795/mnt/sdcard                 u:object_r:mnt_sdcard_file:s0
796/mnt/runtime(/.*)?          u:object_r:storage_file:s0
797/storage(/.*)?              u:object_r:storage_file:s0
798
799#############################
800# mount point for read-write vendor partitions
801/mnt/vendor(/.*)?           u:object_r:mnt_vendor_file:s0
802
803#############################
804# mount point for read-write product partitions
805/mnt/product(/.*)?          u:object_r:mnt_product_file:s0
806
807#############################
808# /postinstall file contexts
809/(system|product)/bin/check_dynamic_partitions  u:object_r:postinstall_exec:s0
810/(system|product)/bin/otapreopt_script          u:object_r:postinstall_exec:s0
811/(system|product)/bin/otapreopt                 u:object_r:postinstall_dexopt_exec:s0
812