TaaviE
9627360fac
Fixed an UI error when Bluetooth discovery starting fails
2020-08-02 21:23:14 +03:00
TaaviE
61c74e9b15
Made the scans time out nicely
2020-08-02 21:07:14 +03:00
TaaviE
498c0d42e2
Made sure to check if location permission has been given by the user for scanning
2020-08-02 21:07:14 +03:00
TaaviE
aa9abd4b61
Added a log message that might help with debugging in some cases
2020-08-02 21:07:14 +03:00
TaaviE
f526bbe632
Added an API version guard to the new type of BLE scanning
2020-08-02 21:07:14 +03:00
TaaviE
b76a8267b8
Added CompanionDeviceManager support, added target 29 support, refactored the scan display and UI.
2020-08-02 21:07:14 +03:00
TaaviE
8da7a7aced
Added a checkbox to un-ignore bonded devices
2020-08-01 15:49:54 +02:00
TaaviE
d871b03f33
Added a safety measure against a weird internal crash when stopping a BLE scan
2020-06-17 08:47:39 +02:00
TaaviE
68e746edff
Made it adding already paired devices work properly if they're not ignored
2020-02-03 20:24:55 +01:00
TaaviE
b01e703e84
Added a check to avoid indefinitely lasting scans
2020-01-31 07:01:04 +02:00
License Bot
d6fa5d0dd5
Update license headers
2020-01-09 10:44:32 +01:00
Andreas Shimokawa
b9d3ec6df3
Make disabling new BLE scanning an option in preference
...
It was disabled in master, but not in the Fossil Q branch, now both is possible
This also reverts ca9761c336
which disabled classic BT scanning
2019-12-07 22:38:30 +01:00
License Bot
1dc8c26e2a
Update license headers
2019-12-06 22:51:43 +01:00
Andreas Shimokawa
074994d24b
Merge branch 'master' into fossil-q-hybrid
2019-10-12 20:47:19 +02:00
Andreas Shimokawa
7b5e333601
Skip service scan if supported device could be recognized without uuids during discovery
2019-10-12 20:15:09 +02:00
Andreas Shimokawa
4bf37ea70f
Mi Band 4/Amazfit Bip Lite: Display a toast and do not try to pair if there was no auth key supplied
2019-10-12 19:44:45 +02:00
Daniel Dakhno
ca9761c336
adjusted DiscoveryActivity to use new scan
2019-10-10 02:09:23 +02:00
Andreas Shimokawa
57a235742d
Properly disable new ble scanning for testing
...
(inverted logic committed accidentially)
2019-08-03 23:40:07 +02:00
Andreas Shimokawa
02d02d2329
Add Initial Mijia LYWSD02 support (Smart Clock with Humidity and Temperature Sensor)
...
This only sets the time on connect.
2019-08-02 23:49:14 +02:00
Andreas Shimokawa
a60268c05c
Mi Band 4: Bring your own key support (blindly done, I dont have my key)
...
THIS STILL REQUIRES MI FIT AND YOUR EXTRACTED KEY
HOWTO:
1) press + button in Gadgerbridge
2) LONG PRESS Mi Band 4
3) Tap "Auth Key"
4) Enter your key prefixed with 0x (eg. 0x112233445566778899aabbccddeeff00)
5) Go back
6) Tap Mi Band 4
Success? You tell me.
2019-07-23 08:56:26 +02:00
Andreas Shimokawa
9bfef4cf4f
Make per-device settings more versatile, move more settings
...
This allows to construct per-device settings by device type very easily
device coordinators just do the following to declare which setting they support,
the settings activity is then composed at runtime.
@Override
public int[] getSupportedDeviceSpecificSettings(GBDevice device) {
return new int[]{
R.xml.devicesettings_miband3,
R.xml.devicesettings_swipeunlock,
R.xml.devicesettings_pairingkey
};
}
2019-05-22 00:42:22 +02:00
Andreas Shimokawa
db48707764
Add a device specific settings activity, currently used for setting the auth key for Amazfit Bip/Cor
...
When connecting to a new device, a random key gets generated, which can be
looked up from the device specific settings (accessible via the gear icon in
the device card in the main activity). Old devices keep their 0123456789@ABCDE
key, they have to be re-paired to change that.
During pairing, long-pressing the device candidate in the discovery activity
will also start the device specific settings activity, where the auth key
can be set manually priror to pairing. This is usefull to keep the ability to
pair one device with multiple android devices.
Fixes #1308
2019-04-21 21:25:33 +02:00
License Bot
beedb653e6
Update license headers
2019-02-13 20:43:31 +01:00
Daniele Gobbetti
75d3dffb14
Migrate to androidx support libraries and bump compile SDK version
...
"Optimize imports" has been run on all source files, there might be
unrelated changes, but these should be harmless.
2019-01-26 16:00:56 +01:00
License Bot
696653eabf
Update contributors list and license headers.
2018-08-29 21:30:23 +02:00
Daniele Gobbetti
a5dd88df53
Fix discovery on devices with Android version < Lollipop
...
also reduce the amount of lines logged in discovery activity.
2018-07-22 16:14:36 +02:00
boun
11c545362a
Do not crash inside the emulator ( #1150 )
...
As there is no bluetooth support in the emulator
2018-07-12 18:25:18 +02:00
jonnsoft
09a36aa5e7
MiBand3 pairing fix
...
(cherry picked from commit 3656ed9648b28475c35764da8a5cbeb420cfc307)
2018-07-09 22:56:16 +02:00
License Bot
225a600aed
Update license headers
2018-06-25 18:35:46 +02:00
Daniele Gobbetti
3c00332a77
Always stop BT/BTLE discovery when exiting the Discovery Activity
...
Hopefully solves the leaks
2018-06-18 20:26:28 +02:00
TaaviE
08feaf30e1
Fixed a bunch of misspells.
2018-03-31 17:31:48 +02:00
Andreas Shimokawa
4e496cf2af
Fix warnings in DiscoveryActivity and fix a potential NPE ( fixes #1048 )
2018-03-30 15:04:53 +02:00
License Bot
238bacde9f
Update license headers
2018-02-26 14:27:33 +01:00
cpfeiffer
962720145e
Fix custom language being lost for newly created activities
...
So we do need to set the language both on change and onCreate()
For some reason, the title bar of the SettingsActivity is not updated on recreate().
Closes #787
2017-09-03 01:04:34 +02:00
cpfeiffer
b142add631
Pass a GBDevice instead of GBDeviceCandidate to getBondingStyle() #651
2017-04-17 23:00:16 +02:00
cpfeiffer
e1797fc9f7
When connecting for the first time, set "pair" to true
2017-04-07 00:40:33 +02:00
cpfeiffer
5b8624de71
Make pairing optional after discovery
...
See #642 which might be fixed by not pairing.
2017-04-06 23:47:35 +02:00
License Bot
e392fbfd80
Add license header to all java files.
2017-03-10 14:53:19 +01:00
cpfeiffer
58e2538c4e
Discovery: handle the case where a device is already bonded
2017-03-04 16:03:36 +01:00
cpfeiffer
ec6a8b6743
MI: some more logging
2017-01-28 23:25:15 +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
Andreas Shimokawa
17b581022b
optimize imports
2016-12-09 20:14:17 +01:00
Uwe Hermann
0746aaa579
app: Random typo and consistency fixes.
2016-12-01 20:22:12 +01:00
cpfeiffer
2f7eb9ef23
Some more improvements to discovery
...
- pass service uuids to GBDeviceCandaidate so that DeviceCoordinators
can detect devices by their services.
Note: they should not rely on service uuids being available
2016-11-27 02:46:07 +01:00
cpfeiffer
b9ff2cd468
A few improvements to discovery
...
- display the right icon for found device candidates
- scan for specific LE services
2016-11-27 01:09:20 +01:00
cpfeiffer
1cadb692fe
Wild guess at trying to fix spontaneous reboots during discovery #412
2016-10-28 23:48:13 +02:00
Daniele Gobbetti
bbecfbeace
Check if the bluetoothReceiver is still valid before unregistering it.
...
Do not set the scan tipe as BT classic if the discovery action has been set by BLE scans.
2016-10-03 22:31:33 +02:00
cpfeiffer
dbdd7366ed
Reenable the lollipop LE scanner, but after the plain BT scanner
2016-09-26 22:30:15 +02:00
Andreas Shimokawa
cb232638d4
disable new btle scanning, it does not work for me :(
2016-09-26 22:07:46 +02:00
cpfeiffer
0341c7f61f
fix e.printStackTrace() by logging instead
2016-09-26 11:44:08 +02:00