R0rt1z2 / realme-ota

Request and download OTA packages from BBK server(s)
GNU General Public License v3.0
150 stars 49 forks source link

Please add support for Oppo phones. #12

Closed ghost closed 2 years ago

ghost commented 2 years ago
realme-ota CPH2219EEA CPH221920242_11.A.22_0220_202112040144
usage: realme-ota [-h] [-r {0,1,2,3}] [-d DUMP] [-o ONLY] [-s {0,1}] [-v {0,1}] product_model ota_version {1,2,3}
realme-ota: error: the following arguments are required: rui_version
R0rt1z2 commented 2 years ago
realme-ota CPH2219EEA CPH221920242_11.A.22_0220_202112040144
usage: realme-ota [-h] [-r {0,1,2,3}] [-d DUMP] [-o ONLY] [-s {0,1}] [-v {0,1}] product_model ota_version {1,2,3}
realme-ota: error: the following arguments are required: rui_version

Realme and Oppo are using the same endpoints (as well the same header/body structure for the requests) so the tool should work as-is. Your issue (in this case) is that you're missing the last argument (the RUI version, which in this case is the ColorOS version). If it doesn't work let me know and try to send the Oppo OTA.apk.

ghost commented 2 years ago
realme-ota CPH2219EEA CPH221920242_11.A.22_0220_202112040144
usage: realme-ota [-h] [-r {0,1,2,3}] [-d DUMP] [-o ONLY] [-s {0,1}] [-v {0,1}] product_model ota_version {1,2,3}
realme-ota: error: the following arguments are required: rui_version

Realme and Oppo are using the same endpoints (as well the same header/body structure for the requests) so the tool should work as-is. Your issue (in this case) is that you're missing the last argument (the RUI version, which in this case is the ColorOS version). If it doesn't work let me know and try to send the Oppo OTA.apk.

Where can i find the RUI version ? Where you prefer i upload the OTA.apk file ? (Because idk if it is allowed to upload it here as attachment)

ghost commented 2 years ago

I think i now understand for the RUI version, i'm on Android 11, so it's "2" right ? I just zipped and uploaded the OTA.apk file as attachment: OTA.apk.zip

R0rt1z2 commented 2 years ago

I think i now understand for the RUI version, i'm on Android 11, so it's "2" right ? I just zipped and uploaded the OTA.apk file as attachment: OTA.apk.zip

Yeah that's correct, in your case RUI version should be 2. I already tried to request it but it couldn't fetch anything. Would you mind uploading the output of adb shell getprop here please? (remove device-specific info, for instance S/N). Thanks for the OTA.apk, but as I expected, they're using exactly the same header/body/endpoints so it must be something else.

R0rt1z2 commented 2 years ago

Closing due to inactivity.