add halDoCommand and halDoMonitor

Change-Id: I3288e08ed9d83a3276374790b5e898a1c965413f