Skip to content

Conversation

@amartinz
Copy link
Member

@amartinz amartinz commented Jun 25, 2025

Test

  1. Start UBports Installer
  2. Wait a few seconds until tools start their detection loop
  3. Place DUT into bootloader mode
  4. Connect device

Expected result

Device gets detected

Actual result

Device is not getting detected, because the parsing of getvar fails as it assumes, that the output always starts with name: variable, whereas this is not the case when freshly connecting the device.

It works, if the device is connected before starting UBports Installer because the device connection has settled by then.


With these patches the above scenario is fixed.

Also the delay of the tool wait interval is increased to not spam the host, which would use a lot of ressources on lower end machines.

Signed-off-by: Alexander Martinz <amartinz@shiftphones.com>
@amartinz amartinz force-pushed the amartinz/non-spammy-tools-and-fixed-fastboot-getvar branch from 94c73b8 to c0e329b Compare June 25, 2025 09:31
Assuming the first part of the output always contains the
variable is wrong.

Signed-off-by: Alexander Martinz <amartinz@shiftphones.com>
@amartinz amartinz force-pushed the amartinz/non-spammy-tools-and-fixed-fastboot-getvar branch from c0e329b to 3001161 Compare June 25, 2025 10:18
@Flohack74 Flohack74 merged commit 6241ede into master Jun 25, 2025
5 checks passed
@Flohack74 Flohack74 deleted the amartinz/non-spammy-tools-and-fixed-fastboot-getvar branch June 25, 2025 11:43
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

Successfully merging this pull request may close these issues.

3 participants