com.webos.service.devmode

API Summary

Developer mode support service. Allows you to enable or disable developer mode on a device and to query the status of developer mode.

Overview of the API

(click to expand)

See Summary.


Open All


getDevMode

Description

Return the current status of developer mode.

Parameters

None

Call Returns

Name

Required

Type

Description

returnValueRequiredboolean

This value will always be true.

enabledRequiredboolean

Returns the state of developer mode. Possible values are:

  • true - If developer mode is enabled.
  • false - If developer mode is not enabled.

Example

Example call and response for a successful call:
$ luna-send -n 1 luna://com.webos.service.devmode/getDevMode '{}'
{
"enabled":true,
"returnValue":true
}


setDevMode

Description

Enable or disable developer mode. The device will reboot if the mode is changed.

Parameters

Name

Required

Type

Description

enabledRequiredboolean

The status of developer mode. Possible values are:

  • true - To enable developer mode.
  • false - To disable developer mode.

Call Returns

Name

Required

Type

Description

returnValueRequiredboolean

Indicates the status of operation. Possible values are:

  • true - Indicates that the operation was successful.
  • false - Indicates that the operation failed. Check the "errorCode" and "errorText" fields for details.
errorCodeOptionalnumber

The error code for the failed operation.

errorTextOptionalstring

Indicates the reason for the failure of the operation. See the "Error Codes Reference" section of this method for details.

Error References

Error Code

Error Text

Error Description

1write of devmode enabled file failed

The DevMode service was unable to create a needed devmode file in the file system.

42SetDevMode: enabled parameter must exist and be true or false

The enabled parameter must be specified to true or false when calling the method.

3exec of 'reboot' failed

Unable to reboot the device.

Example

Example call:

$ luna-send -n 1 luna://com.webos.service.devmode/setDevMode '{"enabled":false}'


Except as noted, this content is licensed under Creative Commons Attribution 4.0 and sample code is licensed under Apache License 2.0.