Commit 67d98621 authored by Collin Jackson's avatar Collin Jackson

Merge pull request #3841 from collinjackson/master

Fix crash installing onto certain Android devices
parents 826936cd e2ab8582
...@@ -190,7 +190,8 @@ class AndroidDevice extends Device { ...@@ -190,7 +190,8 @@ class AndroidDevice extends Device {
@override @override
bool isAppInstalled(ApplicationPackage app) { bool isAppInstalled(ApplicationPackage app) {
// This call takes 400ms - 600ms. // This call takes 400ms - 600ms.
if (runCheckedSync(adbCommandForDevice(<String>['shell', 'pm', 'path', app.id])).isEmpty) String listOut = runCheckedSync(adbCommandForDevice(<String>['shell', 'pm', 'list', 'packages', app.id]));
if (!LineSplitter.split(listOut).contains("package:${app.id}"))
return false; return false;
// Check the application SHA. // Check the application SHA.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment