rumpeltux / viomi-rooting

Tool for rooting the Xiaomi STYJ02YM (viomi-v7) and Mijia STYTJ02YM (viomi-v8) vacuum robot
100 stars 36 forks source link

Error: Device (Null) not found #17

Closed Subtixx closed 3 years ago

Subtixx commented 3 years ago

Using ubuntu the script spams the console with that, and refuses to work because of it

grafik

Model: STYTJ02YM

rumpeltux commented 3 years ago

Might be a different ADB version…

Try to adjust the filters ("no devices/emulators found") in https://github.com/rumpeltux/viomi-rooting/blob/master/viomi-root.sh#L70 (and below)

Subtixx commented 3 years ago

Unfortunately that didn't work either. It doesn't print out anything anymore but after about 30 tries it still hasn't patched the ssh

rumpeltux commented 3 years ago

Sorry, I have no idea how to help you further, except for maybe try using a different computer. If you learn anything let us know.

Subtixx commented 3 years ago

I think the issue is with the piping.

Changing piping to 2< or something. Like redirecting all output to grep seemed to work. Although it said: "can't rm error: device not found" BUT it did replace adb_shell and I was able to go on manually after that. Although somehow it looses connection every ~5 minutes.

Edit: works now. Have installed valetudo successfully