android: Add execCommand and update adbExecCommand

This adds a convenient way to call out to commands other than adb
and see their result.  Updated adbExecCommand to use the new helper.
This commit is contained in:
Cody Northrop
2017-06-23 09:19:28 -06:00
committed by Baldur Karlsson
parent 930cc2cfb0
commit e0dfdedb24
3 changed files with 23 additions and 18 deletions
+1 -1
View File
@@ -833,7 +833,7 @@ public:
std::string deviceID;
Android::extractDeviceIDAndIndex(m_hostname, index, deviceID);
string adbStdout = Android::adbExecCommand(deviceID, "shell pm list packages -3");
string adbStdout = Android::adbExecCommand(deviceID, "shell pm list packages -3").strStdout;
using namespace std;
istringstream stdoutStream(adbStdout);
string line;