Note
This API has been available since API level 11.
This API has been available since API level 11.
Developer mode support service. Allows you to enable or disable developer mode on a device and to query the status of developer mode.
NA
API level 11
Return the current status of developer mode.
None
Name | Required | Type | Description |
---|---|---|---|
returnValue | Required | Boolean | This value will always be true. |
enabled | Required | Boolean | Returns the state of developer mode. Possible values are:
|
Example code
# luna-send -n 1 luna://com.webos.service.devmode/getDevMode '{}'
Returns:
{
"enabled":true,
"returnValue":true
}
API level 21
Returns the current passphrase associated with the SSH key, which is used to connect to the device. This method is only callable by the developer mode app.
None
Name | Required | Type | Description |
---|---|---|---|
returnValue | Required | Boolean | Indicates the status of operation. Possible values are:
|
passphrase | Required | String | The passphrase. |
Error Code | Error Text | Error Description |
---|---|---|
11 | getPassphrase: Denied. Only DevMode app can call getPassphrase. | Only the DevMode app can call the getPassphrase method. |
12 | getPassphrase: nduid not received from systemservice | Unable to retrieve the device nduid from systemservice. |
Example code
# luna-send -P -a com.palmdts.devmode -n 1 luna://com.webos.service.devmode/getPassphrase '{}'
Returns:
{
"passphrase": "123ABC",
"returnValue":true
}
API level 11
Enable or disable developer mode. The device will reboot if the mode is changed.
Name | Required | Type | Description |
---|---|---|---|
enabled | Required | Boolean | Status of developer mode. Possible values are:
|
Name | Required | Type | Description |
---|---|---|---|
returnValue | Required | Boolean | Indicates the status of operation. Possible values are:
|
Error Code | Error Text | Error Description |
---|---|---|
1 | write of devmode enabled file failed | The DevMode service was unable to create a needed devmode file in the file system. |
3 | exec of 'reboot' failed | Unable to reboot the device. |
42 | SetDevMode: enabled parameter must exist and be true or false | The enabled parameter must be specified to true or false when calling the method. |
Example code
# luna-send -n 1 luna://com.webos.service.devmode/setDevMode '{"enabled":false}'
Response:
{
"returnValue":true
}
Contents