Enable and Disable MTP
System Interface
AIDL Interface: Use the system-provided AIDL interface to manage MTP settings.
Service Connection Details:
Package Name: 'com.wizarpos.wizarviewagentassistant'
Class Name: 'com.wizarpos.wizarviewagentassistant.SystemExtApiService'
Version Requirement: Ensure that 'wizarviewagentassistant' is version 2.10.60 or higher.
API Functions
Enable/Disable MTP
This function allows you to enable or disable MTP.
Parameters | |
---|---|
enable | for the MTP setting, a boolean value is used: true enables MTP, while false disables it. |
Check MTP Status
Returns 'true' if MTP is enabled, 'false' if disabled.
Returns | |
---|---|
boolean | a boolean representation of the result. true if success. false if failure. |
Resources
Last updated