Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Add option to enable clipboard editor overlay #192

Open
MmyGgithubAaccount opened this issue Feb 22, 2023 · 2 comments
Open

Comments

@MmyGgithubAaccount
Copy link

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

@MonwF
Copy link
Owner

MonwF commented Feb 25, 2023

thank you. i will try the feature first

@MmyGgithubAaccount
Copy link
Author

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants