New system will also turn mobile phones into warning devices in emergencies.