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

Conflicts:
	services/java/com/android/server/LocationManagerService.java