Device not restricting content transfer with Smart Switch
Environment
- Knox SDK
- Samsung Smart Switch
Overview
When the AllowUsbHostStorage
, setUsbMediaPlayerAvailability
, and setUsbDebuggingEnabled
API methods are set to false to disable USB port usage, device users can still use the USB port to transfer content with Smart Switch.
Smart Switch file transfer protocol
Smart Switch uses the Android Open Accessory Protocol to support transferring content, while the com.samsung.android.knox.restriction
package restricts the Media Transfer Protocol to prevent the USB port from transferring content. The Android Open Accessory Protocol functions independently of the Media Transfer Protocol, and can transfer content even if there are restrictions on the latter.
Workaround
If you want to programmatically prevent users from using Smart Switch, you can use the addPackagesToPreventStartBlackList
API method to prevent the Smart Switch package (com.sec.android.easyMover
) from starting on the device.
Additional information
Samsung Knox SDK API reference
Back to KBAsOn this page
Is this page helpful?