黑莓10系统:手动及编程查询Build No与固件版本方法
Hey there! Let’s walk through how to find the Build No and firmware version for BlackBerry 10 devices—both manually (for end-users) and programmatically (for developers).
手动查找BlackBerry 10设备的Build No和固件版本
Getting this info manually is straightforward, no extra tools required:
- Open the Settings app (look for the gear icon on your home screen)
- Scroll all the way to the bottom and tap About
- On the About page, you’ll immediately see the OS Version (this is your firmware version)
- Keep scrolling down, and you’ll find the Build Number—it’s usually a string combining numbers and sometimes letters, like
10.3.3.3216.1055
通过编程方式查询BlackBerry 10设备的Build No和固件版本
If you’re building an app for BlackBerry 10, here’s how to pull these values programmatically, depending on your development stack:
Native SDK (C++/QML)
QML Implementation
Use the built-in bb.system module to access device info directly in your QML UI:
import bb.system 1.0 // Example label displaying the values Label { text: "Firmware Version: " + DeviceInfo.osVersion + "\nBuild No: " + DeviceInfo.buildId }
C++ Implementation
Use the bb::system::DeviceInfo class to retrieve the values in your C++ backend:
#include <bb/system/DeviceInfo> // In your code logic bb::system::DeviceInfo deviceInfo; QString firmwareVersion = deviceInfo.osVersion(); QString buildNumber = deviceInfo.buildId(); // Use these strings as needed (e.g., log them, display in UI)
WebWorks (HTML5/JavaScript)
For web-based apps using BlackBerry WebWorks, leverage the blackberry.system API:
- First, make sure your
config.xmlincludes the required permission:
<feature id="blackberry.system" required="true" version="1.0.0"/>
- Then call the API in your JavaScript:
// Get firmware version const firmwareVersion = blackberry.system.getProperty("osversion"); // Get Build No const buildNumber = blackberry.system.getProperty("buildnumber"); // Log or display the values console.log(`Firmware: ${firmwareVersion}, Build No: ${buildNumber}`);
内容的提问来源于stack exchange,提问作者Amit Yadav
相关产品推荐
相关产品推荐

