How to Access Different Firmware Modes of a Terminal: Difference between revisions

From wizarPOS
(Created page with " It can get from system property: ro.firmware.type <syntaxhighlight lang="java" line='line'> String name = getProperty("ro.firmware.type","");// eng is engineer mode, user...")
 
No edit summary
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
  It can get from system property: ro.firmware.type
{{Migrating|https://smartpossdk.gitbook.io/cloudpossdk/faq/firmware/get-terminal-firmware-modes}}
<syntaxhighlight lang="java" line='line'>
String name = getProperty("ro.firmware.type","");// eng is engineer mode, user is production mode
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;
  }
}
</syntaxhighlight>

Latest revision as of 08:43, 7 April 2024

Please visit new link of same subject:

https://smartpossdk.gitbook.io/cloudpossdk/faq/firmware/get-terminal-firmware-modes

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!