-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Android support for non-rooted phones #80
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
94e8a71
add cfgs
TroyNeubauer f745d3b
android warp approach
TroyNeubauer 6b5f2de
debugging hackrf on android
TroyNeubauer 76fc011
wip
TroyNeubauer d569d53
RADIO ON ANDROID WORKS
TroyNeubauer 81d6650
cleanup
TroyNeubauer 08c4b87
try get configuration from ioctl
TroyNeubauer 926ca33
better error handling
TroyNeubauer 0585b54
cleanup logging
TroyNeubauer 7d556a4
implement feedback
TroyNeubauer fd62469
add ci
TroyNeubauer File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I missed this, but @tuna-f1sh noticed when trying to rebase on top of it -- what's your reasoning for splitting this to exclude
sysfs_path
here, and similarly not addingtarget_os = "android"
to theDeviceInfo::sysfs_path
getter?Un-rooted Android doesn't allow sysfs, but everything in
DeviceInfo
comes from sysfs, solist_devices
isn't expected to work there at all; that's why you addedfrom_fd
. I was assuming you addedtarget_os = "android"
in this file for use on rooted devices, or just consistency with Linux, in which case it seems likesysfs_path
should be included. Alternatively, should we insteadcfg
outlist_devices
andDeviceInfo
entirely?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch. Yeah this is something I missed.
I feel like the correct thing to do would be to add
target_os = "android"
to the getter,fmt::Debug
impl etc. for consistency between linux and rooted devices. Then add some docs inlist_devices
noting that this will fail on unrooted android, with a link towrap_device
like what libusb does: https://libusb.sourceforge.io/api-1.0/group__libusb__lib.html#gga07d4ec54cf575d672ba94c72b3c0de7ca5534030a8299c85555aebfae39161ef7