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
3b3b0ff1
Commit
3b3b0ff1
authored
May 19, 2016
by
Devon Carew
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make sdb getprop less verbose (#4053)
parent
95f838b0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
android_device.dart
packages/flutter_tools/lib/src/android/android_device.dart
+8
-7
No files found.
packages/flutter_tools/lib/src/android/android_device.dart
View file @
3b3b0ff1
...
...
@@ -56,14 +56,15 @@ class AndroidDevice extends Device {
if
(
_properties
==
null
)
{
_properties
=
<
String
,
String
>{};
try
{
String
getpropOutput
=
runCheckedSync
(
adbCommandForDevice
(<
String
>[
'shell'
,
'getprop'
]));
List
<
String
>
propCommand
=
adbCommandForDevice
(<
String
>[
'shell'
,
'getprop'
]);
printTrace
(
propCommand
.
join
(
' '
));
ProcessResult
result
=
Process
.
runSync
(
propCommand
.
first
,
propCommand
.
sublist
(
1
));
if
(
result
.
exitCode
==
0
)
{
RegExp
propertyExp
=
new
RegExp
(
r'\[(.*?)\]: \[(.*?)\]'
);
for
(
Match
m
in
propertyExp
.
allMatches
(
getpropOutput
))
_properties
[
m
.
group
(
1
)]
=
m
.
group
(
2
);
}
catch
(
error
,
trace
)
{
printError
(
'Error retrieving device properties:
$error
'
);
printTrace
(
trace
.
toString
());
for
(
Match
match
in
propertyExp
.
allMatches
(
result
.
stdout
))
_properties
[
match
.
group
(
1
)]
=
match
.
group
(
2
);
}
else
{
printError
(
'Error retrieving device properties for
$name
.'
);
}
}
...
...
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