Community - SOTI MobiControl

Community - SOTI MobiControl

There's a new home for Articles. Find Articles on Our Product Support Page.

SOTI MobiControl Discussions


  • 0 votes 4 answers

    Script command or activity idenfity for Task Bar

    Hi all Just wondering whether anyone has found the reported activity for Samsung devices running Android 14 for the Task Bar option? When enrolled via Android Classic, the Task Bar button becomes greyed out and can't be interacted with by the user unless it's in admin mode. I have tried using identify_activity to try and locate what the command is to try and write a script that might work for our admins to send over to the devices in a group as aposed to having to revoke the lockdowns applied but all this is returning is the activity for the settings page being opened and settings sub menu. It will not idenfity me turning the option on or off for the Task Bar. I am not sure if there is any other way. Does anyone have any idea? Agent versions are anything 2025 and above. Thanks  

    SOTI MobiControl
    2 months ago
  • 0 votes 4 answers

    Javascript pre-install script

    I'm hoping someone can help me with this example script to be used as pre-install script in package studio to give the users a choise to click install when I update an app I want to know where I should put in the bundleID or package name. We can say that I want this to be used on soti surf (net.soti.surf). #!/usr/bin/env jsvar FIVE_MINUTES = 5 * 60 * 1000;var ONE_HOUR = 60 * 60 * 1000;var buttonLabels = ['Install now', 'Install in 5 minutes', 'Install in 1 hour']; if (isAppRunningInForeground('com.acme.importantapp')) {    mobicontrol.message.createInfoDialog('Would you like to install ImportantApp?')        .withButtons(buttonLabels[0], buttonLabels[1], buttonLabels[2])        .withCallback(onConfirm).show();} function onConfirm(result) {    if (result.buttonIndex != null) {        switch (buttonLabels[result.buttonIndex]) {            case 'Install now':                installImportantPcg();                break;            case 'Install in 5 minutes':                setTimeout(installImportantPcg, FIVE_MINUTES);                break;            case 'Install in 1 hour':                setTimeout(installImportantPcg, ONE_HOUR);                break;         }    }} function installImportantPcg() {    // Do nothing - the normal return from the script will launch the package installation} function isAppRunningInForeground(app) {    return mobicontrol.app.foregroundActivities.filter(activity => activity.packageName == app).length > 0;}

    Android
    6 months ago
  • 0 votes 12 answers

    Remove Edge Panels from Samsung Devices Solved

    I raised this same issue last year, and am wondering if anyone has any permanent solution yet? https://discussions.soti.net/thread/remove-edge-panels-from-samsung-tablet MobiControl Version: 2024.1.2.1046 Device: Samsung Tab A9 (SM-X115) OS Version: Android 14 Agent Version: 2025.0.5.1064 Android Enterprise I still dont beleive there is any native way of disabling the 'Edge Panels' on Samsung devices, either through MobiControl or Samsung Knox Service Plugin. The below script works, but if the feature control profile is changed/re-installed it reverts. writesecureprofstring DeviceFeature DisableEdgeScreen 1 apply featurecontrol I have tried to combat this by adding it as a 'Task Scheduler' in my Feature Control profile, but it doesnt seem to apply. The logs show the script sent through succesfully, but the Edge Panel remains. Again, the script works if i send it to a device manually, just not when it is scheduled in the same profile as a feature control. I have also tried to delay the script by changing it to the following, but again it doesnt work. sleep 60 writesecureprofstring DeviceFeature DisableEdgeScreen 1 apply featurecontrol Are there any better solutions?

    SOTI MobiControl
    8 months ago
  • 0 votes 3 answers

    Admin Login Intent Android 14 Solved

    Hey Everyone, at the moment I am testing with an Zebra Android 14 device to find a solution for my "admin logout" button. It is displayed in my lockdown to leave it with the admin password. Since I updated the device to Android 14 the intent which is behind this button isn't working anymore. I use this intent: #Intent;action=net.soti.mobicontrol.admin.PASSWORD_DIALOG;i.dialog_type=1;endDoes anyone know which one I have to use with Android 14 or have another workaround? At the moment I put a .cmd file on the device which gets executed when I press to button. In it is the script: "_adminmode on". Unfortunately I don't have to enter the admin passoword anymore which doesn't fit the use case. Thank you for your help!

    Android
    9 months ago
  • 0 votes 4 answers

    How to set up script action icons in non Lockdown mode to run legacy scripts

    Hi  Just wondering if anyone tried setting up an icon in non kiosk mode to run a legacy script?  I am aware this is currently available on kiosk mode via "Custom - script:///sdcard/ScriptGoesHere.cmd" Any idea ? Thanks a lot Device model: Zebra OS 11 SOTI Agent Latest

    SOTI MobiControl
    11 months ago
  • 0 votes 5 answers

    Any way to automate "Allowed networks for apps" either through SOTI settings or scripts?

    We have tried the Managed Google Play Profile settings for Wiffi only or never update settings.  Setting to Wifi only doesn't really do anything.  We are currently setting it to never update, but not sure if that will work either. Is there a SOTI feature, script or Profile settings for the below?

    Android
    a year ago
  • 0 votes 7 answers

    How to script for change vibrate mode to ring mode.

    I want to send script to change notification from muted or vibrate to ring mode , what script to set that

    Android
    a year ago
  • 0 votes 5 answers

    What script when I want to send script set Date time , No SIM , Time synchronize not work

    I want to script when I want to send script set Date time , No SIM , Time synchronize not work.

    Android
    a year ago
  • 0 votes 3 answers

    disable battery optimIsations via script - android 14 Solved

    Hi all Since moving to Samsung devices with Android 14 installed, when sending battery optimisations to disable via legacy script I am getting an error message that says the device doesn't support the command. The devices being sent the script are Galaxy Tab Active 5 SM-X306B enrolled via Classic. I currently have no way of testing whether it is actually working, there aren't very many users using this device as yet and on Android 14, Android 13 devices accept the script without error. There are 2 apps built inhouse that require the battery optimisations to be disabled to function the way we intend. I am wondering whether or not the script command has changed with android 14? Not entirely sure something like that would otherwise be changed when that command has been around for so long. The command we send is: writeprivateprofstring DeviceFeature DisableDozeMode 1   Followed by: batteryoptimize disable packageid   The device log then says: Agent used on the device is 2024.1.0 Has anyone else experienced the same issue as above? MobiControl instance is running 2024.1.0.1052 Thanks

    SOTI MobiControl
    a year ago
  • 0 votes 4 answers

    How to sync time to current datetime for device dont have sim card or telephone carrier

    HI SOTI discussion I have some issue with tablet device , some device time is not current , so i want to set or sync date time to current date time with script or use xml file. how to do ? Table Samsung Galaxy TAB S4 S6 Network is Wifi hot spot not use sim card  Agent 15,3 Server version 2024

    Android Scripting
    a year ago
  • 0 votes 2 answers

    How to enable shutting down a device from Lockdown menu?

    Hi everyone, I am wondering how to enable shutting down a device from the lockdown menu, without using the power button. We have several customers using Samsung Active Tab 3 tablets. They have the weird additional function button, but that means the usual power button doesn't work as a power button and turning it off requires additional actions that not always work. So my goal is to make a Lockdown screen icon, that will shut down the device. These are enterprise enrollments. I managed to setup a restart script using the Custom action in lockdown and a script in a cmd file on the device. But unfortunately I found out, that while the restart script works, shutdown and turnoff scripts already don't work anymore.Does anyone have any other idea? Maybe using the Action: command, or Intent: or whatever...

    SOTI MobiControl
    a year ago
  • 0 votes 6 answers

    Allow Device Care to run but not accessible by end user.

    Hi all We have Samsung Devices in the field that battery drain is a concern with, namely the new Samsung Galaxy Tab Active 5 SM-X306B (Android 14) that we think would benefit from the battery optimisations menu being accessible. Currently in order to stop end users from accessing their file storage directories on the tablet we are having to blacklist the Device Care service/app so that when they click it they are warned that there is no app that can be opened to access it, as they can access their file storage from that app. On older devices, the Device Care and Battery Optimisation sections were combined into the Device Care app, on the Tab Active 5, there is a separate menu entry in settings for the Battery usage and Optimisations but this is still tied to Device Care. So if we blacklist Device Care, clicking Battery Optimisations also becomes blacklisted and not accessible. As a result of the blacklist, I suspect that Samsung is unable to optimise apps battery usage effectively because its blocked from operating making the battery drain much faster than intended. Is there anyway to block the user accessing Device Care but allow it to continue running in the background by removing it from the blacklist? Using Soti Settings Manager is not an option for us unfortunately as a workaround. We are currently using classic enrolment (please no discussions why). Soti Agent is Android Classic, 2024.1.0.1149 Soti Mobicontrol server: 2024.1.0.1052 Thanks

    SOTI MobiControl
    a year ago
  • 0 votes 9 answers

    How to hide android navigation bar with a lockdown

    Good afternoon,I cannot find any way to completely hide the android navigation bar on our devices while on lockdown with single app mode on.We are working with Android Enterprise profiles Manufacturer Elo Touch Solutions Model 15in-I-Series-4Android version10   I did try with writeproofsetting scripts but not sure I have the right one.The bar is already disabled but best would be to be able to hide it or at least replace it with the gestures navigation.   Thanks a lot for your help!Ben

    Android
    a year ago
  • 0 votes 5 answers

    Chrome - Term of Use - Automatic acceptation

    Hi the SOTI community,  We are using profile with Kiosk mode. Recently, I've created Web Application from the Managed Google Play Store. It works well on my test mobile. But I'm now block when I want to deploy those applications in Kiosk mode on new devices as the web application use Google Chrome, and it doesn't want to open until we accept the term of use which are not displayed in Kiosk mode. As I have 500 devices to deploy, I'd like to avoid to do it manually. Is there a script to automatically accept the Chrome term of use? Device : Crosscall Core X5 Thank you in advance 

    Android Scripting
    a year ago
  • 0 votes 12 answers

    Need help integrating SOTI MobiControl into our DevOps pipeline Solved

    Hello everyone, I'm looking to integrate SOTI MobiControl into our DevOps pipeline, specifically aiming to implement CI/CD by uploading an APK file via the POST /packages API. Unfortunately, I've been stuck for several days now and could really use your help. Here's my current script: #!/bin/bash# Fetching the APKcurl -u [USERNAME]:[PASSWORD] -o "/home/[USERNAME]/app_name.apk" "https://nexus.example.com/repository/raw/apk/env_dev/release/app_name.apk"# Setting base variablesbase_url="https://soti.example.com/MobiControl/api"auth="Basic [BASE64_ENCODED_CREDENTIALS]"content_type="multipart/related"content_type2="multipart/related; boundary=content"apk_path="/home/[USERNAME]/app_name.apk"# Getting access tokenaccess_token=$(curl -s -X POST "$base_url/token" \    -H "Authorization: $auth" \    -H "Content-Type: $content_type" \    -d "grant_type=password&username=[USERNAME]&password=[PASSWORD]" \    | jq -r '.access_token')echo "Access Token: $access_token"# Sending application download request to MobiControlcurl -X POST "$base_url/packages" \  -H "Authorization: Bearer $access_token" \  -H "Content-Type: $content_type2" \  -d @- <<EOF--contentContent-Type: application/vnd.android.application.metadata+json{ "DeviceFamily" : "AndroidPlus", "PackageName": "package", "PackageVersion": "1.0"}--contentContent-Type: application/vnd.android.applicationContent-Disposition: attachment; filename="app_name.apk"--content--EOF However, the server returns the following message: "Internal Server Error". For your information, I'm using version: 2024.0.1.1020.Any help would be greatly appreciated!

    SOTI MobiControl
    a year ago

Top 3 Contributors of The Week

View All

Earn Contributor Badge

More info
  • Diamond
    Diamond New !

    Top-tier experts who are delivering outstanding content. Should have more than 7000 points.

  • Platinum

    Experts who are consistent with great content. Should have more than 1000 points

  • Gold

    Highly experienced members with valuable inputs. Should have more than 700 points

  • Silver

    Beginners taking the initiative. Should have more than 500 points