customiuizer icon indicating copy to clipboard operation
customiuizer copied to clipboard

[Feature Request] Add option to enable clipboard editor overlay

Open MmyGgithubAaccount opened this issue 2 years ago • 2 comments

It is a new feature introduced in android 13 which adds a pop-up when something is added to the clipboard https://blog.esper.io/android-13-deep-dive/#clipboard_editor_overlay

The command to enable it is: adb shell cmd device_config put systemui clipboard_overlay_enabled true Restarting systemui after setting the flag enables the editor

And the following command adds contextual options to the overlay (e.g. browser chip for links, maps link for addresses, etc): adb shell cmd device_config put systemui clipboard_overlay_show_actions true This one doesn't require a systemui restart to enable

1677107250970

MmyGgithubAaccount avatar Feb 22 '23 23:02 MmyGgithubAaccount

thank you. i will try the feature first

MonwF avatar Feb 25 '23 09:02 MonwF

Any updates on this?

Also, one thing that I forgot to add before: keeping this feature permanently enabled on devices with gms requires disabling device config sync permanently. Otherwise, gms will periodically overwrite any changes made and disable the overlay adb shell "/system/bin/device_config set_sync_disabled_for_tests persistent"

Disabling sync is dangerous though as it can prevent the device from recovering from crashes (read: https://github.com/agnostic-apollo/Android-Docs/blob/master/en/docs/apps/processes/phantom-cached-and-empty-processes.md#re-enable-device-config-sync)

MmyGgithubAaccount avatar May 31 '23 14:05 MmyGgithubAaccount