Commit Graph
100 Commits
Author SHA1 Message Date
cpfeiffer f4e955dbe0 Updated changelog for 0.18.0 2017-03-15 23:42:30 +01:00
cpfeiffer d408be5ec8 Mi2: make text/icon notifications confiurable and version dependent 2017-03-15 00:26:39 +01:00
cpfeiffer cf35e84feb Mi2: add hint about font installation for text notifications 2017-03-14 23:54:56 +01:00
cpfeiffer 5d96df3508 Mi2: add hint about intermediate firmware 1.0.0.53 2017-03-14 23:45:30 +01:00
cpfeiffer 2d60beea1f Mi2: added some more tested firmware/font versions 2017-03-14 22:59:48 +01:00
cpfeiffer e62a860ee6 Avoid potential NPE when neither name nor number are available 2017-03-14 22:03:30 +01:00
cpfeiffer 17ecee0cab Mi2: initial support for text notifications and icons
See #560
2017-03-14 00:45:54 +01:00
cpfeiffer 8fc6dfeca7 Improved AlertNotificationProfile
AlertLevel, AlertCategory, Control Point
2017-03-14 00:45:54 +01:00
cpfeiffer 4b230412b6 Some utility methods + tests 2017-03-14 00:45:54 +01:00
cpfeiffer 6282597790 Handle BT issues with discovered characteristics
It occurred to me that onServicesDiscovered() was called multiple times
whenever I connected to my Mi Band 2. Either the band actually sent the
characteristics in multiple chunks or Android itself notified multiple
times.

So we gracefully handle this by
- updating the list of characteristics
- *not* initializing the device again when it *is* already initialized
or at least initializing.
2017-03-09 22:49:13 +01:00
cpfeiffer 9411f80440 Mi2: support for updating firmware fonts (*.ft, *.ft.en)
This is related to #560, but alas is not sufficient for enabling text
notifications.
2017-03-07 23:26:41 +01:00
cpfeiffer 2b17d7fb14 More cleanup 2017-03-07 00:06:35 +01:00
cpfeiffer 31e0e9a5f7 Mi2: More internal cleanup from initial Mi1 copy&paste 2017-03-05 21:45:39 +01:00
cpfeiffer f6bee00582 Mi2: some internal cleanups/renamings 2017-03-05 21:27:47 +01:00
cpfeiffer 0b45fe63f0 Fix up the testcases
Please check if transliteration of Hebrew in LnaguageUtilsTest is
correct. It works just fine if you follow the mapping in LanguageUtils.

Test all transliteration in LanguageUtils only, the test in
DeviceCommunicationServiceTest does not need to be done for every
language.

Also use assertEquals(expected, value) instead of assertTrue(expected.equals(value));
2017-03-05 19:44:31 +01:00
cpfeiffer 09d4f81ce8 Update dependencies 2017-03-05 19:44:16 +01:00
cpfeiffer 4ecd4b6896 Add hint about privacy guard crashing your phone during discovery 2017-03-05 19:18:40 +01:00
cpfeiffer 94744677c9 Improve discovery hint re Privacy Guard crash 2017-03-05 16:30:31 +01:00
cpfeiffer c56b655b48 Mi2: send text notification for mi2 only, not mi1a 2017-03-05 10:43:19 +01:00
cpfeiffer 88b35c6eec Mi2: rename some constants + add two 2017-03-05 10:43:19 +01:00
cpfeiffer 58e2538c4e Discovery: handle the case where a device is already bonded 2017-03-04 16:03:36 +01:00
cpfeiffer 09967b2006 Mi2: follow 12h/24h system configuration
=> Remove custom preference option, #573
2017-03-03 22:32:54 +01:00
cpfeiffer 82ea5702c5 Mi2: configurable time format (12h/24h)
Fixes #573
2017-03-03 22:14:28 +01:00
cpfeiffer 72801af0e7 Added Hebrew translation, thanks! 2017-03-03 20:48:13 +01:00
cpfeiffer 4419200624 Mi2: Initial support for textual notifications #560 2017-03-03 20:12:43 +01:00
cpfeiffer 7fea11d752 Changelog: New translations for 0.18 and icons during discovery 2017-02-28 20:47:22 +01:00
cpfeiffer c619f17637 Updated translation from transifex (thanks) 2017-02-28 20:38:48 +01:00
cpfeiffer 21f2fed7e8 Add Portuguese translations from Transifex (thanks!) 2017-02-28 20:32:37 +01:00
cpfeiffer 19b0e5e801 Centralize icons for devices 2017-02-26 22:46:49 +01:00
cpfeiffer 49e1b55ad8 Format center-text for week-sleep-pie 2017-02-23 21:15:57 +01:00
cpfeiffer 6834f36ec7 Updated contributors list 2017-02-21 22:52:06 +01:00
cpfeiffer 337bfa1938 Handle button presses and log them
See #556
2017-02-21 21:41:21 +01:00
cpfeiffer e5d09b9fa2 Automatically start the service on boot (can be turned off)
Fixes #9
2017-02-17 23:24:44 +01:00
cpfeiffer 0042ffc514 Set the notification ID on alarm start 2017-02-10 22:52:55 +01:00
cpfeiffer 89bf63d540 Implement hashCode() when you implement equals()! 2017-02-10 00:32:03 +01:00
cpfeiffer 4f0674d038 Support for alarm clock notifications for Mi1 + Mi2 #538
No support for Pebble and HPlus for now.

