Skip to content
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

Can't retrieve token from Android app #246

Closed
ianloic opened this issue Mar 5, 2018 · 3 comments
Closed

Can't retrieve token from Android app #246

ianloic opened this issue Mar 5, 2018 · 3 comments

Comments

@ianloic
Copy link

ianloic commented Mar 5, 2018

I just got a Roborock S5, set it up with Mi Home version 5.1.5. I tried extracting the token from a backup of the app but didn't get anything. When I take a look at the sqlite database the token column looks empty:

sqlite> select localIP, token,name,model from devicerecord;
localIP        token       name             model             
-------------  ----------  ---------------  ------------------
192.168.86.35              Roborock Vacuum  roborock.vacuum.s5
@rytilahti
Copy link
Owner

This is a duplicate of #185, the simplest option currently is to downgrade and use an older version of the app for extracting the token (you can update the app back afterwards if you like).

@jtitley
Copy link

jtitley commented Mar 22, 2018

I tried the downgrade trick but it is still empty. I installed the apk from the link.

@peletiah
Copy link

peletiah commented Apr 8, 2018

I found it easiest to get the token directly from the robot, with the modified firmware from the dustcloud-project you can simply login via ssh and do
printf $(cat /mnt/data/miio/device.token) | xxd -p

Here are the step-by-step instructions to get a rooted firmware: https://github.com/dgiese/dustcloud/wiki

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

No branches or pull requests

4 participants