Stop using adb_strtok, and check argument validity.

Change-Id: I323ffda71b82cc939aed446f9c9fb86ca78df153
1 file changed