From 5b03e7738496064ff5b359b9563af6ae2b9416ce Mon Sep 17 00:00:00 2001 From: oliexdev Date: Tue, 5 Aug 2025 20:03:35 +0200 Subject: [PATCH] Fix package visibility for Android >= 11, see issue https://github.com/oliexdev/openScale-sync/issues/7 The sync apps were not visible to the main app on Android 11+ due to new package visibility restrictions. This change adds the necessary `` elements to `AndroidManifest.xml` to declare the sync app packages. Additionally, the `ComponentName` for the `SyncService` is now hardcoded to the correct FQCN `com.health.openscale.sync.core.service.SyncService` to avoid issues with different package names for the sync apps (e.g., `com.health.openscale.sync.oss`). --- android_app/app/src/main/AndroidManifest.xml | 5 +++++ .../main/java/com/health/openscale/core/OpenScale.java | 8 ++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/android_app/app/src/main/AndroidManifest.xml b/android_app/app/src/main/AndroidManifest.xml index 96d07d99..a15e8101 100644 --- a/android_app/app/src/main/AndroidManifest.xml +++ b/android_app/app/src/main/AndroidManifest.xml @@ -22,6 +22,11 @@ + + + + +