I am just wondering about how android handles sms when it receives them. More precisely my question is when the android phone receives a sms message, which application saves the message to the mmssms database? Is this done by the OS or by the native sms application?
Receiving messages is handled by the OS. That's why you can get them from a 3rd party application.