deviceSettings

Device settings

It is recommended to modify only one property when using it, as it needs to be confirmed on the device.

const result = await HardwareSDK.deviceSettings(connectId, params);

Params

Optional common params

  • language — optional string Device language, ISO 639-1 codes

  • label — optional string Device name

  • usePassphrase — optional boolean Open passphrase or not

  • homescreen — optional string Change homescreen by hex string

  • autoLockDelayMs — optional number Auto lock time in ms

  • displayRotation — optional number In degrees from North

  • passphraseAlwaysOnDevice — optional boolean Do not prompt for passphrase, enforce device entry

  • safetyChecks — optional string Safety check level, set to Prompt to limit path namespace enforcement

    0: Strict
    1: PromptAlways
    2: PromptTemporarily
  • experimentalFeatures — optional boolean Enable experimental message types

Example

HardwareSDK.deviceSettings(connectId, {
    label: 'My OneKey Wallet'
});

Result

{
    success: true,
    payload: {
        message: string
    }
}

Error

{
    success: false,
    payload: {
        error: string, // error message
        code: number // error code
    }
}

Last updated