修改deviceid描述

Signed-off-by: yangwei_814916 <yangwei271@huawei.com>
This commit is contained in:
yangwei_814916 2024-09-10 09:34:21 +08:00
parent 5784720b5a
commit 6904f63ce5

View File

@ -223,13 +223,12 @@ declare namespace distributedDeviceManager {
getLocalDeviceType(): number; getLocalDeviceType(): number;
/** /**
* Device identifier. The actual value is udid-hash confused with appid and salt value based on sha256. * Get the device id of the local device.
* This id remains unchanged after application installation. If the application is uninstalled and reinstalled,
* the obtained ID will change.
* *
* @permission ohos.permission.DISTRIBUTED_DATASYNC * @permission ohos.permission.DISTRIBUTED_DATASYNC
* @returns { string } - Returns local device id. The actual value is udid_hash + appid + salt_value, * @returns { string } - Device identifier. The actual value is udid-hash confused with appid and salt value based on sha256.
* which is based on the obfuscated value of base256. * This id remains unchanged after application installation. If the application is uninstalled and reinstalled,
* the obtained ID will change.
* @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API. * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.
* @throws { BusinessError } 11600101 - Failed to execute the function. * @throws { BusinessError } 11600101 - Failed to execute the function.
* @syscap SystemCapability.DistributedHardware.DeviceManager * @syscap SystemCapability.DistributedHardware.DeviceManager