Merge "Support connecting multiple devices to APM."