use device orientation on StateFirst
fix texture permission