There's a new home for Articles. Find Articles on Our Product Support Page.
Hello there, I'm in need of clearing the cache of two apps that I've installed on my zebra devices, there seems to be a few ways to achieve this but I'm not sure which is the best for me. I want to clear the cache of two specific apps I've installed weekly. Any help is much appreciated.
Hello Community, We currently have a third party apps installed, which is enabled as "device admin app". In the SOTI JS documentation, there is an explanation and simple example script to deactive this admin app. https://www.soti.net/mc/help/javascriptapi/en/mobicontrol.app.html#.deactivateAdmin mobicontrol.app.deactivateAdmin('com.example'); Unfortunately, I get an error "Custom log (AdminDeactivationError: App deactivation not supported. (UserScript#1))" Device: Datalogic Memor20 on Android 9Agent Version: 2025.1.2.1214MobiControl Version: 2024.1.1.1058 Do you guys have any clue why this script is not working? Do I need to upgrade to a later version of Android to get it work? Many Thanks, Raphael.
Hi,Trying to get the username of the current logged in user on a shared device by calling mobicontrol.sharedDevice.currentUser.name but it always returns null.This is the method used described in the documentation:https://www.soti.net/mc/help/javascriptapi/en/mobicontrol.sharedDevice.User.htmlFor example i try with this:mobicontrol.log.info("User logged in: " +mobicontrol.sharedDevice.currentUser.name);But its only returns:In the WebConsole i see the user is logged in and i see the username:Tested with Android Agent version 2025.1.2.1214Have anyone got this working in JavaScript?Regards Robert
Hi, We're using Datalogic Memor 35 devices and are trying to grant BIND_NOTIFICATION_LISTENER_SERVICE permission to a specific app. The Datalogic plugin is installed with the latest version. We've tried all kinds of variations of this script: request_appops_permission android.permission.BIND_NOTIFICATION_LISTENER_SERVICE allow <packageName> With and without android.permission prefix, as a standalone script to device or as post-install script on that package, with lockdown and without lockdown configured, with and without insideagent prefix. The SOTI MobiControl agent does have that specific permission but for some reason our app cannot receive that permission delegated by the SOTI agent. We do see that the OS recognizes the app as option for this permission; as we can grant it manually via settings outside lockdown mode. Version: 2025.0.2.1059 Any help is appreciated. Kind regards, Jeroen
Hi all According to my information, there is currently no way to have the "special permissions" (device admin, draw over other apps, access to notifications etc.) granted to the SOTI agent automatically after enrolling a device. So after enrolling, the user must manually grant the SOTI agent these special permissions. Is this correct so far or am I missing something? Assuming the above is correct, I want to implement the following enrollment process: the device is enrolled in SOTI and is placed in a staging group this group contains a profile that installs various required apps from Managed Google Play and sends a message to the device asking the user to grant the SOTI agent all requested (special) permissions. as soon as the special permissions were granted by the user, I want to relocate the device to a different group. And this brings me to you: can anyone tell me how I can detect if the special permissions were granted to the SOTI agent? Either by running a script on the device or by any other (easier) means? I was playing around with compliance policies and trying to figure out a way to detect if the special permissions were granted (so I'd flag the device as non-compliant as long as the permissions were not granted) but I couldn't find a way to do this. I assume I need a script that runs on the device to check if the permissions were granted and then writes this information to an INI-file that I can then use as a custom data to check and move the device accordingly. But I have no idea how to write a script that checks these permissions. Does anyone know? (Once I know how to determine if the permissions were granted via script, I think I'll be able to figure out how to write this output to an INI-file and then use it as a custom data - it's just the actual check of the permissions that is causing me issues.) Is that the best way to reach this goal? Or are there other options that you'd recommend? Thanks in advance!- Jake
Hi everyone, I’m looking for a script that can copy specific data/variables like %Phonenumber% to the clipboard. Does anyone have an idea how to fix this?
I've successfully used writesecuresetting in a legacy script to update the private_dns_mode and private_dns_specifier of phones running Android 13 and Android 14. Here's a working example: writesecuresetting -glo private_dns_mode hostnamewritesecuresetting -glo private_dns_specifier profilename.dns.nextdns.io However, I want to write a script that periodically checks to ensure that setting is still set, and corrects it if the user changes it. Also, I want to change the DNS specifier string based on the phone name and various other settings. I'm comfortable writing the necessary javascript logic, but I can't find a way to run writesecuresetting to change the setting. This seems like a significant oversight (either in the API design or on my part), and adding this would open all sorts of scripting possibilities. This may be an XY problem, so feel free to point me to a better way to do this. Edit: Just realizing this would be entirely possible if there was an API to run shell commands. That would open up all sorts of opportunities for more powerful scripting.
Hi, I need to downgrade Zebra TC58 from OS14 to OS13 and have tryed to use StageNow "OS Downgrade Oreo and above" in PowerMRG, transfared both files to the device and run script MXconfig. I have tryed to run script from SOTI and in shell on the device. it doesn't look like MXconfig works, any idea on how to downgrade these devices remotly?
We have Honeywell devices with AndroidMy question: Is there a possibility to set time and date via a startup script or other methods on the device before the device is connected to WLAN?Among other things, lockdown is started on the device.
Hello, Using Mobicontrol version 2025.0.1.1164 and my device is Zebra Tc27 Android 13. Looking for a script to turn off the devices remotely.
i found that sentintent may be can set datetime into device but below code now work, i not sure what wrong , sendintent -b "intent:#Intent;action=android.intent.action.TIME_SET;l.time=$(1739868510648+%s);component=com.android.settings/.receiver.TimeSetReceiver;end;"
We have about 300 devices that are in random groups and we are trying to get them moved to one central group without having to manually find each one and click and drag them to the new group. Is there a more efficient way to do this?
I've noticed that you can run scripts with the device inactivity option. I'm able to show a message to the device, but is it possible when they press a certain button there will be a action afterwards. I would like to close an app when pressing OK.. Could someone help me out? for example showmessagebox "error message" NO_TIMER 4if %ShowMessageBoxReturn% == IDOK goto KillBrowser command (kill_application com.honeywell.enterprisebrowser)if %ShowMessageBoxReturn% == IDCANCEL goto Exit
Hello, I had a question, I can't find anything about this in the "help" folder directly and after searching for a bit, i gave up. If you have an samsung xcover 6 or + you have the 3 buttons (navigation bar) down below. In the config on the samsung itself you can change this manually to go the other direction. Is there any chance this can be made into a script so I can put this script on my config file for other phones aswell?
I have about 100 Android+ devices of the type Samsung SM-G736B in SOTI, but their network preference is currently set to 4G/3G/2G (auto). I want to change this to 5G/4G/3G/2G (auto). Is there a script that allows me to force this change on all devices at once? I do not want to do it manually one by one.
Top-tier experts who are delivering outstanding content. Should have more than 7000 points.
Experts who are consistent with great content. Should have more than 1000 points
Highly experienced members with valuable inputs. Should have more than 700 points
Beginners taking the initiative. Should have more than 500 points