Skip to content

Latest commit

 

History

History
28 lines (22 loc) · 1.44 KB

adb.md

File metadata and controls

28 lines (22 loc) · 1.44 KB

Bypass Clipboard restrictions on Android Q

Problem

Android 10 (API level 29) introduces a number of features and behavior changes to better protect users' privacy. Some of this changes is Limited access to clipboard data. In practice, this means that your app cannot access clipboard data in the background anymore.

Solution

Fortunately we still have a way to bypass this restriction:

adb -d shell appops set im.dacer.kata SYSTEM_ALERT_WINDOW allow;
adb -d shell pm grant im.dacer.kata android.permission.READ_LOGS;
adb -d shell am force-stop im.dacer.kata;

About Android 12

ADB method may not work in Android 12, so if you are using an Android 12 device and have run the above command, please use the following command to revoke the permission and try the accessibility service method.

adb -d shell pm revoke im.dacer.kata android.permission.READ_LOGS;
adb -d shell am force-stop im.dacer.kata;

References: