There are restrictions on the use of electronic (electrical) devices on board the aircraft, including when on the ground.
Any device that emits radio waves for communication during operation may not be used from "when the doors are closed" until "the end of the run after landing". (except for those with an output of 100 milliwatts or less)
However, wireless earphones, headphones, and other electronic devices with wireless communication functions (e.g. Bluetooth) can all be used.
For details, please see here.