1. Home
  2. Knowledge Base
  3. SureMDM
  4. How to Enable/Disable PIP(Picture in Picture) mode for 3rd party applications
  1. Home
  2. Knowledge Base
  3. Android Management
  4. How to Enable/Disable PIP(Picture in Picture) mode for 3rd party applications

How to Enable/Disable PIP(Picture in Picture) mode for 3rd party applications

Purpose

SureMDM administrators may require certain applications to always run in full-screen mode and prevent users from accessing Picture-in-Picture (PiP) mode for security, compliance, or usability reasons. This requirement can be fulfilled using the Run Script command in SureMDM, which allows administrators to enable or disable PiP permissions for specific applications as needed.

Prerequisites

  • Devices must be Platform-Signed or enrolled in Device Owner mode
  • Access to the SureMDM Console with permissions to create and deploy Run Script jobs
  • The target application package name must be known and installed on the device

Steps

  1. Log in to the SureMDM Console
  2. Navigate to Jobs → New Job → Android → Run Script
  3. Enter a Job Name
  4. Add the appropriate script based on the requirement

To Disable PiP

!#suremdm

allowSpecialPermissions(false,package_name,67)

To Enable PiP

!#suremdm

allowSpecialPermissions(true,package_name,67)

Example

To disable PiP for Google Maps:

!#suremdm
allowSpecialPermissions(false,com.google.android.apps.maps,67)

  1. Save and deploy the job to the required device(s)

Conclusion

Using the Run Script feature in SureMDM provides administrators with precise control over application behavior by managing PiP permissions at the system level. This ensures applications remain in full-screen mode when required, enhances security, supports compliance policies, and delivers a consistent user experience across managed devices.

Need more help? Here’s how to get help from our experts. 

CONTACT US

Was this helpful?
YesNo
Updated on March 2026
Need Support?
Can't find the answer you're looking for?
Contact Support