init : display: Add permission to camera bw node.

Allow surfaceflinger process to access fb0/mdp/bw_mode_bitmap,
so that framework can hint the camera usage to limit the bw.

Change-Id: I566010e1b988ab06f6618967f5b9c6d0cfb68890
This commit is contained in:
Prabhanjan Kandula 2015-03-30 20:18:17 +05:30 committed by Gerrit - the friendly Code Review server
parent 771d8f7f0d
commit 8822d0a479
1 changed files with 6 additions and 0 deletions

View File

@ -190,6 +190,12 @@ void set_display_node_perms()
snprintf(tmp, sizeof(tmp), "%sfb0/idle_time", sys_fb_path);
setPerms(tmp, 0664);
setOwners(tmp, AID_SYSTEM, AID_GRAPHICS);
// Set the permission for mdp/bw_mode_bitmap.
snprintf(tmp, sizeof(tmp), "%sfb0/mdp/bw_mode_bitmap", sys_fb_path);
setPerms(tmp, 0664);
setOwners(tmp, AID_SYSTEM, AID_GRAPHICS);
// Set write permission for dynamic_fps node.
snprintf(tmp, sizeof(tmp), "%sfb0/dynamic_fps", sys_fb_path);
setPerms(tmp, 0664);