Prior to BlueZ 5, the way to add/remove Bluetooth services/attributes/profiles on Linux was done through the sdptool as follows:-
To browse local records
#sdptool browse local
Browsing FF:FF:FF:00:00:00 ...
To add a service
#sdptool add SP
Serial Port service registered
To remove a service
#sdptool del 0x10007
Service Record deleted.
However, sdptool was deprecated (along with hciattach, hciconfig, hcitool, hcidump, rfcomm, ciptool, and gatttool) and removed from the main BlueZ build as can be seen in the following links:-
Fortunately, most of these commands have been replaced with newer ones (btattach, btmgmt, and bluetoothctl). However, there doesn't seem to be any replacement for the sdptool.
My question is:- what tool can I use now instead of sdptool in order to browse local services/profile as well as add or remove profiles?
Please note that I am aware that sdptool can be rebuilt-in and enabled, but I am searching for the replacement to the command rather than a workaround.