lib/honeydew/device_matchers.rb in honeydew-0.27.3 vs lib/honeydew/device_matchers.rb in honeydew-0.27.4

- old
+ new

@@ -74,17 +74,21 @@ end private def installed_packages + adb('shell pm list packages').gsub('package:', '').split(/\r\n/) + end + + def installed_packages_with_path adb("shell pm list packages -f").split(/\r\n/) end def packages_in_data - installed_packages.select {|p| p.starts_with? "package:/data/"} + installed_packages_with_path.select {|p| p.starts_with? "package:/data/"} end def packages_in_system - installed_packages.select {|p| p.starts_with? "package:/system/"} + installed_packages_with_path.select {|p| p.starts_with? "package:/system/"} end end end