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
Probable Bug in OTA slot switch #2408
Comments
phhusson
added a commit
to phhusson/device_phh_treble
that referenced
this issue
Aug 24, 2022
Uh yes, my code was very broken, thanks. |
Thanks for fixing, but I thing branch "switch-slot", as already mentioned above is still affected, because it contained duplicate buggy code with "new-slot". I'm afraid slot switch from b back to a will not work at the moment. Since this is already closed, created #2424 |
sooti
pushed a commit
to aosp-tissot/device_phh_treble
that referenced
this issue
Sep 19, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
During further analysis of #2289 I encoutered following code in phh-ota.cpp:
Branch for having "b" in existing file /metadata/phh/img seems not covered in the if/elses and might write uninitialized "next_slot" to /metadata/phh/img. Code occures twice in
(Upper part could also be refactored to a method like "getNextSlot" used in both sections)
The text was updated successfully, but these errors were encountered: