Meaning of hugs from guy to girl?

My guy friend used to hug me just one arm, but he recently hug me with both of his arms, and rub my back everytime. The other day he message me if I like his hugs.
Do the guys rub girl's back if they think her as friends? And ask her if she likes their hugs?
Meaning of hugs from guy to girl?
Post Opinion