diff --git a/installer/src/main.rs b/installer/src/main.rs index 30a343a..5095d02 100644 --- a/installer/src/main.rs +++ b/installer/src/main.rs @@ -180,7 +180,7 @@ async fn run() -> Result<(), Error> { match command { Command::Tmobile(args) => tmobile::install(args).await.context("Failed to install rayhunter on the Tmobile TMOHS1. Make sure your computer is connected to the hotspot using USB tethering or WiFi.")?, - Command::Uz801(args) => uz801::install(args).await.context("Failed to install rayhunter on the Uz801. Make sure your computer is connected to the hotspot using USB tethering or WiFi.")?, + Command::Uz801(args) => uz801::install(args).await.context("Failed to install rayhunter on the Uz801. Make sure your computer is connected to the hotspot using USB.")?, Command::Tplink(tplink) => tplink::main_tplink(tplink).await.context("Failed to install rayhunter on the TP-Link M7350. Make sure your computer is connected to the hotspot using USB tethering or WiFi.")?, Command::Pinephone(_) => pinephone::install().await .context("Failed to install rayhunter on the Pinephone's Quectel modem")?, diff --git a/installer/src/uz801.rs b/installer/src/uz801.rs index 3771052..5852ccb 100644 --- a/installer/src/uz801.rs +++ b/installer/src/uz801.rs @@ -93,7 +93,7 @@ async fn wait_for_adb() -> Result { // UZ801 USB vendor and product IDs. // TODO: Research if other variants use different IDs. - match ADBUSBDevice::new(0x05c6, 0x9025) { + match ADBUSBDevice::new(0x05c6, 0x90b6) { Ok(mut device) => { // Test ADB connection if test_adb_connection(&mut device).await.is_ok() { @@ -129,6 +129,9 @@ async fn install_rayhunter_files(adb_device: &mut ADBUSBDevice) -> Result<()> { let mut buf = Vec::::new(); adb_device.shell_command(&["mkdir", "-p", "/data/rayhunter"], &mut buf)?; + // Remount system as writable + adb_device.shell_command(&["mount", "-o", "remount,rw", "/system"], &mut buf)?; + // Install rayhunter daemon binary let rayhunter_daemon_bin = include_bytes!(env!("FILE_RAYHUNTER_DAEMON")); let mut daemon_data = rayhunter_daemon_bin.as_slice();