Generic fix for hooking to getTopLevelResources. Tested on HTC One X.