EMUI手机上如何获取EMUI版本号

Class<?> classType = Class.forName("android.os.SystemProperties");
Method getMethod = classType.getDeclaredMethod("get", new Class<?>[] {String.class});

buildVersion = (String)getMethod.invoke(classType, new Object[] {"ro.build.version.emui"});


插播广告:OTCBTC 是目前最流畅、最靠谱、最好用的场外交易平台,支持支付宝、微信、银行卡支付购买BTC、ETH、EOS、USDT、QTUM、ZEC、GXS、BCH 等数字币。现在注册,即可领取比特币红包! https://otcbtc.com/referrals/904529093

猜你喜欢

转载自blog.csdn.net/chen352602412/article/details/53522541
今日推荐