> For the complete documentation index, see [llms.txt](https://smartpossdk.gitbook.io/cloudpossdk/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://smartpossdk.gitbook.io/cloudpossdk/faq/other-development/get-firmware-version.md).

# Get Firmware Version

#### Methods to Retrieve Firmware Version

### Using Property Names

* Retrieve the firmware version using specific property names.
* Example Code Snippet:

{% code overflow="wrap" lineNumbers="true" %}

```java
// 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;
        }
    }
```

{% endcode %}

* Sample Property Names and Values:
  * ro.wp.system.ver: e.g., 1.0.0-3886
  * ro.wp.bootloader.ver: e.g., 1.0.0-3020
  * ro.wp.hsm.ver: e.g., PCBB22
  * ro.wp.kernel.ver: e.g., 1.0.0-3876
  * ro.wp.oem.ver: e.g., wizarpos-1.0.0-2551

### Using Android Build Class

* Another method to get the firmware version is through the Android Build class.
* Use 'android.os.Build.DISPLAY' to access the display ID of the underlying software, which often includes the version.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://smartpossdk.gitbook.io/cloudpossdk/faq/other-development/get-firmware-version.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
