// Top of ur .cs file
...
using AndroidCtrl.ADB.Binary;
//or
using AndroidCtrl.ADB.Socket;
...
// Check if ADB is running
if (ADB.IsStarted)
{
// Stop ADB
ADB.Stop();
// Force Stop ADB
ADB.Stop(true);
}
else
{
// Start ADB
ADB.Start();
}