device gui: initial 540x960 merge

Change-Id: I95152fa348ea7c9ac7d254911f47a837cf79ec14
add safestrap functions

Change-Id: I63b7f5790a493b01eaf8053fae14a39a01569383
initial safestrap code merge

Change-Id: I1ac7260d4bf820001393337a8c4a1eee94532100