From 179b483dce62d29b9032b72334f6ded4ffd7afd2 Mon Sep 17 00:00:00 2001 From: vanous Date: Sun, 22 May 2022 21:10:41 +0200 Subject: [PATCH] save. didn't find a way to hook set state yet --- app/src/main/AndroidManifest.xml | 8 +++ .../GBDeviceEventDeviceSystemEvent.java | 29 ++++++++ .../gadgetbridge/impl/GBDevice.java | 1 + .../service/AbstractDeviceSupport.java | 20 ++++++ .../GBDeviceSystemEventReceiver.java | 70 +++++++++++++++++++ 5 files changed, 128 insertions(+) create mode 100644 app/src/main/java/nodomain/freeyourgadget/gadgetbridge/deviceevents/GBDeviceEventDeviceSystemEvent.java create mode 100644 app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/receivers/GBDeviceSystemEventReceiver.java diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 6a424dfb7..9e6eef9f1 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -420,6 +420,14 @@ android:name=".database.PeriodicExporter" android:enabled="true" android:exported="false" /> + + + + + +