Delete Files Ivanti Velocity via intent

Solved

Hello all,

we have imported configurations to the device on a number of Zebra TC52x using the Velocity file Assistant app (The app will sync/copy all the velocity configuration files from /sdcard/com.wavelink.velocity folder to /sdcard/Android/data/com.wavelink.velocity/files folder after starting velocity). Unfortunately, due to a change in the profile name, we are now seeing two profiles. Due to Android 11, we cannot simply delete the files via the file browser. 

In the Ivanti community we came across the following article:
https://forums.ivanti.com/s/article/Android-11-Non-Android-enterprise-Method-to-deploy-files-from-MDM-using-Velocity-File-assistant-app?language=en_US

Here it is shown that with the following intent the files/profiles can be deleted:

Intent intent = new Intent(Intent.ACTION_VIEW);
    intent.setComponent(ComponentName.unflattenFromString("com.wavelink.velocityfileassistant/.FileUpdate"));
    intent.putExtra("com.wavelink.velocityfileassistant.extra.CLEAN", true);
    try {
        startActivity(intent);
    } catch (ActivityNotFoundException e) {
        // Velocity File Assistant was not found

Unfortunately, this does not seem to be the correct syntax for MobiControl. 

Do any of you have an idea how the intent has to look exactly so that we can delete the profiles?

We would be very grateful for any help!

Kind Regards

Keno

3 years ago
SOTI MobiControl
ANSWERS