I don’t know about android, but at least with my iPhone I’m pretty sure there are apps that can capture raw sensor data. Additionally I do have the ability capture Apple ProRAW format at of the photos. I don’t actually know if these images are still processed though.
Raw format? That means without any debayering applied? That would mean every pixel has only either r, g or b information and not combined. Be aware that there exist different debayering algorithms, sometimes applied depending on the context.
Also, without any correction for sensor calibration? That would mean every sensor has a different raw image for the same input.
My point being, without application of algorithms, the info captured by the sensor does not really look like an image.