()
| 1842 | } |
| 1843 | |
| 1844 | static String getMIUIVersion() { |
| 1845 | try { |
| 1846 | Class<?> c = Class.forName("android.os.SystemProperties"); |
| 1847 | Method get = c.getMethod("get", String.class); |
| 1848 | get.setAccessible(true); |
| 1849 | String miui = (String) get.invoke(c, "ro.miui.ui.version.code"); |
| 1850 | return (TextUtils.isEmpty(miui) ? null : miui); |
| 1851 | } catch (Throwable ex) { |
| 1852 | Log.w(ex); |
| 1853 | return null; |
| 1854 | } |
| 1855 | } |
| 1856 | |
| 1857 | static String getUiModeType(Context context) { |
| 1858 | try { |
no test coverage detected