include app_preference.h to fix build break