add lock function to android client