1.在AndroidManifest.xml manifest属性中添加android:sharedUserId="android.uid.system"
2.如果AndroidManifest.xml manifest属性中已经有android:sharedUserId属性值就只能修改 system/core/init/property_service.c
check_perms函数中添加
if (app_id == AID_BLUETOOTH) {
uid = app_id;
}
/**添加属性例外 */
if(strncmp(name,"persist.sys.flip_mute",strlen("persist.sys.flip_mute")) == 0){
return 1;
}
原文地址:http://blog.csdn.net/u012554768/article/details/46387967