Need help fast? Ask Pulse AI and get instant support.

Go back to homepage
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 2 answers

    Open defined URL after clicking OK Button in Messagebox

    I use Android Enterprise Devices (Zebra TC57 + TC27) on MobiControl 15.1. I want to open a defined URL with chrome after clicking the OK button. This script just opens chrome, because i cant find a way to define a URL... var buttonLabels = ['OK'];mobicontrol.message.createInfoDialog('Text for Messagebox').withButtons(buttonLabels[0]).withCallback(onConfirm).show(); function onConfirm(result) {if (result.buttonIndex != null) {mobicontrol.log.info('The OK button was clicked');mobicontrol.app.start('com.android.chrome');}} This old sendintent script works fine but there's no way to put this in a showmessagebox. sendintent -a "https://google.com#Intent;action=android.intent.action.VIEW;end"

    Android Scripting
    4 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
  • 1 votes 4 answers

    Disable Notifications for AE Devices per App via a Script

    I've got some Samsung Galaxy Tab A 8.0 (SM-T295) devices running Android 10 and enrolled via AE. They are constantly making background notification noises, which I believe is coming to from the Google Play Store. Does anyone know of a way to disable notifications on a per app basis via a script that i can send to the devices?

    Android Scripting
    5 years ago
  • 0 votes 3 answers

    Can you launch an application using a script? Solved

    Is it possible to send a script to a device to launch an application?  The device is enrolled as Work Managed and is locked down in a kiosk.  We have built an application to change an OS level setting when ran but only want to run it once so ideally we don't want to add it to the kiosk.ThanksJosh. 

    Android Scripting
    5 years ago
  • 0 votes 3 answers

    Android Enterprise FOTA Update using script

    Hello, We are currently testing some Firmware update OTA. The FOTA is working fine on one of our devices. Now, we would like to target all the ~2000 devices that are currently enrolled on our server. --------------- MC version : 14.3.3.1111 Device Manufacturer : Coppernic Device Model : COne2 Management Type : Work Managed Device AE Agent Version : 14.4.1.1064 --------------- I tested the following script : writeprivateprofstring SystemUpdatePolicy 1apply SystemUpdatePolicy You can find the documentation here No error message in the device logs but the script does not work. Does the script look OK to you? Is there any need for additional elevation like WRITE_SECURE_SETTINGS for writesecuresetting? Is there maybe any other way to process? Many thanks for your help and advice !

    Android Scripting
    5 years ago
  • 0 votes 5 answers

    Is it possible for an inhouse build app to get the SOTI DevicesName Solved

    Hello, I'm investigating the possibility to retrieve the DeviceName used by SOTI. From within a inhouse build Android Application. I'm not developing it myself, but I hoped it would be possible to get this info from Intend or JS or using some Identifier to query rest API of the server...Devices : Android Enterprise DOAgent v14.1.7.1117Mobicontrol v15.2.2.1080 Thanks  Dennis

    Android Scripting
    6 years ago
  • 0 votes 3 answers

    Delete File from Android Enterprise Device Solved

    I'm looking for an easy, ad-hoc method to remove a file from an Android Enterprise device using scripts. In the past, the "del" command was supposed to work, but no more. http://www.soti.net/mc/help/v15.2/en/scriptcmds/reference/androidplus_enterprise_do.html

    Android Scripting
    6 years ago
  • 0 votes 2 answers

    Disable Powerbutton instantly Locking Device via Script

    Hello, maybe you can help me out here even though i am almost sure its a limitation of mobicontrol / device at this point. i want to set the timeout before the display gets locked to 30 minutes and the powerbutton should only turn of the screen. on an android+ device i found the following with watchsettings so far: Lock Screen After Timeout: Custom log (URI:content://settings/secure SETTING:lock_screen_lock_after_timeout VALUE:1800000) For the powerbutton option i sadly got no result. Using the following script on an aedo device got me no result: writesecuresetting -sec lock_screen_lock_after_timeout 1800000 I then tried to find something with adblogs on the aedo device and found the following settings triggered: security.screenlock.ScreenLockSettings/lock_after_timeout|1800000 security.screenlock.ScreenLockSettings/power_button_instantly_locks|false i tried multiple combinations of the settings with writesecuresetting i.e.: writesecuresetting -sec lock_after_timeout 1800000writesecuresetting -sec power_button_instantly_locks false writesecuresetting -sec lock_screen_lock_after_timeout 1800000writesecuresetting -sec lock_screen_power_button_instantly_locks false None of them worked. Any Ideas would be appreciated.

    Android Scripting
    6 years ago
  • 0 votes 5 answers

    Script to disable Secure Startup (AE)

    Hello, is it possible to disable the secure startup pin with a script? My Problem is that when setting a Pin with DeviceConfig (Honeywell CT40) it also activates secure startup, the pin itself is needed for certificate installation but the secure startup is really hindering tasks that initiate any kind of reboot on the device.

    Android Scripting
    6 years ago
  • 0 votes 5 answers

    Scripts on Android Enterprise

    I am having difficulty sending some scripts to my Android Enterprise device - Samsung A50, Android 9. Our platform is version 15.0.1.1181 and the agent version is 14.1.6.1018.     The scenario is:   Firstly I noticed that after sending the script unlock, the logs need to update to state “Custom log (New authentication password applied)” before sending the kill_application and/or start script. After I did this I noticed that my test device successfully completed the scripts correctly each time – however, I then started sending them to other devices and was finding they hadn’t worked. This then has led me to find another issue: I believe what is happening is – if the device is pressed or touched by the user once the script is sent – then the following scripts: kill_application com.commontime.infinity.jobmenuprod start com.commontime.infinity.jobmenuprod   will work correctly. However, if the user does not touch the device at all once the script is sent (I have found 30-60 seconds or more) then the final script is not correctly ran. The device appears to run the start script once the user opens or touches the device, but if this does not happen then the script is not ran at all – almost as though the device forgets that that start script needs to be ran. I have also tried sending it at three separate scripts – firstly sending the script unlock, and waiting for the logs to update to state “Custom log (New authentication password applied)”, next sending the kill_application script and waiting for this to appear in the logs, and then finally sending the third script – start. Again, if I press or enter the device manually as soon as the final script is sent, then the application does load once the screen is opened – yet, if I wait and enter or select the device after 30-60 seconds or more the application does not start – again as though the device has forgotten it needs to complete the third and final script. To confirm in all instance – the unlock and kill_application scripts are correctly working each time – it is just the start application that is causing an issue. Please could you provide any advice on how I can ensure the scripts each run - without user interference? Thank you

    Android Scripting
    6 years ago
  • 0 votes 4 answers

    writesecuresetting script Solved Locked

    Hi SOTI support I want to use script that 1. change device from vibration to sound  2. Set sound volume 3. use writesecuresetting  -sys  I try to find writesecuresetting   -sys document but i cannot  Device Samsung Mobile Android 8-10 Google Enterprise

    Android Scripting
    6 years ago
  • 0 votes 3 answers

    Android Enterprise - disable OS update Solved Locked

    Hi everyone, We recently deployed 30 Android devices. They have been enrolled while being on Android OS 9. Some end-users updated their devices and now Mobi app doesn't connect anymore to our DS. The reason is that our mobicontrol server have a self-sign certificate with SHA1 and Android 10 doesn't support it. We have an inventory of Windows Mobile CE 6.5 (which don't support TLS 1.2) and we don't wanna update this certificate yet because it would disconnect all those PC pockets. I've pushed a script to disable the system OS update but I believe this script only last 30 days on Android Enterprise devices. Is pushing the script again after 30 days will extend the policy ? Thanks for your help,

    Android Scripting
    6 years ago
  • 1 votes 1 answer

    Script to deactivate a programmable button on a Crosscall Core X3 - Android 8.1 - SOTI 13.4.0.5290

    Dear Team, I would to deactivate a programmable button of 150 device with a script. On Crosscall the "WatchSettings ON" is not supported, therefore I can't record the proper script option to set. Is anyone knows how to do that ? Thanks, Victor

    Android Scripting
    6 years ago

Top 3 Contributors of The Week

View All

Earn Contributor Badge

More info
  • Diamond
    Diamond

    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 contributors starting their journey. Should have more than 250 points.