How to set custom sytem property: Difference between revisions

From wizarPOS
(Created page with "The system provides the AIDL interface to set the custom system property, When connect the service, the package name is com.wizarpos.wizarviewagentassistant, and the class nam...")
 
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
The system provides the AIDL interface to set the custom system property, When connect the service, the package name is com.wizarpos.wizarviewagentassistant, and the class name is com.wizarpos.wizarviewagentassistant.SystemExtApiService. When the application uses the interface, it must import wizarviewagentassistant and add permissions to the Android manifest file.
The system provides the AIDL interface to set the custom system property, When connect the service, the package name is com.wizarpos.wizarviewagentassistant, and the class name is com.wizarpos.wizarviewagentassistant.SystemExtApiService. When the application uses the interface, it must import wizarviewagentassistant and add permissions to the Android manifest file.
Version of wizarviewagentassistant should equal or larger than 2.10.54.
== Permission ==
== Permission ==
The application declares the following permissions in the manifest:
The application declares the following permissions in the manifest:
Line 5: Line 7:


== API Overview ==
== API Overview ==
=== <big>enableStaticIp</big>===
=== <big>setUsrProp</big>===
   <syntaxhighlight lang="java">boolean setUsrProp(String key, String value);</syntaxhighlight>
   <syntaxhighlight lang="java">boolean setUsrProp(String key, String value);</syntaxhighlight>
Set custom system property, the system can only support 10 group of key-values.
Set custom system property, the system can only support 10 group of key-values.
Line 14: Line 16:
|-
|-
| key|| '''String:'''  property's key, length less than 16. for example: persist.wp.usr.${key} ${value}.  
| 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.   
| value|| '''String:'''  property's value, length less than 32.   
|}
|}
{|class="wizarpostable"
{|class="wizarpostable"
|-
|-
Line 22: Line 26:
|  boolean || true or false.
|  boolean || true or false.
|}
|}
== Download ==
=== AIDL file ===
Please download the [http://ftp.wizarpos.com/advanceSDK/ISystemExtApi.aidl aidl file]
=== Demo ===
Please download the [http://ftp.wizarpos.com/advanceSDK/sample_setcustomsystemprop.7z demo APP]

Latest revision as of 05:30, 25 June 2023

The system provides the AIDL interface to set the custom system property, When connect the service, the package name is com.wizarpos.wizarviewagentassistant, and the class name is com.wizarpos.wizarviewagentassistant.SystemExtApiService. When the application uses the interface, it must import wizarviewagentassistant and add permissions to the Android manifest file.

Version of wizarviewagentassistant should equal or larger than 2.10.54.

Permission

The application declares the following permissions in the manifest:

 android.permission.CLOUDPOS_SET_PROP

API Overview

setUsrProp

boolean setUsrProp(String key, String value);

Set custom system property, the system can only support 10 group of key-values.

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.

Download

AIDL file

Please download the aidl file

Demo

Please download the demo APP