senhlinsh / android-rom-identifier Goto Github PK
View Code? Open in Web Editor NEWAndroid 厂商自定义 ROM 识别
Android 厂商自定义 ROM 识别
手机品牌 手机型号 Android系统
TCL TCL Y660 Android7.1.1
OPPO R823T Android4.2.1
HUAWEI TRT-AL00 Android7.0
Honor Che1-CL20 Android4.4.4
htc HTC D310w Android4.4.2
CMDC M623C Android5.1.1
samsung SM-C7000 Android8.0.0
GIONEE F100S Android6.0
以上这些都被识别为了魅族Flyme系统,而且版本号为null
private static String getSystemProperty(String key) {
try {
Class<?> clz = Class.forName("android.os.SystemProperties");
Method get = clz.getMethod("get", String.class, String.class);
return (String) get.invoke(clz, key, "");
} catch (Exception e) {
}
return "";
}
直接用反射可以识别出来
小米版本:V10.0.1.0.OAACNFH
将正则改为:"[Vv]?(\d+(.\d+))[.A-Za-z]",则可以正常匹配
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.