ldpi: Dhruv's framework adjustments

Thanks to Dhruv/Dark Passenger.

Change-Id: If1472f1702cfff07b239558719221aba2fb378be
Merge "ldpi: Dhruv's framework adjustments" into cm-10.2