Dolnor / mifit-data-export

Set of Unix tools to grab data from Mi Fit Android app, most of this is courtesy of xmxm
75 stars 10 forks source link

Update code for MiFit 2.0.0 #1

Closed hanxue closed 8 years ago

hanxue commented 8 years ago

Test device: Mi Band Pulse

Problem

MiFit now stores data in multiple database with the file name origin_db_xxxx. For example:

/data/data/com.xiaomi.hm.health/databases/origin_db /data/data/com.xiaomi.hm.health/databases/origin_db-journal /data/data/com.xiaomi.hm.health/databases/origin_db_329774917 /data/data/com.xiaomi.hm.health/databases/origin_db_329774917-journal

Changes

This code will get the latest version of the database, as sorted by filename, then copy them over to /sdcard/origin_db and /sdcard/origin_db-journal

The new database table DATE_DATA no longer has the id field.