Fix Samsung p1 build issue