adb), and the vendor's official support/update web page open in a browser tab.
Settings → About phone → tap Build number 7 times. Expected message on screen: You are now a developer!adb (Android Debug Bridge — the command-line tool that talks to the phone over USB) installed from the vendor's developer site under "SDK Platform-Tools", then added to PATH.https://<vendor-domain>/support/<device-support-page>. Do not trust reseller or forum pages for the number of years.Example: on a Windows machine, after extracting Platform-Tools to C:\platform-tools, add the folder to PATH and confirm adb is reachable:
adb version
Expected output: Android Debug Bridge version 1.0.4x followed by an Installed as ... line showing the full path to the executable. Version numbers change with each release — check the developer page for the current one.
If you do not have a spare phone to test on, you can inspect an Android image on a desktop machine instead and read the same property strings there; see How to Run Android Apps and Games on PC: Emulators, Waydroid, and Cloud Services.

What to do: collect the raw facts from the device itself, twice — once through the Settings UI, once through adb.
Path A, no computer needed: open Settings → About phone → Android version. One screen shows the Android version plus entries usually labelled Security update and Google Play system update. Field names vary between vendors — check with the vendor's documentation for your exact menu labels. On Samsung devices the equivalent path is Settings → About phone → Software information, which also shows the One UI version and a Security patch level line.
Path B, with the phone connected over USB and USB debugging enabled (Settings → System → Developer options → USB debugging):
adb shell getprop ro.product.manufacturer
adb shell getprop ro.product.model
adb shell getprop ro.product.name
adb shell getprop ro.build.version.release
adb shell getprop ro.build.version.sdk
adb shell getprop ro.build.version.security_patch
Expected output — one value per line, in this order:
Google
Pixel 8
shiba
15
35
2025-09-01
Why: these six strings are the ground truth. ro.product.model is what the vendor's support page indexes, and ro.build.version.security_patch is the newest month for which the phone received security fixes. Without them you are guessing from marketing copy.
How to check: you get six non-empty lines. The security patch value must match the format YYYY-MM-DD. Save the output to a file so the numbers cannot drift:
adb shell getprop > device-props.txt
The file device-props.txt now contains hundreds of lines; the six you need are readable with grep -i security_patch device-props.txt (Linux/macOS) or findstr /i security_patch device-props.txt (Windows).
Example: if the last line prints 2025-09-01, the device is patched to September 2025 — compare that month against today's date to see how far behind it is.
What to do: take the model number from Step 1 and look it up on the vendor's official page, then write down three things: years of OS upgrades, years of security updates, and any published end-of-support date.
Why: update commitments are published per model family, not per device, and they are counted from the model's launch date — not from your purchase date. Confirm the exact wording on the vendor page, because "7 years" may mean OS upgrades only, security patches only, or both.
Families with a published 7-year commitment:
| Vendor | Model family with a 7-year commitment | What the commitment covers | Where to confirm |
|---|---|---|---|
| Pixel 8, Pixel 8 Pro, Pixel 8a and later models | 7 years of OS upgrades, security updates, and Feature Drops | the vendor's official device-support page | |
| Samsung | Galaxy S24 series and later flagship models | 7 years of OS upgrades and security updates | the vendor's official security-updates page |
Example: for a Galaxy S24 whose ro.product.model reads SM-S921B, the matching entry on the vendor's security-updates page is the Galaxy S24 family. If the page lists your model only under a shorter window, your device is not covered by the 7-year policy regardless of what a shop page claims.
This table records only the families whose 7-year commitments are published; the list changes with every launch cycle. For any model not shown above — check with the vendor's documentation.
How to check: the page must contain the exact model name or model number from Step 1 and a number of years or an explicit date. If you can only find a general marketing page with no per-model entry, you have not confirmed anything yet.

What to do: convert the vendor's end date into months from today, then store it somewhere that will remind you before the phone stops receiving patches.
from datetime import date
end_of_support = date(2030, 10, 4) # replace with the date from the vendor page
today = date.today()
months = (end_of_support.year - today.year) * 12 + (end_of_support.month - today.month)
print(f"{months} months left")
Expected output, for a run in early 2026:
57 months left
Why: a date such as 2030-10-04 means nothing in daily use, while "57 months left" tells you immediately whether to plan a purchase, a battery replacement, or a trade-in before the device falls out of security support.
How to check: the printed number must be positive and must shrink by one each month. Fill in the checklist and keep it next to the support page link:
ro.product.model recorded from adb shell getpropro.build.version.security_patch recordedExample: if the script prints 57 months left, set a calendar entry 45 months from now titled "start shopping for replacement" — that leaves a full year of overlap with the still-supported device.
Problem. The computer does not see the phone at all.
error: no devices/emulators foundSettings → System → Developer options → USB debugging, then pull down the notification shade and change the USB mode to File transfer / Android Auto. Re-run:adb kill-server && adb devices
Expected output shows one serial number followed by device. An empty list after this means the cable or the port is the problem — try a different cable before anything else.
Problem. The phone shows up but every command is refused.
error: device unauthorized. Please check the confirmation dialog on your device.Allow USB debugging?, tick Always allow from this computer and tap Allow. If no dialog appears, revoke the stale key and reconnect:adb kill-server
adb devices
Then disconnect and reconnect the cable. The dialog reappears on the phone screen.
Problem. The security patch property comes back empty.
adb shell getprop ro.build.version.security_patch prints a blank line instead of a date.adb shell getprop | grep -i security_patch
On Windows use adb shell getprop | findstr /i security_patch. If several lines appear, use the one formatted as YYYY-MM-DD and cross-check it against the Security update line in Settings → About phone → Android version. If both are empty, that build does not expose the patch level — check with the vendor's documentation.
You now have the device's exact model, its current security patch month, the vendor's published commitment for that model, and a concrete count of months remaining. Once the support window is confirmed, the next practical step is deciding what to install on the phone while it is still receiving patches — see Best AI apps for Android in 2026 for options that match a supported device.
How do I check how many years of updates my Android phone will get?
Read ro.product.model with adb shell getprop ro.product.model (or Settings → About phone → Model), then find that exact model on the vendor's official support or security-updates page. The page states the number of years of OS upgrades and security updates; count from the model's launch date, not your purchase date.
Which Android phones get 7 years of updates?
The families with a published 7-year commitment are the Google Pixel 8, Pixel 8 Pro, Pixel 8a and later models, and the Samsung Galaxy S24 series and later flagship models. The list changes each launch cycle, so verify your exact model number on the vendor page.
What does the security patch date in About phone actually mean?
It is the newest month for which the device has received security fixes, stored in the property ro.build.version.security_patch. It is not the Android version number — a phone can run an older Android release and still carry a recent patch date, or the reverse.
Does the update counter start when I buy the phone?
No. The policy window is measured from the model's launch date, so a phone bought two years after launch has roughly two years less support remaining. Confirm the exact wording of the start date on the vendor's page before you rely on the number.