遇到过persist.device_config属性设置后被置空的情况,怎么追查是谁修改的

找到原因了
把上层停止后,属性还会被置空,用shell普通权限设置时发现有selinux规则拦截,检查属性标签后发现有native服务flags_health_check具备设置device_config属性的权限,

继续查系统有模块一直crash触发sys.init.updatable_crashing属性被设置,

会触发ResetFlags,把所有persiet.device_config开头的属性置空
#android #属性修改

Comments

Be the first to add a comment