A method includes making a device capable of administering an electrical shock to a patient and operable with a smartphone. The steps include providing a case providing an automated external defibrillator fitting within the case providing a case input/output port to the automated external defibrillator that mates with a corresponding smartphone input/output port and providing foldable pads fitting within the case. Each foldable pad has electrodes that are electrically connectable to the automated external defibrillator. Each foldable pad is unfolded to expose a surface of each electrode to be placed in contact with the skin of the patient. Additional steps may include providing on non-volatile memory a combined operating system for both a smartphone and the automated external defibrillator such that the combined operating system auto loads upon starting the device after connection of the smartphone to the case input/output port.