I'm compiling an AOSP image from source and I have seen that if I connect the device using USB I can access to the modem and perform AT commands to it using putty as a COM port handler. It appears in the Device Administrator on windows, under Modems category.
I have been search from quite some time and I haven't seen any solution. I suppose that this can be disabled inside the AOSP code before compilation, but I don't know where.