How to remove Bluetooth from Android build?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to remove Bluetooth from Android build?

1,730 Views
esteban_vazquez
Contributor I

I am working with Android Open Source Project (AOSP) on an IMX based board. I would like to exclude the bluetooth modules from the compilation.

I used "mgrep" to look into the Makefiles to find references to the Bluetooth but I couldn't figure out which options I need to add or remove.

I would like to know which Makefiles and config files I would need to edit. How do I remove Bluetooth from Android build?

0 Kudos
1 Reply

1,498 Views
shivanipatel
Senior Contributor II

Hi, Esteban Vazquez

You need to disable following configurations in order to remove Bluetooth Module from the Build.

  • UART interface
    • CONFIG_SERIAL_IMX
    • CONFIG_TTY
  • HCI interface
    • CONFIG_BT_HCIUART
    • CONFIG_BT_HCIUART_H4
  • Bluetooth Stack
    • CONFIG_BT
    • CONFIG_BT_RFCOMM
    • CONFIG_BT_RFCOMM_TTY
    • CONFIG_BT_BNEP
    • CONFIG_BT_BNEP_MC_FILTER
    • CONFIG_BT_BNEP_PROTO_FILTER
    • CONFIG_BT_HIDP

Hope this will help you.

Regards,

Shivani

0 Kudos