Fix overlay graphics detection

Change-Id: Ic1ef3f6a4e9c74efb07d8a0103543d124567f0d4
Merge branch 'android-4.4' into twrp2.7-safestrap