[WP760x][SW] How to enable single CDC-ECM port, excepting AT command

Question:
Could you tell me the way how to enable single CDC-ECM port, instead of AT command?

Back Ground:
WP760x was boot-up as several CDC port, but our peripheral is supported to be recognized 1 CDC device.
So we need to change WP760x USB composition, but if we change USB composition by setting AT command, DM port have never been enabled again.
It is restriction to proceed debugging, that’s why we want to avoid the setting of AT command.

Well, we think the following step to enable single CDC-ECM port.

(1) Disabled USB function
echo 0 > /sys/class/android_usb/android0/enable
(2) Setting single device as MSC
echo “ecm” > /sys/class/android_usb/android0/functions
(3) Enabled USB function
echo 1 > /sys/class/android_usb/android0/enable

We would like to know whether the above setting can be used, instead of AT command.

your suggestion is working on my side.
You need to set this every time power on.