Beginning with Android 10, most apps can now not learn the clipboard contents within the background. Excepting the Android System Intelligence part and apps signed with the platform certificates, apps are required to be within the foreground to entry the clipboard. Nevertheless, some app builders needed the performance of mechanically studying the keyboard each time its contents change as a way to sync keyboard contents throughout units or set off automated processes. Thus, the developer of the automation app Tasker created Be a part of.
Be a part of gives a method to mechanically pull clipboard updates by counting on system log updates. Be a part of faucets into the API that watches for clipboard adjustments, however anytime the clipboard adjustments the system denies apps entry to this API if they aren’t within the foreground. Importantly, each time the system denies entry to this API it writes a log entry indicating that this permission was denied. Be a part of takes benefit of this log entry, although customers should grant the app the READ_LOGS permission utilizing the Android Debug Bridge (ADB) command line utility. Utilizing this permission, Be a part of watches the system logs for entries denying entry to the clipboard change API, which point out that the clipboard has modified. At any time when Be a part of detects this log entry, it renders an invisible overlay within the foreground and reads the clipboard contents.
Google has indicated in an Concern Tracker thread that it gained’t be fixing its breakage of Be a part of’s clipboard studying perform. The corporate explains its stance as follows, “Disallowing background entry is working-as-intended. We’d discourage any sort of automation testing counting on logcat. Making an attempt to speak with logcat with out an interplay with the developer/customers will not be supposed use case.” Whereas Be a part of supplied a means for Android to sync clipboard contents throughout units, Google has launched new clipboard sharing options in Android 13 that might substitute a few of this performance. Nevertheless, Be a part of customers needs to be conscious that the replace to Android 13 is a one-way journey, so customers gained’t be capable to repair Be a part of by rolling again to Android 12.