android - Using ADB shell in C++ program -


i'm working on project requires me make adb shell commands. code below test program can understand how pass adb shell commands c++. when run code following error: sh: adb: command not found. have android sdk tools , platform tools in path , can run adb shell terminal.

#include <iostream> #include <stdio.h> using namespace std;  int main() {      system("adb devices");        return 0; } 

thanks jiang yd able solve it. called adb it's absolute path , worked.


Comments

Popular posts from this blog

javascript - Bootstrap Popover: iOS Safari strange behaviour -

Magento/PHP - Get phones on all members in a customer group -

session - Logging Out Using PHP -