From 7591884b6451f8ae290f306fcbe35f7e0a1e2578 Mon Sep 17 00:00:00 2001 From: Jeykumar Sankaran Date: Wed, 13 Aug 2014 20:36:23 -0700 Subject: [PATCH] init: Set permissions for dynamic partial update node Set file permissions for dynamic partial update system node to control the feature at runtime. Change-Id: Icd4799907d168c2606c8811c73f4fedd847d55f0 --- init/init_msm.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/init/init_msm.c b/init/init_msm.c index 0c0dfcbe..7fc7c3a4 100644 --- a/init/init_msm.c +++ b/init/init_msm.c @@ -179,6 +179,10 @@ void set_display_node_perms() snprintf(tmp, sizeof(tmp), "%sfb0/dynamic_fps", sys_fb_path); setPerms(tmp, 0664); setOwners(tmp, AID_SYSTEM, AID_GRAPHICS); + // Set permissions for dynamic partial update + snprintf(tmp, sizeof(tmp), "%sfb0/dyn_pu", sys_fb_path); + setPerms(tmp, 0664); + setOwners(tmp, AID_SYSTEM, AID_GRAPHICS); } static int check_rlim_action()