Unplug the power supply after taking a photo in android 10 and the photo will be lost abnormally

1. Need to have root privileges

— a/packages/apps/Camera2/src/com/android/camera/CaptureModule.java
+++ b/packages/apps/Camera2/src/com/android/camera/CaptureModule.java
@@ -103,6 +103,9 @@ import java.util.concurrent.TimeUnit;

import javax.annotation.Nonnull;
import java.io.IOException;
+
+import android.os.SystemProperties;
+
/**

  • New Capture module that is made to support photo and video capture on top of
  • the OneCamera API, to transparently support GCam.
    @@ -513,8 +516,8 @@ public class CaptureModule extends CameraModule implements
    if (mCamera == null || mPaused) {
    return;
    }
  •    Log.d(TAG, "onShutterButtonClick");
    
  •     android.util.Log.i("main", "onShutterButtonClick: ");
       int countDownDuration &#

Guess you like

Origin blog.csdn.net/baiyifei2016/article/details/129709996