1# Device Management Development 2 3## How do I obtain the DPI of a device? 4 5Applicable to: OpenHarmony 3.2 Beta5, stage model of API version 9 6 7Import the **@ohos.display** module and call the **getDefaultDisplaySync** API. 8 9**Example** 10 11``` 12import display from '@ohos.display'; 13let displayClass = null; 14try { 15 displayClass = display.getDefaultDisplaySync(); 16 console.info('Test densityDPI:' + JSON.stringify(data.densityDPI)); 17} catch (exception) { 18 console.error('Failed to obtain the default display object. Code: ' + JSON.stringify(exception)); 19} 20``` 21 22## How do I obtain the type of the device where the application is running? 23 24Applicable to: OpenHarmony SDK 3.2.2.5, stage model of API version 9 25 26Import the **\@ohos.deviceInfo** module and call the **deviceInfo.deviceType** API. 27 28For details, see [Device Information](../reference/apis/js-apis-device-info.md). 29 30## How do I obtain the system version of a device? 31 32Applicable to: OpenHarmony SDK 3.2.5.5, stage model of API version 9 33 34Use the **osFullName** attribute of the [deviceInfo](../reference/apis/js-apis-device-info.md) object. 35 36## How do I obtain the UDID of an OpenHarmony device? 37 38Applicable to: OpenHarmony SDK3.0, stage model of API version 9 39 40- To obtain the UDID of the connected device, run the **hdc shell bm get --udid** command. 41 42- For details about how to obtain the UDID from code, see [udid](../reference/apis/js-apis-device-info.md). 43 44## How do I develop a shortcut key function? 45 46Applicable to: OpenHarmony SDK 3.2.6.5, stage model of API version 9 47 48To develop a shortcut key function, use the APIs in [Input Consumer](../reference/apis/js-apis-inputconsumer.md). 49