Retrieve Terminal Info

Overview

This guide details how to access various system information on Point of Sale (POS) terminals, including brand, manufacturer, and product model.

Understanding Available Information

  • POS systems store key information such as the brand, manufacturer, and product model. This information can be crucial for various application functionalities.

Method for Retrieval

  • Android offers a straightforward approach to retrieve this system information.

  • You can use specific code snippets (provided below) to access these details programmatically.

String model = getSystemPropertie("ro.wp.product.model").trim()
public static String getSystemPropertie(String key) {
  Object strVersion = null;
  try {
     Class<?> systemProperties = Class.forName("android.os.SystemProperties");
    Log.i("systemProperties", systemProperties.toString());
    strVersion = systemProperties.getMethod("get", new Class[] { String.class, String.class }).invoke(systemProperties, new Object[] { key, "unknown" });
    Log.i("strVersion", strVersion.getClass().toString());
  } catch (Exception e) {
    e.printStackTrace();
  }
    return strVersion.toString();
}

Last updated