Skip to content

Conversation

@mirkoCrobu
Copy link
Contributor

@mirkoCrobu mirkoCrobu commented Dec 15, 2025

Motivation

closes #41
Get the version of the image on the board to know if it supports user preservation when it is not in EDL mode. The equivalent of adb shell 'cat /etc/buildinfo' could be sufficient, but we want to return only the BUILD_ID.
If /etc/buildinfo does not exist, assume it is an R0 image and return it as the default value.

At this level, there is no way to check for EDL mode.
The current behavior is "if the board is detected. It is not in EDL mode."
In any case, this check will be done by the caller.

Change GetOsImageVersion()
Add test if possible
log - INFO

manual test, add the call in main() log - ERROR

Change description

Additional Notes

Reviewer checklist

  • PR addresses a single concern.
  • PR title and description are properly filled.
  • Changes will be merged in main.
  • Changes are covered by tests.
  • Logging is meaningful in case of troubleshooting.

@mirkoCrobu mirkoCrobu self-assigned this Dec 15, 2025
@mirkoCrobu mirkoCrobu requested a review from lucarin91 December 15, 2025 14:26
@mirkoCrobu mirkoCrobu requested a review from lucarin91 December 15, 2025 16:09
@mirkoCrobu mirkoCrobu requested a review from lucarin91 December 15, 2025 17:28
@mirkoCrobu mirkoCrobu added the enhancement New feature or request label Dec 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[App Lab integration] Get on board image version

2 participants