Skip to content

Fix reliability issues when an existing ADB process is running - #36

Merged
DonnchaC merged 2 commits into
mainfrom
fix/kill-running-adb-server
Dec 20, 2023
Merged

Fix reliability issues when an existing ADB process is running#36
DonnchaC merged 2 commits into
mainfrom
fix/kill-running-adb-server

Conversation

@DonnchaC

@DonnchaC DonnchaC commented Dec 19, 2023

Copy link
Copy Markdown
Contributor

This PR tries to fix to issues which make AndroidQF acquistions unreliable.

We had one issue when AndroidQF tried to extract an adb binary in the current directory. It would try overwrite the binary even if it exists. This fails with a text file busy error on Linux if the adb binary is still running. It's not possible to overwrite a running binary. One solution is to skip trying to open an asset if it already exists.

There may also be an issue with multiple or older adb server processes being left running. I'm added a command to kill any running ADB server during start-up and killing it again before trying to delete the extracted asset files.

It will hopefully fix #32 and make the overall acquisition process more consistent and reliable between runs. Unfortunately I don't have access to an Android device currently to test.

@DonnchaC DonnchaC changed the title Kill existing adb server if running Fix reliability issues with linked to existing ADB process Dec 19, 2023
@DonnchaC DonnchaC changed the title Fix reliability issues with linked to existing ADB process Fix reliability issues when an existing ADB process is running Dec 19, 2023
@DonnchaC
DonnchaC requested review from Te-k and roaree and removed request for Te-k and roaree December 20, 2023 11:44
@besendorf

Copy link
Copy Markdown
Collaborator

I can confirm that the bug exists on main branch and is not present on this branch. Tested on Arch Linux

@DonnchaC
DonnchaC merged commit ec585b6 into main Dec 20, 2023
@DonnchaC
DonnchaC deleted the fix/kill-running-adb-server branch December 20, 2023 15:30
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.

adb is left running resulting is issues rerunning androidqf

2 participants