Please follow Android user guide of the particular android version you are using. You can build the images for three modes: eng, user, userdebug. These modes will have adb enable/disable by default.
Best regards igor ----------------------------------------------------------------------------------------------------------------------- Note: If this post answers your question, please click the Correct Answer button. Thank you! -----------------------------------------------------------------------------------------------------------------------