How to Set User System Properties: Difference between revisions
m (Simon moved page How to set user system property to How to Set User System Properties: Normalize the title) |
No edit summary |
||
Line 8: | Line 8: | ||
* '''Manifest Declaration:''' Applications must declare ''''android.permission.CLOUDPOS_SET_PROP'''' in their Android manifest file. | * '''Manifest Declaration:''' Applications must declare ''''android.permission.CLOUDPOS_SET_PROP'''' in their Android manifest file. | ||
== API Usage == | == API Usage == | ||
=== <big>setUsrProp</big> === | |||
<syntaxhighlight lang="java">boolean setUsrProp(String key, String value);</syntaxhighlight> | |||
* Purpose: Sets custom system properties. Note that the system supports up to 10 groups of key-value pairs. | |||
{|class="wizarpostable" | {|class="wizarpostable" | ||
|- | |- |
Revision as of 16:07, 4 January 2024
System Interface
- AIDL Interface: The system provides an AIDL interface for setting user system properties.
- Service Connection:
- Package Name: 'com.wizarpos.wizarviewagentassistant'
- Class Name: 'com.wizarpos.wizarviewagentassistant.SystemExtApiService'
- Version Requirement: Ensure 'wizarviewagentassistant' is version 2.10.54 or higher.
Permissions
- Manifest Declaration: Applications must declare 'android.permission.CLOUDPOS_SET_PROP' in their Android manifest file.
API Usage
setUsrProp
boolean setUsrProp(String key, String value);
- Purpose: Sets custom system properties. Note that the system supports up to 10 groups of key-value pairs.
Parameters | |
---|---|
key | String: property's key, length less than 16. for example: persist.wp.usr.${key} ${value}. |
value | String: property's value, length less than 32. |
Returns | |
---|---|
boolean | true or false. |