How to Retrieve the Firmware (OS) Version: Difference between revisions

From wizarPOS
(Created page with "== By system property == property name: ro.wp.system.ver // returned version such as 1.0.0-3928 String prop = getProperty("ro.wp.system.ver",""); publ...")
 
(Replaced content with "{{Migrating|https://smartpossdk.gitbook.io/cloudpossdk/faq/other-development/get-firmware-version}}")
Tag: Replaced
 
(10 intermediate revisions by 4 users not shown)
Line 1: Line 1:
== By system property ==
{{Migrating|https://smartpossdk.gitbook.io/cloudpossdk/faq/other-development/get-firmware-version}}
    property name: ro.wp.system.ver
    // returned version such as 1.0.0-3928
    String prop = getProperty("ro.wp.system.ver","");
     
    public static String getProperty(String key, String defaultValue) {
        String value = defaultValue;
        try {
            Class<?> c = Class.forName("android.os.SystemProperties");
            Method get = c.getMethod("get", String.class, String.class);
            value = (String)(get.invoke(c, key, defaultValue ));
        } catch (Exception e) {
            e.printStackTrace();
        }finally {
            return value;
        }
    }
== By android Build Class ==
    android.os.Build.DISPLAY

Latest revision as of 03:27, 8 April 2024

Please visit new link of same subject:

https://smartpossdk.gitbook.io/cloudpossdk/faq/other-development/get-firmware-version

We're making a move! Our site's content is migrating to a new URL, to provide you with an enhanced browsing experience. Please update your bookmarks accordingly. Thank you for your continuous support!