Change font size and display size

Change font size and display size

Hi all,

I'm trying to figure out how to set the font and display size on an Android device through scripting. Seen many topics here about scripting but didn't found what I was looking for.

First try was to enable watchsettings through script => Script command is not supported by device

Second attempt was to check the android API, but get a bit lost.

Anyone experience of setting the font/display size by scripting for an Android 10 telephone?
(Agent version 14.5 build 1011 - MDM API = Advanced Android Plus 1.0, Android Plus 1.16, Work managed device, RC+)

  • 25 June 2021
  • General
  • 14 Answers
  • 0 Upvote
  • 2 Followers
  • 1.1K Views
    • 14 Answers
    • 0 Upvote
    • 2 Followers

14 Answers

Order By:   Standard | Newest | Votes
ANKMOD@SOTI | posted this 25 June 2021

Hello KAS001

Greetings

Thanks for your Post on Soti central!!

If you  are looking to change device font text size  then Kindly try to test with following script mentioned below  and let us know if it works. 

Writesecuresetting -sys font_scale 2.0
 
 
Secondly if above script does not work and your device manufacturer type  is zebra then you can also try to test by creating xml file through stage now  tool  and use Mobicontrol to  push that file on devices using file sync and configure it with  zebra specific script  "mxconfig xml file path "
 
 

Also, if this post has helped you in solving your inquiry, I would request you to mark the particular comment as "is solution", so others may benefit from this information.

 Regard

 

Technical Support | SOTI Inc. |+1-888-494-SOTI (7684) | support@soti.net | www.soti.net |

  • 2
  • 0
Patrick Weber | posted this 27 June 2021

I had the same issue and this did resolve my problem. 

Using Pixel 5's though. Setting the text to 2.0 was overkill and had to be set to 1.3 which was "largest" in the device settings.

  • 0
  • 0
KAS001 | posted this 28 June 2021

Devices  are CAT S41/42 devices.
The Writesecuresetting -sys font_scale 2.0 seems not to work or I'm doing it wrong.
I select the device and select "Send Script".
Type = JavaScript, fill in the writesecuresettings line in the script editor ands send it to the device.

Before or after a soft reset, the setting is not applied.µ

 

@Patrick: how dit you go to work? sended the script in a package/profile or just like me?

  • 0
  • 0
Raymond Chan | posted this 28 June 2021

Hi KAS001,

 

The script command "writesecuresetting" is a legacy MobiControl script, not Javascript.

 

  • 0
  • 0
Raymond Chan | posted this 28 June 2021

Hi Patrick,

The valid values or ranges for the font-scale parameter are device-dependent.   Traditionally, a value of 1.3 is already equivalent to selecting "Huge" font size option in Device's Settings for most Samsung device models released more than 7-8 years ago.    

 

  • 0
  • 0
ANKMOD@SOTI | posted this 28 June 2021

Hello KAS001

Greetings

Thanks for your response on SOTI CENTRAL!!

Kindly try to use above mentioned script in legacy mode and let us know if it works.

Also, if above mentioned  post has helped you in solving your inquiry, I would request you to mark the particular comment as "is solution", so others may benefit from this information.

Regard

 

 

Technical Support | SOTI Inc. |+1-888-494-SOTI (7684) | support@soti.net | www.soti.net |

  • 0
  • 0
KAS001 | posted this 29 June 2021

I'm sorry to say, but this seems not to work.

I select the device and send a script (legacy, writesecuresetting -sys font_scale 2.0) to the device.
Log says it was sended succesfully, but on the device no lager font is visible.

Device is Android 10 - CAT S42

  • 0
  • 0
ANKMOD@SOTI | posted this 29 June 2021

Hello KAS001

Greetings

Thanks for sharing your feedback on SOTI CENTRAL!!

Script behaviour varies as per device manufactures and its  firmware version too as I was able to test this script successfully  on two devices with different enrollment type(android plus and android enterprise) and with  different manufacturer ,OS version (less than 10)

Firstly , You can also make sure you are using the updated  MobiControl Agent  and Firmware of device should be latest too.

Secondly  , Kindly also try to send restartagent  script  to see if it makes any change once agent comes online.

In last, for going forward, If you want further resolution on this issue then i will recommend you to create a case with us to get more insight into this issue through device agent side logs mainly. For doing that please raise a support case (click here) or call SOTI Support team (click here) to assist you better?

 Regards

 

Technical Support | SOTI Inc. |+1-888-494-SOTI (7684) | support@soti.net | www.soti.net |

  • 1
  • 0
Raymond Chan | posted this 29 June 2021

Hi KAS001,

 

I'm not surprised that the mentioned script command for configuring Settings options for CAT devices do not work.  Such features need support from the device firmware, and different OEM device brand has different strategies or effort invested.   In fact, most device brands/models lack such controllability.   That's the reason why I often end up recommending only a handful of device brands to my biggest corporate/governmental customers.    As a rule of thumb, if some remote Settings options configuration are mission critical in a project/use-case, a thorough test on sample device needs to be done before purchasing.  Many of my biggest governmental customers request me to do the tests for them and make purchase decision based on my test reports.  For Android-Enterprise device platforms, checking availability and coverage of any corresponding OEMConfig compliant apps from the corresponding OEM device vendor also need to be done. 

 

Without doing the above properly, there might be risks of buying wrong device model or wrong device brand that just lacks controlabilities of many attractive features offered by the best-in-class enterprise-grade devices. 

 

  • 0
  • 0
KAS001 | posted this 30 June 2021

Seems like the command works on S41 devices (Android 8) On S42 devices (Android 10), the command doesn't work.

Different commands for different Android versions?

Also, is there a command to change the display size? checked the Settings.System  |  Android Developers but didn't found something like display_size or likewise.

  • 0
  • 0
Raymond Chan | posted this 30 June 2021

Don't know what you meant by "display size" that is configurable.

The display size of most phone/tablet device should be the horizontal and verticial resolution of the LCD panel.  What device would support display-size re-configuration to size smaller than that of the LCD panel resolution?

 

  • 0
  • 0
KAS001 | posted this 30 June 2021

If you open accessibility settings, you have 2 options to magnify text:

  • Font size
  • Display size

But we will do it with font-size only

  • 0
  • 0
Raymond Chan | posted this 30 June 2021

I see.  You are referring to the new "display-size" accessibility parameter introduced by Google since Android 7.0.  It does not seem to be standard option generally available in all recent device brands/models.

 

I haven't seen any documentation from Google or other OEM vendors on programmatic configuration of such parameter via MDM API.  I personally don't thnk you should expect such support in the near future, as there are many other Settings options that  should be supported before this "display-size" parameter.

  • 0
  • 0
KAS001 | posted this 30 June 2021

Thx all for the support and info.

  • 0
  • 0

Give us your feedback
Give us your feedback
Feedback