--- a/frameworks/av/camera/CameraUtils.cpp
+++ b/frameworks/av/camera/CameraUtils.cpp
@@ -55,7 +55,7 @@ status_t CameraUtils::getRotationTransform(const CameraMetadata& staticInfo,
int32_t& flags = *transform;
- bool mirror = (entryFacing.data.u8[0] == ANDROID_LENS_FACING_FRONT);
+ bool mirror = false;//(entryFacing.data.u8[0] == ANDROID_LENS_FACING_FRONT);
int orientation = entry.data.i32[0];
if (!mirror) {
switch (orientation) {
也可以不改mirror的值,修改下面的if条件语句,将前摄的代码改为和后摄一样也行。