How is the SOTI wipeapplication command word on Android?

SOTI is a remote device administration system that offers a number of features.

One of them is the ability to run scripts on Android phones remotely, provided that the SOTI client software is pre-installed and configured. The client program does not require a root device, but it acts as a device administrator.

One of the commands allowed in the SOTI scripting language is

wipeapplication com.example.notepad 

As a result, all application data (in this case, notepad) is deleted, but not the actual APK file. Thus, it gives you a clean list for any application that you specify. I understand that this can be done using root:

 rm -rf /data/data/com.example.notepad 

But somehow SOTI does it without root. Also as an administrator of an Android device. The Android DeviceManagerPolicy class now has a cleanup method, but it does not apply to a specific application. Presumably, if there is a way to erase the entire device with a certain permission level, there should be a way to erase the data of one application. But I could not find out which command is being used? How does SOTI do it?

+4
source share
1 answer

To uninstall an Android application with the package ID com.example.notepad, use the following script in Soti Mobicontrol:

 uninstall com.example.notepad 
0
source

Source: https://habr.com/ru/post/1445426/


All Articles