init: Add permissions to access res_info node for HDMI timing info

The HDMI driver now provides timing information through the res_info
sysfs node. The display HAL will need permissions to read/write this
node as part of HDMI initialization.

Change-Id: I2d767534a877368f55d614118676edb5f4f90b9e
This commit is contained in:
Tatenda Chipeperekwa 2014-11-19 11:06:52 -08:00
parent fb93cec922
commit b990e787b7
1 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,5 @@
/*
Copyright (c) 2013-2014, The Linux Foundation. All rights reserved.
Copyright (c) 2013-2015, The Linux Foundation. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
@ -147,6 +147,9 @@ void set_display_node_perms()
snprintf(tmp, sizeof(tmp), "%sfb%d/hpd", sys_fb_path, num);
setPerms(tmp, 0664);
setOwners(tmp, AID_SYSTEM, AID_GRAPHICS);
snprintf(tmp, sizeof(tmp), "%sfb%d/res_info", sys_fb_path, num);
setPerms(tmp, 0664);
setOwners(tmp, AID_SYSTEM, AID_GRAPHICS);
snprintf(tmp, sizeof(tmp), "%sfb%d/vendor_name", sys_fb_path,
num);
setPerms(tmp, 0664);