Closed hanxue closed 8 years ago
Test device: Mi Band Pulse
MiFit now stores data in multiple database with the file name origin_db_xxxx. For example:
origin_db_xxxx
/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
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
/sdcard/origin_db
/sdcard/origin_db-journal
The new database table DATE_DATA no longer has the id field.
DATE_DATA
id
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 theid
field.