nikp123 / scrcpy-desktop

Run an Android desktop environment off of a device using ONLY scrcpy
GNU General Public License v2.0
214 stars 15 forks source link

Delete overlay after exiting scrcpy #3

Closed ssnjr2002 closed 2 years ago

ssnjr2002 commented 2 years ago

Does the script not delete the overlay it creates after exiting scrcpy? I had to manually remove it with adb shell settings delete global overlay_display_devices. Could it be implemented within the script?

nikp123 commented 2 years ago

it does via the payload

https://github.com/nikp123/scrcpy-desktop/blob/main/payload/stage2.sh

ssnjr2002 commented 2 years ago

Oh, the overlay remains there after exiting the script for me. Anyway I added that line at the end of the script and its all good now :+1: