Skip to content

Commit 89fff1f

Browse files
committed
Android developer verification
1 parent ea091a8 commit 89fff1f

9 files changed

Lines changed: 150 additions & 2 deletions

File tree

docs/EN/Getting-Started/PreparingForAaps.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,3 +250,8 @@ Samsung has an unfortunate track record of forcing updates on their phones, whic
250250
There have been several reports of **AAPS** being shut down arbitrarily by Google Play Protect every morning. If this happens, you will have to go to the Google Play options and disable **Google Play Protect**. Not all phone models or all Android versions are affected.
251251
```
252252

253+
```{admonition} Android developer verification
254+
:class: note
255+
From September 2026, Google is gradually introducing [Android developer verification](#android-developer-verification), which changes how a self-built app is installed on the phone. Building **AAPS** is not affected, and free installation methods remain available — see the linked page for details.
256+
```
257+

docs/EN/GettingHelp/GeneralTroubleshooting.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ Ignore it: More details, Install anyway.
3434

3535
![Google Play Protect warning](../images/troubleshooting/InstallGPP.png)
3636

37+
If the installation is **blocked** with a message about an unverified developer (rather than just a warning), see [Android developer verification](#android-developer-verification) for the free installation methods.
38+
3739
### Settings
3840
* Profile
3941

docs/EN/Maintenance/DocumentationUpdate.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Docs updates & changes
22

3+
## July 2026
4+
5+
- New page [Android developer verification](#android-developer-verification): impact of Google's upcoming verification requirement on installing self-built apps, with free installation methods (ADB, advanced flow, limited distribution account) @psonnera
6+
37
## June 2026
48

59
- [Browser Build](#browser-build): restructured into a decision-first, multi-page flow (Fork → keystore Option 1/Option 2 with a dedicated page per device → Google Drive → Build → Troubleshooting); removed nested tabs and made installing File Manager Plus a prominent step @psonnera

docs/EN/Maintenance/UpdateBrowserBuild.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,9 @@ AndroidAPS [here](https://github.com/nightscout/AndroidAPS/releases)
9090

9191
![Google Drive Location](../images/update/CI/GitHubActions5.png)
9292

93+
```{note}
94+
From September 2026, Google's [Android developer verification](#android-developer-verification) may block installing the APK by tapping the file, depending on your country. Free workarounds are explained on that page.
95+
```
9396

9497
Continue [here](#Update-to-new-version-check-aaps-version-on-phone)
9598

docs/EN/Maintenance/UpdateComputerBuild.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ If you completed the build with the same existing key store in Android Studio, t
8989
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. **Make sure to export your settings!**
9090
```
9191

92-
See the instructions for [transferring and installing AAPS](../SettingUpAaps/TransferringAndInstallingAaps.md)
92+
See the instructions for [transferring and installing AAPS](../SettingUpAaps/TransferringAndInstallingAaps.md). Where Google's [Android developer verification](#android-developer-verification) is enforced (from September 2026, depending on your country), install with [ADB](#android-developer-verification-adb) instead of tapping the APK file.
9393

9494
Continue [here](#Update-to-new-version-check-aaps-version-on-phone).
9595

Lines changed: 124 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
1+
(android-developer-verification)=
2+
3+
# Android developer verification
4+
5+
Google is introducing **Android developer verification**: on most Android phones, apps will only install if they were registered with Google by a verified developer. This also applies to apps installed from an APK file ("sideloading") — which is how you install the **AAPS** app you built yourself.
6+
7+
This page explains what changes, when, and the **free** ways to keep installing and updating **AAPS** on your phone.
8+
9+
```{contents} Table of contents
10+
:depth: 1
11+
:local: true
12+
```
13+
14+
## What is changing
15+
16+
Today, you install **AAPS** by copying the APK file to your phone and tapping it. In the future, when you do this on a phone with Google services (a "certified" Android device — virtually every phone sold with the Play Store), Android will check whether the app comes from a developer registered with Google. If not, the normal installation is blocked.
17+
18+
**The check happens when an app is installed or updated.** It does not remove apps that are already installed and running.
19+
20+
Google is rolling this out gradually:
21+
22+
| When | What happens |
23+
|------|--------------|
24+
| August 2026 | Free "limited distribution" developer accounts open worldwide |
25+
| September 30, 2026 | Verification is enforced in **Brazil, Indonesia, Singapore and Thailand** |
26+
| 2027 | Enforcement expands to the **rest of the world** |
27+
28+
Details are published by Google on the [Android developer verification](https://developer.android.com/developer-verification) pages, including a [FAQ](https://developer.android.com/developer-verification/guides/faq). Google may still adjust dates and details; this page will be updated as the rollout progresses.
29+
30+
## Does this affect me?
31+
32+
- **Building AAPS is not affected at all.** The [browser build](#browser-build), the [Android Studio build](ComputerBuild.md) and the [CLI build](CLIBuild.md) work exactly as before, and your keystore does not change.
33+
- **Your current AAPS keeps running.** Verification is only checked when installing or updating an app.
34+
- **If you live in Brazil, Indonesia, Singapore or Thailand:** installing or updating **AAPS** by tapping the APK file will be blocked from September 30, 2026. Use one of the [free installation methods](#android-developer-verification-free-methods) below.
35+
- **If you live anywhere else:** nothing changes for you before 2027. You have time, but it is worth reading this page so the change does not surprise you when you update **AAPS**.
36+
37+
(android-developer-verification-free-methods)=
38+
39+
## Free ways to install AAPS
40+
41+
You do **not** need to pay Google anything to keep using **AAPS**. There are three free methods; pick the one that matches your situation.
42+
43+
```{admonition} Which method should I use?
44+
:class: tip
45+
- You built **AAPS** with **Android Studio or the command line** (so you have a computer): use [ADB](#android-developer-verification-adb). It is exempt from verification, has no limits, and needs no Google account.
46+
- You built **AAPS** with the **browser build** and have no computer available: use the [advanced flow](#android-developer-verification-advanced-flow) on your phone.
47+
- You prefer to register with Google so the normal "tap the APK" installation keeps working: use a [free limited distribution account](#android-developer-verification-limited-account) (available from August 2026).
48+
```
49+
50+
(android-developer-verification-adb)=
51+
52+
### Option 1: Install with ADB (computer needed)
53+
54+
ADB (Android Debug Bridge) is Google's official tool for installing apps from a computer onto a phone with a USB cable. Google has confirmed that **apps installed with ADB do not require verification** — there is no waiting period, no device limit and no registration.
55+
56+
One-time preparation:
57+
58+
1. On your phone, enable the hidden developer options: go to **Settings** > **About phone** (on some phones **Software information**) and tap **Build number** seven times, until the phone confirms you are a developer.
59+
1. Go back to the main **Settings**, open the new **Developer options** entry and enable **USB debugging**.
60+
1. On your computer, make sure ADB is available:
61+
- If you use **Android Studio**, ADB is already installed with it.
62+
- Otherwise, download Google's free [SDK Platform Tools](https://developer.android.com/tools/releases/platform-tools) and unzip the folder. No installation is needed; ADB is the `adb` program inside that folder.
63+
64+
Installing (and later updating) **AAPS**:
65+
66+
1. Connect the phone to the computer with a USB cable.
67+
1. On the phone, accept the **Allow USB debugging?** prompt (the first time only).
68+
1. On the computer, open a terminal (command prompt) in the folder containing ADB and the **AAPS** APK file, and run:
69+
70+
```
71+
adb install -r app-full-release.apk
72+
```
73+
74+
Replace `app-full-release.apk` with the actual name of your APK file. The `-r` option updates an already installed **AAPS** while keeping all its data and settings.
75+
76+
1. Wait for `Success` to be displayed. **AAPS** is now installed on your phone.
77+
78+
The same command is used for every future update. The [Wear OS pages](../WearOS/WearOsSmartwatch.md) already use ADB in the same way to install the watch app.
79+
80+
(android-developer-verification-advanced-flow)=
81+
82+
### Option 2: The "advanced flow" on your phone (no computer needed)
83+
84+
Google provides an escape hatch for experienced users who understand the risks of installing unverified apps, called the **advanced flow**. It is a one-time setup on the phone itself:
85+
86+
1. Enable **Developer Mode** in the phone settings (see step 1 of the ADB method above).
87+
1. Confirm on the phone that you want to allow installing apps from unverified developers, and that nobody is pressuring or guiding you to do this (this is a protection against scammers).
88+
1. The phone imposes a **one-day waiting period**, after which you confirm again with your fingerprint, face unlock or PIN.
89+
1. You can allow unverified installations for 7 days or indefinitely.
90+
91+
After this setup, installing the **AAPS** APK works as it does today, with one extra warning that the app is from an unverified developer — choose **Install anyway**.
92+
93+
```{note}
94+
The advanced flow becomes available on phones when verification is enforced in your region. Google may still change the exact screens and steps; this section will be updated with screenshots once the final version is available.
95+
```
96+
97+
(android-developer-verification-limited-account)=
98+
99+
### Option 3: Register with Google (free limited distribution account)
100+
101+
Google offers a **free** developer account type for hobbyists and personal use, called a **limited distribution account**:
102+
103+
- You only need an email address — **no government ID** and **no fee** (unlike the paid developer account, which is not needed for personal **AAPS** use).
104+
- You register your app and authorize the phones it may be installed on, up to **20 devices**, through a handshake with a QR code or link between the phone and Google's Android Developer Console.
105+
- Once registered, the normal installation (tapping the APK file) works again on the authorized phones.
106+
107+
```{warning}
108+
Limited distribution accounts open worldwide in **August 2026** (early access is currently closed). Google has also not yet explained how registration will work when many people build the same open-source app: every self-built **AAPS** uses the same package name (`info.nightscout.androidaps`) with a different signing key, and Google's FAQ states that a package name already in use by others may require additional review.
109+
110+
For these reasons, step-by-step instructions cannot be written yet. This section will be completed when the registration is open and has been tested with **AAPS**. In the meantime, ADB and the advanced flow above are reliable alternatives.
111+
```
112+
113+
## What does not change
114+
115+
- Building **AAPS** yourself, with any of the three [build methods](BuildingAaps.md).
116+
- Your GitHub account, your fork and your keystore.
117+
- Your installed **AAPS** app, your settings and your [objectives](CompletingTheObjectives.md).
118+
- Phones without Google services, and [ADB installations](#android-developer-verification-adb) in general.
119+
120+
## Where to get help
121+
122+
1. **Read** Google's [developer verification FAQ](https://developer.android.com/developer-verification/guides/faq) for questions about the verification itself.
123+
2. **Ask** on the *#AAPS* channel on [Discord](https://discord.gg/4fQUWHZ4Mw), or in one of the other [community channels](../GettingHelp/WhereCanIGetHelp.md), if an installation is blocked.
124+
3. When asking for help, include your phone make and model, Android version, your country, and the exact message displayed when the installation fails.

docs/EN/SettingUpAaps/BrowserBuildAPK.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,4 +85,8 @@ Variants ending with “Debug” indicates that the APK will be built in debug m
8585

8686
Once the build succeeds, the apk is saved to your Google Drive. Continue with [Transferring and Installing AAPS](TransferringAndInstallingAaps.md).
8787

88+
```{note}
89+
From September 2026, Google's [Android developer verification](#android-developer-verification) may block installing the APK by tapping the file, depending on your country. Free workarounds are explained on that page.
90+
```
91+
8892
If anything goes wrong, see [Browser build troubleshooting](../GettingHelp/BrowserBuildTroubleshooting.md). To include a specific commit in your build, see [cherry-pick a commit](#github-cherry-pick).

docs/EN/SettingUpAaps/TransferringAndInstallingAaps.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ There are several ways to transfer the **AAPS** APK file from your computer to t
1313

1414
Please note that transfer by email might cause difficulties, and is discouraged.
1515

16+
```{admonition} Android developer verification
17+
:class: warning
18+
Google is rolling out [Android developer verification](#android-developer-verification) from September 2026 (starting in Brazil, Indonesia, Singapore and Thailand; worldwide in 2027). Where it is enforced, installing an APK by tapping the file — as described in both options below — is blocked. In that case, install with [ADB](#android-developer-verification-adb) or one of the other free methods explained on that page.
19+
```
20+
1621
## Option 1. Use Google drive to transfer files
1722

1823
Open [Google.com](https://www.google.com/) in your web browser and login to your Google Account.

docs/EN/index.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Section **1) Getting Started**, the [Introduction](Getting-Started/Introduction.
2121

2222
Now that you have a solid understanding of the process, you can start assembling your **AAPS** loop.
2323

24-
Section **2) Build the app** explains why you need to build the **AAPS** app yourself rather than just downloading it, and takes you step-by-step through [building it](./SettingUpAaps/BuildingAaps.md) (using a browser, Android Studio, or the command line) and then transferring and installing it on your phone.
24+
Section **2) Build the app** explains why you need to build the **AAPS** app yourself rather than just downloading it, and takes you step-by-step through [building it](./SettingUpAaps/BuildingAaps.md) (using a browser, Android Studio, or the command line) and then transferring and installing it on your phone. It also explains [Android developer verification](./SettingUpAaps/AndroidDeveloperVerification.md), a change Google is rolling out from September 2026 that affects how self-built apps are installed.
2525

2626
Section **3) Setting up the reporting server** covers choosing and [setting up your reporting server](./SettingUpAaps/SettingUpTheReportingServer.md) (Nightscout or Tidepool) so you can review and share your data.
2727

@@ -97,6 +97,7 @@ Building AAPS <./SettingUpAaps/BuildingAaps.md>
9797
- Android Studio Build <./SettingUpAaps/ComputerBuild.md>
9898
- CLI Build <./SettingUpAaps/CLIBuild.md>
9999
Transferring and Installing AAPS <./SettingUpAaps/TransferringAndInstallingAaps.md>
100+
Android Developer Verification <./SettingUpAaps/AndroidDeveloperVerification.md>
100101
```
101102
```{toctree}
102103
:caption: 3) Setting up the reporting server

0 commit comments

Comments
 (0)