🇩🇪 FP4 Diabetesmanagment mit der App CamAPS FX Probleme nach A15 Upgrade

German (deepl) :

Hallo,
Ich befinde mich in einer ähnlichen Situation wie ihr alle: FP4 und Freestyle Libre 2+ mit einer Verbindung, die ständig abbricht.
Hier sind die Ergebnisse, die ich nach einigen Manipulationen ĂĽber ADB erhalten habe:

  • Stabile Verbindung die ganze Nacht ĂĽber
  • Wiederherstellung nach Unterbrechung, wenn ich in den Flugmodus wechsle und ihn wieder deaktiviere
    Dadurch ist der Sensor wieder nutzbar wie unter Android 13.
Schritte, um diesen Zustand zu erreichen:
  • Download von ADB ĂĽber https://developer.android.com/tools/releases/platform-tools?hl=de#downloads
  • Verbindung des Telefons per USB mit dem PC
  • Befehl 1: Name des LibreLink-Pakets finden:
    • adb shell pm list packages | grep -i libre
    • Der Wert wird sein: package:<paket.name>, ersetzen Sie in den folgenden Befehlen COM.PACKAGE.LIBRELINK durch den tatsächlichen Paketnamen.
  • Befehl 2: ĂśberprĂĽfung der Berechtigungen:
    • adb shell dumpsys package COM.PACKAGE.LIBRELINK | grep -E "permission|granted"
  • Befehle 3: HinzufĂĽgen der Berechtigungen:
    • adb shell pm grant COM.PACKAGE.LIBRELINK android.permission.BLUETOOTH_CONNECT
    • adb shell pm grant COM.PACKAGE.LIBRELINK android.permission.BLUETOOTH_SCAN
    • adb shell pm grant COM.PACKAGE.LIBRELINK android.permission.BLUETOOTH_ADVERTISE
    • adb shell pm grant COM.PACKAGE.LIBRELINK android.permission.ACCESS_FINE_LOCATION
    • adb shell pm grant COM.PACKAGE.LIBRELINK android.permission.ACCESS_COARSE_LOCATION
    • adb shell pm grant COM.PACKAGE.LIBRELINK android.permission.POST_NOTIFICATION
  • Befehl 4: Deaktivierung des Ruhezustands der Anwendung:
    • adb shell dumpsys deviceidle whitelist +COM.PACKAGE.LIBRELINK
  • Befehl 5: Erlaubnis zur AusfĂĽhrung im Hintergrund:
    • adb shell cmd appops set COM.PACKAGE.LIBRELINK RUN_IN_BACKGROUND allow
    • adb shell cmd appops set COM.PACKAGE.LIBRELINK RUN_ANY_IN_BACKGROUND allow
  • Befehl 6: Deaktivierung der Netzwerkbeschränkungen im Hintergrund:
    • adb shell cmd netpolicy add restrict-background-whitelist COM.PACKAGE.LIBRELINK
  • Befehl 7: ĂśberprĂĽfung des Standby Bucket-Status (sollte 5 oder 10 sein):
    • adb shell am get-standby-bucket COM.PACKAGE.LIBRELINK
  • Aktion 8: Anwendung auf “Nicht eingeschränkt” fĂĽr die Akkuoptimierung setzen:
    • Gehen Sie zu den Einstellungen der Anwendung, Akkuverbrauch, klicken Sie auf “Im Hintergrund zulassen”, wählen Sie “Nicht eingeschränkt”.
  • Befehl 9: Neustart der Anwendung:
    • adb shell am force-stop COM.PACKAGE.LIBRELINK
    • adb shell monkey -p COM.PACKAGE.LIBRELINK 1
English (deepl)

Hello,
I’m in a similar situation to all of you: FP4 and Freestyle Libre 2+ with a connection that keeps dropping.
Here are the results I obtained after some manipulations via ADB:

  • Stable connection throughout the night
  • Recovery after disconnection if I switch to airplane mode and disable it
    This makes the sensor usable again as it was on Android 13.

