How to set custom sytem property

From wizarPOS
Revision as of 03:38, 25 June 2023 by Mahong (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.

Permission

The application declares the following permissions in the manifest:

 android.permission.CLOUDPOS_SET_PROP

API Overview

enableStaticIp

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.