Looking for way to enable Flashlight and also get S/N of TC51 locked with EHS

We are looking for a way to be able to use the flashlight function on a TC51 that has it's screen locked by EHS. We do not want the end user to access any other functions (WLAN, BT, etc), but want to be able to have them enable the flash as a flashlight.

They also want to be able to pull the Serial Number off the device from within EHS.