Framework: Fix blacklist support

Copy & Paste isn't a good friend for programmers ;)

https://github.com/CyanogenMod/android_frameworks_base/commit/3412a4b3e8f6213db1661b9df31b30fe70423628
Change-Id: Ic6ab81462530f614b9e896cb098590241accb192
ActivityManager: memoize for performance

isHighEndGfx and isLargeRam are frequently called upon.. isLargeRam very
frequently within the ActivityStack. these aren't going to change after
they're calculated the first time so subject them to a basic memoization.
FTW.

Change-Id: I176089f99ac6c6e4074cb2fde502c729986ea701
If permissions fail to parse, let's print the path of the file that's unhappy.

Change-Id: Ide717af9a1bb2d0300f8d59201d3a3833d80aa93