1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-07-09 07:01:33 +02:00
Commit Graph

2269 Commits

Author SHA1 Message Date
Andreas Shimokawa
e19c3f7ea0 Amazfit Bip: work around problems when syncing tracks in CEST
(#952)
2018-04-02 00:22:55 +02:00
TaaviE
08feaf30e1 Fixed a bunch of misspells. 2018-03-31 17:31:48 +02:00
Andreas Shimokawa
29a05f1d8f refactor onFetchActivityData() into onFetchRecordedData(dataTypes) to make it more generic
This removes misuse of testNewFunctionality() and support fetching GPS data and debug logs
Fetching debug logs (Amazfit Bip/Cor) is now accessible in the debug activity
Fetching GPS data can be done by swiping in the list activity.
TODO: actually refresh list when fetching data is done :P

Also fix some android studio warnings on the go...
2018-03-31 16:21:25 +02:00
Andreas Shimokawa
c493df2423 Merge branch 'bip-wip' 2018-03-31 11:31:03 +02:00
Andreas Shimokawa
4e496cf2af Fix warnings in DiscoveryActivity and fix a potential NPE (fixes #1048) 2018-03-30 15:04:53 +02:00
Andreas Shimokawa
cf97677cdc Amazfit Bip: Whitelist Firmware 0.1.1.14 2018-03-30 14:40:40 +02:00
Andreas Shimokawa
66bb0bd81b Merge branch 'master' into bip-wip 2018-03-27 11:09:59 +02:00
Andreas Shimokawa
41632b8eb3 Only send dummy AQI to Bip, not to Cor
See #1033
2018-03-24 19:28:06 +01:00
Andreas Shimokawa
74f9798071 Amazfit Cor: try to send location
This could help #1033
2018-03-24 19:22:49 +01:00
Andreas Shimokawa
73cfeb8a7e Mi Band 2: scheduling diplay on lift wrist does not work (only on Bip), make the on and off settings at least work again... 2018-03-24 00:00:25 +01:00
Andreas Shimokawa
e26dbc6812 Mi Band 2/Bip/Cor: allow to set a period when the display/background light gets enabled when lifting the wrist
Closes #1013
2018-03-23 23:30:28 +01:00
TaaviE
6be7ee4a96 Fixed a few misspells and extended my name. 2018-03-23 07:26:25 +01:00
cpfeiffer
d2c952ffa5 Improvements to the singleton pattern, better encapsulate fields 2018-03-18 12:59:32 +01:00
Daniele Gobbetti
ec1f4505bd Pebble: prevent crashing when the ExternalPebbleJS Activity was not running
when receiving configuration data from the external browser.

Parse the passed data to load the correct watchface javascript, and ensure
the currently connected device is a Pebble (and try to reconnect if there
is no device connected, as a bonus)
2018-03-17 18:50:53 +01:00
Daniele Gobbetti
8e67f31309 Pebble Webview: check the availability of Internet Helper packages before
binding the service to it.

Could help with #643, but it's a blind attempt.
2018-03-17 16:57:02 +01:00
Daniele Gobbetti
d286f497f0 Pebble: Iterate over knownKeys only if they are present.
Fixes #1027
2018-03-17 16:12:40 +01:00
Daniele Gobbetti
3e903362e6 Explicitly ask for RECEIVE_SMS permission at startup.
Should fix #1025
2018-03-17 15:58:44 +01:00
Andreas Shimokawa
a8fdcb50f3 fix bad merge from master 2018-03-13 21:17:14 +01:00
Andreas Shimokawa
3d3cc1f40c Merge branch 'master' into bip-wip 2018-03-13 17:27:18 +01:00
Sergio Lopez
092e62bfad Pebble: add support for weather in Simply Light watchface
Celsius forced as with other watchfaces #482
2018-02-28 22:42:47 +01:00
Daniele Gobbetti
d88badaf4d Pebble JS: add transactionId metadata to the appmessage.
Removes the errors in Pebble-Casio-WV58DE as reported in #482
2018-02-28 21:56:46 +01:00
Ted Stein
1e0d7550d9 Add ta marbutah to Arabic transliteration.
Add ة, a normally-silent form of the letter ت that was missed when this
functionality was originally added.
2018-02-27 17:37:12 +01:00
Andreas Shimokawa
0ea5c3dee1 Charts: Ignore heart rate data if sample indicates that the device was not worn
Closes #1005
2018-02-26 22:06:56 +01:00
License Bot
238bacde9f Update license headers 2018-02-26 14:27:33 +01:00
ladbsoft
d5978d9b30 Xwatch Basic Support (#972)
Initial XWatch support

* Activity syncing
* Multimedia control using the watch's button
2018-02-25 12:05:36 +01:00
cpfeiffer
6370c6cac1 Make sure to close the outputstream of the export 2018-02-24 21:02:53 +01:00
Andreas Shimokawa
6ebc763a4c Amazfit Bip: whitelist firmware 0.1.0.86 2018-02-24 00:03:19 +01:00
Daniele Gobbetti
daabff1364 Blind attempt to fix crashing configuration page if bgJS is disabled
This might help #643 but I could not reproduce the reported issue
2018-02-23 18:56:05 +01:00
Daniele Gobbetti
e7a1e1b8c3 Move the connected device to top in control center
What happens in reality is that devices are sorted according to their
connection status first, and then by name. So even if/when we support
multiple device connection, the order should remain sane.

This closes #842.
2018-02-19 18:27:48 +01:00
Andreas Shimokawa
669f4bcdd0 Mi Band 2: use native notification patterns instead of manually timed ones
What we do now is:
- Send a notification with the app icon
- Send the vibration pattern right away (this causes the first unwanted
  vibration to be cancelled immediately and only the pattern is noticable,
  while the icon stays on screen during the vibration pattern)
- (optional) send the text together with a generic sms icon

This also fixes problems of text not appearing in newer firmwares when
a notification pattern with repeat has been set in Mi Band settings.
2018-02-18 01:43:05 +01:00
Daniele Gobbetti
4f246b3ed9 Add Antox to the chat applications.
Notifications coming from the chat.tox.antox package are treated as chat
messages. This closes #910
2018-02-17 17:39:15 +01:00
Daniele Gobbetti
48b89f1bd2 Add Kontalk to the chat applications.
Notifications coming from the org.kontalk package are treated as chat
messages. This closes #994
2018-02-17 17:33:34 +01:00
Andreas Shimokawa
e48885df7d Merge branch 'master' into bip-wip 2018-02-15 23:38:06 +01:00
Andreas Shimokawa
4d7c697497 Pebble: Fix for background javascript that tries to send floats or doubles
Also log further exceptions

Thanks @danielegobbetti for the original patch ;)
2018-02-14 23:20:22 +01:00
Daniele Gobbetti
e28333fe6e Fixes to make the application run on Oreo
- tested on Oreo 8.1

this commit includes changes cherry picked from 3b6da66643
2018-02-14 21:35:22 +01:00
TaaviE
18cec2087f Changed API version and everything else required.
(cherry picked from commit db1a282)
2018-02-14 21:35:06 +01:00
cpfeiffer
78b50e82fa Fix crash in settings activity with export location
The way this works will never be a fully working solution, because uris are
*not supposed* to be resolved to a filesystem path. So while this may work
right now, it will most probably fail in the future, with other content providers.

See e.g. https://github.com/iPaulPro/aFileChooser/issues where this code originally came from
(via Stackoverflow).

We won't crash anymore, but we won't support certain content providers. In the long run, we
should search for the proper solution.

Closes #982
2018-02-11 14:32:21 +01:00
Daniele Gobbetti
55d9ff0954 Amazfit Cor: Whitelist firmware 1.0.6.76
Reported as working on the issue tracker. Closes #984
2018-02-10 23:36:05 +01:00
Daniele Gobbetti
831303aea8 Fix regression introduced by 737578debc
With many thanks to https://github.com/80tf3262p8 who spotted the error

closes #975
2018-02-10 16:54:20 +01:00
Daniele Gobbetti
8ba56db786 Pebble Webview: refine response mimicking
- check the called domain to return (potentially) different messages
- mimic the online check of TrekVolle watchface
2018-02-10 16:53:35 +01:00
Daniele Gobbetti
81d4ca84a8 Add Polish 'Ł' and 'ł' to transliteration map
closes #987
2018-02-10 16:53:35 +01:00
Daniele Gobbetti
a29394b96e Omnijaws Weather: correctly pick todays' min and max temperature 2018-02-10 16:53:35 +01:00
Andreas Shimokawa
b9c6b3bb8f Amazfit Bip: Whitelist fw 0.1.0.70/80 and fonts
Also change the recommended flashing order of .fw .res and .gps
2018-02-08 22:41:16 +01:00
Andreas Shimokawa
ea4a4edc5b Amazfit Bip: Fix language setting on new firmwares 2018-02-08 22:21:15 +01:00
Andreas Shimokawa
e657b327c9 Pebble: only call Pebble object in javascript if it is actually available 2018-02-04 00:02:14 +01:00
Andreas Shimokawa
06929d04f9 Pebble: when faking the OWN response also set the "description" field with the current condition
Helps TrekVolle to display weather
2018-02-03 23:08:12 +01:00
Andreas Shimokawa
3871b6f0be Amazfit Cor: Allow watchfaces to be flashed
Untested as Cor has no maintainer
2018-02-01 14:22:18 +01:00
Andreas Shimokawa
5973f189eb Amazfit Bip: try to detect the font type not by the size
This could help modders
2018-01-30 23:28:49 +01:00
Andreas Shimokawa
95cc538575 Amazfit Bip: Allow language to be set to Spanish (needs firmware 0.1.0.66 beta, not recommended)
This also requires the latin font to be flashed before.
2018-01-30 23:06:08 +01:00
criogenic
0313500652 fix privacy caller ID selection (#962) 2018-01-30 22:44:27 +01:00
Andreas Shimokawa
0c907f0ba1 Amazfit Bip: whitelist 0.1.0.44 firmware 2018-01-27 23:03:47 +01:00
Andreas Shimokawa
f6f4d7ec40 Amazfit Cor: support flashing new res format also on Cor 2018-01-27 21:51:34 +01:00
Andreas Shimokawa
14a6c9a626 Amazfit Bip: support flashing new res, font, and latin font files
Required for firmware 0.1.0.66
2018-01-27 21:41:35 +01:00
Andreas Shimokawa
d9c012025d Pebble: prepend application start event to premature appmessage from a newly started app
This should fix some InvalidStateExceptions when using background javascript
2018-01-25 16:42:43 +01:00
Felix Konstantin Maurer
296dfe2f17 Fix conversion from String to Integer 2018-01-24 22:01:12 +01:00
Andreas Shimokawa
1349a1c7da Merge branch 'master' into bip-wip 2018-01-22 08:57:01 +01:00
TaaviE
32dcdc24ba Fixed two strings incorrectly being merged together. 2018-01-21 22:43:10 +01:00
Andreas Shimokawa
76cf667202 Amazfit Bip, do not set menu items during initializaton
(This could prevent menus from vanishing when updating to FW 0.1.0.51)
2018-01-20 01:34:40 +01:00
Andreas Shimokawa
06d6aeacb9 Prepare find phone feature to be generic and implement apphandler for upcoming pebble helper app 2018-01-19 23:12:50 +01:00
NotAFIle
d4a8b6cd80 Recognize some more alternative apps
* protonmail email
 * challegram and plus messenger Telegram clients
2018-01-19 22:39:57 +01:00
NotAFile
32522c4f55 recognize telegram beta notifications 2018-01-18 20:43:32 +01:00
Andreas Shimokawa
04018955c1 Mi Band HRX: support older firmwares where the Band was named "Mi Band 2i" 2018-01-14 16:34:40 +01:00
cpfeiffer
fa0fd250cf Attempt to fix crash with ExternalPebbleJSActivity #863 2018-01-14 01:40:04 +01:00
cpfeiffer
da5d1e3685 Trying to simplify ExternalPebbleJSActivity#onCreate() a bit
(by splitting into separate methods)
2018-01-14 00:20:13 +01:00
cpfeiffer
9ee1aa87e8 Move some methods to clarify responsibilities and simplify some things 2018-01-13 21:58:40 +01:00
cpfeiffer
e159a5dde3 Cleanup, deduplication, null-handling fixes 2018-01-13 21:08:51 +01:00
Andreas Shimokawa
c420f2ce93 Amazfit Bip: implement find phone feature
This probably also works with Amazfit Cor

Closes #887
2018-01-13 18:46:21 +01:00
Andreas Shimokawa
fda4816fc1 Mi Band 2: Whitellist firmwares I tested
Fixes #939
2018-01-13 16:56:30 +01:00
Andreas Shimokawa
aca31c320a Amazfit Cor: allow to flash latest firmware 2018-01-13 16:29:48 +01:00
Andreas Shimokawa
68bd6f99e2 Amazfit Bip: whitelist latest firmwares and support flashing latest GPS firmware 2018-01-13 11:12:58 +01:00
Ted Stein
39e151f51d Add transliteration for Arabic and Farsi. 2018-01-12 22:05:33 +01:00
Lukas Veneziano
781359afba Added notification type for business calendar 2018-01-12 21:12:33 +01:00
Felix Konstantin Maurer
a0ee35fa4c Move getFilePath to appropriate location 2018-01-09 22:41:27 +01:00
Felix Konstantin Maurer
6cbb130bce Enable periodic export after boot 2018-01-09 22:41:27 +01:00
Felix Konstantin Maurer
559cd557c2 Permissions must be persistet to be reused after boot 2018-01-09 22:41:27 +01:00
Felix Konstantin Maurer
1477235fa2 Clean preferences code 2018-01-09 22:41:27 +01:00
Felix Konstantin Maurer
58e504e299 Improve code, add notification 2018-01-09 22:41:27 +01:00
Felix Konstantin Maurer
254afafa3e First try at periodic db export 2018-01-09 22:41:27 +01:00
Andreas Shimokawa
6f68c8adde Merge branch 'master' into bip-wip 2018-01-04 12:09:57 +01:00
cpfeiffer
d570ee864d Fix logs sometimes not containing stacktraces
Fixes #916
2018-01-04 00:12:59 +01:00
cpfeiffer
b9f19970df Small safety measure against null device 2018-01-04 00:12:59 +01:00
Tomas Radej
56c7f72f65 Added Etar as calendar app type 2017-12-31 13:19:30 +01:00
Lukas Veneziano
f194cc00ed Fixed accidentally changed color for telegram fixed threema notification
type not being used
2017-12-31 00:10:39 +01:00
Lukas Veneziano
6b339a3013 Added notification type for threema app 2017-12-31 00:10:39 +01:00
Andreas Shimokawa
cad9e4ddd0 Amazfit Bip: whitelist firmware 0.1.0.39 2017-12-31 00:07:40 +01:00
Andreas Shimokawa
d4ce333f14 Amazfit Cor: Fix problem with firmware 1.0.6.27 where Cor was detected as Mi Band 2
The root cause of this problem is that starting from firmware 1.0.6.27 the
bluetooth name was changed to "Amazfit Cor" from "Amazfit Band"

This resulted in advanced features not working, including firmware flashing.
2017-12-30 22:27:00 +01:00
Andreas Shimokawa
01a5d862a0 Mi Band 1S: fix regression with firmware 4.16.4.22 and whitelist 4.16.11.15 2017-12-29 00:41:21 +01:00
Andreas Shimokawa
dc51714d01 Mi Band: Support activity fetching in later firmwares (needs testing)
Based on the profile version which is 0x2000700 for both the bug reporter on a Mi Band 1 and for me on a Mi Band 1s
this either expects packets with length 20 (old firmwares) or 16 for HR enabled bands and 18 for non-HR enabled bands (new firmwares)

We check for profile version >=0x02000000 which is guessed, that needs confirmation for older firmwares and untested ones

Fixes #915
2017-12-28 01:07:25 +01:00
Andreas Shimokawa
b91204e109 Amazfit Bip: allow installation of latest gps firmware 2017-12-22 23:29:38 +01:00
Andreas Shimokawa
f6b183d39a Allow firmware files up to 1.5MB
This helps some experiments
2017-12-21 09:40:47 +01:00
Andreas Shimokawa
ad750c0047 try to fix cor firmware recognition for newer versions 2017-12-21 09:35:33 +01:00
Daniele Gobbetti
888e7fa229 Add support for Omnirom Omnijaws weather service.
This uses a contentobserver and doesn't do anything if it's not available.
Should be feature equivalent to the LineageOS weather receiver.
2017-12-17 22:35:17 +01:00
Andreas Shimokawa
7e2f895001 Merge branch 'master' into bip-wip 2017-12-17 00:24:48 +01:00
Andreas Shimokawa
64968d8a99 Amazfit Bip/Cor: change AQI string from (fake) to (n/a) 2017-12-17 00:01:00 +01:00
Andreas Shimokawa
34c3737f3c Amazfit Bip: Whilelist recently tested versions 2017-12-16 23:25:56 +01:00
Andreas Shimokawa
22eb69d1c2 read humidity from CM Weather provider 2017-12-14 15:10:14 +01:00
Andreas Shimokawa
948002dc7c Weather: recreate OWM fake reply from weatherSpec, no not directly create in in Weather Notification receiver
This should bring CM weather on par with Weather Notficication when using background js
2017-12-14 14:54:09 +01:00
Andreas Shimokawa
1752b1b51e fix cm/lineage weather not updating after changing location 2017-12-12 22:36:15 +01:00
cpfeiffer
fccd2ebb77 Display the actual firmware kind instead of "Firmware"
i.e. "GPS Firmware", "Watchface", "Resources", ...
2017-12-11 23:36:39 +01:00
Andreas Shimokawa
bfceaf9cc9 Merge branch 'master' into bip-wip 2017-12-11 19:30:54 +01:00