1*e4a36f41SAndroid Build Coastguard Worker###################################### 2*e4a36f41SAndroid Build Coastguard Worker# Attribute declarations 3*e4a36f41SAndroid Build Coastguard Worker# 4*e4a36f41SAndroid Build Coastguard Worker 5*e4a36f41SAndroid Build Coastguard Worker# All types used for devices. 6*e4a36f41SAndroid Build Coastguard Worker# On change, update CHECK_FC_ASSERT_ATTRS 7*e4a36f41SAndroid Build Coastguard Worker# in tools/checkfc.c 8*e4a36f41SAndroid Build Coastguard Workerattribute dev_type; 9*e4a36f41SAndroid Build Coastguard Worker 10*e4a36f41SAndroid Build Coastguard Worker# Attribute for block devices. 11*e4a36f41SAndroid Build Coastguard Workerattribute bdev_type; 12*e4a36f41SAndroid Build Coastguard Worker 13*e4a36f41SAndroid Build Coastguard Worker# All types used for processes. 14*e4a36f41SAndroid Build Coastguard Workerattribute domain; 15*e4a36f41SAndroid Build Coastguard Worker 16*e4a36f41SAndroid Build Coastguard Worker# All types used for filesystems. 17*e4a36f41SAndroid Build Coastguard Worker# On change, update CHECK_FC_ASSERT_ATTRS 18*e4a36f41SAndroid Build Coastguard Worker# definition in tools/checkfc.c. 19*e4a36f41SAndroid Build Coastguard Workerattribute fs_type; 20*e4a36f41SAndroid Build Coastguard Worker 21*e4a36f41SAndroid Build Coastguard Worker# All types used for context= mounts. 22*e4a36f41SAndroid Build Coastguard Workerattribute contextmount_type; 23*e4a36f41SAndroid Build Coastguard Worker 24*e4a36f41SAndroid Build Coastguard Worker# All types used for files that can exist on a labeled fs. 25*e4a36f41SAndroid Build Coastguard Worker# Do not use for pseudo file types. 26*e4a36f41SAndroid Build Coastguard Worker# On change, update CHECK_FC_ASSERT_ATTRS 27*e4a36f41SAndroid Build Coastguard Worker# definition in tools/checkfc.c. 28*e4a36f41SAndroid Build Coastguard Workerattribute file_type; 29*e4a36f41SAndroid Build Coastguard Worker 30*e4a36f41SAndroid Build Coastguard Worker# All types used for domain entry points. 31*e4a36f41SAndroid Build Coastguard Workerattribute exec_type; 32*e4a36f41SAndroid Build Coastguard Worker 33*e4a36f41SAndroid Build Coastguard Worker# All types used for /data files. 34*e4a36f41SAndroid Build Coastguard Workerattribute data_file_type; 35*e4a36f41SAndroid Build Coastguard Workerexpandattribute data_file_type false; 36*e4a36f41SAndroid Build Coastguard Worker# All types in /data, not in /data/vendor 37*e4a36f41SAndroid Build Coastguard Workerattribute core_data_file_type; 38*e4a36f41SAndroid Build Coastguard Workerexpandattribute core_data_file_type false; 39*e4a36f41SAndroid Build Coastguard Worker 40*e4a36f41SAndroid Build Coastguard Worker# All types used for app private data files in seapp_contexts. 41*e4a36f41SAndroid Build Coastguard Worker# Such types should not be applied to any other files. 42*e4a36f41SAndroid Build Coastguard Workerattribute app_data_file_type; 43*e4a36f41SAndroid Build Coastguard Workerexpandattribute app_data_file_type false; 44*e4a36f41SAndroid Build Coastguard Worker 45*e4a36f41SAndroid Build Coastguard Worker# All types in /system 46*e4a36f41SAndroid Build Coastguard Workerattribute system_file_type; 47*e4a36f41SAndroid Build Coastguard Worker 48*e4a36f41SAndroid Build Coastguard Worker# All types in /vendor 49*e4a36f41SAndroid Build Coastguard Workerattribute vendor_file_type; 50*e4a36f41SAndroid Build Coastguard Worker 51*e4a36f41SAndroid Build Coastguard Worker# All types used for procfs files. 52*e4a36f41SAndroid Build Coastguard Workerattribute proc_type; 53*e4a36f41SAndroid Build Coastguard Workerexpandattribute proc_type false; 54*e4a36f41SAndroid Build Coastguard Worker 55*e4a36f41SAndroid Build Coastguard Worker# Types in /proc/net, excluding qtaguid types. 56*e4a36f41SAndroid Build Coastguard Worker# TODO(b/9496886) Lock down access to /proc/net. 57*e4a36f41SAndroid Build Coastguard Worker# This attribute is used to audit access to proc_net. it is temporary and will 58*e4a36f41SAndroid Build Coastguard Worker# be removed. 59*e4a36f41SAndroid Build Coastguard Workerattribute proc_net_type; 60*e4a36f41SAndroid Build Coastguard Workerexpandattribute proc_net_type true; 61*e4a36f41SAndroid Build Coastguard Worker 62*e4a36f41SAndroid Build Coastguard Worker# All types used for sysfs files. 63*e4a36f41SAndroid Build Coastguard Workerattribute sysfs_type; 64*e4a36f41SAndroid Build Coastguard Worker 65*e4a36f41SAndroid Build Coastguard Worker# Attribute for /sys/class/block files. 66*e4a36f41SAndroid Build Coastguard Workerattribute sysfs_block_type; 67*e4a36f41SAndroid Build Coastguard Worker 68*e4a36f41SAndroid Build Coastguard Worker# All types use for debugfs files. 69*e4a36f41SAndroid Build Coastguard Workerattribute debugfs_type; 70*e4a36f41SAndroid Build Coastguard Worker 71*e4a36f41SAndroid Build Coastguard Worker# All types used for tracefs files. 72*e4a36f41SAndroid Build Coastguard Workerattribute tracefs_type; 73*e4a36f41SAndroid Build Coastguard Worker 74*e4a36f41SAndroid Build Coastguard Worker# Attribute used for all sdcards 75*e4a36f41SAndroid Build Coastguard Workerattribute sdcard_type; 76*e4a36f41SAndroid Build Coastguard Worker 77*e4a36f41SAndroid Build Coastguard Worker# All types used for nodes/hosts. 78*e4a36f41SAndroid Build Coastguard Workerattribute node_type; 79*e4a36f41SAndroid Build Coastguard Worker 80*e4a36f41SAndroid Build Coastguard Worker# All types used for network interfaces. 81*e4a36f41SAndroid Build Coastguard Workerattribute netif_type; 82*e4a36f41SAndroid Build Coastguard Worker 83*e4a36f41SAndroid Build Coastguard Worker# All types used for network ports. 84*e4a36f41SAndroid Build Coastguard Workerattribute port_type; 85*e4a36f41SAndroid Build Coastguard Worker 86*e4a36f41SAndroid Build Coastguard Worker# All types used for property service 87*e4a36f41SAndroid Build Coastguard Worker# On change, update CHECK_PC_ASSERT_ATTRS 88*e4a36f41SAndroid Build Coastguard Worker# definition in tools/checkfc.c. 89*e4a36f41SAndroid Build Coastguard Workerattribute property_type; 90*e4a36f41SAndroid Build Coastguard Worker 91*e4a36f41SAndroid Build Coastguard Worker# All properties defined in core SELinux policy. Should not be 92*e4a36f41SAndroid Build Coastguard Worker# used by device specific properties 93*e4a36f41SAndroid Build Coastguard Workerattribute core_property_type; 94*e4a36f41SAndroid Build Coastguard Worker 95*e4a36f41SAndroid Build Coastguard Worker# All properties used to configure log filtering. 96*e4a36f41SAndroid Build Coastguard Workerattribute log_property_type; 97*e4a36f41SAndroid Build Coastguard Worker 98*e4a36f41SAndroid Build Coastguard Worker# All properties that are not specific to device but are added from 99*e4a36f41SAndroid Build Coastguard Worker# outside of AOSP. (e.g. OEM-specific properties) 100*e4a36f41SAndroid Build Coastguard Worker# These properties are not accessible from device-specific domains 101*e4a36f41SAndroid Build Coastguard Workerattribute extended_core_property_type; 102*e4a36f41SAndroid Build Coastguard Worker 103*e4a36f41SAndroid Build Coastguard Worker# Properties used for representing ownership. All properties should have one 104*e4a36f41SAndroid Build Coastguard Worker# of: system_property_type, product_property_type, or vendor_property_type. 105*e4a36f41SAndroid Build Coastguard Worker 106*e4a36f41SAndroid Build Coastguard Worker# All properties defined by /system. 107*e4a36f41SAndroid Build Coastguard Workerattribute system_property_type; 108*e4a36f41SAndroid Build Coastguard Workerexpandattribute system_property_type false; 109*e4a36f41SAndroid Build Coastguard Worker 110*e4a36f41SAndroid Build Coastguard Worker# All /system-defined properties used only in /system. 111*e4a36f41SAndroid Build Coastguard Workerattribute system_internal_property_type; 112*e4a36f41SAndroid Build Coastguard Workerexpandattribute system_internal_property_type false; 113*e4a36f41SAndroid Build Coastguard Worker 114*e4a36f41SAndroid Build Coastguard Worker# All /system-defined properties which can't be written outside /system. 115*e4a36f41SAndroid Build Coastguard Workerattribute system_restricted_property_type; 116*e4a36f41SAndroid Build Coastguard Workerexpandattribute system_restricted_property_type false; 117*e4a36f41SAndroid Build Coastguard Worker 118*e4a36f41SAndroid Build Coastguard Worker# All /system-defined properties with no restrictions. 119*e4a36f41SAndroid Build Coastguard Workerattribute system_public_property_type; 120*e4a36f41SAndroid Build Coastguard Workerexpandattribute system_public_property_type false; 121*e4a36f41SAndroid Build Coastguard Worker 122*e4a36f41SAndroid Build Coastguard Worker# All keystore2_key labels. 123*e4a36f41SAndroid Build Coastguard Workerattribute keystore2_key_type; 124*e4a36f41SAndroid Build Coastguard Worker 125*e4a36f41SAndroid Build Coastguard Worker# All properties defined by /product. 126*e4a36f41SAndroid Build Coastguard Worker# Currently there are no enforcements between /system and /product, so for now 127*e4a36f41SAndroid Build Coastguard Worker# /product attributes are just replaced to /system attributes. 128*e4a36f41SAndroid Build Coastguard Workerdefine(`product_property_type', `system_property_type') 129*e4a36f41SAndroid Build Coastguard Workerdefine(`product_internal_property_type', `system_internal_property_type') 130*e4a36f41SAndroid Build Coastguard Workerdefine(`product_restricted_property_type', `system_restricted_property_type') 131*e4a36f41SAndroid Build Coastguard Workerdefine(`product_public_property_type', `system_public_property_type') 132*e4a36f41SAndroid Build Coastguard Worker 133*e4a36f41SAndroid Build Coastguard Worker# All properties defined by /vendor. 134*e4a36f41SAndroid Build Coastguard Workerattribute vendor_property_type; 135*e4a36f41SAndroid Build Coastguard Workerexpandattribute vendor_property_type false; 136*e4a36f41SAndroid Build Coastguard Worker 137*e4a36f41SAndroid Build Coastguard Worker# All /vendor-defined properties used only in /vendor. 138*e4a36f41SAndroid Build Coastguard Workerattribute vendor_internal_property_type; 139*e4a36f41SAndroid Build Coastguard Workerexpandattribute vendor_internal_property_type false; 140*e4a36f41SAndroid Build Coastguard Worker 141*e4a36f41SAndroid Build Coastguard Worker# All /vendor-defined properties which can't be written outside /vendor. 142*e4a36f41SAndroid Build Coastguard Workerattribute vendor_restricted_property_type; 143*e4a36f41SAndroid Build Coastguard Workerexpandattribute vendor_restricted_property_type false; 144*e4a36f41SAndroid Build Coastguard Worker 145*e4a36f41SAndroid Build Coastguard Worker# All /vendor-defined properties with no restrictions. 146*e4a36f41SAndroid Build Coastguard Workerattribute vendor_public_property_type; 147*e4a36f41SAndroid Build Coastguard Workerexpandattribute vendor_public_property_type false; 148*e4a36f41SAndroid Build Coastguard Worker 149*e4a36f41SAndroid Build Coastguard Worker# All service_manager types created by system_server 150*e4a36f41SAndroid Build Coastguard Workerattribute system_server_service; 151*e4a36f41SAndroid Build Coastguard Worker 152*e4a36f41SAndroid Build Coastguard Worker# services which should be available to all but isolated apps 153*e4a36f41SAndroid Build Coastguard Workerattribute app_api_service; 154*e4a36f41SAndroid Build Coastguard Worker 155*e4a36f41SAndroid Build Coastguard Worker# services which should be available to all ephemeral apps 156*e4a36f41SAndroid Build Coastguard Workerattribute ephemeral_app_api_service; 157*e4a36f41SAndroid Build Coastguard Worker 158*e4a36f41SAndroid Build Coastguard Worker# services which export only system_api 159*e4a36f41SAndroid Build Coastguard Workerattribute system_api_service; 160*e4a36f41SAndroid Build Coastguard Worker 161*e4a36f41SAndroid Build Coastguard Worker# services which are explicitly disallowed for untrusted apps to access 162*e4a36f41SAndroid Build Coastguard Workerattribute protected_service; 163*e4a36f41SAndroid Build Coastguard Worker 164*e4a36f41SAndroid Build Coastguard Worker# services which served by vendor and also using the copy of libbinder on 165*e4a36f41SAndroid Build Coastguard Worker# system (for instance via libbinder_ndk). services using a different copy 166*e4a36f41SAndroid Build Coastguard Worker# of libbinder currently need their own context manager (e.g. 167*e4a36f41SAndroid Build Coastguard Worker# vndservicemanager) 168*e4a36f41SAndroid Build Coastguard Workerattribute vendor_service; 169*e4a36f41SAndroid Build Coastguard Worker 170*e4a36f41SAndroid Build Coastguard Worker# All types used for services managed by servicemanager. 171*e4a36f41SAndroid Build Coastguard Worker# On change, update CHECK_SC_ASSERT_ATTRS 172*e4a36f41SAndroid Build Coastguard Worker# definition in tools/checkfc.c. 173*e4a36f41SAndroid Build Coastguard Workerattribute service_manager_type; 174*e4a36f41SAndroid Build Coastguard Worker 175*e4a36f41SAndroid Build Coastguard Worker# All types used for services managed by hwservicemanager 176*e4a36f41SAndroid Build Coastguard Workerattribute hwservice_manager_type; 177*e4a36f41SAndroid Build Coastguard Worker 178*e4a36f41SAndroid Build Coastguard Worker# All HwBinder services guaranteed to be passthrough. These services always run 179*e4a36f41SAndroid Build Coastguard Worker# in the process of their clients, and thus operate with the same access as 180*e4a36f41SAndroid Build Coastguard Worker# their clients. 181*e4a36f41SAndroid Build Coastguard Workerattribute same_process_hwservice; 182*e4a36f41SAndroid Build Coastguard Worker 183*e4a36f41SAndroid Build Coastguard Worker# All HwBinder services guaranteed to be offered only by core domain components 184*e4a36f41SAndroid Build Coastguard Workerattribute coredomain_hwservice; 185*e4a36f41SAndroid Build Coastguard Worker 186*e4a36f41SAndroid Build Coastguard Worker# All HwBinder services that untrusted apps can't directly access 187*e4a36f41SAndroid Build Coastguard Workerattribute protected_hwservice; 188*e4a36f41SAndroid Build Coastguard Worker 189*e4a36f41SAndroid Build Coastguard Worker# All types used for services managed by vndservicemanager 190*e4a36f41SAndroid Build Coastguard Workerattribute vndservice_manager_type; 191*e4a36f41SAndroid Build Coastguard Worker 192*e4a36f41SAndroid Build Coastguard Worker 193*e4a36f41SAndroid Build Coastguard Worker# All domains that can override MLS restrictions. 194*e4a36f41SAndroid Build Coastguard Worker# i.e. processes that can read up and write down. 195*e4a36f41SAndroid Build Coastguard Workerattribute mlstrustedsubject; 196*e4a36f41SAndroid Build Coastguard Worker 197*e4a36f41SAndroid Build Coastguard Worker# All types that can override MLS restrictions. 198*e4a36f41SAndroid Build Coastguard Worker# i.e. files that can be read by lower and written by higher 199*e4a36f41SAndroid Build Coastguard Workerattribute mlstrustedobject; 200*e4a36f41SAndroid Build Coastguard Worker 201*e4a36f41SAndroid Build Coastguard Worker# All domains used for apps. 202*e4a36f41SAndroid Build Coastguard Workerattribute appdomain; 203*e4a36f41SAndroid Build Coastguard Worker 204*e4a36f41SAndroid Build Coastguard Worker# All third party apps (except isolated_app and ephemeral_app) 205*e4a36f41SAndroid Build Coastguard Workerattribute untrusted_app_all; 206*e4a36f41SAndroid Build Coastguard Worker 207*e4a36f41SAndroid Build Coastguard Worker# All domains used for apps with network access. 208*e4a36f41SAndroid Build Coastguard Workerattribute netdomain; 209*e4a36f41SAndroid Build Coastguard Worker 210*e4a36f41SAndroid Build Coastguard Worker# All domains used for apps with bluetooth access. 211*e4a36f41SAndroid Build Coastguard Workerattribute bluetoothdomain; 212*e4a36f41SAndroid Build Coastguard Worker 213*e4a36f41SAndroid Build Coastguard Worker# All domains used for binder service domains. 214*e4a36f41SAndroid Build Coastguard Workerattribute binderservicedomain; 215*e4a36f41SAndroid Build Coastguard Worker 216*e4a36f41SAndroid Build Coastguard Worker# update_engine related domains that need to apply an update and run 217*e4a36f41SAndroid Build Coastguard Worker# postinstall. This includes the background daemon and the sideload tool from 218*e4a36f41SAndroid Build Coastguard Worker# recovery for A/B devices. 219*e4a36f41SAndroid Build Coastguard Workerattribute update_engine_common; 220*e4a36f41SAndroid Build Coastguard Worker 221*e4a36f41SAndroid Build Coastguard Worker# All core domains (as opposed to vendor/device-specific domains) 222*e4a36f41SAndroid Build Coastguard Workerattribute coredomain; 223*e4a36f41SAndroid Build Coastguard Worker 224*e4a36f41SAndroid Build Coastguard Worker# All vendor hwservice. 225*e4a36f41SAndroid Build Coastguard Workerattribute vendor_hwservice_type; 226*e4a36f41SAndroid Build Coastguard Worker 227*e4a36f41SAndroid Build Coastguard Worker# All socket devices owned by core domain components 228*e4a36f41SAndroid Build Coastguard Workerattribute coredomain_socket; 229*e4a36f41SAndroid Build Coastguard Workerexpandattribute coredomain_socket false; 230*e4a36f41SAndroid Build Coastguard Worker 231*e4a36f41SAndroid Build Coastguard Worker# All vendor domains which violate the requirement of not using sockets for 232*e4a36f41SAndroid Build Coastguard Worker# communicating with core components 233*e4a36f41SAndroid Build Coastguard Worker# TODO(b/36577153): Remove this once there are no violations 234*e4a36f41SAndroid Build Coastguard Workerattribute socket_between_core_and_vendor_violators; 235*e4a36f41SAndroid Build Coastguard Workerexpandattribute socket_between_core_and_vendor_violators false; 236*e4a36f41SAndroid Build Coastguard Worker 237*e4a36f41SAndroid Build Coastguard Worker# All vendor domains which violate the requirement of not executing 238*e4a36f41SAndroid Build Coastguard Worker# system processes 239*e4a36f41SAndroid Build Coastguard Worker# TODO(b/36463595) 240*e4a36f41SAndroid Build Coastguard Workerattribute vendor_executes_system_violators; 241*e4a36f41SAndroid Build Coastguard Workerexpandattribute vendor_executes_system_violators false; 242*e4a36f41SAndroid Build Coastguard Worker 243*e4a36f41SAndroid Build Coastguard Worker# All domains which violate the requirement of not sharing files by path 244*e4a36f41SAndroid Build Coastguard Worker# between between vendor and core domains. 245*e4a36f41SAndroid Build Coastguard Worker# TODO(b/34980020) 246*e4a36f41SAndroid Build Coastguard Workerattribute data_between_core_and_vendor_violators; 247*e4a36f41SAndroid Build Coastguard Workerexpandattribute data_between_core_and_vendor_violators false; 248*e4a36f41SAndroid Build Coastguard Worker 249*e4a36f41SAndroid Build Coastguard Worker# All system domains which violate the requirement of not executing vendor 250*e4a36f41SAndroid Build Coastguard Worker# binaries/libraries. 251*e4a36f41SAndroid Build Coastguard Worker# TODO(b/62041836) 252*e4a36f41SAndroid Build Coastguard Workerattribute system_executes_vendor_violators; 253*e4a36f41SAndroid Build Coastguard Workerexpandattribute system_executes_vendor_violators false; 254*e4a36f41SAndroid Build Coastguard Worker 255*e4a36f41SAndroid Build Coastguard Worker# All system domains which violate the requirement of not writing vendor 256*e4a36f41SAndroid Build Coastguard Worker# properties. 257*e4a36f41SAndroid Build Coastguard Worker# TODO(b/78598545): Remove this once there are no violations 258*e4a36f41SAndroid Build Coastguard Workerattribute system_writes_vendor_properties_violators; 259*e4a36f41SAndroid Build Coastguard Workerexpandattribute system_writes_vendor_properties_violators false; 260*e4a36f41SAndroid Build Coastguard Worker 261*e4a36f41SAndroid Build Coastguard Worker# All system domains which violate the requirement of not writing to 262*e4a36f41SAndroid Build Coastguard Worker# /mnt/vendor/*. Must not be used on devices launched with P or later. 263*e4a36f41SAndroid Build Coastguard Workerattribute system_writes_mnt_vendor_violators; 264*e4a36f41SAndroid Build Coastguard Workerexpandattribute system_writes_mnt_vendor_violators false; 265*e4a36f41SAndroid Build Coastguard Worker 266*e4a36f41SAndroid Build Coastguard Worker# hwservices that are accessible from untrusted applications 267*e4a36f41SAndroid Build Coastguard Worker# WARNING: Use of this attribute should be avoided unless 268*e4a36f41SAndroid Build Coastguard Worker# absolutely necessary. It is a temporary allowance to aid the 269*e4a36f41SAndroid Build Coastguard Worker# transition to treble and will be removed in a future platform 270*e4a36f41SAndroid Build Coastguard Worker# version, requiring all hwservices that are labeled with this 271*e4a36f41SAndroid Build Coastguard Worker# attribute to be submitted to AOSP in order to maintain their 272*e4a36f41SAndroid Build Coastguard Worker# app-visibility. 273*e4a36f41SAndroid Build Coastguard Workerattribute untrusted_app_visible_hwservice_violators; 274*e4a36f41SAndroid Build Coastguard Workerexpandattribute untrusted_app_visible_hwservice_violators false; 275*e4a36f41SAndroid Build Coastguard Worker 276*e4a36f41SAndroid Build Coastguard Worker# halserver domains that are accessible to untrusted applications. These 277*e4a36f41SAndroid Build Coastguard Worker# domains are typically those hosting hwservices attributed by the 278*e4a36f41SAndroid Build Coastguard Worker# untrusted_app_visible_hwservice_violators. 279*e4a36f41SAndroid Build Coastguard Worker# WARNING: Use of this attribute should be avoided unless absolutely necessary. 280*e4a36f41SAndroid Build Coastguard Worker# It is a temporary allowance to aid the transition to treble and will be 281*e4a36f41SAndroid Build Coastguard Worker# removed in the future platform version, requiring all halserver domains that 282*e4a36f41SAndroid Build Coastguard Worker# are labeled with this attribute to be submitted to AOSP in order to maintain 283*e4a36f41SAndroid Build Coastguard Worker# their app-visibility. 284*e4a36f41SAndroid Build Coastguard Workerattribute untrusted_app_visible_halserver_violators; 285*e4a36f41SAndroid Build Coastguard Workerexpandattribute untrusted_app_visible_halserver_violators false; 286*e4a36f41SAndroid Build Coastguard Worker 287*e4a36f41SAndroid Build Coastguard Worker# PDX services 288*e4a36f41SAndroid Build Coastguard Workerattribute pdx_endpoint_dir_type; 289*e4a36f41SAndroid Build Coastguard Workerattribute pdx_endpoint_socket_type; 290*e4a36f41SAndroid Build Coastguard Workerexpandattribute pdx_endpoint_socket_type false; 291*e4a36f41SAndroid Build Coastguard Workerattribute pdx_channel_socket_type; 292*e4a36f41SAndroid Build Coastguard Workerexpandattribute pdx_channel_socket_type false; 293*e4a36f41SAndroid Build Coastguard Worker 294*e4a36f41SAndroid Build Coastguard Workerpdx_service_attributes(display_client) 295*e4a36f41SAndroid Build Coastguard Workerpdx_service_attributes(display_manager) 296*e4a36f41SAndroid Build Coastguard Workerpdx_service_attributes(display_screenshot) 297*e4a36f41SAndroid Build Coastguard Workerpdx_service_attributes(display_vsync) 298*e4a36f41SAndroid Build Coastguard Workerpdx_service_attributes(performance_client) 299*e4a36f41SAndroid Build Coastguard Workerpdx_service_attributes(bufferhub_client) 300*e4a36f41SAndroid Build Coastguard Worker 301*e4a36f41SAndroid Build Coastguard Worker# All HAL servers 302*e4a36f41SAndroid Build Coastguard Workerattribute halserverdomain; 303*e4a36f41SAndroid Build Coastguard Worker# All HAL clients 304*e4a36f41SAndroid Build Coastguard Workerattribute halclientdomain; 305*e4a36f41SAndroid Build Coastguard Workerexpandattribute halclientdomain true; 306*e4a36f41SAndroid Build Coastguard Worker 307*e4a36f41SAndroid Build Coastguard Worker# Exempt for halserverdomain to access sockets. Only builds for automotive 308*e4a36f41SAndroid Build Coastguard Worker# device types are allowed to use this attribute (enforced by CTS). 309*e4a36f41SAndroid Build Coastguard Worker# Unlike phone, in a car many modules are external from Android perspective and 310*e4a36f41SAndroid Build Coastguard Worker# HALs should be able to communicate with those devices through sockets. 311*e4a36f41SAndroid Build Coastguard Workerattribute hal_automotive_socket_exemption; 312*e4a36f41SAndroid Build Coastguard Worker 313*e4a36f41SAndroid Build Coastguard Worker# HALs 314*e4a36f41SAndroid Build Coastguard Workerhal_attribute(allocator); 315*e4a36f41SAndroid Build Coastguard Workerhal_attribute(atrace); 316*e4a36f41SAndroid Build Coastguard Workerhal_attribute(audio); 317*e4a36f41SAndroid Build Coastguard Workerhal_attribute(audiocontrol); 318*e4a36f41SAndroid Build Coastguard Workerhal_attribute(authsecret); 319*e4a36f41SAndroid Build Coastguard Workerhal_attribute(bluetooth); 320*e4a36f41SAndroid Build Coastguard Workerhal_attribute(bootctl); 321*e4a36f41SAndroid Build Coastguard Workerhal_attribute(bufferhub); 322*e4a36f41SAndroid Build Coastguard Workerhal_attribute(broadcastradio); 323*e4a36f41SAndroid Build Coastguard Workerhal_attribute(camera); 324*e4a36f41SAndroid Build Coastguard Workerhal_attribute(can_bus); 325*e4a36f41SAndroid Build Coastguard Workerhal_attribute(can_controller); 326*e4a36f41SAndroid Build Coastguard Workerhal_attribute(cas); 327*e4a36f41SAndroid Build Coastguard Workerhal_attribute(codec2); 328*e4a36f41SAndroid Build Coastguard Workerhal_attribute(configstore); 329*e4a36f41SAndroid Build Coastguard Workerhal_attribute(confirmationui); 330*e4a36f41SAndroid Build Coastguard Workerhal_attribute(contexthub); 331*e4a36f41SAndroid Build Coastguard Workerhal_attribute(drm); 332*e4a36f41SAndroid Build Coastguard Workerhal_attribute(dumpstate); 333*e4a36f41SAndroid Build Coastguard Workerhal_attribute(evs); 334*e4a36f41SAndroid Build Coastguard Workerhal_attribute(face); 335*e4a36f41SAndroid Build Coastguard Workerhal_attribute(fingerprint); 336*e4a36f41SAndroid Build Coastguard Workerhal_attribute(gatekeeper); 337*e4a36f41SAndroid Build Coastguard Workerhal_attribute(gnss); 338*e4a36f41SAndroid Build Coastguard Workerhal_attribute(graphics_allocator); 339*e4a36f41SAndroid Build Coastguard Workerhal_attribute(graphics_composer); 340*e4a36f41SAndroid Build Coastguard Workerhal_attribute(health); 341*e4a36f41SAndroid Build Coastguard Workerhal_attribute(health_storage); 342*e4a36f41SAndroid Build Coastguard Workerhal_attribute(identity); 343*e4a36f41SAndroid Build Coastguard Workerhal_attribute(input_classifier); 344*e4a36f41SAndroid Build Coastguard Workerhal_attribute(ir); 345*e4a36f41SAndroid Build Coastguard Workerhal_attribute(keymaster); 346*e4a36f41SAndroid Build Coastguard Workerhal_attribute(keymint); 347*e4a36f41SAndroid Build Coastguard Workerhal_attribute(light); 348*e4a36f41SAndroid Build Coastguard Workerhal_attribute(lowpan); 349*e4a36f41SAndroid Build Coastguard Workerhal_attribute(memtrack); 350*e4a36f41SAndroid Build Coastguard Workerhal_attribute(neuralnetworks); 351*e4a36f41SAndroid Build Coastguard Workerhal_attribute(nfc); 352*e4a36f41SAndroid Build Coastguard Workerhal_attribute(oemlock); 353*e4a36f41SAndroid Build Coastguard Workerhal_attribute(omx); 354*e4a36f41SAndroid Build Coastguard Workerhal_attribute(power); 355*e4a36f41SAndroid Build Coastguard Workerhal_attribute(power_stats); 356*e4a36f41SAndroid Build Coastguard Workerhal_attribute(rebootescrow); 357*e4a36f41SAndroid Build Coastguard Workerhal_attribute(secure_element); 358*e4a36f41SAndroid Build Coastguard Workerhal_attribute(sensors); 359*e4a36f41SAndroid Build Coastguard Workerhal_attribute(telephony); 360*e4a36f41SAndroid Build Coastguard Workerhal_attribute(tetheroffload); 361*e4a36f41SAndroid Build Coastguard Workerhal_attribute(thermal); 362*e4a36f41SAndroid Build Coastguard Workerhal_attribute(tv_cec); 363*e4a36f41SAndroid Build Coastguard Workerhal_attribute(tv_input); 364*e4a36f41SAndroid Build Coastguard Workerhal_attribute(tv_tuner); 365*e4a36f41SAndroid Build Coastguard Workerhal_attribute(usb); 366*e4a36f41SAndroid Build Coastguard Workerhal_attribute(usb_gadget); 367*e4a36f41SAndroid Build Coastguard Workerhal_attribute(uwb); 368*e4a36f41SAndroid Build Coastguard Workerhal_attribute(vehicle); 369*e4a36f41SAndroid Build Coastguard Workerhal_attribute(vibrator); 370*e4a36f41SAndroid Build Coastguard Workerhal_attribute(vr); 371*e4a36f41SAndroid Build Coastguard Workerhal_attribute(weaver); 372*e4a36f41SAndroid Build Coastguard Workerhal_attribute(wifi); 373*e4a36f41SAndroid Build Coastguard Workerhal_attribute(wifi_hostapd); 374*e4a36f41SAndroid Build Coastguard Workerhal_attribute(wifi_supplicant); 375*e4a36f41SAndroid Build Coastguard Worker 376*e4a36f41SAndroid Build Coastguard Worker# HwBinder services offered across the core-vendor boundary 377*e4a36f41SAndroid Build Coastguard Worker# 378*e4a36f41SAndroid Build Coastguard Worker# We annotate server domains with x_server to loosen the coupling between 379*e4a36f41SAndroid Build Coastguard Worker# system and vendor images. For example, it should be possible to move a service 380*e4a36f41SAndroid Build Coastguard Worker# from one core domain to another, without having to update the vendor image 381*e4a36f41SAndroid Build Coastguard Worker# which contains clients of this service. 382*e4a36f41SAndroid Build Coastguard Worker 383*e4a36f41SAndroid Build Coastguard Workerattribute automotive_display_service_server; 384*e4a36f41SAndroid Build Coastguard Workerattribute camera_service_server; 385*e4a36f41SAndroid Build Coastguard Workerattribute display_service_server; 386*e4a36f41SAndroid Build Coastguard Workerattribute scheduler_service_server; 387*e4a36f41SAndroid Build Coastguard Workerattribute sensor_service_server; 388*e4a36f41SAndroid Build Coastguard Workerattribute stats_service_server; 389*e4a36f41SAndroid Build Coastguard Workerattribute system_suspend_internal_server; 390*e4a36f41SAndroid Build Coastguard Workerattribute system_suspend_server; 391*e4a36f41SAndroid Build Coastguard Workerattribute wifi_keystore_service_server; 392*e4a36f41SAndroid Build Coastguard Worker 393*e4a36f41SAndroid Build Coastguard Worker# All types used for super partition block devices. 394*e4a36f41SAndroid Build Coastguard Workerattribute super_block_device_type; 395*e4a36f41SAndroid Build Coastguard Worker 396*e4a36f41SAndroid Build Coastguard Worker# All types used for DMA-BUF heaps 397*e4a36f41SAndroid Build Coastguard Workerattribute dmabuf_heap_device_type; 398*e4a36f41SAndroid Build Coastguard Workerexpandattribute dmabuf_heap_device_type false; 399*e4a36f41SAndroid Build Coastguard Worker 400*e4a36f41SAndroid Build Coastguard Worker# All types used for DSU metadata files. 401*e4a36f41SAndroid Build Coastguard Workerattribute gsi_metadata_file_type; 402