If you are using Oreo can use Sixaxis to pair with DS3 (root needed)
Search in YouTube how to pair
which version, i try many oreo roms and see this :
Getting bluetooth address...
Attempting connection method 1...
Driver Starting...
Error: Failed to configure bluetooth
Getting bluetooth address...
Attempting connection method 2...
Driver Starting...
Wrong number of ports were opened
Error: Failed to configure bluetooth
Getting bluetooth address...
Attempting connection method 3...
Driver Starting...
Could not find stack manager interface in library
Error: Failed to configure bluetooth
Getting bluetooth address...
Attempting connection method 4...
Driver Starting...
Could not load bluetooth library
Error: Failed to configure bluetooth
Getting bluetooth address...
Attempting connection method 5...
Driver Starting...
Could not load HCI library
Error: Failed to configure bluetooth
Getting bluetooth address...
Attempting connection method 6...
Driver Starting...
Could not set HCI raw mode
Error: Failed to configure bluetooth
Getting bluetooth address...
Attempting connection method 7...
Driver Starting...
Could not set HCI raw mode
Error: Failed to configure bluetooth
Attempting to close server...
Restoring previous bluetooth state...
Disconnected