Overview
On devices running Android 11 and above, Scoped Storage restrictions prevent MDM agents (like SureMDM Nix) from directly accessing or deleting files within another application’s private data directory (e.g., /Android/data/com.wavelink.velocity/).
To manage or refresh Velocity configuration files, you must use the Velocity File Assistant companion app. This KB explains how to use a specific Android Intent to trigger a “Clean” operation that deletes all existing files in the Velocity directory.
Prerequisite
- Velocity File Assistant must be installed on the target device.
- The device must be enrolled in SureMDM (Android Enterprise/Device Owner mode recommended).
- The Velocity app should be closed/killed before running the script to prevent file-in-use conflicts.
Steps
1. First, kill the Velocity application (to avoid conflicts) using the below script through a Run Script job:
Navigate to Jobs> New Job> Android> Runscript job > Enter the below script.
!#suremdm
killProcess(com.wavelink.velocityfileassistant)
2. Create another Run Script job and enter the below script:
am start -a android.intent.action.VIEW -n com.wavelink.velocityfileassistant/.FileUpdate –ez com.wavelink.velocityfileassistant.extra.CLEAN true
Results
The primary result is the complete removal of all files located in the /Android/data/com.wavelink.velocity/files directory. This includes .wldep (deployment files), .wlcfg (configuration files), and any other resources stored there.
Once the command executes, the Velocity application will effectively be in a “factory default” state regarding its configurations. The next time Velocity is launched, it will not find any host profiles or settings until new ones are pushed.
Conclusion
Using the Velocity File Assistant application with the provided Run Script commands allows administrators to remotely clear Velocity configuration files on Android 11+ devices despite Scoped Storage restrictions. Once cleaned, new Velocity configurations and profiles can be redeployed as needed.
Need more help? Here’s how to get help from our experts.