Skip to content
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

[flutter_tools] cache adb path #76650

Merged
merged 1 commit into from Feb 24, 2021

Conversation

jonahwilliams
Copy link
Member

@jonahwilliams jonahwilliams commented Feb 23, 2021

We've seen a number of crashes that only seem like they can happen if the user deletes their adb while running the tool. To allow the existing process manager exceptions to handle this, cache the adb path.

@flutter-dashboard flutter-dashboard bot added the tool Affects the "flutter" command-line tool. See also t: labels. label Feb 23, 2021
@google-cla google-cla bot added the cla: yes label Feb 23, 2021
@@ -167,7 +167,8 @@ class AndroidSdk {

AndroidSdkVersion get latestVersion => _latestVersion;

String get adbPath => getPlatformToolsPath(globals.platform.isWindows ? 'adb.exe' : 'adb');
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The nice thing about this approach is technically the user could still install it after the daemon starts up too.

Copy link
Member

@jmagman jmagman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tool Affects the "flutter" command-line tool. See also t: labels.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants