Section added with a simplified way to extract the token from rooted android devices. (#3247)

This commit is contained in:
Sebastian Muszynski 2017-08-26 12:02:59 +02:00 committed by Fabian Affolter
parent 8e8fbfb9e3
commit bbcaf1c8f5

View File

@ -10,6 +10,7 @@ footer: true
logo: xiaomi.png
ha_category: Vacuum
ha_release: 0.51
ha_iot_class: "Local Polling"
---
The `xiaomi` vacuum platform allows you to control the state of your [Xiaomi Mi Robot Vacuum](http://www.mi.com/roomrobot/).
@ -63,6 +64,17 @@ java.exe -jar ../android-backup-extractor/abe.jar unpack backup.ab backup.tar ""
11. Get the token from "devicerecord" table.
### Linux and Android (rooted!)
1. Configure the light with the Mi-Home app.
2. Enable developer mode, USB debugging and root permission only for ADB on the Android phone and plug it into the computer.
3. Get ADB f.e. `apt-get install android-tools-adb`
4. `adb devices` should list your device
5. `adb root` (does work for development builds only: ones with ro.debuggable=1)
6. `adb shell`
7. `echo "select name,localIP,token from devicerecord;" | sqlite3 /data/data/com.xiaomi.smarthome/databases/miio2.db` returns a list of all registered devices including ip address and token.
### macOS and iOS
1. Setup iOS device with the Mi-Home app.
2. Create an unencrypted backup of the device using iTunes.