Mms auto-retrieval (2/3): framework

Change-Id: If59780c1a4c153618a2110c60b1b1d4c03f145fd

It's only porting this http://review.cyanogenmod.org/#/c/26166/
Part 2 of 3

Patch Set2:
Correncting undifened symbols