Skip to content

Commit 15bfe26

Browse files
committed
Fixed ADB version py script writing new hashes
• Updated ADB version list with ADB 37.0.0
1 parent 89a2c9d commit 15bfe26

2 files changed

Lines changed: 16 additions & 5 deletions

File tree

OFFICIAL_ADB_VERSIONS.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,14 @@ This document lists all official Android Debug Bridge (ADB) platform-tools versi
1010

1111
### Latest Stable Release
1212

13+
#### Platform-Tools 37.0.0 (Unknown date)
14+
**Windows:**
15+
- URL: https://dl.google.com/android/repository/platform-tools_r37.0.0-win.zip
16+
- ZIP SHA-256: 6faad2492081882bc8597c012125fa95d614accd7bfaf1fc8f248be91c0d08cf
17+
- EXE SHA-256: 7035cf5ec7f99f7b5662a9f5395f9dccfc3b6fe42583d0b9550124a0c3496606
18+
19+
---
20+
1321
#### Platform-Tools 36.0.2 (Sep 2025)
1422
**Windows:**
1523
- URL: https://dl.google.com/android/repository/platform-tools_r36.0.2-win.zip

scripts/verify_adb_download.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -790,7 +790,7 @@ def main():
790790
official_entries = []
791791
if not args.sync_official_list:
792792
official_entries = read_official_entries(official_list)
793-
existing_sha256 = {entry["url"]: entry.get("sha256") for entry in official_entries if entry.get("url")}
793+
existing_sha256 = {entry["url"]: entry.get("zip_sha256") for entry in official_entries if entry.get("url")}
794794
known_urls = set(existing_sha256.keys())
795795
releases = get_available_releases(platform=args.platform)
796796

@@ -805,8 +805,10 @@ def merge_entry(entry):
805805
current["url"] = entry["url"]
806806
if entry.get("date") and not current.get("date"):
807807
current["date"] = entry["date"]
808-
if entry.get("sha256") and not current.get("sha256"):
809-
current["sha256"] = entry["sha256"]
808+
if entry.get("zip_sha256") and not current.get("zip_sha256"):
809+
current["zip_sha256"] = entry["zip_sha256"]
810+
if entry.get("exe_sha256") and not current.get("exe_sha256"):
811+
current["exe_sha256"] = entry["exe_sha256"]
810812
releases_by_version[version] = current
811813

812814
for entry in official_entries:
@@ -843,7 +845,7 @@ def merge_entry(entry):
843845
release["url"] = candidates[0]
844846
url = candidates[0]
845847
if url:
846-
current_sha = existing_sha256.get(url) or release.get("sha256")
848+
current_sha = existing_sha256.get(url) or release.get("zip_sha256")
847849
if not current_sha:
848850
missing.append(release)
849851
else:
@@ -926,7 +928,8 @@ def merge_entry(entry):
926928
continue
927929
if entry_url not in known_urls:
928930
entry_copy = dict(entry)
929-
entry_copy["sha256"] = updates.get(entry_url)
931+
entry_copy["zip_sha256"] = updates.get(entry_url)
932+
entry_copy["exe_sha256"] = exe_updates.get(entry_url)
930933
if not entry_copy.get("date") and entry_copy.get("version"):
931934
entry_copy["date"] = release_dates.get(entry_copy["version"])
932935
new_entries.append(entry_copy)

0 commit comments

Comments
 (0)