Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
f2075ebb
Commit
f2075ebb
authored
Sep 09, 2015
by
Scott Graham
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Look in ANDROID_HOME/platform-tools/adb for adb too
parent
0f4d3765
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
sky_tool
packages/flutter/lib/sky_tool
+9
-1
No files found.
packages/flutter/lib/sky_tool
View file @
f2075ebb
...
...
@@ -313,7 +313,15 @@ class AndroidDevice(object):
return
if
'ANDROID_HOME'
in
os
.
environ
:
android_home_dir
=
os
.
environ
[
'ANDROID_HOME'
]
self
.
adb_path
=
os
.
path
.
join
(
android_home_dir
,
'sdk'
,
'platform-tools'
,
'adb'
)
adb_location1
=
os
.
path
.
join
(
android_home_dir
,
'sdk'
,
'platform-tools'
,
'adb'
)
adb_location2
=
os
.
path
.
join
(
android_home_dir
,
'platform-tools'
,
'adb'
)
if
os
.
path
.
exists
(
adb_location1
):
self
.
adb_path
=
adb_location1
elif
os
.
path
.
exists
(
adb_location2
):
self
.
adb_path
=
adb_location2
else
:
logging
.
warning
(
'"adb" not found at
\n
"
%
s" or
\n
"
%
s"
\n
using default path "
%
s"'
%
(
adb_location1
,
adb_location2
,
ADB_PATH
))
self
.
adb_path
=
ADB_PATH
else
:
self
.
adb_path
=
ADB_PATH
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment