Metadata-Version: 2.4
Name: oplus-ota
Version: 0.1.0
Summary: Query and download OPPO/OnePlus/realme OTA packages
Keywords: oppo,oneplus,realme,ota,firmware,coloros,oxygenos
Author-Email: Reza Jelveh <agent@jelveh.me>
License-Expression: Apache-2.0
License-File: LICENSE
License-File: NOTICE
Classifier: Environment :: Console
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: System :: Archiving :: Packaging
Project-URL: Homepage, https://github.com/fishing-agents/oplus-ota
Project-URL: Issues, https://github.com/fishing-agents/oplus-ota/issues
Requires-Python: >=3.11
Requires-Dist: typer>=0.12
Requires-Dist: rich>=13
Requires-Dist: httpx>=0.27
Requires-Dist: cryptography>=43
Requires-Dist: questionary>=2
Description-Content-Type: text/markdown

# oplus-ota

Query OPPO/OnePlus/realme OTA servers for the latest full package and download it with aria2c.
Ships the OTA Pulse device catalog (~150 devices, all regions).

```
uv tool install oplus-ota        # or: pipx install oplus-ota
```

Downloads need [aria2c](https://aria2.github.io/); `phone` needs adb.

```
oplus-ota download                     # interactive: pick device (type to filter), then region
oplus-ota devices op11                 # regions and models of a device
oplus-ota regions                      # region -> NV id -> server
oplus-ota query op11                   # latest CN full package: version, patch, size, MD5, changelog, link
oplus-ota query "OnePlus 11" -r eu     # by name; region CN, EU, IN, GLO, ...
oplus-ota query PHB110 -a 15 --json    # by model, older Android group, JSON
oplus-ota download op11 -o ~/ota       # aria2c: 16 connections, resume, MD5 check
oplus-ota download op11 -n             # print the aria2c command only
oplus-ota url op11 -r in               # bare signed link, for scripts
oplus-ota resolve '<downloadCheck link>'  # check a link is still valid
oplus-ota phone                        # update for the adb-connected phone's build
```

`op<N>` is short for `OnePlus <N>`. A missing or ambiguous device or region opens a picker; without a terminal the region defaults to CN.
`--from <ota version>` asks as a given build instead of the group's lowest.
Download links are signed and expire after some hours; query again if aria2c fails.

The protocol and `catalog/*.json` come from [OTA Pulse](https://github.com/RemuruSama/OTA-Pulse) (Apache-2.0), see NOTICE.
