Xiaomi-cloud-tokens-extractor icon indicating copy to clipboard operation
Xiaomi-cloud-tokens-extractor copied to clipboard

Add shared houses support

Open roncapat opened this issue 2 years ago • 2 comments

Fixes #65 Moreover, it lets the user import the class from another scripts and adds a static method useful to decrypt data with nonce obtained from packet dumps.

I used "Packet Capture" Android App to get to the solution. I am able to reverse a big part of the REST API now since I've built myself a script to do so: if other features are needed I can dig into the decrypted logs to identify endpoints/params.

roncapat avatar Apr 19 '22 08:04 roncapat

Nice work! 👍

PiotrMachowski avatar Apr 19 '22 08:04 PiotrMachowski

This didn't initially work for me because device_info returned None for my first empty "home" so I never got to the shared one. Changed line 292 to the following fixed it.

if devices["result"]["device_info"] is None or len(devices["result"]["device_info"]) == 0:

Rittsel avatar Jul 25 '22 22:07 Rittsel

Any news for merging?

roncapat avatar Dec 09 '22 09:12 roncapat

Thanks, @roncapat!

PiotrMachowski avatar Jan 27 '23 00:01 PiotrMachowski