ddvk / remarkable-update

force a full factory reset / re-update / upgrade
MIT License
172 stars 18 forks source link

Parsing name error with update file #21

Open Jayy001 opened 2 years ago

Jayy001 commented 2 years ago

Hello!

While trying to downgrade to version 2.14.1.866, The scan_updates function fails to find the update file while looking through the directory. Namely, this part:

p = f.split('_')
if len(p) != 2:
   continue

will fail to find the update file named rm2_2.14.1.866_reMarkable2-JLWa2mnXu1-.signed because of the first underscore at the beginning (rm2_) and thus when trying to update will throw this KeyError:

image

In order to get around this I had to rename the file rm2_2.14.1.866_reMarkable2-JLWa2mnXu1-.signed to 2.14.1.866_reMarkable2-JLWa2mnXu1-.signed

Yaniv-Kaplan commented 2 years ago

Sorry for the unrelated question, but could you please elaborate on how you found the version name ("JLWa2mnXu1") for this update?