Commit Graph

1121 Commits

Author SHA1 Message Date
Andreas Shimokawa 4389c1cca3 Pebble: wait 4 seconds instead of 2 when notifications/calls trigger reconnection 2016-04-03 18:36:30 +02:00
Andreas Shimokawa 7ddfd35c35 Pebble: auto connect on incoming notification or phone call if connection was lost unxpectedly before 2016-04-03 18:30:20 +02:00
cpfeiffer a4919789ca Add some progress to firmware updating #271 #234
Also: remove the low latency mode for firmware update,
because my Mi1S simply disconnects then.

Still missing in the view: device disconnects
2016-04-03 00:50:45 +02:00
cpfeiffer 7a224243a3 Try to quit Gadgetbridge by stopping the service 2016-04-03 00:49:54 +02:00
cpfeiffer 2d10c11005 Log the length of the bytes written 2016-04-02 22:35:37 +02:00
cpfeiffer 0e49535966 Fix progress during fw update #234 2016-04-02 22:24:33 +02:00
Christian Fischer f2de21a664 test if heartrate is supported before writing preferences 2016-04-02 16:11:51 +02:00
Christian Fischer 20aa7d9ad9 add preference to set hartrate sleep detection 2016-04-02 16:09:30 +02:00
Christian Fischer 72258c178c fix in string represantation conversion 2016-04-02 16:08:36 +02:00
cpfeiffer ea5c6a0848 Log ignored notifications when updateCoordinator is null 2016-03-31 21:57:36 +02:00
cpfeiffer 6f97b8c1e5 Log the date that we receive from the Mi Band 2016-03-31 21:54:09 +02:00
cpfeiffer 66c1b3f178 Relax check for Mi1S device detection #234 2016-03-31 21:39:51 +02:00
cpfeiffer 4631df67ac Some more logging + add svg launcher again (somehow it was not added again) 2016-03-30 22:53:08 +02:00
cpfeiffer 776a743285 Move svg file to another place to fix build 2016-03-30 22:06:03 +02:00
cpfeiffer ffc006c21c Fix ordering problem with firmwareInfoSent state variable #234 2016-03-30 21:56:00 +02:00
cpfeiffer cc7f5406ef Use low latency transfer mode for fw update #234 2016-03-30 21:48:42 +02:00
cpfeiffer 5f72daa43a Add SVG launcher icon, closes #190 THANKS! 2016-03-29 22:59:22 +02:00
cpfeiffer f8c761068e Updated for 0.9.3 2016-03-29 22:45:46 +02:00
cpfeiffer e931cf47d7 Need to pass '0' as parameter to mi band fw metadata info #234 2016-03-29 22:15:14 +02:00
Andreas Shimokawa b3590fed35 For simplicity hide some internal states from the user
Display connecting->connected instead of connecting->connected->initializing->initialized
2016-03-28 23:56:20 +02:00
Andreas Shimokawa cbc57b4407 Pebble: Fix stupid bug that made Pebble Health unavailable in App Manager (Fixes #269) 2016-03-28 23:46:05 +02:00
cpfeiffer 8815f0d134 Small cleanups and fixlets. 2016-03-28 23:02:22 +02:00
Andreas Shimokawa 6ce63276a3 play around with play states, simplify weired nested switch 2016-03-27 19:50:32 +02:00
Andreas Shimokawa adfef3db42 Prepare code for more music metadata (duration, track count, current track number)
Oh and format code
2016-03-27 17:45:44 +02:00
cpfeiffer bfcfe82f17 Improve pairing activity: #254
- add hint about rebooting phone
- request enabling bluetooth
2016-03-26 20:46:48 +01:00
Andreas Shimokawa 9d29e4db3f bump version, update xml changelog 2016-03-26 10:04:02 +01:00
cpfeiffer a70c31f965 Add commandline for running all firmware tests 2016-03-26 00:10:32 +01:00
cpfeiffer bff5837930 Sort device infos 2016-03-25 23:54:42 +01:00
cpfeiffer 8165751e57 Refactoring to test the double firmware update procedure #234
(while performing the same, known to be working firmware update for Mi1A)

Result: double firmware update procedure works on Mi1A.

Also updated FirmwareTest. Perform all tests not only in the test itself,
but also at runtime before doing the actual update.

Further:
- fix setting of firmwareInfoSent state variable, which prevented installation
  of the section firmware
- make one string translatable
2016-03-25 23:45:27 +01:00
Andreas Shimokawa a208907ba7 update Japanese from transifex (thanks!) 2016-03-25 23:09:25 +01:00
Andreas Shimokawa 98949f3b54 bump version update xml changelog 2016-03-25 11:29:50 +01:00
cpfeiffer 3714ec82da Extracted String "HR: ", (= Heart Rate Firmware Version) 2016-03-24 22:23:16 +01:00
cpfeiffer 89eddb13b0 Fixed connection issues by reading the date from the band #249 2016-03-24 22:10:23 +01:00
cpfeiffer e5b0afb916 Enable low latency during activity sync 2016-03-24 21:26:51 +01:00
cpfeiffer 0e435d6d94 Fix for device item not clickable when info items are visible 2016-03-23 23:34:42 +01:00
cpfeiffer 11ac01f0e8 Set low latency mode during initialization #249
This appears to fix the initialization getting stuck sometimes, e.g.
after turning on bluetooth and then connecting.

The band incidentally sends 0x8 when it's stuck (won't accept the UUID_PAIR
request).
2016-03-23 22:50:42 +01:00
cpfeiffer 1348bad4d3 Improved log output 2016-03-23 22:17:01 +01:00
cpfeiffer 9d9ef8a6f8 Some cleanup 2016-03-23 22:06:48 +01:00
cpfeiffer 71461642f7 Fix enabling "Write Log File" option (closes #261) 2016-03-22 23:07:11 +01:00
Andreas Shimokawa df3a06ac9b Reformat code, make getter of @NonNull members also @NonNull 2016-03-22 21:55:15 +01:00
cpfeiffer b0ec74696d Give better feedback when a firmware cannot be installed #234 2016-03-22 16:12:27 +01:00
Andreas Shimokawa 767f359319 Launch Android's Bluetooth settings instead of our activiy on Android >= 6.0
BLE scanning does not work on Android 6.0 and for the Pebble it does not add any value anyway.
2016-03-22 13:43:01 +01:00
cpfeiffer b419c93254 Disable the test for travis again 2016-03-21 23:44:58 +01:00
cpfeiffer 424d9cd142 More work on firmware detection, recognition and validation #234
Should be as robust as possible now.
2016-03-21 23:42:34 +01:00
danielegobbetti 1933e2bf10 Localize the title of the configuration activity.
Auto open local settings (e.g. clay)
2016-03-21 21:19:32 +01:00
Andreas Shimokawa 1aadcb958b update changelog 2016-03-21 20:20:08 +01:00
cpfeiffer 275839a7f4 last arg of copyOfRange() is index, not length! 2016-03-21 04:18:45 +01:00
cpfeiffer f7b71c1f96 Add logging to firmware detection #234 2016-03-21 04:17:12 +01:00
Andreas Shimokawa 76fc7a2aec always save last device address when connecting, fixes #258 2016-03-20 19:48:54 +01:00
Andreas Shimokawa f046e66bf1 update Italian translation (thanks @danielegobbetti) 2016-03-20 18:45:04 +01:00
danielegobbetti 4a3547228e Update changelog md file and bring xml file on par with it. 2016-03-20 18:15:45 +01:00
Andreas Shimokawa dbeded8d04 In Control Center, do not show alarm configuration in context menu if device does not support it 2016-03-20 17:53:55 +01:00
Andreas Shimokawa c5a7ca4b5b properly re-sync all translation files with transifex
(this only reorders stuff since I had to repush broken tranlations to transifex again)
2016-03-20 15:38:05 +01:00
Andreas Shimokawa 4fe9489909 update German translation 2016-03-20 15:34:07 +01:00
Andreas Shimokawa b5f71febdc bump vestion to 0.9.0, update CHANGELOG.md 2016-03-20 15:16:06 +01:00
Andreas Shimokawa 4be1926459 reformat code though Android Studio 2016-03-20 15:00:05 +01:00
cpfeiffer b3410dcebe Improved testcase #234 2016-03-20 12:18:43 +01:00
cpfeiffer e59c012553 Disable FirmwareTest for travis 2016-03-20 01:16:20 +01:00
cpfeiffer 4f956000c5 Enhanced support for firmware detection, recognition and upgrade #234
Also supports double firmware upgrade for Mi1S.
- so far, only hr firmware upgrade is tested for 1S
- adds junit testcases for firmware recognition and handling
2016-03-20 01:07:57 +01:00
cpfeiffer 6d8d6d5bc8 Testcases for firmware checking 2016-03-20 01:07:57 +01:00
Andreas Shimokawa c2ae9ec530 Update French translation from transifex (thanks) 2016-03-18 22:33:36 +01:00
Daniele Gobbetti 538961fd2c Add some style, intercept and display toast in case of JS errors 2016-03-18 17:50:24 +01:00
Daniele Gobbetti e69fac9704 Do not show the configure menu item for non configurable watch apps. 2016-03-18 16:47:14 +01:00
Andreas Shimokawa 1603d60144 right align info icon in control center 2016-03-17 15:28:43 +01:00
Andreas Shimokawa 89591fd5fe update ukrankian translation from transifex (thanks) 2016-03-16 22:54:46 +01:00
Andreas Shimokawa 61e3cf4348 update japanese translation from transifex (thanks!) 2016-03-16 22:53:36 +01:00
Andreas Shimokawa 238e394d21 update french translation from transifex (thanks) 2016-03-16 22:38:27 +01:00
Andreas Shimokawa c224a40d0e update spanish translation from transifex (thanks!) 2016-03-16 22:37:14 +01:00
Andreas Shimokawa 5906c02330 Merge remote-tracking branch 'origin/danielegobbetti-playground' 2016-03-16 22:27:13 +01:00
cpfeiffer c5a887192d Remove/revert some temporary test code 2016-03-16 00:27:32 +01:00
cpfeiffer e26e6d7b24 Display HR firmware version
Hide fw,hw,hr versions by default and show them on demand with an info
button.
2016-03-16 00:27:32 +01:00
cpfeiffer 4aaf3dd162 Use hw version to make device names unique, then mac addr 2016-03-16 00:27:32 +01:00
cpfeiffer 91f02ae920 WIP: Lots of work towards double firmware update for Mi 1S #234 2016-03-16 00:27:08 +01:00
danielegobbetti ea855a4cc2 Also open public URLs with an external browser. 2016-03-13 08:31:50 +01:00
cpfeiffer 3f39928df5 Some more cursor-related improvements (closing) 2016-03-08 23:48:31 +01:00
cpfeiffer 10975feb49 s/moveToFirst/moveToNext/ 2016-03-08 23:30:31 +01:00
cpfeiffer 9643fa6062 s/moveToFirst/moveToNext 2016-03-08 23:29:42 +01:00
danielegobbetti d378b4eb7b Intercept clay pebblejs://close url 2016-03-08 21:44:12 +01:00
cpfeiffer 7e8281e8d4 Improve exception handling logic a bit 2016-03-08 21:33:12 +01:00
cpfeiffer 87023ebdb3 Don't retrieve the column index again and again in a long loop
Also: fix weird iteration logic
2016-03-08 21:33:12 +01:00
Daniele Gobbetti 2da50e27c2 call the ready event as soon as the app js file has been loaded. Add a button to debug the different steps. 2016-03-08 17:45:11 +01:00
Andreas Shimokawa a89fea9c7d Pebble: Fix crash when starting pebstyle
Also make code for "push" handlers more generic
2016-03-08 12:02:00 +01:00
Andreas Shimokawa 4362f78028 Pebble: Do not display Health on original Pebbles 2016-03-08 11:49:08 +01:00
Andreas Shimokawa a3ee3c15fc Pebble: copy pebble-app-js.js out of the pbw upon installation not upon reading the .pbw
This eliminates the need to copy the whole file into a byte[], and all file size limts are gone.
2016-03-08 11:41:20 +01:00
Andreas Shimokawa 88982a6174 Merge pull request #235 from Freeyourgadget/feature-configuration
Use external browser for configuring pebble apps
2016-03-08 10:41:46 +01:00
cpfeiffer a96120f91d Clear the chart when there are no samples
(e.g. when switching to another day for which no samples are
available, the chart now becomes empty instead of displaying the
samples from the last day with data.
2016-03-07 23:17:02 +01:00
cpfeiffer 5eb8f57b4c Some more byte -> int conversions 2016-03-07 22:47:34 +01:00
cpfeiffer 5ae680cab5 Don't flush the logfile synchronously 2016-03-07 22:46:35 +01:00
cpfeiffer 25e58eb414 Upgrade mpandroidchart to 2.2.3 2016-03-07 22:46:03 +01:00
cpfeiffer be012eca8d For Mi Band 1A (fw 5.15.7.14) we get 0xa for auth success #180 2016-03-07 21:43:45 +01:00
cpfeiffer 50dd7f5eba Better check for heartrate support on non-heartrate devices 2016-03-07 21:36:31 +01:00
Andreas Shimokawa f1ba50b62a update xml changelog 2016-03-07 01:15:23 +01:00
cpfeiffer dda6cb34e1 Fix logfile rotation (bug in logback-android) 2016-03-07 01:09:43 +01:00
Andreas Shimokawa 2902e60d51 prepare 0.8.2 2016-03-07 00:55:17 +01:00
cpfeiffer 619ea04a63 Fix database creation and updates #246
The creation script *must* always do the full creation so that fresh installs
get the correct database (no upgrade scripts will run for them)
2016-03-07 00:39:47 +01:00
danielegobbetti 459f6baf08 Fix missing column in the creation script (upgrades were fine, but new installation weren't).
Reindent changelog file.
2016-03-06 17:28:21 +01:00
Andreas Shimokawa fa6b572172 Merge branch 'feature-configuration' of https://github.com/Freeyourgadget/Gadgetbridge into feature-configuration 2016-03-05 21:26:03 +01:00
cpfeiffer 97faf61c5a Log db upgrade/downgrade requests 2016-03-04 23:37:42 +01:00
cpfeiffer dc162a9ac8 Only add column if it doesn't exist yet
Column can exist if there down- and upgrades
2016-03-04 23:25:11 +01:00
cpfeiffer 3b3458e196 Show the heart rate measurement tooltip a little longer 2016-03-04 23:08:13 +01:00