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

    Disable google play protect

    Hi, is there a way to disable GPP in Android Enterprise devices? "Oreo 8 and up"

    Android Scripting
    4 years ago
  • 0 votes 4 answers

    Set permission for remote control

    Hello, i have a tricky weird problem. We are managing interactive whiteboards who are running android os. The android os doesnot fully support the android enterprise management. Thats why we forced the installationof the enterprise agent via adb on the device. We set the device owner for the agent andafter that we were able to enroll the device into mobicontrol. So far so good. The downsideof this method was that we could only remote view the device and not remote control. Thanks to the MobiControl 15.0.1 agent udpate we were able to enable the remote controlsupport for those devices. See here: https://discussions.soti.net/articles/remote-control-support-on-android-enterprise-without-requiring-oem-specific-capabilities-or-oem-specific-plugin Now comes the weird part. After giving the permissions in the Accessibility i am able to remote control the device. But after restarting the device i have to give the permission again. I thought first it is because i am trying to manage an unsupported device. But afterfew restarts the prompt for giving access disappears. I can remote control my device rightaway. I checked the logs and i noticed a log that says "Custom log (Accessibility permission hasbeen granted)". This log is shown every time i restarted my device. When it is not shown theni have to give the permission manually. And that makes sense for me. That means mobicontrolis able to set the permission remotely but somehow not always. It is also hard to reproduce thisweird behavior. MobiControl is giving him self the following permissions: Observe your actionsRecieve notifications when you are interacting with an app Retrieve window contentInspect the content of a window you are interacting with Perform gesturesCan tap, swipe, pinch, and perform other gestures So i know i can set permissions with the command afw_set_permission_grant_state but i haveno experience with that command. I tried to find anything useful in the android enterprisedocumentary but i think i could not find anything useful. Does someone know how the command has to look like? I am pretty sure it is possible ormaybe with another command because MobiControl is sending a command to set those permissions after each restart. The device is running the agent version 15.1.3 and am using MC version 15.4.2. The device is a no name brand and is running android 8 with no google services. I hope someone has a clue! Thanks!

    Android Scripting
    4 years ago
  • 0 votes 5 answers

    Hi Guys, How can I display the name of the logged in user in the lockdown template

    where can I find  the list of  built-in variables and macros that I can use in the lockdown template. There is such a description at all?

    Android Scripting
    4 years ago
  • 0 votes 6 answers

    Silent Installation of APK on Android Device

    Dear  Team, i am having around 170 android devices that are enrolled in soti. i want to install apk onto all device without taking remote of each device and giving permission to allow access to app.  looking for silent installation at backend without user intervention.  want to know is there any script for same.

    Android Scripting
    4 years ago
  • 0 votes 1 answer

    Script for only 4G-Connection (Disabling 4G VoLTE) Solved

    Hello, Is there any script to force device to work only on 4G and not on 4G VoLTE? Manufacturer: Ascom Model: Ascom Myco 3 Cellular Wi-Fi EU OS-Version: 10 Device Agent-Version: 15.1.1.1031 MobiControl Version: 15.4.2.1020 Thanks

    Android Scripting
    4 years ago
  • 0 votes 2 answers

    Setting Device Admin

    Any one have any luck setting a different app to be a device admin? Or does anyone know how to send an intent to bring up the screen to add an app as a device admin?

    Android Scripting
    4 years ago
  • 0 votes 5 answers

    Grant permission automatic and silent

    Hi, does anyone know if it's possible to grant ACTION_MANAGE_OVERLAY_PERMISSION (which is i think not a permission but a setting: "Settings.ACTION_MANAGE_OVERLAY_PERMISSION") Accessibility to a specified app (package name) via script? I don't have an idea how to do this maybe via writeprivateprofstring or sendintent. Android 10/11 and Mobicontrol 15.4.1

    Android Scripting
    4 years ago
  • 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 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 2 answers

    JavaScript for Android+ Devices

    I am writing some scripts with the help of the SOTI Android Agent JavaScript API Reference.  With the help of the examples in the documentation I have always reached my target. Only with the commands "mobicontrol.network.IpAddress" or "mobicontrol.network.Network" I did not be able to read the data. Is there a simple example how this works?Thank you

    Android Scripting
    4 years ago
  • 0 votes 3 answers

    how to remove proxy by script? Android EDA50 Solved Locked

    Hi, Is that possible to remove my proxy setup in my network configuration? Thanks regards Dk

    Android Scripting
    4 years ago
  • 0 votes 10 answers

    Tiles' set-up

    Hello, i'm creating my own tile, the issue i'm facing is that actually i cannot make it to be displayed because i used the following script: writesecuresetting -sec sysui_qs_tiles wifi,bt,rotation,flashlight,location,nfc   that script allowed me to block some tiles for the user not to make mistakes   How can i get rid of that former setup? How can I add my own tile?   Thanks   regards   DK

    Android Scripting
    4 years ago
  • 0 votes 9 answers

    How to read an attribute using JavaScript

    Hello, is there a way to read values from Mobicontrol using JavaScript, please? A user wants to somehow enter an IP address, which will be copied to xml file by JavaScript. The ways to enter it: Example 1 - User creates a custom atrribute %NEW_IP% and fills it with IP 10.11.12.13Example 2 - User creates a device name e.g. ABC_10.11.12.13Example 3 - ... other ways? Many ThanksRegards Zdenek

    Android Scripting
    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 1 answer

    Including a last known location in a log

    My current script is a log saying that %Devicename% has initiated a wifi reconnect, then uses the wifireconnect macro. But I also want to include the last known coordinates before/as the script was ran. Currently I have to match timestamps with the collected data section but I'd like my log to say %Devicename% has initiated a wifi reconnect, last known location was (Latitude and Longitude).

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