auto import from //branches/cupcake/...@137873
This commit is contained in:
parent
e4749f30e5
commit
2015549667
|
@ -872,8 +872,10 @@ int adb_main(int is_daemon)
|
|||
** AID_INPUT to diagnose input issues (getevent)
|
||||
** AID_INET to diagnose network issues (netcfg, ping)
|
||||
** AID_GRAPHICS to access the frame buffer
|
||||
** AID_NET_BT and AID_NET_BT_ADMIN to diagnose bluetooth (hcidump)
|
||||
*/
|
||||
gid_t groups[] = { AID_ADB, AID_LOG, AID_INPUT, AID_INET, AID_GRAPHICS };
|
||||
gid_t groups[] = { AID_ADB, AID_LOG, AID_INPUT, AID_INET, AID_GRAPHICS,
|
||||
AID_NET_BT, AID_NET_BT_ADMIN };
|
||||
setgroups(sizeof(groups)/sizeof(groups[0]), groups);
|
||||
|
||||
/* then switch user and group to "shell" */
|
||||
|
@ -1080,4 +1082,3 @@ int main(int argc, char **argv)
|
|||
return adb_main(0);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
|
@ -87,6 +87,9 @@ on boot
|
|||
# set RLIMIT_NICE to allow priorities from 19 to -20
|
||||
setrlimit 13 40 40
|
||||
|
||||
# Set timeout value for rmnet stats.
|
||||
write /sys/devices/virtual/net/rmnet0/timeout_suspend 5000000
|
||||
|
||||
# Define the oom_adj values for the classes of processes that can be
|
||||
# killed by the kernel. These are used in ActivityManagerService.
|
||||
setprop ro.FOREGROUND_APP_ADJ 0
|
||||
|
|
|
@ -116,14 +116,14 @@ int vfat_mount(blkdev_t *dev, volume_t *vol, boolean safe_mode)
|
|||
}
|
||||
|
||||
rc = mount(devpath, vol->mount_point, "vfat", flags,
|
||||
"utf8,uid=1000,gid=1000,fmask=711,dmask=700");
|
||||
"utf8,uid=1000,gid=1000,fmask=711,dmask=700,shortname=mixed");
|
||||
|
||||
if (rc && errno == EROFS) {
|
||||
LOGE("vfat_mount(%d:%d, %s): Read only filesystem - retrying mount RO",
|
||||
dev->major, dev->minor, vol->mount_point);
|
||||
flags |= MS_RDONLY;
|
||||
rc = mount(devpath, vol->mount_point, "vfat", flags,
|
||||
"utf8,uid=1000,gid=1000,fmask=711,dmask=700");
|
||||
"utf8,uid=1000,gid=1000,fmask=711,dmask=700,shortname=mixed");
|
||||
}
|
||||
|
||||
#if VFAT_DEBUG
|
||||
|
|
Loading…
Reference in New Issue