• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Startup Development
2
3## How do I obtain the system version of a device?
4
5Applicable to: OpenHarmony 3.2 Beta 5 (API version 9)
6
7**Solution**
8
9You can obtain the system version of a device through the **osFullName** attribute of the [deviceInfo](../reference/apis/js-apis-device-info.md) object.
10
11**Sample Code**
12
13```
14import deviceInfo from '@ohos.deviceInfo'
15let v = deviceInfo.osFullName
16```
17
18## How do I obtain the UDID of a device?
19
20Applicable to: OpenHarmony 3.2 Beta 5 (API version 9)
21
22**Solution**
23
24-   Method 1: Run the **hdc shell bm get --udid** command.
25-   Method 2: Obtain the value from the code. For details, see [udid](../reference/apis/js-apis-device-info.md).
26
27## How do I obtain device information?
28
29Applicable to: OpenHarmony 3.2 Beta 5 (API version 9)
30
31You can call **deviceInfo** to obtain device information, such as the device model.
32
33**Reference**
34
35[Device Information](../reference/apis/js-apis-device-info.md)
36
37## How do I prevent application development from being interrupted by screen saving?
38
39Applicable to: OpenHarmony 3.2 Beta 5 (API version 9)
40
41**Solution**
42
43Run the **hdc shell "power-shell setmode 602"** command to turn off screen saving.
44