Read Clipboard Permissions on Android 10


链接

Read Clipboard Permissions on Android 10

内容

Read Clipboard Permissions on Android 10
Important Note: This is a workaround for an Android restriction that exists on Android 10 and above. It's not guaranteed to work on 100% of cases. Please use at your own risk and understand that I, the developer, can't do anything to change this behaviour. Thank you for understanding.
To read your clipboard on Android 10, Join needs to be granted permission to read system logs and draw over other apps on your device

  1. Enable Developer Mode: Go to Android Settings -> About Phone and look for the Build Number option. Touch it multiple times until developer mode is enabled.
  2. Enable USB Debugging: Go to Android Settings -> and look for the Developer Options option. In there, enable the USB debugging option.
  3. Install ADB on your PC: Check here for a quick way to do it.
  4. Connect device to PC: Connect your device to a PC and look on your phone. A prompt should show up asking you to allow your phone to be debugged by your PC. Accept this.
  5. Open the command prompt from the file folder that contains the extracted downloads. To do this, press the windows key and type cmd. When the prompt opens, type cd followed by folder your downloaded ADB to.
  6. On OnePlus devices with Android 12+ you may need to do this: In Developer Options, scroll (all the way) down until you find Disable Permission Monitoring and turn it on.
  7. Grant permission: Open a command line a on your PC and write these 4 commands (one at a time)
    adb -d shell appops set com.joaomgcd.join SYSTEM_ALERT_WINDOW allow
    adb shell pm grant com.joaomgcd.join android.permission.WRITE_SECURE_SETTINGS
    adb shell pm grant com.joaomgcd.join android.permission.READ_LOGS
    adb shell am force-stop com.joaomgcd.join

    If you're on a mac write

    ./adb -d shell appops set com.joaomgcd.join SYSTEM_ALERT_WINDOW allow
    ./adb shell pm grant com.joaomgcd.join android.permission.WRITE_SECURE_SETTINGS
    ./adb shell pm grant com.joaomgcd.join android.permission.READ_LOGS
    ./adb shell am force-stop com.joaomgcd.join
  8. This will close Join, so open Join again manually so that it can resume functioning normally.

Notes:
On MIUI devices you may have to open developer options and enable the USB debugging (Security Settings) setting to be able to run the above command.
If you're having trouble with it saying that your device is not authorized, please check here.
If your Android device isn't being recognized by ADB you might need to install drivers for it. This is a good place to start.

声明:HEUE NOTE|版权所有,违者必究|如未注明,均为原创|本网站采用BY-NC-SA 4.0协议进行授权

转载:转载请注明原文链接 - Read Clipboard Permissions on Android 10