quamotion/madb

ADB Command without shell

jerry-synap opened this issue · 1 comments

Hello,

To send adb shell ls I would use the "executeshellcommand" or "executeremoteshellcommand" and just send the ls like :
_advancedAdbClient.ExecuteRemoteCommand("getprop | grep ro.serial", _device, receiver); . That works okay.

Now I need to send this commandadb install .... , note there is no shell after adb. How do I do that ?

Thanks

rickx commented

Hi,
you can't do it that way. You do it through a PackageManager which has the proper function. Which is what happens on an android device. Adb install is a sort of set of commands where you push the file to the device and then from there tell the packagemanger (pm) to install it.