Android - startup script - set date and time

M
mun166
Manor AG

We have Honeywell devices with Android
My question: Is there a possibility to set time and date via a startup script or other methods on the device before the device is connected to WLAN?
Among other things, lockdown is started on the device. 

5 months ago
Android Scripting
ANSWERS
MB

Hi,

we use the Time & Zone Settings from the AccessPoints when they are connected over Wifi.

-> can recommand that when you have the devices over different time zones located

-> in really rare Devices it requires to manually correct the timethat the Playstore is working corretly

Or you can set a Timezone in MobiControl on the Folder Tree in the Preferences.

You can also set it via "Honeywell UEM Connect".

Or you generate a Enrollment QR Code with "Honeywell Enterprice Provisioner" and set there a Timezone.

Or you can gernerate with MobiControl 2024.1* or higher a Enrollment QR Code and include a Time settings

From my experience it is no problem when the kiosk mode is active, that the Time settings are getting updated on the Device.

General is the Question are all Destinations in one Timezone or do you have different time zones ?

Is there a special reason why the Time and Dates must be set "before" it had been connected to WIFI?

What Honeywell Devices are you using ?

What Firmware / Android OS Version having the Honeywell Devices ?

M
mun166
5 months ago

Honeywell CT30

They currently have Android 11 installed.

We use a certificate for the WLAN connection.
Now we have devices where the date and time are set to the past and therefore cannot connect to Wi-Fi.
So my idea would be for the device to set the time itself in the future after a start

RC
Raymond Chan
5 months ago

If you are considering using a script to set date/time, I believe your devices remain in control from MobiControl server via network connection other than Wifi.

If so, have you tried using time synchronization advanced-configuration policy to set device time based on server hosting MobiControl or NTP server?  This seems to be the simplest and most systematic approach for large scale deployment to large number of devices.

    

A
ATMOD@SOTI
5 months ago

Hi mun166 thank you for posting on SOTI PULSE. I would like to extend my gratitude to Raymond Chan and Marcus Breitenthaler for helping mun166. 

Kindly try this workaround to set date and time before lockdown.

  • Go to MobiControl Console

  • Select the Device Group

  • Create a Profile → Add a Run Script Command

  • Use one of these commands based on your device type:

    settings put global auto_time 0
    date 031908302025

  • Deploy the profile before enabling Lockdown Mode.

Incase of any further concerns, please don't hesitate to reach out.

Kind Regards,
Technical Support | SOTI Inc. |1.905.624.9828 | support@soti.net | www.soti.net |


R
rathasatekun
4 months ago

I try this script on Samsung SM-T636B Agent 2024.0.5.1062 SOTI Server 15.3 

But not work this log 

Script command is not supported by device (settings)

Script command is not supported by device (date)