I am looking for a way to change the lockdown profile either manually on the tablet or automatically to enable a dark mode profile when the sun sets.
What is the best way to go about this?
I am looking for a way to change the lockdown profile either manually on the tablet or automatically to enable a dark mode profile when the sun sets.
What is the best way to go about this?
Hi Mitchell,
don't know about such a possibility in general. And we are only talking about 2 different lockdown profiles not the system own dark / normal mode, right?
If this is correct, you could implement dark mode somehow on the lockdown template maybe but I'm not a coder so I'm not entirely sure if this is possible with html only.
Hi Mitchell,
I can confirm what you need is in general doable, and depends on various factors such as device model/firmware, enrollment modes, details of lockdown profile, etc. My company has been providing similar paid customization services for our selected governmental /commercial customers for many years.
I'm no expert in this but maybe I can give you some inspiration that may or may not help you.
I've accomplished changing between two Lockdown profiles automatically using CustomData on the device and a FileSync-rule which checks if a certain criteria on the device is fullfilled or not. The script returns true och false depending on the criteria and will change the CustomData value based on that. If the CustomData changes the device will use a different profile for Lockdown due to filtering the profiles based on the CustomData value.
I used this when I wanted users the option to themselves manually start an OS update on our Android devices instead of us forcing it out a certain time. This was necessary because potentially the devices could be used 24/7. The lockdown profiles were identical except from a button that opens up when there is an update available.
Below is how the script looks like. the pcg files replaces an .ini file on the device depending if the /sdcard/Download folder contains any files/foldes or not. When replacing the .ini on the device the CustomData may change which will be applied immediately due to the agent check in command in the script. Which in return will make the Lockdown profile change on the device.
#!/usr/bin/env js
var OSFilePath = '/sdcard/Download';
var PCGFilePathTrue = '/sdcard/FZA3_CustomData_OSFilePresent_True.pcg';
var PCGFilePathFalse = '/sdcard/FZA3_CustomData_OSFilePresent_False.pcg';
if (CheckIfOSFileDownloaded()) {
mobicontrol.log.info('OS file present');
mobicontrol.packages.install(PCGFilePathTrue);
mobicontrol.agent.checkIn();
} else {
mobicontrol.log.info('OS file not present');
mobicontrol.packages.install(PCGFilePathFalse);
mobicontrol.agent.checkIn();
}
function CheckIfOSFileDownloaded() {
var dir = new mobicontrol.io.File(OSFilePath);
var files = dir.listFiles();
if (files.length > 0) {
return true;
}
return false;
}
In your case you could have two FileSync-rules that runs everyday on the devices and replace a .ini CustomData file to change the Lockdown profile. This would change the Lockdown certain times of the day but it would not synchronize it with the sun setting.
That's a unique way of doing that. I'll have to try it out.
I've also made some progress with changing the html template but it's not 100% perfect yet.
Hi Mitchell,
Thank you for posting on SOTI Pulse!
Has any of the other responses helped in your issue?
Kind regards,
Technical Support Specialist | SOTI | +1 905.624.9828 | SOTI.net lDiscussion Forum | Log a Case Online l Facebook l LinkedIn l Twitter