pff: Infrastructure needed for permission spoofing

- Based on the original work by Plamen K. Kosseff
- Initial commit

Change-Id: Idb6de41a9d178c98a123974dc2071de6896783f8
pff: Infrastructure needed for permission spoofing
- NullPointerException fix for permissions that cost money
pff: Infrastructure needed for permission spoofing

bug fix in getSpoofedPermissions - don't check for REVOKE_PERMISSIONS
pff: permission spoofing - location
pff: infrastructure code cleanup
pff: permission spoofing - contacts and phone log
plus some code cleanup

Change-Id: I55d6fc447e9664e2895f4d07bff3518885bcdb91