use old keyguard code to reslove lockscreen bug