usually we'd do any unpacking of parameters here, not in the device code.

i.e., we want to pass a `type` variable, etc, which have already been unpacked and error-handled, rather than doing that logic in selendroid.js. Thus it can be shared across all devices.