Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

华为M5/华为M6被误判模拟器 #58

Open
BeatMicrosoft opened this issue Dec 14, 2019 · 7 comments
Open

华为M5/华为M6被误判模拟器 #58

BeatMicrosoft opened this issue Dec 14, 2019 · 7 comments
Labels
need more detail 需要提供更多的信息

Comments

@BeatMicrosoft
Copy link

库版本(v1.1.1)
系统版本(Android 9.0, EMUI版本 9.1.1/9.1.0)
手机型号(华为M5/M6)
问题详情、异常提示(真机被误判模拟器)

期望尽快看一下

@JasonLian2020
Copy link
Collaborator

可以提供下日志吗

@lamster2018
Copy link
Owner

log有没有

@JasonLian2020 JasonLian2020 added the need more detail 需要提供更多的信息 label Dec 18, 2019
@xwf20050250
Copy link

[华为M5]

getProperty("ro.build.flavor") => null
getProperty("gsm.version.baseband") => null

获取传感器数量
SensorManager sm = (SensorManager) context.getSystemService(SENSOR_SERVICE);
return sm.getSensorList(Sensor.TYPE_ALL).size();
ret: sensorNumber: 3 < 7

是否支持闪光灯
context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_CAMERA_FLASH)
ret: false

检测光线传感器
SensorManager sensorManager = (SensorManager) context.getSystemService(SENSOR_SERVICE);
Sensor sensor = sensorManager.getDefaultSensor(Sensor.TYPE_LIGHT); //光线传感器
if (null == sensor) return false;
else return true;
ret:false

@luohuanji
Copy link

我们也遇到相同问题,请问会解决吗

@MaleWxt
Copy link

MaleWxt commented Oct 23, 2020

我这边也遇到相同的问题,请问这个问题现在有解决吗?谢谢!

@luohuanji
Copy link

luohuanji commented Oct 29, 2020 via email

@Onperson
Copy link

//适配华为
if("HUAWEI".equals(Build.BRAND) && "JDN2-W09".equals(Build.HARDWARE)){
return false;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need more detail 需要提供更多的信息
Projects
None yet
Development

No branches or pull requests

7 participants