赞
踩
- private static boolean isEmulatorFromAbi(){
- String abi = PropertiesGet.getString("ro.product.cpu.abi");
- return !TextUtils.isEmpty(abi) && abi.contains("x86");
- }
- public static boolean isEmulatorViaBuild(Context context){
- String model = PropertiesGet.getString("ro.product.model")
- if(!TextUtils.isEmpty(model) && model.toLowerCase().contains("sdk"))
- return true;
-
- String manufacture = PropertiesGet.getString("ro.product.manufactuer")
- if(!TextUtils.isEmpty(manufacture) && manufacture.toLowerCase().contains("unknown"))
- return true;
-
- String device = PropertiesGet.getString("ro.product.device")
- if(!TextUtils.isEmpty(device) && device.toLowerCase().contains("generic"))
- return true;
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。