use adb api correctly
Merge pull request #1398 from jlipps/master

use adb api correctly