How to Retrieve Firmware and EMV Kernel Version: Difference between revisions

From wizarPOS
No edit summary
 
(Replaced content with "{{Migrating|https://smartpossdk.gitbook.io/cloudpossdk/faq/other-development/get-firmware-and-emv-version}}")
Tag: Replaced
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
* Get firmware version:
{{Migrating|https://smartpossdk.gitbook.io/cloudpossdk/faq/other-development/get-firmware-and-emv-version}}
<syntaxhighlight lang="java">
  public static final String SYSTEM_VERSION = "ro.wp.system.ver";
    public static final String KERNEL_VERSION  = "ro.wp.kernel.ver";
    public static final String BOOTLOADER_VERSION  = "ro.wp.bootloader.ver";
 
    public static String getsystemPropertie(String key, String defaultValue){
        Object propObj = null ;
        try {
            Class<?> systemProperties = Class.forName("android.os.SystemProperties");
            Log.i("systemProperties", systemProperties.toString());
            propObj = systemProperties.getMethod("get", new Class[]{String.class, String.class}).invoke(systemProperties, new Object[]{key,"unknown"});
            Log.i("bootloaderVersion", propObj.getClass().toString());
        }catch (Exception e) {
            e.printStackTrace();
        }
        String prop = propObj.toString().toUpperCase();
        return prop;
    }
</syntaxhighlight >
* Get EMV kernel version
<syntaxhighlight lang="java">
int emv_get_version_string(unsigned char *buffer, int bufferLength)
</syntaxhighlight >

Latest revision as of 03:28, 8 April 2024

Please visit new link of same subject:

https://smartpossdk.gitbook.io/cloudpossdk/faq/other-development/get-firmware-and-emv-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!