Atm relies on the CM deskclock alarm, which nicely broadcasts
events about the current alarm. See
https://github.com/CyanogenMod/android_packages_apps_DeskClock.git
2017-02-07 23:49:10 +01:00
cpfeiffer d030ad9400 Ups, remove accidental import from C&P 2017-01-29 23:06:40 +01:00
cpfeiffer b157f84b83 Log connection attempt when BT is turned on 2017-01-29 22:56:56 +01:00
cpfeiffer 2ae4497261 Mi2: the only reason I can see for detecting MiBandSupport for Mi2
Fixes #529, hopefully
2017-01-28 23:25:15 +01:00
cpfeiffer ec6a8b6743 MI: some more logging 2017-01-28 23:25:15 +01:00
cpfeiffer 6c16b4fb15 Updated initial array list size to reflect reality 2017-01-28 23:25:15 +01:00
cpfeiffer 4c48b473ac Show device type in GBDeviceCandidate.toString() 2017-01-28 23:25:15 +01:00
Carsten PfeifferandGitHub 42031cb50f Merge pull request #527 from ivanovlev/master
Fix issue #522 : Transliterate Caller Name
2017-01-28 21:50:08 +01:00
cpfeiffer 13af1c1e11 Ignore Gadgetbridge's own notifications
Fixes #411
2017-01-27 00:23:45 +01:00
cpfeiffer f9779d9695 Improve some messages 2017-01-26 23:22:57 +01:00
cpfeiffer ba7d13fa5d Disable smart alarms for Mi2
Closes #471
2017-01-26 21:09:49 +01:00
cpfeiffer 5d3028c123 Mi1+2: Updated changelog 2017-01-26 00:17:50 +01:00
cpfeiffer ac68bfe351 Mi Band 1+2: backend implementation of making BT pairing optional
- cleaned up the DeviceService.connect() variants
- discovery: pass the device candidate around instead of the mac address

