//luying add vip process list
String []vipProcesses = {"com.xxx","com.yyy "};
String []importantProperties = {
"ro.epay.mode",
"ro.epay.mockup.mode",
"ro.epay.product.debug",
"ro.epay.product.mode",
"ro.epay.authmode",
"persist.sys.usb.config",
"sys.usb.config"
};
//luying start inquire process name by pid
String pname = getProcessName(cr.pid+"");
//先判断访问的属性是否敏感属性
for(int i = 0;i<importantProperties.length;i++){
if("".equals(importantProperties[i])){
//敏感属性,需要进程白名单校验
boolean isVip = false;
for(int j=0;j<vipProcesses.length;j++){
if(pname.equals(vipProcesses[j])){
//这个进程可以访问该属性
isVip = true;
break;
}
}
if(!isVip){
return;
}
break;
}
}