How can we disable or enable adb in the code?

Which system do you use? Android, Ubuntu, OOWOW or others?

       android

Which version of system do you use? Khadas official images, self built images, or others?

self built images,

Please describe your issue below:

How can we disable or enable adb in the code??
Please let me know!!Thank you.