ScreenOnAuto

Grant Mirror Permission via ADB

By default, Android displays a permission dialog every time ScreenOnAuto starts screen mirroring. You can pre-grant the Screen Capture (MediaProjection) permission with ADB so the dialog never appears again.

Prerequisites

Steps

  1. Open a terminal (Command Prompt / PowerShell on Windows).

  2. Verify ADB can see your device:

    adb devices
    

    Your device should appear as device (not unauthorized).

  3. Grant the permission:

    adb shell appops set idv.lzn.screenonauto android:project_media allow
    
  4. Launch ScreenOnAuto and start mirroring — the permission dialog should no longer appear.

Revoking the Permission

To restore the default behavior (dialog shown each time):

adb shell appops set idv.lzn.screenonauto android:project_media default

Troubleshooting