Add the missing pre/post action

Change-Id: I4765caf303b7daf1d0166c7b526b18a36119f4f7
Signed-off-by: Zhiguang Li <muzili@gmail.com>