Steps to achieve this state:

  • Download ADB from https://developer.android.com/tools/releases/platform-tools#downloads
  • Connect the phone to the PC via USB
  • Command 1: Find the LibreLink package name:
    • adb shell pm list packages | grep -i libre
    • The value will be: package:<package.name>, in the following commands, replace COM.PACKAGE.LIBRELINK with the actual package name.
  • Command 2: Check permissions:
    • adb shell dumpsys package COM.PACKAGE.LIBRELINK | grep -E "permission|granted"
  • Commands 3: Add permissions:
    • adb shell pm grant COM.PACKAGE.LIBRELINK android.permission.BLUETOOTH_CONNECT
    • adb shell pm grant COM.PACKAGE.LIBRELINK android.permission.BLUETOOTH_SCAN
    • adb shell pm grant COM.PACKAGE.LIBRELINK android.permission.BLUETOOTH_ADVERTISE
    • adb shell pm grant COM.PACKAGE.LIBRELINK android.permission.ACCESS_FINE_LOCATION
    • adb shell pm grant COM.PACKAGE.LIBRELINK android.permission.ACCESS_COARSE_LOCATION
    • adb shell pm grant COM.PACKAGE.LIBRELINK android.permission.POST_NOTIFICATION
  • Command 4: Disable app sleep mode:
    • adb shell dumpsys deviceidle whitelist +COM.PACKAGE.LIBRELINK
  • Command 5: Allow background execution:
    • adb shell cmd appops set COM.PACKAGE.LIBRELINK RUN_IN_BACKGROUND allow
    • adb shell cmd appops set COM.PACKAGE.LIBRELINK RUN_ANY_IN_BACKGROUND allow
  • Command 6: Disable background network restrictions:
    • adb shell cmd netpolicy add restrict-background-whitelist COM.PACKAGE.LIBRELINK
  • Command 7: Check Standby Bucket status (should be 5 or 10):
    • adb shell am get-standby-bucket COM.PACKAGE.LIBRELINK
  • Action 8: Set the app to “Unrestricted” for battery optimization:
    • Go to the app settings, battery usage, click on allow in background, choose “Unrestricted”.
  • Command 9: Restart the application:
    • adb shell am force-stop COM.PACKAGE.LIBRELINK
    • adb shell monkey -p COM.PACKAGE.LIBRELINK 1
French

Bonjour,

Je suis dans un cas similaire Ă  vous tous : FP4 et Freestyle Libre 2+ avec une connexion qui ne fait que se couper.

Voici les résultats que j’ai obtenus après quelques manipulations via ADB :

  • Connexion stable durant toute la nuit
  • Reprise après coupure si je passe en mode avion et je le dĂ©sactive

Ce qui fait que le capteur est de nouveau exploitable comme quand j’étais en version Android 13.

Actions pour arriver à cet état :

  • TĂ©lĂ©chargement de ADB via https://developer.android.com/tools/releases/platform-tools?hl=fr#downloads
  • Connexion du tĂ©lĂ©phone en USB au PC
  • Commande 1 : trouver le nom du paquet LibreLink :
    • adb shell pm list packages | grep -i libre
    • La valeur sera : package:<nom.du.paquet>, dans la suite des commandes, remplacez COM.PACKAGE.LIBRELINK par le vrai non du paquet.
  • Commande 2 : vĂ©rification des permissions :
    • adb shell dumpsys package COM.PACKAGE.LIBRELINK | grep -E "permission|granted"
  • Commandes 3 : ajout des permissions :
    • adb shell pm grant COM.PACKAGE.LIBRELINK android.permission.BLUETOOTH_CONNECT
    • adb shell pm grant COM.PACKAGE.LIBRELINK android.permission.BLUETOOTH_SCAN
    • adb shell pm grant COM.PACKAGE.LIBRELINK android.permission.BLUETOOTH_ADVERTISE
    • adb shell pm grant COM.PACKAGE.LIBRELINK android.permission.ACCESS_FINE_LOCATION
    • adb shell pm grant COM.PACKAGE.LIBRELINK android.permission.ACCESS_COARSE_LOCATION
    • adb shell pm grant COM.PACKAGE.LIBRELINK android.permission.POST_NOTIFICATION
  • Commande 4 : dĂ©sactivation de la mise en veille de l’application :
    • adb shell dumpsys deviceidle whitelist +COM.PACKAGE.LIBRELINK
  • Commande 5 : autorisation de l’exĂ©cution en arrière-plan :
    • adb shell cmd appops set COM.PACKAGE.LIBRELINK RUN_IN_BACKGROUND allow
    • adb shell cmd appops set COM.PACKAGE.LIBRELINK RUN_ANY_IN_BACKGROUND allow
  • Commande 6 : dĂ©sactivation des restrictions rĂ©seau en arrière-plan :
    • adb shell cmd netpolicy add restrict-background-whitelist COM.PACKAGE.LIBRELINK
  • Commande 7 : vĂ©rification de l’état du Standby Bucket (doit ĂŞtre Ă  5 ou 10)
    • adb shell am get-standby-bucket COM.PACKAGE.LIBRELINK
  • Action 8 : mettre l’application en '“sans restriction” sur l’optimisation batterie
    • Aller sur les paramètres de l’application, consommation de batterie, cliquer sur autoriser en arrière-plan, choisir “sans restriction”.
  • Commande 9 : redĂ©marrage de l’application
    • adb shell am force-stop COM.PACKAGE.LIBRELINK
    • adb shell monkey -p COM.PACKAGE.LIBRELINK 1

Pour tester, j’ai l’application Juggluco qui affiche une notification permanente avec le taux de Glucose, elle indique aussi s’il y a une perte de connexion.

En espérant que d’autres puissent aboutir au même résultat

2 Likes