Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generic fota scraping script #3

Open
haropng opened this issue Sep 20, 2024 · 14 comments
Open

Generic fota scraping script #3

haropng opened this issue Sep 20, 2024 · 14 comments

Comments

@haropng
Copy link

haropng commented Sep 20, 2024

For many devices using adups, is there a universal script to achieve crawling OTA?

@TBM13
Copy link
Member

TBM13 commented Sep 20, 2024

I dont think so. To search for OTA updates you need a valid device info (model, locale, etc) and version.
Assuming you have the device info, you still need to get a valid version from the device itself or some dump available on internet, so there's no "universal script" to get all the OTA packages for a device

@haropng
Copy link
Author

haropng commented Sep 22, 2024

So is there a guide on how to decompile other devices to achieve the same effect as this repository?

@TBM13
Copy link
Member

TBM13 commented Sep 22, 2024

It's just literally grabbing these props from the device with adb shell getprop:
image

@haropng
Copy link
Author

haropng commented Sep 23, 2024

IMG_20240923_231721_354
I fetched the update but when I open the link in my browser I get this screen

@TBM13
Copy link
Member

TBM13 commented Sep 23, 2024

Weird. Can you send me the props so I can try it myself?

@haropng
Copy link
Author

haropng commented Sep 25, 2024

When I use 1dm to download, it prompts HTTP/1.1 403 Forbidden
https://github.com/harojpgyy/Get_adups_fota/blob/master/ota.py

@TBM13
Copy link
Member

TBM13 commented Sep 25, 2024

I don't know what 1dm is. I just tried to download it and I get the same issue.
Looks like an issue on their server, there's nothing I can do

@haropng
Copy link
Author

haropng commented Nov 6, 2024

https://github.com/harojpgyy/Get_FOTA/tree/abupdate.fota_demo_iot
The new fota, even though it is very similar to adups, it is not from the same vendor, the adups script is no longer applicable, if you are interested, I uploaded the ota program and official demo of a certain device

@TBM13
Copy link
Member

TBM13 commented Nov 7, 2024

I took a look to HescOta.apk and at a first glance it seems to be using "abupdate" and not ADUPS (although it does seem to support adups too).
image

Either way, it seems to have some differences so I doubt my Python script can easily be adapted to support it. Hard to tell without having a request made by the app at hand.

@haropng
Copy link
Author

haropng commented Nov 16, 2024

It seems that it no longer uses those properties in build.prop, but takes a specific "mid", in this case, the mid is imei

@haropng
Copy link
Author

haropng commented Nov 22, 2024

https://fota5p.adups.com/otainter-5.0/fota5/detectSchedule.do
How is this server address obtained?

@ikheeteric
Copy link

Any solutions?

@ikheeteric
Copy link

const RO_FOTA_OEM = 'lovdream8953_8.0';
const RO_FOTA_DEVICE = 'UT30';
const RO_PRODUCT_LOCALE = 'en-US';
const RO_OPERATOR_OPTR = '';
const RO_FOTA_VERSION = 'R00.52.40.40_20180621-1124'; i have this but don't get any firmware

@haropng
Copy link
Author

haropng commented Dec 19, 2024

const RO_FOTA_OEM = 'lovdream8953_8.0'; const RO_FOTA_DEVICE = 'UT30' ; const RO_PRODUCT_LOCALE = 'en-US'; const RO_OPERATOR_OPTR = ''; const RO_FOTA_VERSION = 'R00.52.40.40_20180621-1124'; 我有这个,但没有得到任何固件

It looks like the firmware is from June 21, 2018. As the readme says, your version is too old and the device may have been deleted from the server.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants