OSDN Git Service

Fix the file permissions of /data/misc/bluedroid/bt_config.conf
authorPavlin Radoslavov <pavlin@google.com>
Sat, 20 Jun 2015 02:21:47 +0000 (19:21 -0700)
committerPavlin Radoslavov <pavlin@google.com>
Mon, 22 Jun 2015 17:22:08 +0000 (10:22 -0700)
commit4197cfdbd36d9f7f213df11b6fee795f22c867fd
tree7b60e5721db200dc653e3d21d84e179fd99157af
parent6a27776c488dd5ce2d29bce543ee42a12dfad60b
Fix the file permissions of /data/misc/bluedroid/bt_config.conf

Fix the file access permissions and group ownership of
"/data/misc/bluedroid/bt_config.conf" so the file can be reused when
switching users on the device.
For that purpose, we need to do the following:

1. Set the set-group-ID (bit 02000) flag for directory "/data/misc/bluedroid"
   so the files created in that directory will have group-id of
   "net_bt_stack" .

2. Change the file's permissions of file "/data/misc/bluedroid/bt_config.conf"
   to Read/Write by User and Group.

Bug: 21493919
Change-Id: I48b73711789734b5221231729f8cd9ff9bb94be7
osi/src/config.c