Passes the correct local id when writing adb commands.

This looks like a bug that happened to work since local id was usually
0.  At least one person ran into a problem where the library was failing
because local id wasn't passed correctly here.