Last active
October 24, 2018 14:44
-
-
Save GreatApo/f6e987cc3908bca21c73cd3a412a7ef6 to your computer and use it in GitHub Desktop.
Amazfit watch data through ADB/Java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Adb commands to leading all variable I have found: | |
adb shell content query --uri content://settings/global | |
adb shell content query --uri content://settings/system | |
adb shell content query --uri content://com.huami.watch.companion.settings | |
adb shell content query --uri content://settings/secure | |
adb shell content query --uri content://com.huami.watch.health.heartdata | |
//example to get or set one of them: | |
adb shell settings get system slpt_refresh_in_sec | |
adb shell settings put system slpt_refresh_in_sec 0 | |
//Getting data in java: | |
android.provider.Settings.System.getString(getContentResolver(), "name_here"); | |
//or | |
public static final Uri CONTENT_HEART_URI = Uri.parse("content://com.huami.watch.health.heartdata"); | |
paramContext = paramContext.getContentResolver().query(CONTENT_HEART_URI, null, null, null, "utc_time DESC LIMIT 1"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment