From 91edc6b9e782ec7d5ea169576ec8afc451234f3c Mon Sep 17 00:00:00 2001 From: rohan92 Date: Wed, 23 Mar 2016 16:55:30 +0530 Subject: [PATCH] uninstall should clear cache if clearstorage is passed --- build.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.js b/build.js index 1e131427..0df6a3df 100644 --- a/build.js +++ b/build.js @@ -942,7 +942,7 @@ function installAPK(api, config, apkPath, opts) { function tryUninstall(device) { var args = ['-s', device, 'shell', 'pm', 'uninstall']; - if (opts.clearstorage) { + if (!opts.clearstorage) { args.push('-k'); } args.push(packageName);