There's a new home for Articles. Find Articles on Our Product Support Page.
I am fairly new to Java but I know enough to see what a javascript is doing and how to manipulate it to do what I need to get done. I would like to convert some of my legacy scripts to Java because they are a bit more robust and give me a few more options. Here is an example of one of my legacy scripts var MyApp = 'com.test.mobile'; var location = 'some.location' kill_application %MyApp% sendintent -a "test.AppConfig://Config?BaseAddress=http://%location%:8080/testingapp&SystemName=TestApi&DeviceId=%MCDEVICENAME%&PinUsername=True&PinPassword=True" My question is how do I use Java to send mobicontrol commands like "sendintent" or "kill_application". Is it possible to call and set mobicontrol variables like in the previous example?
In Soti MC Android Javascript, I’d like to check the device Build number. Is it possible?(mobicontrol.os.version only returns the OS version but I need whole Build Number string)
Im trying to force my Android devices to auto update using the following script set with a scheduled task In the log I get the error Custom log (missing ; before statement (Auto Update OS.js#1)) My Auto Update OS.js is just writeprivateprofstring SystemUpdatePolicy SystemUpdatePolicy 1apply SystemUpdatePolicy If I open send script on a device,select JavaScript and send the same script above I get the same error. If I select legacy I get the notifications. Script was sent to device (writeprivateprofstring SystemUpdatePolicy SystemUpdatePolicy 1 apply SystemUpdatePolicy Feature is not supported (SystemUpdatePolicy) So my question is do I have to set the script to legacy somehow to make it work on a scheduled task? And is it actually supported? I have tried on Android device versions 7 and 8.1 running SOTI agent 14.4.1
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 !
I'm trying to add a homescreen item that will allow me to import Honeywell XML's.But I can't seem to figure out what intent I need to write for it to work.I figured out that the package is: com.honeywell.tools.persistAnd the service its using is: com.honeywell.persist.action.START_PERSIST_SERVICEThis should initiate the service thats automaticly started at a reboot.I have tried the following: intent:#intent;action=com.honeywell.persist.action.START_PERSIST_SERVICE;end launch://com.honeywell.tools.persist/com.honeywell.persist.action.START_PERSIST_SERVICE And I also tried a method that I already knew from sendintent -b, which I accosionally use in package scripting: intent:#Intent;action=com.honeywell.ezconfig.intent.action.IMPORT_XML;S.path=/sdcard/honeywell/persist/DataCollectionService.xml;launchFlags=0x1400020;end But it always returns: Activity not found.
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
Hi, I'm trying to run an application using sendintent, but I can't figure out how to get this working. When I use adb, I can run the command: adb shell am broadcast -n "com.symbol.selfdiagnostics/com.symbol.selfdiagnostics.SESReceiver" How can I execute this via a script with sendintent? Cheers, Mark
How do I track the changes to a device so I can deploy a script to install a printer, non-zebra? I assume there may an app out there that can do this but I have been unsuccessful finding one. Or just a script to install a printer using the built in printing in Android.
Hi, Does anyone know if it is possible to run a scrip to restrict cellular data usage for specific apps? It is possible to manually set "Allow background data usage" in android app manager but I cannot find any similar option in mobicontrol. Thanks.
Dear All! Anyone knows a way I can delay the package upgrade on android devices? If I switch the package in the profile, it kills the app and updates the software. Any script/solution that waits for the app to close before updating it? thanks
We have a script that creates shortcuts on the Android tablets we use and I wanted to find a way of removing any shortcuts we create and also to find a way of adding a single shortcut rather than all. A portion of the the script I use is below ############################ writeprivateprofstring Webclips Count 37writeprivateprofstring Webclips Name36 "Website1"writeprivateprofstring Webclips Url36 https://Website1/writeprivateprofstring Webclips Icon36 %sdcard%ShortcutImages\Website1.png writeprivateprofstring Webclips Count 38writeprivateprofstring Webclips Name37 "Website2"writeprivateprofstring Webclips Url37 https://website2writeprivateprofstring Webclips Icon37 %sdcard%ShortcutImages\Website2.png apply Webclips ############################ Is anyone able to help me?
Hi community Is there an easy way to find package name of an installed application ? Script command ? What I need is to know the package name of an application. Thx. steve
Hey Guys, we're looking for an Script command to log-off from a shared Device and also clear the passcode. We have a few Devices with an activated shared-Device Option. After the Users logs in, the Device is moved to an other Group and the User has to set up a passcode. Now we want to display a "logoff-Script" inside our Kiosk-mode where the user can log-off from the shared Device and also clear the passcode any suggestions? kind regards
Hello,I'm trying to firmware update a Honeywell EDA51 (android 8.1) with a package.Ofcourse I don't want to loop this so I thought i'd do the following: Post install: md /sdcard/updatecompleted/reset Pre-install: if exist /sdcard/updatecompleted/ finishpkgSadly console already tells me that "if" command is not supported by this device. Is there a way to do this with javascript perhaps?I couldn't really find what I was looking for on the Soti javascript API site.However I must admit that I have 0 knowledge of Javascript so most of it is still abrakadabra to me.
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
Top-tier experts who are delivering outstanding content. Should have more than 7000 points.
Experts who are consistent with great content. Should have more than 1000 points.
Highly experienced members with valuable inputs. Should have more than 700 points.
Beginners taking the initiative. Should have more than 500 points.
New contributors starting their journey. Should have more than 250 points.