diff --git a/OpenMico-FOTA_resign/README.md b/OpenMico-FOTA_resign/README.md new file mode 100644 index 0000000..2b8d526 --- /dev/null +++ b/OpenMico-FOTA_resign/README.md @@ -0,0 +1,59 @@ +## How to get an OTA link? +- This is an experimental algorithm, don't have too much hope for it :D + +----- + +- Before you start, you need to know the model, version, and update channel. +``` +Explanation about the update channel: +There are three available channels, +release (user-release), current (factory-debug), stable (user-debug). +You can choose arbitrarily from these. +``` +- Let's learn through an example. +``` +Suppose you need the data of version 2.30.4 of model LX04, +And 2.30.4 is a release version, +Your model is LX04, and the update channel is release. +``` +- What do we know so far? +``` +model: LX04 +channel: release +version: 2.30.4 +``` +- Let's use these to get a link. +``` +Prepare a string of text: +"channel=&filterID=&locale=zh_CN&model=&time=1617368871545&version=&8007236f-a2d6-4847-ac83-c49395ad6d65" +``` +``` +Here you need to replace the required and with the previous content. is an optional item. +``` +``` +When the replacement is complete, save this text. +``` +``` +Now, we need to get the BASE64 value of this string of text. +When you don’t fill in the SN, according to the previous content, we can get: +"Y2hhbm5lbD1yZWxlYXNlJmZpbHRlcklEPSZsb2NhbGU9emhfQ04mbW9kZWw9TFgwNCZ0aW1lPTE2MTczNjg4NzE1NDUmdmVyc2lvbj0yLjMwLjQmODAwNzIzNmYtYTJkNi00ODQ3LWFjODMtYzQ5Mzk1YWQ2ZDY1" +``` +``` +After that, we need the uppercase MD5 value of this string of BASE64 (the length of 16 will not be mandatory) +You will get "D0EC04694F3048B18286A8E90C8E2B91". +``` +``` +After this, you need another string of text: +"http://api.miwifi.com/rs/grayupgrade/v2/?model=&version=&channel=&filterID=&locale=zh_CN&time= 1617368871545&s=" +``` +``` +Similar to the previous steps: +you need to replace , , with your own custom content. ( is also optional.) +``` +``` +Among them, is replaced with the previously calculated MD5. +``` +``` +Finally, you get a link contains all metadata for that version: +"http://api.miwifi.com/rs/grayupgrade/v2/LX04?model=LX04&version=2.30.4&channel=release&filterID=&locale=zh_CN&time=1617368871545&s=D0EC04694F3048B18286A8E90C8E2B91" +``` \ No newline at end of file