Phone drone arduino shield ? light phone camera all the sensors?

I need to know how to root a phone and use it just for the camera and sensors

Not trying to be funny, but have you used google?
I know there are sites specific to the os that a phone may use with a lot of information and help.