feat(android): clipboard via embedded dex instead of devicekit app - #361
Merged
Conversation
|
Warning Review limit reached
On-demand reviews are free for the next 26 days. After that, they cost $0.25 per reviewed file. Or wait 48 minutes for your next included review. View limit detailsLimit details: You’ve used the included review currently available. Your 62 included PR review attempts over the past 7 days set your current allowance at 1 review per hour. Review configuration: ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (2)
Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Android clipboard get/set no longer requires the devicekit app to be installed. The clipboard tool now ships inside our embedded
mobilecli.dex(likePackageLister) and talks to theIClipboardbinder directly viaapp_process.Changes
agents/android/java/Clipboard.java— Java port of devicekit-android'sClipboard.kt/ClipboardService.kt: connects to theIClipboardbinder service via reflection, filling method arguments by parameter type/position so one binary covers API 29 through current. Supportsget,set <text>,set --base64 <b64>,clear.devices/android.go—clipboardCommandnow pushes the embedded dex and runscom.mobilenext.mobilecli.Clipboard; extracted sharedrunDexClasshelper used by both clipboard andlistAllPackages. Removed the "DeviceKit is not installed" requirement.README.md— note ctrl+v paste combo for Android.