Update auf eine neue Version oder branch

Kein Download möglich - APK muss selbst erstellt werden

Aufgrund der gesetzlichen Regelungen für Medizinprodukte ist AndroidAPS nicht als Download verfügbar. Du kannst die App legal für Dich selbst erstellen, darfst aber keine Kopie an andere weitergeben! Weitere Informationen findest Du auf der FAQ Seite.

Wichtige Hinweise

Übersicht zum Aktualisieren Deiner AndroidAPS-Version

  1. Export your settings from the existing AAPS version on your phone. Vielleicht brauchst Du sie nicht, aber sicher ist sicher.

  2. Update local copy of the AndroidAPS sourcecode (Git->Fetch and Git -> Pull)

  3. Erstelle signierte APK

  4. Transfer the built apk to your phone and install it

  5. Check the version in AndroidAPS

  6. Depending on your BG source make sure to identify receiver in xDrip or use the ‚Build your own Dexcom App‘.

Für den Fall, dass Probleme auftreten, findest Du Lösungsansätze auf der separaten Seite für Fehlerbehebung von Android Studio.

1. Exportiere Deine Einstellungen

See the Export & import settings page if you don’t remember how to do this.

2. Führe ein Update deiner lokalen Version durch

Ab Version 2.7 wurde der Speicherort des Repositories auf https://github.com/nightscout/AndroidAPS geändert. If you are not familiar with git the easiest way for update is remove directory with AndroidAPS on your disk and follow the instructions to do a New clone.

If you have already changed the URL or update from version 2.8.x, follow these steps:

  • Öffne Dein existierendes AndroidAPS Projekt mit Android Studio. Möglicherweise musst Du Dein Projekt wählen. Doppelklicke auf das AndroidAPS Projekt.

    Android Studio - Projekt auswählen

  • Wähle in der Menüleiste von Android Studio Git -> Fetch.

    Android Studio Menü - Git - Fetch

  • Unten rechts wird Dir eine Meldung angezeigt, sobald der Fetch erfolgreich durchgeführt wurde.

    Android Studio Menü - Git - Fetch erfolgreich

  • Wähle nun in der Menüleiste Git -> Pull.

    Android Studio Menü - Git - Pull

  • Lasse alle Optionen wie sie sind (Original/Master) und wähle Pull.

    Android Studio - Git - Pull-Dialog

  • Warte ab, während der Download läuft. Du siehst dazu einen Hinweis in der Fußzeile. Eine Erfolgsmeldung wird angezeigt, so bald erfolgreich heruntergeladen wurde. Hinweis: Die Zahl der Dateien, die aktualisiert wurden, kann variieren! Dies ist kein Hinweis auf einen Download-Fehler.

    Android Studio - Pull erfolgreich

  • Gradle Sync wird ein paar Sekunden benötigen, um einige Abhängigkeiten herunterzuladen. Warte, bis es fertig ist.

    Android Studio - Gradle Sync

3. Erstelle die signierte APK

Your sourcecode is now the current released version. It’s time to build the signed apk from it as described in the build signed apk section.

4. Übertrage die APK-Datei

You need to transfer the apk to your phone so you can install it.

See the instructions for Transfer APK to smartphone

5. APK installieren

Auf dem Smartphone musst Du die Installation aus unbekannten Quellen zulassen. Anleitungen dazu findest Du im Internet (z.B. hier</0a> oder hier). Note: If you completed the build with the same existing key store in Android Studio, then you do not need to remove the existing app on your phone. When you install the apk, follow the prompts to install updates. For other scenarios such as establishing a new key store in Android Studio for your signed apk, you will need to delete the old app before installing the apk.

6. AAPS-Version auf dem Smartphone überprüfen

After you installed the new apk, you can check the AAPS version on your phone by clicking the three dots menu on the top right and then About. You should see the current version.

AAPS version installed

Problembehandlung

If anything goes wrong, don’t panic.

Take a breath!

Then see the separate page troubleshooting Android Studio if your problem is already documented!