hax: Split the exynos4/tegra legacy code paths

They hang up at different places, and require different fixes.
Tested on t3 and e4

Change-Id: I46257a7e9e6b6e093a5cb92eaaaef4bdd0435a12
Merge branch 'cm-10.2' of git://github.com/CyanogenMod/android_frameworks_native into cm-10.2