-
-
Notifications
You must be signed in to change notification settings - Fork 55
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
Failed to Attach on usb device #162
Comments
Not sure it matters, but is it an android or iOS device? |
android |
does regular frida-tools work on this computer/device? |
Yes on windows everything works fine but when I use it for usb or using tcpip it doesn't work , when I spawn a process it get spawned in the android but the pid doesn't get returned and it get stuck in an infinite loop I tried to spawn the process then grab the pid of it : |
can you confirm that adb works on this computer/device combination? |
use frida::{Frida, ScriptHandler, ScriptOption, ScriptRuntime, SpawnOptions};
use lazy_static::lazy_static;
lazy_static! {
static ref FRIDA: Frida = unsafe { Frida::obtain() };
}
fn main() {
let device_manager = frida::DeviceManager::obtain(&FRIDA);
let mut usb = device_manager
.get_device_by_type(frida::DeviceType::USB)
.unwrap();
}
struct Handler;
impl Handler {
fn new() -> Self {
Self
}
}
impl ScriptHandler for Handler {
fn on_message(&mut self, message: &str) {
println!("{:?}", message);
}
}
// output
testApp 6873
Failed to attach
The text was updated successfully, but these errors were encountered: