大家好,又见面了,我是全栈君。
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; }
版权声明:本文博主原创文章,博客,未经同意不得转载。
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/117007.html原文链接:https://javaforall.cn