Skip to content
Snippets Groups Projects
user avatar
Nick Kralevich authored
/proc/tty/drivers is read by applications to figure out if they are
running in an emulated environment. Specifically, they look for the
string "goldfish" within that file.

Arguably this is not an Android API, and really shouldn't be exposed to
applications, but:

1) A largish number of applications break if they can't read this file;
2) The information here isn't particularly sensitive

While we could spend a bunch of time trying to get applications fixed,
there are bigger fish to fry. It's not worth the battle.

Test: "ls -laZ /proc/tty/drivers" is labeled properly.
Bug: 33214085
Bug: 33814662
Bug: 33791054
Bug: 33211769
Bug: 26813932
Change-Id: Icc05bdc1c917547a6dca7d76636a1009369bde49
e427a2b2
History
Name Last commit Last update
..
access_vectors
adbd.te
app.te
atrace.te
audioserver.te
bluetooth.te
bootanim.te
bootstat.te
cameraserver.te
cppreopts.te
debuggerd.te
dhcp.te
domain.te
drmserver.te
dumpstate.te
ephemeral_app.te
file.te
file_contexts
file_contexts_asan
fingerprintd.te
fs_use
fsck.te
gatekeeperd.te
genfs_contexts
hal_allocator.te
hal_audio_default.te
hal_boot.te
hal_contexthub_default.te
hal_dumpstate_default.te
hal_gatekeeper_default.te
hal_graphics_allocator_default.te
hal_graphics_composer_default.te
hal_health_default.te
hal_ir_default.te
hal_light_default.te
hal_memtrack_default.te
hal_nfc_default.te
hal_power_default.te
hal_sensors_default.te
hal_thermal_default.te
hal_vibrator_default.te
hal_vr_default.te
hal_wifi_default.te
healthd.te
hostapd.te
hwservicemanager.te
init.te
initial_sid_contexts
initial_sids
inputflinger.te
install_recovery.te
installd.te
isolated_app.te
kernel.te
keys.conf
keystore.te
lmkd.te
logd.te
logpersist.te
mac_permissions.xml
mdnsd.te
mediaanalytics.te
mediacodec.te
mediadrmserver.te
mediaextractor.te
mediaserver.te
mls
mls_decl
mls_macros
mtp.te
netd.te
nfc.te
otapreopt_chroot.te
otapreopt_slot.te
perfprofd.te
platform_app.te
policy_capabilities
port_contexts
postinstall.te
postinstall_dexopt.te
ppp.te
priv_app.te
property_contexts
racoon.te
radio.te
recovery_persist.te
recovery_refresh.te
rild.te
roles_decl
runas.te
sdcardd.te
seapp_contexts
security_classes
service_contexts
servicemanager.te
shared_relro.te
shell.te
su.te
surfaceflinger.te
system_app.te