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 6 answers

    Here is a policy to lock a device on Chrome and restrict Chrome, what is the best way to make this work on an enrolled device? Solved

    Good Morning, I was wondering what the best way to get the following policy to work with SOTI and our devices. The policy's goal is to restrict Chrome and whitelist one of our companies approved sites. Below is a current example:  {"applications": [{"packageName": "com.android.chrome","installType": "FORCE_INSTALLED","managed_configuration": {"URLBlacklist": ["*"],"URLWhitelist": ["test.webapps.jacam.com"]},"lockTaskAllowed": true,"defaultPermissionPolicy": "GRANT"}],"persistentPreferredActivities": [{"receiverActivity": "com.android.chrome","actions": ["android.intent.action.MAIN"],"categories": ["android.intent.category.HOME","android.intent.category.DEFAULT"]}],"statusBarDisabled": true}

    Android Scripting
    3 years ago
  • 0 votes 1 answer

    file sync rule Solved

    Hello, We are create a new file sync rule and after we tried to send this rule to the device, but after we send the file the following script didn't run. we use this script:  chmod 777 /enterprise/device/settings/datawedge/autoimport/dwprofile_surf.db   Maybe we need another script or what could be the problem?   thanks

    Android
    3 years ago
  • 0 votes 3 answers

    Javascript API/Command to query OEM-Version? Solved

    It’s just an informational Question, if there’s an javascript command, with which I could query the OEM-Version of a Zebra TC56/57 handheld for using in a self-created website? (for the Enterprise Browser that’s installed on the Zebra TC56-devices)I recently found a command to query the OS-Version, the second step would be to query the OEM-Version. The purpose is to create a full automated installation-process for the Zebra Handhelds with pre-detection of Android Version and OEM-Version.Kind regards, Peter Petry

    Android Scripting
    3 years ago
  • 0 votes 2 answers

    Script trigger for groups?

    Is there a way to trigger 1+ actions or a custom script when a device gets added to a group?

    SOTI MobiControl
    4 years ago
  • 0 votes 3 answers

    Script command is not supported by device (JS)

    Hi,  I am having trouble using JS scripts sent to terminals from a package created from McStudio.15.4.1.What I don't understand is that the same script sent from the WEB console is working, but when it is sent from a PKG I get an error per line of my script in the log.Below is my script: #!/usr/bin/env jsvar buttonLabels = ['PDV', 'Entrepôt']var file = new mobicontrol.io.File('/sdcard/EnvironnementInfo.ini'); mobicontrol.message.createInfoDialog('Sélectionner un environement.')    .withButtons(buttonLabels[0], buttonLabels[1])    .withWarnIcon()    .withTitle('Préparation terminaux')    .withCallback(onConfirm).show(); function onConfirm(result) {if (result.buttonIndex != null){ file.writeText('[EnvironnementInfo]'+ '\nEnvironnementInfo = ' + buttonLabels[result.buttonIndex]); mobicontrol.log.info('EnvironnementInfo:' + buttonLabels[result.buttonIndex]);mobicontrol.log.info('File exists');mobicontrol.agent.checkIn()}} Any idea ?

    SOTI MobiControl
    4 years ago
  • 0 votes 4 answers

    Configure Zoom in Android Device (AE)

    ■ Configure Zoom in Android Device (AE)Hi,Is there a way to configure the zoom of a tablet, Samsung in this case, using a script in bulk? I am Soti Mobicontrol version: 15.4.1.4828 Regards!

    Android Scripting
    4 years ago
  • 0 votes 3 answers

    Script to rename Android Enterprise devices

    I am looking for a way to rename a device with a user specified name.  I would like to prompt the user for the asset number and then use that in the device name.  I got that information with a Java script: var file = new mobicontrol.io.File('/sdcard/asset.txt'); mobicontrol.message.createTextPromptDialog('What is the asset tag number?').withCallback(onOk).show(); function onOk(result) { if (result.inputText != null) { file.writeText(result.inputText); } } But when I try to use that information to rename the device I get an error saying Set isn't a valid command: set myVar=TXT:/sdcard/asset.txt?LN=1 devrename %myVar% Is there a way to either do this all in 1 Java script command?  Or is there a way to set the variable from the legacy script?

    MobiControl - Android Script Engine
    4 years ago
  • 0 votes 1 answer

    How can I run the "Wifireconnect" macro from Javascript

    As I understand the Wifireconnect is a macro for the legacy language of mobicontrol. But is there a way to reference it or use it in javascript instead?      

    Android Scripting
    4 years ago
  • 0 votes 6 answers

    Pin for opening app in lockdown

    Hi, Im migrating devices to new server and thought i could add stage now as a additional backup if need to ask user to scan something, but dont want to just allow access to stage now willy nilly as i dont have certificate for using stage now barcodes.I thought I could add script that before opening asks to enter pin. I can create Java script for that, but as far as I know it cant be added in lockdown icon. Would it be possible to place it in cmd file like legacy script or how to add java script in lockdown icon?

    Android Scripting
    4 years ago
  • 1 votes 4 answers

    Suggestion on command import_contacts_vcf Solved

    Hi, we test new script "import_contacts_vcf" is good idea but we have some suggestions: before we use cgy.rgy.xpi with Contacts.vcf located in downloads folder and works very well, but in my org we have 2 types of separated contacts. This contacts stored on "Phone contact folder". On the one hand we have GAL contacts, we take this from MS Graph APIs and make a .vcf with all data, this file is sync to Downloads folder on every device (file sync rule) On the other hand we have individual driver contact (one .vcf by driver restored from old device). The problem is: In the future when we need to update GAL list on every device, need to delete manually all contacts and import this 2 .vcf with cgy.rgy.xpi or import_contacts_vcf. (GAL vcf and driver vcf) and if driver creates new contacts this dissapear. With import_contacts_vcf $varFolder 0 import all contacts from vcf but if you have contacts then duplicate. With import_contacts_vcf $varFolder 1 this delete all contacts (driver contacts imported with cgy.rgy.xpi too) and then create all contacts from .vcf This contacts stored on "Device contact folder" Is possible to have an export_contacts_vcf from "Phone contact folder" before execute import_contacts_vcf $varFolder 1? to delete all and import GAL updated and import driver contacts My temporally solution is: import_contacts_vcf %sdcard%/Download/EncodedContacts.vcf 1 > this delete all and create update GAL import_contacts_vcf %sdcard%/Download/Contacts.vcf 0 > this only add driver contacts   with this if any driver creates new contacts post migration to new devices they don't have this contact because 1st command delete all

    MobiControl - Android Script Engine
    4 years ago
  • 0 votes 1 answer

    Failed to install I/O error?

    Good Morning,  I am trying to update several of our apps on our devices. I am getting a failure on some apps and it reads "Failed to install i/o error". I have tried repackaging the APK, Finding a different source for the APK and so far no luck.  Is there a script available that I could include in my package build? A script to maybe uninstall the previous version of the package? I wonder if i am confusing the device on what it should install. 

    Android
    4 years ago
  • 0 votes 3 answers

    Is there a script command to change the device's bluetooth name?

    I've tried the command below without success. writesecuresetting –sec bluetooth_name NEW_DEVICENAME

    Android Scripting
    4 years ago
  • 0 votes 4 answers

    How to clear storage and cache from Google app via script Solved Locked

    Hi, I have an issue where the built-in app Google keeps crashing on Zebra TC26 terminals running Android 10. As far as I can figure out, the package name is: com.google.android.googlequicksearchbox So I found out that clearing the storage and clearing the cache and then rebooting the device solves the issue. I have a few hundred of these devices with this error, so I need to do it by script. Preferrably schedule it once every day. Tried this command from SOTI MobiControl, but it seemed it did nothing: wipeapplication com.google.android.googlequicksearchbox How can I do this? Regards  Jarl

    Android Scripting
    4 years ago
  • 0 votes 2 answers

    App query custom data from MC Agent

    We have to integrate some Android 10 and 11 solutions to our environment. There are some solutions which parameters we would like to set by MC console. Some of this parameter demand information that is available by MACROS as %IMEI% or by custom data. I could not find a way to create a .ini file or .xml file in the device that could receive such values, but we may see the information reaches the device, because in the lock down menu it shows as passed. Is there a way to an app request to MC agent a custom attribute or values such IMEI ? Is there a way, by script ou rule, to write a file, which content includes the IMEI and Custom:Data? Up to now, my solution has been to create a filesync rule and, by its post sync script,  rename it to the %IMEI%.xxx (%IMEI% could be any macro I want to share, including custom attributes or custom data) The application in the device searchs for the .xxx file and by checking its name finds what would be the content. Other way was to pass it by send intent command, but I could not find how to do it in the lockdown launchers. If there were a way to the app inquire directly to the MC agent, it would be better.

    Android
  • 0 votes 3 answers

    Datawedge files in Zebra device

    Hello, I have several Zebra devices (TC20, TC25, TC26 ...), for which I have created different profiles (Android Enterprise) in Kiosk mode (Lockdown). In all of them, I install Datawedge and the configuration profile, using a package The thing is, I can't get the profile to copy correctly to the location I want, so that it self-applies. Routes: (Image1) Source: D:\_SOTI_\DEVICES\PDAS\TC25\Configs\Datawedge\dwprofile_TC25.dbTarget: /enterprise/device/settings/datawedge/autoimport/datawedge.db or Target: %sdcard%/Android/data/com.symbol.datawedge/files I can't get this file to be copied to the specified destination! I also tried to perform a rule and it does not transfer to the desired location either. (Image2) Thanks ■------------ Hola, Tengo varios dispositivos Zebra (TC20, TC25, TC26...), para los que he creado diferentes perfiles (Android Enterprise) en modo Kiosco (Lockdown). En todos ellos, instalo Datawedge y el perfil de configuración, mediante un package La cuestión es que no puedo hacer que el perfil se copie correctamente a la ubicación que yo deseo, para que se autoaplique. Rutas: (Image1)Source: D:\_SOTI_\DEVICES\PDAS\TC25\Configs\Datawedge\dwprofile_TC25.dbTarget: /enterprise/device/settings/datawedge/autoimport/datawedge.db or Target: %sdcard%/Android/data/com.symbol.datawedge/filesNo consigo que este fichero se copie en el destino indicado!También intenté realizar una regla y tampoco se transfiere a la ubicación deseada. (Image2) Gracias! ___________________//______________________ Image1 Image2

    Android
    4 years 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
    Platinum

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

  • Gold
    Gold

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

  • Silver
    Silver

    Beginners taking the initiative. Should have more than 500 points.

  • Bronze
    Bronze New

    New contributors starting their journey. Should have more than 250 points.