update template for add socket files[lua]
close #3861:fixed NativeActivity issue ANR on android 2.3 when press hardware button.