Contextual menu removing on Android device

BP
Bruno P.
Hub One SA

Hi,

I've set a lockdown on an Android Device (work managed profile), with displaying of terminal's information, like the serial number.

I've been noticed that you can do a long press on these information and access somes features like shown  on the screenshot below :

How can i remove this contextual menu ?

a year ago
SOTI MobiControl
ANSWERS
RC
Raymond Chan Diamond Contributor
a year ago

Hi Bruno,

The solution varies a bit with MobiControl versions and the html/CSS templates you are using.

For example, for MobiControl v2024.1 with the default "DynamicAndroidLockdownTemplate.html",  the minimum two lines to be added are

        -webkit-user-select: none;
        user-select: none;

inside the  body, html {   } section between  <style> & </style>

though I used to include some additional lines to make the solution more robust in previous MobiControl versions over the years.

Remember to copy the default template file to a new file and make the above changes to verify if the proposed solution works for you.  I always do the same in my own tests & production uses.

S
SMMOD@SOTI
a year ago

Hi Bruno P.

I hope the suggestions provided by Raymond and Rafael have helped you answer your query. Please inform us if you require further assistance. 

Additionally, if any response has helped address your inquiry, we kindly request you to mark it as "is solution" so that others may also benefit from this information.

Thank you, Raymond and Rafael for your valuable suggestions.

Thank you for choosing SOTI.