change add device api

Split the add new device process to two API calls, to make compatible with system design.