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
Post a Comment