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.
4 Answers 4
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.
8 Comments
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
4 Comments
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.
- Start Android Studio
- Start the AVD
- Click the three dots, down on the sidebar
- Click Settings Toggle the switch "Enable clipboard sharing".
2 Comments
Disable clipboard synchronize for all emulators
Settings -> Tools -> Emulator -> Synchronize Clipboard
Source: https://issuetracker.google.com/issues/227658377#comment4
Comments
Explore related questions
See similar questions with these tags.
getPrimaryClip()is being called and there seems to be no way to control that.