Commit e2ab8582 authored by Collin Jackson's avatar Collin Jackson

Fix #3825 crash installing onto certain Android devices

parent 826936cd
......@@ -190,7 +190,8 @@ class AndroidDevice extends Device {
@override
bool isAppInstalled(ApplicationPackage app) {
// 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;
// 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