7

How can i disable Clipboard editor overlay, that is enabled by default in Android Emulator API 33?. It is very annoying while debugging apps.It always popup over my debugging apps, and i have to close this every time to do something in my debugging app.

enter image description here

asked May 20, 2022 at 4:58
4
  • Is there a reason your app is putting class definitions in the system clipboard in the first place? Commented May 20, 2022 at 5:01
  • 1
    It will show when getPrimaryClip() is being called and there seems to be no way to control that. Commented May 20, 2022 at 5:04
  • @ianhanniballake Sorry for the confusion!!, My question was about android emulator. I updated my question . Those class definitions are from my clipboard , that i copied from android studio while coding.. Commented May 20, 2022 at 7:31
  • @Martin Zeitler Sorry !!!, i forgot to mention that, the question was about android emulator and the screenshot also was also from my emulator. Commented May 20, 2022 at 7:34

4 Answers 4

7

To disable clipboard overlay:

adb shell device_config put systemui clipboard_overlay_enabled false
adb reboot

We need reboot since SystemUI read the config too earlier.

Update 2024年05月14日

Google has removed this flag in android13 with below commit in frameworks/base:

5b2dd140682e 2023年01月24日 Miranda Kephart Remove clipboard refactor flag

So this answer not work any more.

answered Jul 26, 2023 at 7:12
Sign up to request clarification or add additional context in comments.

8 Comments

Does this work on real device? Is root required for this?
I tried these adb commands today on a Pixel 6A (Android 13) device (not rooted or modified in any way) and it didn't work, after reboot, the clipboard overlay continues showing up.
what's the output of adb shell device_config get systemui clipboard_overlay_enabled
@EricSu It did work on my Xperia 5 V with Android 13
Sadly doesn't work in LineageOS 20 either.
|
7

Please try this command:

adb shell appops set com.android.systemui READ_CLIPBOARD deny

OR

adb shell appops set com.android.systemui READ_CLIPBOARD ignore

If you want to enable it again just run this:

adb shell appops set com.android.systemui READ_CLIPBOARD allow

Refs:

https://www.reddit.com/r/AndroidQuestions/comments/y8y9dd/comment/kx4xybz

answered May 7, 2024 at 11:26

4 Comments

The first command worked for me with a Pixel and Android 14. Thank you!
This really improves my quality of life :D Thank you! Command #1 worked for Android 13 emulator
Option 1 confirmed working on Sony Xperia 1 VI Android 14 unrooted.
Ignore works for me on a pixel 9. You can use "appops get" to see changes.
1

This answer might not be helpful but I also getting annoyed by this. I can't click bottom nav without sliding clipboard pop up. But you can disable clipboard sharing access from emulator setting.

  1. Start Android Studio
  2. Start the AVD
  3. Click the three dots, down on the sidebar
  4. Click Settings Toggle the switch "Enable clipboard sharing".

Source solution

answered Jun 1, 2022 at 6:33

2 Comments

Hi, This setting is not available in the current stable version of Android studio Chipmunk 2021年2月1日 Patch1. They removed, and may be available in future versions
Upps... My bad. It seems right now the only solution is downgrade android emulator image to API 32
0

Disable clipboard synchronize for all emulators

Settings -> Tools -> Emulator -> Synchronize Clipboard

Source: https://issuetracker.google.com/issues/227658377#comment4

answered Oct 17, 2025 at 12:53

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.