Modify Android Native Settings

Hello

We're trying to modify the native Android Settings with Agent version 15.1.0 Build 1045 and the device is an Ascom Myco 3.

Is there any possiblity to modify settings like showing the battery percentage in the status bar etc.

Or is there an alternative doing this with a script?

Thanks for answers!

4 years ago
SOTI MobiControl
ANSWERS
MD
Matt Dermody Diamond Contributor
4 years ago

There are many Android Settings exposed natively by Android to EMMs via management APIs that are then exposed to you to manage through mechanisms like Feature Control Profiles in SOTI. The settings you will find natively exposed through the EMM console will likely be generic settings that are exposed across different Android devices. These kind of general settings will get you decently far, but they likely won't cover everything that you'd possibly want to configure. 

For this, enterprise grade OEMs like Zebra, Honeywell, and Samsung offer extended management capabilities that they then expose through mechanisms like MX (Zebra) and Knox (Samsung) or OEMConfig. OEMConfig has emerged as the default new mechanism for exposing OEM specific configurations through an EMM console via Managed Configurations. 

Zebra for example exposes the configuration setting that you're looking for as an MX setting that can be distributed through SOTI as an XML payload or delivered to the devices as an OEMConfig payload. You can see for instance how this can be exposed as a configuration through the SOTI console for configuring Zebra devices. For your devices, you would need to investigate whether that OEM provides an OEMConfig app for their devices and then whether or not they expose that particular parameter as configurable. 

It does appear that Ascom has an OEMConfig app:

But in searching through the options I unfortunately don't see a Battery Percentage setting. You do have a lot of settings exposed through this that you could take advantage of however. Its nowhere near as many configuration options as you'd have with one of the bigger players that I've mentioned, but its decent. I was actually somewhat surprised that they had an OEMConfig app at all:

MD
Matt Dermody Diamond Contributor
4 years ago

One other item that I just remembered is there used to be an option in Android+ (Device Administrator) to use a writesecuresettings script to manipulate some of these more granular settings. The usage of that scripting has more or less been deprecated and has gone away with Android Enterprise but it apparently still works to an extent on some OEMs based on what I've seen mention in the forums. This particular script used to work on Zebra devices under DA but no longer works under DO, but it may be worth a shot on your devices, depending on how they are being managed. 

writesecuresetting -sys status_bar_show_battery_percent 1 

Note however, this only solves for the very specific setting that you mentioned as an example and does not necessarily solve for every configuration that you might want to make. For that I recommend you still investigate using OEMConfig. 

N
NTMOD@SOTI Bronze Contributor
3 years ago

Hi Raphael,

Thank you for your post on SOTI Central.

Are you able to apply the script that provided Matt Dermody to you? Did it enable the battery percentage in the status bar? 

writesecuresetting -sys status_bar_show_battery_percent 1

When you send the script, please select the Legacy mode.

Kind Regards,