-
Notifications
You must be signed in to change notification settings - Fork 36
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
Success: Rooted viomi-v8 using a mac #29
Comments
Hello,
Thank you very much for your comment it helped me a lot. |
Lucky you. Trying all the day with no luck. The only thing I was able to find so far is AppleUSBHostUserClient::start: missing entitlement com.apple.appledfr.client in dmesg on device connecting. What's your MacOS version? Any additional setup? My guess is that may be caused with the fact I'm using some cheap hub for my MBP to connect USB typeA to macbook's typeC port and something is wrong with either data or power in my case. |
I had that message too and it still worked. Try using a different USB cable. It seems like your cable doesn't support data. I had exactly the same issue until I tried a different cable. |
Thank you! Will try. One additional question - did you manage to find USB-C to micro-USB cable our was using some USB-C hub? I'm trying with the hub. |
I used Apple's usb-c dongle that has an HDMI and USB port. I think the hub shouldn't matter. The cable itself is important. |
Thank you for the answer. I actually tried like 4 cables (2 bought recently, specifically "sync/data" cables, 4 wires - checked). Device appears on the device list for like 2 seconds (which is not possible if it's charging only cable I guess), then disconnects and robot boots up. Trying to understand the root cause. Will update you if I will find it out. |
The device showing up for 2 seconds only is the expected behavior I think. The reason the vacuum is rootable is because Xiaomi didn’t disable the ADB console completely. They just kill it after booting, but if you are able to run the commands fast enough you can gain permanent root. That’s why the script has the infinite loop sending the command. Check out the original blog post explaining the rooting process and try running the commands manually: |
I understand the process. And it looks like it just don't give enough time to do anything with adb. Of course, I tried manually, no luck. |
@mkozinenko @infused-kim is/was the ADB device displayed under |
@infused-kim Thanks for your report. I updated the README. |
Hi,
First of all, thank you so much for your research and rooting script.
I am not sure if this is the right place, but I wanted to add a success report.
Device Info
Model: Mijia STYTJ02YM, viomi-v8, purchased from Xiaomi in the Republic of Georgia
Firmware: 3.5.3_0017
Rooting Device: Intel MacBook Pro
Mac setup
The first thing I want to raise is that this script works on macs (at least intel based ones). Updating the README with this info would probably make this accessible to a lot more people.
To get it working on the mac I had to do was install
adb
andsha256sum
:OpenWRT note
On another note, at first the process didn't work and I assumed it was because I was using a Mac. Installing linux seemed like a huge chore, but then I realized my router was running OpenWRT and had a USB port.
I was able to install adb on it and run the script. In the end it didn't work on openwrt either, but it turned out to be because the USB cable I was using didn't support data.
I didn't continue trying, but I think the process should work using an openwrt router too.
A lot of people may not have a linux machine or a mac, but some might have openwrt routers and perhaps mentioning that would help some.
Issues encountered
First run failed
The first time I ran the script, it seemed like it worked, but it encountered a few errors.
1. rm: can't remove '/etc/rc.d/S90robotManager': No such file or directory
My vacuum didn't contain this file at all. I think perhaps adb wasn't being killed at all, since it seemed like it worked on first try and disabling the robotManager was not necessary.
2. SSH was installed, but not started
After running the script the first time I tried SSHing into the router, but it didn't work.
So I ran
adb shell
and got a working shell. So I started dropbear manually and SSH was working. After rebooting it was still working, but I noticed the remaining commands did not succeed.So I re-ran the script again and then everything completed successfully, including the Valetudo install.
Outdated Valetudo
It looks like the currently installed Valetudo version is about 3 months behind. I re-installed the latest version of Valetudo manually and everything seems to be working very well so far.
Here is the full log:
And the successful 2nd run
The text was updated successfully, but these errors were encountered: