[api2] Comment out regdevice