diff --git a/detox/src/devices/common/drivers/android/exec/ADB.js b/detox/src/devices/common/drivers/android/exec/ADB.js index 3600972fac..28b03e1fae 100644 --- a/detox/src/devices/common/drivers/android/exec/ADB.js +++ b/detox/src/devices/common/drivers/android/exec/ADB.js @@ -96,7 +96,7 @@ class ADB { } async isPackageInstalled(deviceId, packageId) { - const output = await this.shell(deviceId, `pm list packages ${packageId}`); + const output = await this.shell(deviceId, `pm list packages --user 0 ${packageId}`); const packageRegexp = new RegExp(`^package:${escape.inQuotedRegexp(packageId)}$`, 'm'); const isInstalled = packageRegexp.test(output);