Attempts to fix #512, #514, #518
2017-01-26 00:16:38 +01:00
cpfeiffer b8b2d8830f Fix parceling GBDeviceCandidate 2017-01-26 00:16:38 +01:00
cpfeiffer 4c26c2933b Mi Band 1+2: make BT pairing optional
(Attemts to fix #512, #514, #518)
2017-01-26 00:16:38 +01:00
cpfeiffer d103d09fcf Mi Band: just a method rename 2017-01-26 00:16:38 +01:00
Carsten PfeifferandGitHub 5b116aae93 Merge pull request #511 from 6arms1leg/documentation
Added "known issues" item for Mi Band devices about firmware version …
2017-01-20 22:58:30 +01:00
Carsten PfeifferandGitHub 31ccaf361b Merge pull request #500 from ivanovlev/master
Transliterate unsupported Russian characters into English
2017-01-19 23:42:56 +01:00
Carsten PfeifferandGitHub e226a97c73 Merge pull request #503 from jpbarraca/hplus-fix-1
HPlus: fixed bug setting current date
2017-01-17 00:04:39 +01:00
cpfeiffer 1e24fa7ad8 Dummy weather notifucation config activity 2017-01-14 00:26:47 +01:00
Carsten PfeifferandGitHub d646b6773e Merge pull request #491 from jpbarraca/hplus-handle-data
HPlus: Improves device support
2017-01-10 20:40:07 +01:00
cpfeiffer 7b1ea68b62 Remove obsolete layout params
Closes #495 (thanks!)
2017-01-08 21:45:27 +01:00
cpfeiffer 96203f574f Tiny test for GattCharacteristic class 2017-01-08 21:37:43 +01:00
cpfeiffer 6c269aa089 Generic characteristic names from field names 2017-01-08 21:37:43 +01:00
cpfeiffer b2d9c357e7 Update changelog for Subsonic #474 2016-12-29 23:46:18 +01:00
cpfeiffer cde3b36968 Updated translations from transifex (thanks!) 2016-12-29 23:30:18 +01:00
cpfeiffer bf777800d2 Update changelog for #478 2016-12-29 23:27:49 +01:00
cpfeiffer 5d3c45d2c0 Mi2: Remember and use last synced timestamp in preferences
(instead of using the last sample's timestamp in the database.
The database also contains manual hr measurements and live activity
samples, so we would miss activity data before the last manual
measurement.

Closes #478
2016-12-29 23:23:20 +01:00
cpfeiffer e77c4e7bdb Mention ZeBand as supported device 2016-12-29 21:08:52 +01:00
cpfeiffer df1fe7c5b8 Port to UriHelper 2016-12-29 01:46:00 +01:00
cpfeiffer aadde7d1ca Port to UriHelper, fix potential resource leak 2016-12-29 01:41:47 +01:00
cpfeiffer a96a747119 Pebble: fix resource leak on app installation 2016-12-29 01:29:28 +01:00
cpfeiffer 0646eda646 Fix file potential handle leaks 2016-12-29 01:07:26 +01:00
cpfeiffer 9cea2fc3bd Update changelog for 0.16 2016-12-28 22:54:07 +01:00
cpfeiffer bb8aff8c99 Fix axis label color live activity (dark theme) 2016-12-26 12:51:20 +01:00
cpfeiffer da494cde7b Handle live activity for Mi2 and Mi1 in the same way #448
Realtime samples now use ActivitySample.NOT_MEASURED for unknown or
invalid values.
2016-12-26 12:51:12 +01:00
cpfeiffer 8719cadc43 Mi Band: fix live activity messing up stepcount #448
live samples now report relative steps, not absolute to the current
day's stepcount.

Also live samples' steps should NOT be added to the database since
they are already counted in the regular stepcount.
2016-12-26 01:38:20 +01:00
cpfeiffer 305bd7600c Fix current realtime steps calculations #450
timestamp is already in seconds instead of milliseconds

Also: port to REALTIME_SAMPLES
2016-12-26 00:23:02 +01:00
cpfeiffer 999d3e3252 Mi1: Attempt at throttling notifications during sync #438 2016-12-25 23:27:56 +01:00
Carsten PfeifferandGitHub a84bc16503 Merge pull request #470 from jpbarraca/hplus
Add preliminary support for HPlus devices: Zeblaze Zeband and others
2016-12-25 21:33:52 +01:00
cpfeiffer 5f4254e39d Merge branch 'master' into new_GUI 2016-12-15 21:06:40 +01:00
cpfeiffer 375aa491d4 Another build fix 2016-12-15 21:06:17 +01:00
cpfeiffer 321c288e27 Fix compilation 2016-12-15 20:59:55 +01:00
cpfeiffer d12103e95d Merge branch 'master' into new_GUI 2016-12-15 20:31:04 +01:00
cpfeiffer caaa38ed04 Mi2: support for current battery status #449
so far we understand
- last charge date
- current level
- state normal
- state charging

and we are notified on changes.
2016-12-14 00:50:43 +01:00
cpfeiffer dd48869fa5 Mi2: move Miband2Support into the package it belongs 2016-12-14 00:28:35 +01:00
cpfeiffer ed36410500 Empty commit to get f-droid to try another build
(apparently there was a build problem on f-droid's side)
2016-12-13 17:43:59 +01:00
cpfeiffer efe3f2773b Mi2: mention firmware update 2016-12-11 23:43:13 +01:00
cpfeiffer 6e633e948a Updated translations from transifex (Thanks!) 2016-12-11 23:36:41 +01:00
cpfeiffer c69889d177 Simplified + fixed ArrayUtils.equals() + added lots of testcases 2016-12-11 23:30:20 +01:00
cpfeiffer eb8129f62e Remove outdated comment 2016-12-11 23:30:20 +01:00
cpfeiffer bcfc8bc110 Mi1/Mi2: fix firmware file probing for the different devices 2016-12-11 23:30:20 +01:00
cpfeiffer 40354f8f5a Some @Override 2016-12-11 21:31:27 +01:00
cpfeiffer 94c0d6af9d Mi2: Fix off-by-one in activity fetching 2016-12-11 21:31:27 +01:00
cpfeiffer daf6d12c62 Updated changelog for Mi2 fw update 2016-12-11 02:26:45 +01:00
cpfeiffer 6dfc895303 Mi2: Initial work on firmware update #427 2016-12-11 02:11:58 +01:00
cpfeiffer 4a19046301 Mi2: Some characteristics and opcodes for fw update 2016-12-11 02:11:58 +01:00
cpfeiffer fd2c182714 Mi 2: another characteristic rename (0000005) 2016-12-11 02:11:58 +01:00
cpfeiffer 83ad2a9bd9 Mi 2: rename characteristic 00000003 to "CONFIGURATION" 2016-12-11 02:11:58 +01:00
cpfeiffer 04c3bc8203 Updated README wrt bonding Mi Band a little bit 2016-12-06 21:28:16 +01:00
Carsten PfeifferandGitHub 82a05e29df Merge pull request #446 from carlos-ferreira/patch-1
Updated known issues for Mi Band
2016-12-06 21:23:23 +01:00
cpfeiffer 928bdd5d36 Adjust comments to current values
They look plausible compared to 1S activity
2016-12-04 20:25:20 +01:00
cpfeiffer c1c6e37066 Mi2: update features in README 2016-12-03 23:05:06 +01:00
cpfeiffer 44f74270df Mi2: Experimental support for activity recognition 2016-12-02 00:22:06 +01:00
cpfeiffer da297ecd8b Fix + cleanup time setting and calendar sending #441 2016-12-01 22:51:08 +01:00