Community - SOTI MobiControl

Community - SOTI MobiControl

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

Android Scripting Discussions


  • 0 votes 1 answer

    Unable to change settings for unsued apps

    Device: Samsung Galaxy Tab Active 2 OS: Android 9 Agent Version: Android Plus ELM 14.5.0.1011 (latest)   I'm trying to change the following settings in the Device Care/ Battery Settings. I have tried to identify the setting using the logs and the watchsetting but nothing comes up.   Any ways I could set these remotely?    

    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
  • 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
    5 years ago
  • 0 votes 2 answers

    cellular data on/off script

    can we on and off Cellular data via script on Android Enterprise devices ? I heard the API has closed in AE devices. device model sm-A260G I have execute following script but didn't work. writeprivateprofstring DeviceFeature DisableCellularData 1 apply featurecontrol

    Android Scripting
    5 years ago
  • 0 votes 8 answers

    Android Classic how to grant permission on an Android application ?

    Hello, Actually i'm facing an issue, i have install an application on my Android device but when I try to launch it for the first time it required some right that i need to add manually. I saw some topics that talk about that but it's not really detail : https://discussions.soti.net/tagged/app-permissions/ https://discussions.soti.net/thread/android-permission-script-afw_set_permission_policy/   https://discussions.soti.net/thread/differnt-behaviour-when-installing-with-mxconfig-and-app-permissions/ In this topic they talk about renaming an apk like tellnext.apk to tellnext.apk_ but they don't share us the command line to did that. I'm working on Zebra WT6000 android 7.1.1 lifeguard 19 - Android classic profile Do you know a command line to grant persmissions to access files/microphones/caméra/etc.. ? I saw some command line for android enterprise like that but it doesn't work on android classic : I don't want to enable access manually on each devices. Some have a solution maybe ? Thanks in advance,

    Android Scripting
    5 years ago
  • 0 votes 7 answers

    Android - Script to Delete/Forget Wifi Profile? Solved

    Hello, I am trying to come up with a way to delete our deployment Wireless network after the initial staging is complete.  Is anyone aware of a legacy or javascript that can delete/forget all or certain wireless profiles that are saved to the device?  I have search through the archives and online but can't seem to find a solution. Thanks

    Android Scripting
    5 years ago
  • 0 votes 3 answers

    Enabling tethering on Android Mobile Startup

    I've been up and down rabbit holes looking for a solution to this issue. We have Android mobile phones with the Soti application for the drivers to use in our company. The drivers also have an Intermec CK70 device they use to scan barcodes. We are looking to get these "pads", as we call them, to connect with the Android phones via mobile hotspot for transmitting data. We have the devices locked down through SOTI so the drivers have no access to settings configurations. We are in need of some way to have the mobile hotspot ALWAYS on (without rooting the devices) but, it seems once the phone is power cycled the hotspot turns off and stays off by default.

    Android Scripting
    5 years ago
  • 0 votes 4 answers

    How do I use a script to copy over a file I have already uploaded to the file server?

    Greetings all, I know the file I have on the file server (android plus file sync rule) syncs to my tablets but on some occasions I'd like to be able to manually sync this file via a script. After reading this, I've tried running the following script on my tablet but it doesn't appear to be working (copying the file over). What am I doing wrong? ftp get %ROOT%\Guidebook_BCLS_0.epub %sdcard%/eboox_books Thanks for your time! ** Update ** When I look in the logs I see the following: "Error message received from device (ftp command encountered unknown problem.)" Hmm.. not too helpful it sounds. Also the source I got from the file sync rule which lists the "Server File / Folder Name" as: "%ROOT%\Guidebook_BCLS_0.epub"

    Android Scripting
    5 years ago
  • 0 votes 2 answers

    Battery Optimization disable

    The Pixel 5 phones we are using do not accept the battery optimization script I had found. batteryoptimize allow|enable <app name> The logs says... Script command is not supported by device (batteryoptimize) I have disabled "allow doze mode" in the feature control profile.  Is there a different script that I am unaware of or a different setting? Device: Pixel 5 Mobi Agent: 14.5 Mobi Console: 15.2 (cloud)

    Android Scripting
    5 years ago
  • 0 votes 2 answers

    Silent install and Hide Application

    Good Morning, If I remember right I can do a silent install on an app. However I am wanting to then supress the app in a way the end user can not see the app but it is still on the device for the servers to see and verify the app is there and allow traffic into the system. Why I want to supress this is we would rather not have employees try to use their own personal devices. Now I know you can go the application list and see the app. However the number of people doing that will be far less than me leaving it in the open for all to see. Thanks Jason

    Android Scripting
    5 years ago
  • 0 votes 5 answers

    Android Enterprise lock screen in landscape

    Hello, I try to lock the screen of my Zebra TC52 in landscape mode via script. Does anyone know if that's possible? Currently I'm using this script: writesecuresetting -sys accelerometer_rotation 0 It disables the autoscreen rotation, but it locks in portrait mode. I need it in landscape mode. Device is a Zebra TC52 with Android 10 Enterprise, Agent 14.5.3 Thanks for your help!

    Android Scripting
    5 years ago
  • 0 votes 12 answers

    Bulk Device Rename

    Hi, We've just recently provisioned another large quantity of Android Enterprise devices into SOTI and our current preference is that the devices are named in the console with the companies asset ID. Normally we'd have to go through and manually use the scripting command to send the 'devrename' command with the new name to each device individually, however this is time consuming and very labour intensive to do for large quantities. Is there a way to send a bulk script to update these?  Currently these devices are enrolled with their serial number as their name, so the script would contain device serial and new name as a mapping. Does anyone know if this is possible? Cheers! 

    Android Scripting
    5 years ago
  • 0 votes 7 answers

    Show Device Name on Lock Screen Solved Locked

    I'm looking to find the proper scripting syntax to set the text on a Zebra TC52 lock screen to be the Device ID. This can be manually set in Settings > Display > Advanced > Lock Screen > Add text on lock screen. I've checked through various documentation and found the "deviceOwnerLockScreenInfo" value in the Android API, but haven't found a way to set this through SOTI. I've tried using the "watchsettings on" script, but it is not supported by the device according to logs. Any input would be greatly appreciated! Device: Zebra TC52 OS: Android 10 Agent: 14.5.1.1074 MX: 10.4.0.18

    Android Scripting
    5 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
    5 years ago
  • 0 votes 6 answers

    Android - Script to update text in a file? Solved Locked

    Hi, I have been scratching my head for a way to send a script to an Android device that will read a text file and then essentially do a find and replace for a string of text.  We do this frequently with out Windows CE devices using the built-in replacetxt script within MobiControl.  I've tried to research some javascript options, but I really don't have any javascript experience.  EX:  File:   /mnt/sdcard/documents/app/config.txt -  File contains various configurations in a XML type layout. There may be a string in there like an IP address or URL that I'd like to be able to change programmatically with a script, so it could be sent to 100s of devices at a time. Any help is greatly appreciated.

    Android Scripting
    5 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.