• Stars
    star
    149
  • Rank 248,619 (Top 5 %)
  • Language
    Python
  • License
    GNU General Publi...
  • Created about 3 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Request and download OTA packages from BBK server(s)

Realme OTA Downloader

License GitHub release (latest by date including pre-releases) GitHub Issues

Requirements

  • Python 3.9 (or newer).

Installation

Windows

Required Windows Terminal or PowerShell.

# (Requires privileges - start Terminal/PowerShell as administrator)
Invoke-WebRequest https://raw.githubusercontent.com/R0rt1z2/realme-ota/master/Install.ps1 | Invoke-Expression

Linux

sudo apt install python3-pip
pip3 install --upgrade git+https://github.com/R0rt1z2/realme-ota

Usage

usage: realme-ota [-h] [-v {0,1,2,3,4,5} | -s] [-r {0,1,2,3}] [-g GUID]
               [-i IMEI [IMEI ...]] [-b] [--old-method] [-d DUMP] [-o ONLY]
               product_model ota_version {1,2,3,4} [nv_identifier]

positional arguments:
  product_model         Product Model (ro.product.name).
  ota_version           OTA Version (ro.build.version.ota).
  {1,2,3,4}             RealmeUI Version (ro.build.version.realmeui).
  nv_identifier         NV (carrier) identifier (ro.build.oplus_nv_id) (if
                        none, provide 0 or omit).

options:
  -h, --help            show this help message and exit
  -v {0,1,2,3,4,5}, --verbosity {0,1,2,3,4,5}
                        Set the verbosity level. Range: 0 (no logging) to 5
                        (debug). Default: 4 (info).
  -s, --silent          Enable silent output (purge logging). Shortcut for
                        '-v0'.

request options:
  -r {0,1,2,3}, --region {0,1,2,3}
                        Use custom region for the request (GL = 0, CN = 1, IN
                        = 2, EU = 3).
  -g GUID, --guid GUID  The guid of the third line in the file
                        /data/system/openid_config.xml (only required to
                        extract 'CBT' in China).
  -i IMEI [IMEI ...], --imei IMEI [IMEI ...]
                        Specify one or two IMEIs for the request.
  -b, --beta            Try to get a test version (IMEI probably required).
  --old-method          Use old method for the request (only applies if
                        rui_version >= 2).

output options:
  -d DUMP, --dump DUMP  Save request response into a file.
  -o ONLY, --only ONLY  Only show the desired value from the response.

Additional notes

  • If your request returns flow limit or status code 500, try to wait a few minutes and then request again.
  • You can use the ALL_PROXY environment variable to send the request via a proxy (useful if an update can't be found in your country). On Windows you can run set ALL_PROXY=ADDRESS:PORT, while on Linux and MacOS you can do export ALL_PROXY=ADDRESS:PORT.
  • Since Android 11 (RUI2), Realme started using components, which means you won't be able to get a full OTA link.
  • The --beta option might not work correctly, it has not been fully tested!

License

  • This tool is licensed under the GNU (v3) General Public License. See LICENSE for more details.

More Repositories

1

AutomatedRoot

Root your MediaTek device with CVE-2020-0069
Python
145
star
2

GrindrPlus

Xposed Module that unlocks and adds unique features to the Grindr app, enhancing user experience
Kotlin
94
star
3

lkpatcher

Streamline tool and module to patch bootloader (LK) images of MTK device(s).
Python
81
star
4

hisi-nve

Read and write Huawei's nvme image with ADB
C
37
star
5

mtk-bpf-patcher

Python
37
star
6

oplus-unlock

DEPRECATED. USE https://github.com/R0rt1z2/lkpatcher INSTEAD.
Python
34
star
7

amazon-tethered-unlock

Patch bootloader/preloader to temporarily unlock the device by booting the images with mtkclient.
Python
16
star
8

liblk

Tiny and simple library to tinker with MediaTek bootloader images (LK).
Python
16
star
9

kaeru

Custom LK payload for MTK devices
C
16
star
10

amonet

Python
12
star
11

hisi-playground

Various scripts and tools to tinker with Kirin (hisi) devices.
Python
11
star
12

nvme-parser

Read, write, parse and dump your nvme block through adb.
C
11
star
13

Froggy

Experience the Google Weather Frog animations, no Google Nest required!
C++
9
star
14

android_bootable_mstar

Grundig Vision 7, 4K - Amazon Fire TV Bootloader (u-boot) Source Code
C
8
star
15

android_device_amazon_sheldon

TWRP Device Tree for the Fire TV Stick Lite & Fire TV Stick 3rd gen
Shell
8
star
16

kamakiri

MediaTek bootrom exploit
C
8
star
17

TimeoutPDoS

PDoS using race condition in ActivityManager's CoreSettingsObserver
Java
7
star
18

patch2h

Convert MediaTek Firmware Patch files into standard C/C++ headers.
Python
7
star
19

android_device_lge_mcv5a

TWRP device tree for the LG Q7 (MT6755)
C++
6
star
20

android_kernel_huawei_franklin

Kernel Sources for the Huawei Y9 A (MT6768)
C
6
star
21

android_bootable_bootloader_mt8163

LK for BQ MT8163 devices
C
5
star
22

CVE-2017-0505-mtk

Makefile
5
star
23

lk_parser

MediaTek LK ("Little-Kernel") parser.
Python
5
star
24

android_device_huawei_warsaw

TWRP Device tree for the Huawei P10 Lite
Makefile
5
star
25

android_kernel_amazon_sheldon

Kernel Source Code for the Amazon Fire TV Stick 3rd Gen & Fire TV Stick Lite 1 (2020)
C
5
star
26

huawei-unlock

Unlock your Huawei device with ADB (CVE-2019-2215)
C
5
star
27

android_vendor_mediatek_trustzone

C
4
star
28

android_kernel_amazon_clara

Grundig Vision 7, 4K - Amazon Fire TV Kernel Source Code
C
3
star
29

twrp_device_amazon_sloane

TWRP Device Tree for the Amazon Fire TV 2 (sloane)
Makefile
3
star
30

su98

C
2
star
31

get_bl_ver

Identify the bootloader version of Fire HD10 2019
Python
2
star
32

android_kernel_huawei_warsaw

Android Kernel Source for the Huawei P10 Lite (codenamed "warsaw")
C
2
star
33

bumper

2
star
34

MT8135

My personal research notes for the MediaTek MT8135 SoC
2
star
35

ping_pong

Processing
1
star
36

android_device_amazon_giza

TWRP device tree for the Amazon Fire HD8 2016
Shell
1
star
37

android_vendor_amazon_mt8127-common

Makefile
1
star
38

badcrc

C
1
star
39

OTA

Shell
1
star
40

amazon_quartz_dump

Shell
1
star
41

dmx8290_gcpu

MediaTek GCPU (source code?)
C
1
star
42

power-hisi

C++
1
star
43

android_kernel_wiko_s5030

Kernel Source Code for the Wiko Lenny 2
C
1
star
44

updapp-extract

UPDATE.APP extractor written in GO
1
star