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

4 years ago
Android Scripting
ANSWERS
JW
Johan W
4 years ago

This can actually be achieved by using the following script:

writeprivateprofstring LockScreenString Message "xxxxxx"
apply LockScreenString
Solution
MD
Matt Dermody Diamond Contributor
4 years ago

To clarify, you're looking to show this information on the Lock screen and not the Launcher/lockdown/kiosk utility?

We show Device Name right on the lockdown of the device and then disable the lock screen. Maybe that could satisfy your request?

AS
Alex Shoup
4 years ago

Hello Matt,

Thanks for your reply. You are correct, I am referring to the Android lock screen. We already have the Device ID on the Lockdown screen. We utilize the device passcode from the Android lock screen and would like to have the Device ID listed in the event that a user is unable to unlock the device, they can at least inform us which device needs to be controlled remotely and reset. We know this can be set manually, and it appears this can be set through scripting based on the API information I've found, but I'm having trouble determining the proper script command to make this change.

MD
Matt Dermody Diamond Contributor
4 years ago

It does appear that there is an Android Management API feature for setting the device owner lock screen information like you're looking for but that doesn't necessarily mean that SOTI has implemented any capability to leverage that API. Google adds new functionality to AMAPI & Android Enterprise each year that the EMM providers have to then pick up and incorporate, and they often lag by quite a bit. For example Managed Configurations and OEMConfig were supported in AE long before SOTI supported them. The same can be said about the App Feedback channel and other recent enhancements to Managed Play like PostPone and High Priority Update that SOTI still has in beta. You can see a summary of recently added features to get an idea.

https://support.google.com/work/android/answer/10432944?hl=en

C
Chris
4 years ago

In our template for the SOTI Lockscreen we have two entry's:

Under <head>:
        #hostname {
            padding: 4px 0px;
            display: block;
            width: 100%;
        }

Under <body>:
        <span id="hostname">Hostname: %MCDEVICENAME%<br>

This shows us the SOTI Hostname on our Locksceen.

MD
Matt Dermody Diamond Contributor
4 years ago

Good call, that did the trick! Or more specifically this script with the device name macro

writeprivateprofstring LockScreenString Message %DEVICENAME%
apply LockScreenString
 
AS
Alex Shoup
4 years ago

Thank you both Johan and Matt for your help! This is exactly what I was looking for! The only minor downside I see is the script has to be re-ran in the event the device name changes. I was hopeful using the variable would auto update, but that is not a major issue as I don't see us changing device names that often. THANK YOU!