Commit ad7a666a authored by Devon Carew's avatar Devon Carew

fix a launch issue when the user has deleted the app

parent d24a7d3f
...@@ -147,7 +147,11 @@ class AndroidDevice extends Device { ...@@ -147,7 +147,11 @@ class AndroidDevice extends Device {
@override @override
bool isAppInstalled(ApplicationPackage app) { bool isAppInstalled(ApplicationPackage app) {
// Just check for the existence of the application SHA. // This call takes 400ms - 600ms.
if (runCheckedSync(adbCommandForDevice(['shell', 'pm', 'path', app.id])).isEmpty)
return false;
// Check the application SHA.
return _getDeviceApkSha1(app) == _getSourceSha1(app); return _getDeviceApkSha1(app) == _getSourceSha1(app);
} }
......
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