use adb api correctly