Skip to content

Add get_remote_device#133

Merged
s1341 merged 4 commits into
frida:mainfrom
SajjadPourali:patch-1
Jul 11, 2024
Merged

Add get_remote_device#133
s1341 merged 4 commits into
frida:mainfrom
SajjadPourali:patch-1

Conversation

@SajjadPourali

@SajjadPourali SajjadPourali commented Apr 25, 2024

Copy link
Copy Markdown
Contributor

Feel free to rename the function or make any modifications

@s1341 s1341 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apologies for not getting to this till now. Looks good, except for the one comment.

Comment thread frida/src/device_manager.rs Outdated
/// Returns the remote device with the specified host.
pub fn get_remote_device(&'a self, host: &str) -> Result<Device<'a>> {
let mut error: *mut frida_sys::GError = std::ptr::null_mut();
let Ok(host_cstring) = CString::new(host) else {

@s1341 s1341 Jun 4, 2024

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be:

let host_cstring = CString::new("message").map_err(|_| Error::CStringFailed)?;

@SajjadPourali SajjadPourali requested a review from s1341 July 8, 2024 15:12
@s1341

s1341 commented Jul 9, 2024

Copy link
Copy Markdown
Contributor

CI is failing....

@s1341 s1341 merged commit f2487bc into frida:main Jul 11, 2024
@s1341

s1341 commented Jul 11, 2024

Copy link
Copy Markdown
Contributor

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants