Closed samliu closed 4 months ago
adb shell dumpsys media.camera
output:
== Service global info: ==
Number of camera devices: 0
Number of normal camera devices: 0
Number of public camera devices visible to API1: 0
Active Camera Clients:
[]
Allowed user IDs: 0
== Camera service events log (most recent at top): ==
06-17 22:45:06 : USER_SWITCH previous allowed user IDs: <None>, current allowed user IDs: 0
== Camera Provider HAL internal/0-0 (v2.6, remote) static info: 0 devices: ==
== Vendor tags: ==
Dumping vendor tag descriptors for vendor with id 11706189966126095484
Dumping configured vendor tag descriptors: 192 entries
0x80000000 (gesturemode) with type 1 (int32) defined in section com.mediatek.facefeature
0x80000001 (gestureresult) with type 1 (int32) defined in section com.mediatek.facefeature
0x80000002 (smiledetectmode) with type 1 (int32) defined in section com.mediatek.facefeature
0x80000003 (smiledetectresult) with type 1 (int32) defined in section com.mediatek.facefeature
0x80000004 (asdmode) with type 1 (int32) defined in section com.mediatek.facefeature
0x80000005 (asdresult) with type 1 (int32) defined in section com.mediatek.facefeature
0x80000006 (availablegesturemodes) with type 1 (int32) defined in section com.mediatek.facefeature
0x80000007 (availablesmiledetectmodes) with type 1 (int32) defined in section com.mediatek.facefeature
0x80000008 (availableasdmodes) with type 1 (int32) defined in section com.mediatek.facefeature
0x80000009 (forceface3a) with type 1 (int32) defined in section com.mediatek.facefeature
0x8000000a (availableforceface3a) with type 1 (int32) defined in section com.mediatek.facefeature
0x8000000b (additionalresult) with type 1 (int32) defined in section com.mediatek.facefeature
0x80010000 (3dnrmode) with type 1 (int32) defined in section com.mediatek.nrfeature
0x80010001 (available3dnrmodes) with type 1 (int32) defined in section com.mediatek.nrfeature
0x80020000 (doflevel) with type 1 (int32) defined in section com.mediatek.stereofeature
0x80020001 (supporteddoflevel) with type 1 (int32) defined in section com.mediatek.stereofeature
0x80020002 (resultdoflevel) with type 1 (int32) defined in section com.mediatek.stereofeature
0x80020003 (stereowarning) with type 1 (int32) defined in section com.mediatek.stereofeature
0x80020004 (depthafon) with type 1 (int32) defined in section com.mediatek.stereofeature
0x80020005 (distancemeasureon) with type 1 (int32) defined in section com.mediatek.stereofeature
0x80020006 (resultdistance) with type 2 (float) defined in section com.mediatek.stereofeature
0x80020007 (touchposition) with type 1 (int32) defined in section com.mediatek.stereofeature
0x80020008 (shotmode) with type 0 (byte) defined in section com.mediatek.stereofeature
0x80020009 (stereostatus) with type 0 (byte) defined in section com.mediatek.stereofeature
0x80030000 (hdrMode) with type 1 (int32) defined in section com.mediatek.hdrfeature
0x80030001 (SessionParamhdrMode) with type 1 (int32) defined in section com.mediatek.hdrfeature
0x80030002 (hdrDetectionResult) with type 1 (int32) defined in section com.mediatek.hdrfeature
0x80030003 (availableHdrModesPhoto) with type 1 (int32) defined in section com.mediatek.hdrfeature
0x80030004 (availableHdrModesVideo) with type 1 (int32) defined in section com.mediatek.hdrfeature
0x80030005 (availableVhdrModes) with type 1 (int32) defined in section com.mediatek.hdrfeature
0x80030006 (availableMStreamHdrModes) with type 1 (int32) defined in section com.mediatek.hdrfeature
0x80030007 (availableSingleFrameHdr) with type 0 (byte) defined in section com.mediatek.hdrfeature
0x80030008 (availableStaggerHdrModes) with type 1 (int32) defined in section com.mediatek.hdrfeature
0x80030009 (vhdrResult) with type 1 (int32) defined in section com.mediatek.hdrfeature
0x8003000b (hdrState) with type 1 (int32) defined in section com.mediatek.hdrfeature
0x80040000 (mfbmode) with type 1 (int32) defined in section com.mediatek.mfnrfeature
0x80040001 (mfbresult) with type 1 (int32) defined in section com.mediatek.mfnrfeature
0x80040002 (availablemfbmodes) with type 1 (int32) defined in section com.mediatek.mfnrfeature
0x80040003 (aismode) with type 1 (int32) defined in section com.mediatek.mfnrfeature
0x80040004 (aisresult) with type 1 (int32) defined in section com.mediatek.mfnrfeature
0x80040005 (availableaismodes) with type 1 (int32) defined in section com.mediatek.mfnrfeature
0x80040006 (goldenindex) with type 1 (int32) defined in section com.mediatek.mfnrfeature
0x80040007 (dozipwithbss) with type 1 (int32) defined in section com.mediatek.mfnrfeature
0x80050000 (availableCShotModes) with type 1 (int32) defined in section com.mediatek.cshotfeature
0x80050001 (capture) with type 1 (int32) defined in section com.mediatek.cshotfeature
0x80060000 (aeroi) with type 1 (int32) defined in section com.mediatek.3afeature
0x80060001 (afroi) with type 1 (int32) defined in section com.mediatek.3afeature
0x80060002 (awbroi) with type 1 (int32) defined in section com.mediatek.3afeature
0x80060003 (aeIsoSpeed) with type 1 (int32) defined in section com.mediatek.3afeature
0x80060004 (aeAvailableMetering) with type 0 (byte) defined in section com.mediatek.3afeature
0x80060005 (aeMeteringMode) with type 0 (byte) defined in section com.mediatek.3afeature
0x80060006 (aeAverageBrightness) with type 1 (int32) defined in section com.mediatek.3afeature
0x80060007 (aeCaptureSelectionShutter) with type 1 (int32) defined in section com.mediatek.3afeature
0x80060008 (aeCaptureSelectionISO) with type 1 (int32) defined in section com.mediatek.3afeature
0x80060009 (aePlineIndex) with type 1 (int32) defined in section com.mediatek.3afeature
0x8006000a (aeCustomPlineMode) with type 1 (int32) defined in section com.mediatek.3afeature
0x8006000b (awbAvailableRange) with type 1 (int32) defined in section com.mediatek.3afeature
0x8006000c (awbValue) with type 1 (int32) defined in section com.mediatek.3afeature
0x8006000d (awbCct) with type 1 (int32) defined in section com.mediatek.3afeature
0x8006000e (focalLengths35mm) with type 1 (int32) defined in section com.mediatek.3afeature
0x8006000f (aeSensorGain) with type 1 (int32) defined in section com.mediatek.3afeature
0x80060010 (aeIspGain) with type 1 (int32) defined in section com.mediatek.3afeature
0x80060011 (aeLuxIndex) with type 1 (int32) defined in section com.mediatek.3afeature
0x80060012 (adrcGain) with type 1 (int32) defined in section com.mediatek.3afeature
0x80060013 (aeMeterFDTarget) with type 1 (int32) defined in section com.mediatek.3afeature
0x80060014 (aeMeterFDLinkTarget) with type 1 (int32) defined in section com.mediatek.3afeature
0x80060015 (aishutExistMotion) with type 1 (int32) defined in section com.mediatek.3afeature
0x80060016 (aishutExposuretime) with type 1 (int32) defined in section com.mediatek.3afeature
0x80060017 (aishutISO) with type 1 (int32) defined in section com.mediatek.3afeature
0x80060018 (aishutCapture) with type 1 (int32) defined in section com.mediatek.3afeature
0x80070000 (eismode) with type 1 (int32) defined in section com.mediatek.eisfeature
0x80070001 (isNeedOverrideTimestamp) with type 0 (byte) defined in section com.mediatek.eisfeature
0x80070002 (newShutterTimestamp) with type 3 (int64) defined in section com.mediatek.eisfeature
0x80070003 (previeweis) with type 1 (int32) defined in section com.mediatek.eisfeature
0x80080000 (recordState) with type 1 (int32) defined in section com.mediatek.streamingfeature
0x80080001 (availableRecordStates) with type 1 (int32) defined in section com.mediatek.streamingfeature
0x80080002 (hfpsMode) with type 1 (int32) defined in section com.mediatek.streamingfeature
0x80080003 (availableHfpsModes) with type 1 (int32) defined in section com.mediatek.streamingfeature
0x80080004 (availableHfpsMaxResolutions) with type 1 (int32) defined in section com.mediatek.streamingfeature
0x80080005 (availableHfpsEISMaxResolutions) with type 1 (int32) defined in section com.mediatek.streamingfeature
0x80080006 (hdr10) with type 1 (int32) defined in section com.mediatek.streamingfeature
0x80080007 (cropOuterLinesEnable) with type 0 (byte) defined in section com.mediatek.streamingfeature
0x80080008 (pipDevices) with type 1 (int32) defined in section com.mediatek.streamingfeature
0x80080009 (demofb) with type 1 (int32) defined in section com.mediatek.streamingfeature
0x8008000a (demoeis) with type 1 (int32) defined in section com.mediatek.streamingfeature
0x8008000b (demoasd) with type 1 (int32) defined in section com.mediatek.streamingfeature
0x80090000 (vsdofCallbackBuffers) with type 0 (byte) defined in section com.mediatek.vsdoffeature
0x80090001 (vsdofDenoiseMode) with type 0 (byte) defined in section com.mediatek.vsdoffeature
0x80090002 (vsdofDenoiseSupportedModule) with type 0 (byte) defined in section com.mediatek.vsdoffeature
0x80090003 (vsdof3rdPartyModule) with type 0 (byte) defined in section com.mediatek.vsdoffeature
0x80090004 (vsdof3rdPartySupportedModule) with type 0 (byte) defined in section com.mediatek.vsdoffeature
0x80090005 (vsdofPreviewEnable) with type 0 (byte) defined in section com.mediatek.vsdoffeature
0x80090006 (vsdofShotMode) with type 0 (byte) defined in section com.mediatek.vsdoffeature
0x80090007 (vsdofFeaturePreviewSize) with type 1 (int32) defined in section com.mediatek.vsdoffeature
0x80090008 (vsdofFeaturePreviewMode) with type 1 (int32) defined in section com.mediatek.vsdoffeature
0x80090009 (availableVsdofFeaturePreviewMode) with type 1 (int32) defined in section com.mediatek.vsdoffeature
0x8009000a (vsdofFeatureWarning) with type 1 (int32) defined in section com.mediatek.vsdoffeature
0x8009000b (vsdofFeatureCaptureWarningMsg) with type 1 (int32) defined in section com.mediatek.vsdoffeature
0x8009000c (vsdofFeatureRecordMode) with type 1 (int32) defined in section com.mediatek.vsdoffeature
0x8009000d (vsdofFeatureSupportedDepthMapSizes) with type 1 (int32) defined in section com.mediatek.vsdoffeature
0x8009000e (vsdofFeatureRefocusCaptureFlow) with type 1 (int32) defined in section com.mediatek.vsdoffeature
0x800a0000 (multiCamFeatureMode) with type 1 (int32) defined in section com.mediatek.multicamfeature
0x800a0001 (availableMultiCamFeatureMode) with type 1 (int32) defined in section com.mediatek.multicamfeature
0x800a0002 (availableMultiCamFeatureSensorManualUpdated) with type 3 (int64) defined in section com.mediatek.multicamfeature
0x800a0003 (multiCamAfRoi) with type 1 (int32) defined in section com.mediatek.multicamfeature
0x800a0004 (multiCamAeRoi) with type 1 (int32) defined in section com.mediatek.multicamfeature
0x800a0005 (multiCamAwbRoi) with type 1 (int32) defined in section com.mediatek.multicamfeature
0x800a0006 (multiCamMasterId) with type 1 (int32) defined in section com.mediatek.multicamfeature
0x800a0007 (multiCamFovCropRegion) with type 1 (int32) defined in section com.mediatek.multicamfeature
0x800a0008 (multiCamSensorCropRegion) with type 1 (int32) defined in section com.mediatek.multicamfeature
0x800a0009 (multiCamZoomRange) with type 2 (float) defined in section com.mediatek.multicamfeature
0x800a000a (multiCamZoomValue) with type 2 (float) defined in section com.mediatek.multicamfeature
0x800a000b (multiCamZoomSteps) with type 2 (float) defined in section com.mediatek.multicamfeature
0x800a000c (multiCamStreamingId) with type 1 (int32) defined in section com.mediatek.multicamfeature
0x800a000d (multiCamCaptureCount) with type 1 (int32) defined in section com.mediatek.multicamfeature
0x800a000e (multiCamConfigScalerCropRegion) with type 1 (int32) defined in section com.mediatek.multicamfeature
0x800b0000 (early.notification.support) with type 1 (int32) defined in section com.mediatek.control.capture
0x800b0001 (early.notification.trigger) with type 1 (int32) defined in section com.mediatek.control.capture
0x800b0002 (next.ready) with type 1 (int32) defined in section com.mediatek.control.capture
0x800b0003 (flipmode) with type 1 (int32) defined in section com.mediatek.control.capture
0x800b0004 (availablepostviewmodes) with type 1 (int32) defined in section com.mediatek.control.capture
0x800b0005 (postviewsize) with type 1 (int32) defined in section com.mediatek.control.capture
0x800b0006 (remosaicenable) with type 1 (int32) defined in section com.mediatek.control.capture
0x800b0007 (seamless.remosaicenable) with type 1 (int32) defined in section com.mediatek.control.capture
0x800b0008 (available.zsl.modes) with type 0 (byte) defined in section com.mediatek.control.capture
0x800b0009 (default.zsl.mode) with type 0 (byte) defined in section com.mediatek.control.capture
0x800b000a (zsl.mode) with type 0 (byte) defined in section com.mediatek.control.capture
0x800b000b (singleYuvNr) with type 1 (int32) defined in section com.mediatek.control.capture
0x800b000c (highQualityYuv) with type 1 (int32) defined in section com.mediatek.control.capture
0x800b000d (hintForRawReprocess) with type 0 (byte) defined in section com.mediatek.control.capture
0x800b000e (hintForIspTuning) with type 1 (int32) defined in section com.mediatek.control.capture
0x800b000f (hintForIspFrameCount) with type 1 (int32) defined in section com.mediatek.control.capture
0x800b0010 (hintForIspFrameIndex) with type 1 (int32) defined in section com.mediatek.control.capture
0x800b0011 (hintForIspFrameTuningIndex) with type 3 (int64) defined in section com.mediatek.control.capture
0x800b0012 (ispMetaEnable) with type 0 (byte) defined in section com.mediatek.control.capture
0x800b0013 (ispMetaSizeForRaw) with type 1 (int32) defined in section com.mediatek.control.capture
0x800b0014 (ispMetaSizeForYuv) with type 1 (int32) defined in section com.mediatek.control.capture
0x800b0015 (ispTuningRequest) with type 0 (byte) defined in section com.mediatek.control.capture
0x800b0016 (ispTuningDataRaw) with type 0 (byte) defined in section com.mediatek.control.capture
0x800b0017 (ispTuningDataYuv) with type 0 (byte) defined in section com.mediatek.control.capture
0x800b0019 (packedRaw.enable) with type 1 (int32) defined in section com.mediatek.control.capture
0x800b001a (processRaw.enable) with type 1 (int32) defined in section com.mediatek.control.capture
0x800b001b (raw.bpp) with type 1 (int32) defined in section com.mediatek.control.capture
0x800b001c (yuvNoMargin) with type 0 (byte) defined in section com.mediatek.control.capture
0x800b001d (singleYuvNr.mode) with type 1 (int32) defined in section com.mediatek.control.capture
0x800b001e (inSensorZoom.mode) with type 1 (int32) defined in section com.mediatek.control.capture
0x800b001f (hidl.jpegyuvtuning) with type 0 (byte) defined in section com.mediatek.control.capture
0x800b0020 (raw10.convertfmt) with type 1 (int32) defined in section com.mediatek.control.capture
0x800b0021 (p2RawCropResizeEnableCustomize) with type 1 (int32) defined in section com.mediatek.control.capture
0x800b0022 (p2CropRegionCustomize) with type 1 (int32) defined in section com.mediatek.control.capture
0x800b0023 (p2ResizerSizeCustomize) with type 1 (int32) defined in section com.mediatek.control.capture
0x800c0000 (availableprereleasemodes) with type 1 (int32) defined in section com.mediatek.bgservicefeature
0x800c0001 (prerelease) with type 1 (int32) defined in section com.mediatek.bgservicefeature
0x800c0002 (imagereaderid) with type 1 (int32) defined in section com.mediatek.bgservicefeature
0x800d0000 (initrequest) with type 1 (int32) defined in section com.mediatek.configure.setting
0x800d0001 (yuvdirectjpeg) with type 1 (int32) defined in section com.mediatek.configure.setting
0x800d0002 (proprietaryRequest) with type 1 (int32) defined in section com.mediatek.configure.setting
0x800e0000 (calibration.available) with type 1 (int32) defined in section com.mediatek.flashfeature
0x800e0001 (calibration.enable) with type 1 (int32) defined in section com.mediatek.flashfeature
0x800e0002 (calibration.result) with type 1 (int32) defined in section com.mediatek.flashfeature
0x800e0003 (calibration.state) with type 1 (int32) defined in section com.mediatek.flashfeature
0x800e0004 (customization.available) with type 0 (byte) defined in section com.mediatek.flashfeature
0x800e0005 (customizedResult) with type 0 (byte) defined in section com.mediatek.flashfeature
0x800e0006 (customizedTorchDuty) with type 0 (byte) defined in section com.mediatek.flashfeature
0x800f0000 (smvrMode) with type 1 (int32) defined in section com.mediatek.smvrfeature
0x800f0001 (availableSmvrModes) with type 1 (int32) defined in section com.mediatek.smvrfeature
0x800f0002 (smvrResult) with type 1 (int32) defined in section com.mediatek.smvrfeature
0x80100000 (module) with type 1 (int32) defined in section com.mediatek.singlehwsetting
0x80100001 (sourcecrop) with type 1 (int32) defined in section com.mediatek.singlehwsetting
0x80100002 (transform) with type 1 (int32) defined in section com.mediatek.singlehwsetting
0x80100003 (videostream) with type 1 (int32) defined in section com.mediatek.singlehwsetting
0x80100004 (warpmapx) with type 1 (int32) defined in section com.mediatek.singlehwsetting
0x80100005 (warpmapy) with type 1 (int32) defined in section com.mediatek.singlehwsetting
0x80100006 (warpmapz) with type 1 (int32) defined in section com.mediatek.singlehwsetting
0x80100007 (outstreamstride) with type 1 (int32) defined in section com.mediatek.singlehwsetting
0x80100008 (warpoutput) with type 1 (int32) defined in section com.mediatek.singlehwsetting
0x80110000 (abfMode) with type 1 (int32) defined in section com.mediatek.abffeature
0x80110001 (abf) with type 1 (int32) defined in section com.mediatek.abffeature
0x80110002 (availableabfmode) with type 1 (int32) defined in section com.mediatek.abffeature
0x80120000 (trackingafAvailableModes) with type 1 (int32) defined in section com.mediatek.trackingaffeature
0x80120001 (trackingafMode) with type 1 (int32) defined in section com.mediatek.trackingaffeature
0x80120002 (trackingafRegion) with type 1 (int32) defined in section com.mediatek.trackingaffeature
0x80120003 (trackingafCancel) with type 1 (int32) defined in section com.mediatek.trackingaffeature
0x80120004 (trackingafTarget) with type 1 (int32) defined in section com.mediatek.trackingaffeature
0x80120005 (trackingafNoObject) with type 1 (int32) defined in section com.mediatek.trackingaffeature
0x80130000 (availableAovModes) with type 1 (int32) defined in section com.mediatek.aovservicefeature
0x80130001 (aovMode) with type 1 (int32) defined in section com.mediatek.aovservicefeature
0x80130002 (availablePipelineConfig) with type 1 (int32) defined in section com.mediatek.aovservicefeature
0x80130003 (pipelineConfig) with type 1 (int32) defined in section com.mediatek.aovservicefeature
0x80130004 (availableAovImageSize) with type 1 (int32) defined in section com.mediatek.aovservicefeature
0xc0010000 (sensorWbRange) with type 1 (int32) defined in section com.custom.device.capabilities
0xc0020000 (sensorWbValue) with type 1 (int32) defined in section com.custom.capture.metadata
== Camera error traces (0): ==
No camera traces collected.
**********Dumpsys from previous open session**********
**********End of Dumpsys from previous open session**********
adb root && adb shell dmesg | grep cam
[ 608.826391] (1)[7125:android.camera2]binder: 7125:7125 ioctl 40046210 7ff6bd70d0 returned -22
06-17 22:47:09.512 6724 6724 I CAM_Profiler: [311.507ms][ui] GUARD: CameraActivity.onCreateTasks - [35.749ms] Configure Camera UI
06-17 22:47:09.517 1054 2614 D CompatibilityChangeReporter: Compat change id reported: 161145287; UID 10078; state: DISABLED
06-17 22:47:09.526 6724 6724 E StrictMode: Tried to access the API:ViewConfiguration which needs to have proper configuration from a non-UI Context:com.android.camera.app.CameraApp@91f07e8 The API:ViewConfiguration needs a proper configuration. Use UI contexts such as an activity or a context created via createWindowContext(Display, int, Bundle) or createConfigurationContext(Configuration) with a proper configuration.
06-17 22:47:09.526 6724 6724 E StrictMode: java.lang.IllegalAccessException: Tried to access the API:ViewConfiguration which needs to have proper configuration from a non-UI Context:com.android.camera.app.CameraApp@91f07e8
06-17 22:47:09.526 6724 6724 E StrictMode: at android.os.StrictMode.assertConfigurationContext(StrictMode.java:2295)
06-17 22:47:09.526 6724 6724 E StrictMode: at android.view.ViewConfiguration.get(ViewConfiguration.java:526)
06-17 22:47:09.526 6724 6724 E StrictMode: at android.view.View.<init>(View.java:5398)
06-17 22:47:09.526 6724 6724 E StrictMode: at android.view.View.<init>(View.java:5543)
06-17 22:47:09.526 6724 6724 E StrictMode: at android.widget.TextView.<init>(TextView.java:1072)
06-17 22:47:09.526 6724 6724 E StrictMode: at android.widget.TextView.<init>(TextView.java:1066)
06-17 22:47:09.526 6724 6724 E StrictMode: at android.widget.TextView.<init>(TextView.java:1062)
06-17 22:47:09.526 6724 6724 E StrictMode: at com.android.camera.widget.Cling.<init>(Cling.java:48)
06-17 22:47:09.526 6724 6724 E StrictMode: at java.lang.reflect.Constructor.newInstance0(Native Method)
06-17 22:47:09.526 6724 6724 E StrictMode: at java.lang.reflect.Constructor.newInstance(Constructor.java:343)
06-17 22:47:09.526 6724 6724 E StrictMode: at android.view.LayoutInflater.createView(LayoutInflater.java:858)
06-17 22:47:09.526 6724 6724 E StrictMode: at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:1010)
06-17 22:47:09.526 6724 6724 E StrictMode: at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:965)
06-17 22:47:09.526 6724 6724 E StrictMode: at android.view.LayoutInflater.inflate(LayoutInflater.java:663)
06-17 22:47:09.526 6724 6724 E StrictMode: at android.view.LayoutInflater.inflate(LayoutInflater.java:538)
06-17 22:47:09.526 6724 6724 E StrictMode: at com.android.camera.app.CameraAppUI.setupClingForViewer(CameraAppUI.java:874)
06-17 22:47:09.526 6724 6724 E StrictMode: at com.android.camera.CameraActivity.onCreateTasks(CameraActivity.java:1618)
06-17 22:47:09.526 6724 6724 E StrictMode: at com.android.camera.util.QuickActivity.onCreate(QuickActivity.java:114)
06-17 22:47:09.526 6724 6724 E StrictMode: at android.app.Activity.performCreate(Activity.java:8342)
06-17 22:47:09.526 6724 6724 E StrictMode: at android.app.Activity.performCreate(Activity.java:8321)
06-17 22:47:09.526 6724 6724 E StrictMode: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1421)
06-17 22:47:09.526 6724 6724 E StrictMode: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3625)
06-17 22:47:09.526 6724 6724 E StrictMode: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3781)
06-17 22:47:09.526 6724 6724 E StrictMode: at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:101)
06-17 22:47:09.526 6724 6724 E StrictMode: at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:138)
06-17 22:47:09.526 6724 6724 E StrictMode: at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
06-17 22:47:09.526 6724 6724 E StrictMode: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2306)
06-17 22:47:09.526 6724 6724 E StrictMode: at android.os.Handler.dispatchMessage(Handler.java:106)
06-17 22:47:09.526 6724 6724 E StrictMode: at android.os.Looper.loopOnce(Looper.java:201)
06-17 22:47:09.526 6724 6724 E StrictMode: at android.os.Looper.loop(Looper.java:288)
06-17 22:47:09.526 6724 6724 E StrictMode: at android.app.ActivityThread.main(ActivityThread.java:7918)
06-17 22:47:09.526 6724 6724 E StrictMode: at java.lang.reflect.Method.invoke(Native Method)
06-17 22:47:09.526 6724 6724 E StrictMode: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
06-17 22:47:09.526 6724 6724 E StrictMode: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936)
06-17 22:47:09.528 6724 6724 V CAM_CameraController: Closing camera
06-17 22:47:09.529 6724 6747 W CAM2PORT_AndCamAgntImp: Releasing camera without any camera opened.
06-17 22:47:09.529 6724 6724 V CAM_ModulesInfo: EnableCaptureModule = true
06-17 22:47:09.531 6724 6724 V CAM_Profiler: [ 0.000ms][ui] GUARD: new CaptureModule - START
06-17 22:47:09.534 6724 6724 V CAM_Profiler: [ 2.599ms][ui] GUARD: new CaptureModule - STOP
06-17 22:47:09.535 6724 6724 V CAM_SettingsManager: listeners: [com.android.camera.app.CameraAppUI@852a2fd]
06-17 22:47:09.543 6724 6724 V CAM_SettingsManager: listeners: [com.android.camera.app.CameraAppUI@852a2fd, com.android.camera.ButtonManager@74f953e]
06-17 22:47:09.543 6724 6724 V CAM_SettingsManager: listeners: [com.android.camera.app.CameraAppUI@852a2fd, com.android.camera.ButtonManager@74f953e, com.android.camera.widget.IndicatorIconController@8398ec]
06-17 22:47:09.544 6724 6724 V CAM_Profiler: [343.431ms][ui] GUARD: CameraActivity.onCreateTasks - [ 9.466ms] Init Current Module UI
06-17 22:47:09.544 6724 6724 V CAM_Profiler: [ 0.000ms][ui] GUARD: CaptureModule.init - START
06-17 22:47:09.544 6724 6724 D CAM_CaptureModule: init UseAutotransformUiLayout = false
06-17 22:47:09.545 6724 6724 D CAM_Camera2OneCamMgr: Getting First BACK Camera
06-17 22:47:09.545 6724 6724 W CAM_Camera2OneCamMgr: No back-facing camera found.
06-17 22:47:09.545 6724 6724 W CAM_Camera2OneCamMgr: No external camera found.
06-17 22:47:09.545 6724 6724 D CAM_Camera2OneCamMgr: Getting First FRONT Camera
06-17 22:47:09.545 6724 6724 W CAM_Camera2OneCamMgr: No front-facing camera found.
06-17 22:47:09.545 6724 6724 W CAM_Camera2OneCamMgr: No external camera found.
06-17 22:47:09.547 6724 6724 D AndroidRuntime: Shutting down VM
06-17 22:47:09.548 6724 6724 E AndroidRuntime: FATAL EXCEPTION: main
I have similar issue, Camera crashes on launch. I have tried both the camera access and camera stepper motor quick settings tiles but no luck. The camera stepper motor one does physically change the camera position but the camera app and any third party camera app immediately quit with no visible image.
Adding more color to this issue:
I tried:
adb shell
cmd media.camera watch start -m android.control.effectMode,android.control.aeMode -c com.google.android.GoogleCamera,com.android.chrome
But the output was
Started watching 0 active clients
I'm getting the sense that maybe there's a camera driver issue?
Not that this thing has a flashlight, but worth noting that the flashlight tile also indicates "Camera in use".
I did some more digging. There seem to be two possible camera choices: gc05a2_mipi_raw
(a galaxycore (chinese) company camera) OR hi846_mipi_raw
(a hynix (south korean) camera).
It seems like I have the hi846_mipi_raw
. It seems that the kernel is finding the camera.
[ 13.682932] (1)[716:camerahalserver][imgsensor][imgsensor_hw_power] sensor_idx 0, power 1 curr_sensor_name hi846_mipi_raw, enable list NULL
[ 13.717198] (7)[48:kworker/7:0]android_work: sent uevent USB_STATE=CONNECTED
[ 13.726135] (0)[716:camerahalserver][imgsensor][imgsensor_check_is_alive] Sensor found ID = 0x846
[ 13.726154] (0)[716:camerahalserver][imgsensor][imgsensor_hw_power] sensor_idx 0, power 0 curr_sensor_name hi846_mipi_raw, enable list NULL
[ 13.749007] -(1)[525:main]configfs-gadget gadget: high-speed config #1: b
[ 13.749049] -(1)[525:main]ffs_func_set_alt - ffs->state:2
[ 13.749060] -(1)[525:main][MUSB]fifo_setup 1231: musb type=BULK
[ 13.749066] -(1)[525:main][MUSB]is_saving_mode 1272: 0
[ 13.749071] -(1)[525:main][MUSB]fifo_setup 1260: EP1 supports DBBUF
[ 13.749077] -(1)[525:main][MUSB]fifo_setup 1275: fifo size is 22 after 512, fifo address is 512, epnum 1,hwepnum 1
[ 13.749083] -(1)[525:main]QMU_WARN,<mtk_qmu_enable 628>, enable RQ(1)
[ 13.749094] -(1)[525:main][MUSB]musb_gadget_enable 1478: musb-hdrc periph: enabled ep1out for bulk OUT, maxpacket 512
[ 13.749102] -(1)[525:main][MUSB]fifo_setup 1231: musb type=BULK
[ 13.749106] -(1)[525:main][MUSB]is_saving_mode 1272: 0
[ 13.749111] -(1)[525:main][MUSB]fifo_setup 1260: EP1 supports DBBUF
[ 13.749115] -(1)[525:main][MUSB]fifo_setup 1275: fifo size is 22 after 512, fifo address is 1536, epnum 1,hwepnum 1
[ 13.749121] -(1)[525:main]QMU_WARN,<mtk_qmu_enable 706>, enable TQ(1)
[ 13.749131] -(1)[525:main][MUSB]musb_gadget_enable 1478: musb-hdrc periph: enabled ep1in for bulk IN, maxpacket 512
[ 13.749155] -(1)[525:main]configfs-gadget gadget: USB_REQ_SET_CONFIGURATION: value=0
[ 13.750765] (1)[127:kworker/1:1]android_work: sent uevent USB_STATE=CONFIGURED
[ 13.762305] (0)[716:camerahalserver][imgsensor][IMGSENSOR_PROFILE] [CheckIsAlive]Profile = 79360 us
[ 13.762323] (0)[716:camerahalserver][imgsensor][imgsensor_set_driver] [imgsensor_set_driver]:[0][1][hi846_mipi_raw]
[ 13.779001] -(2)[949:Jit thread pool]configfs-gadget gadget: [rlimit]val:-95,bReqType:80,bReq:6
[ 13.779018] -(2)[949:Jit thread pool]configfs-gadget gadget: [rlimit]w_value=0xf00, w_length=0x5
[ 13.825077] (0)[862:kworker/u16:4][HYN]hyn_esd_check_func: Enter
[ 13.825711] (4)[862:kworker/u16:4][HYN]hyn_esd_check_func: Exit(276)
2759 [ 13.762305] (0)[716:camerahalserver][imgsensor][IMGSENSOR_PROFILE] [CheckIsAlive]Profile = 79360 us
2760 [ 13.762323] (0)[716:camerahalserver][imgsensor][imgsensor_set_driver] [imgsensor_set_driver]:[0][1][hi846_mipi_raw]
2761 [ 13.779001] -(2)[949:Jit thread pool]configfs-gadget gadget: [rlimit]val:-95,bReqType:80,bReq:6
2762 [ 13.779018] -(2)[949:Jit thread pool]configfs-gadget gadget: [rlimit]w_value=0xf00, w_length=0x5
2763 [ 13.825077] (0)[862:kworker/u16:4][HYN]hyn_esd_check_func: Enter
2764 [ 13.825711] (4)[862:kworker/u16:4][HYN]hyn_esd_check_func: Exit(276)
2765 [ 13.828818] (5)[424:logd.auditd]type=1107 audit(1718918922.424:28): uid=0 auid=4294967295 ses=4294967295 subj=u:r:init:s0 msg='avc: denied { set } for property=ctl.stop$ril-daemon pid=875 uid=1001 gid=1001 scontext=u:r:gsm0710muxd:s0 tcontext=u:object_r:ctl_stop_prop:s0 tclass=property_service permissive=0'
2766 [ 14.153380] (5)[990:mtkfusionrild]binder: 990:990 ioctl 40046210 7fcaf743d4 returned -22
2767 [ 14.153774] (5)[990:mtkfusionrild]binder: 990:990 ioctl 40046210 7fcaf74294 returned -22
2768 [ 14.191763] (4)[424:logd.auditd]type=1107 audit(1718918922.788:29): uid=0 auid=4294967295 ses=4294967295 subj=u:r:init:s0 msg='avc: denied { set } for property=vendor.sms.md.ready pid=990 uid=1001 gid=1001 scontext=u:r:rild:s0 tcontext=u:object_r:vendor_default_prop:s0 tclass=property_service permissive=0'
2769 [ 14.265405] (4)[1035:RfxSender_5][ccci1/chr]port ccci_ss_xcap open with flag 20002 by RfxSender_5
2770 [ 14.275791] (1)[1010:RfxSender_3][ccci1/chr]port ccci_ioctl1 open with flag 20802 by RfxSender_3
2771 [ 14.276141] (1)[1010:RfxSender_3][ccci1/fsm]CCCI_IOC_GET_MD_TYPE: 12!
2772 [ 14.276195] (1)[1010:RfxSender_3][ccci1/chr]port ccci_ioctl1 close by RfxSender_3 rx_len=0 empty=1, clear_cnt=0, drop=0 usagecnt=0
2773 [ 14.276215] (1)[1010:RfxSender_3][ccci1/pot]critical user check: 0x3
2774 [ 15.018617] (7)[304:ccci_rpc_k][ccci1/rpc]md_eint:interrupts, sizeof: 4, sim_info: -12, -12
2775 [ 15.105924] (7)[1020:RfxSender_8][ccci1/chr]port ccci_ioctl1 open with flag 20802 by RfxSender_8
2776 [ 15.105954] (7)[1020:RfxSender_8][ccci1/fsm]EFUN set to 0
2777 [ 15.105983] (7)[1020:RfxSender_8][ccci1/chr]port ccci_ioctl1 close by RfxSender_8 rx_len=0 empty=1, clear_cnt=0, drop=0 usagecnt=0
2778 [ 15.106004] (7)[1020:RfxSender_8][ccci1/pot]critical user check: 0x3
2779 [ 15.106383] -(1)[1037:RfxSender_8][ccci0/util][send_last_md_status_to_user] md_id = -1; user_name = RfxSender_8
2780 [ 15.884970] (4)[644:HwBinder:541_1]gt1151INFO:[tpd_fb_notifier_callback:359] tpd_fb_notifier_callback
2781 [ 15.885071] (4)[644:HwBinder:541_1][Power/PPM] @ppm_lcmoff_switch: onoff = 1
2782 [ 15.885075] (4)[644:HwBinder:541_1]#@# cm_mgr_fb_notifier_callback(120) SCREEN ON
2783 [ 15.885097] (4)[644:HwBinder:541_1]gt1151INFO:[tpd_fb_notifier_callback:359] tpd_fb_notifier_callback
2784 [ 15.885101] (4)[644:HwBinder:541_1]gt1151INFO:[tpd_fb_notifier_callback:366] fb_notify(blank=0)
2785 [ 15.885104] (4)[644:HwBinder:541_1]gt1151INFO:[tpd_fb_notifier_callback:369] LCD ON Notify
2786 [ 15.885111] (4)[644:HwBinder:541_1][HIF-SDIO][W]wmt_fb_notifier_callback:@@@@@@@@@@wmt enter UNBLANK @@@@@@@@@@@@@@
2787 [ 15.885133] (4)[644:HwBinder:541_1][wlan][644]wlan_fb_notifier_callback:(SW4 INFO) wlan_fb_notifier_callback: event[9], blank[0]
2788 [ 15.885415] (4)[344:kworker/4:1][STP-PSM] [I]_stp_psm_do_wait: STP is waiting state for ACT, i=1, state = 2
2789 [ 15.917005] (4)[344:kworker/4:1][STP-PSM] [I]_stp_psm_do_wait: +Total waits for ACT takes 31585 usec
2790 [ 15.950425] (4)[655:mtk_stp_psm]MTK-BTIF-EXP[I]mtk_wcn_btif_dpidle_ctrl:enter deep idle
2791 [ 15.967061] (3)[0:swapper/3][name:spm&]Power/swap DP: No enter --- SODI3: No enter --- SODI: No enter ---
2792 [ 15.967080] (3)[0:swapper/3]mcdi cpu: 51, 76, 4, 19, 49, 81, 52, 63, cluster : 0, 18, pause = 0, multi core = 0, latency = 0, residency = 0, last core = 0, avail cpu = 00ff, cluster = 0003, enabled = 1, max_s_state = 5, system_idle_hint = 00000000
2793 [ 16.125868] (0)[1045:bootanimation]binder: 1045:1045 ioctl 40046210 7ff930ca90 returned -22
2794 [ 16.129009] (1)[525:main][mtk_net][rtnl_lock]There is no process hold rtnl lock
2795 [ 16.328955] (1)[1049:BootAnimation]binder: 1045:1049 ioctl 40046210 6fa0ecdf34 returned -22
2796 [ 16.385402] -(2)[258:kworker/2:1]mt635x_auxadc_read_raw: 3 callbacks suppressed
2797 [ 16.385413] (2)[258:kworker/2:1]mt635x-auxadc mt635x-auxadc: name:VPROC_TEMP, channel=4, adc_out=0x5fc, adc_result=673
2798 [ 16.385433] (2)[258:kworker/2:1][Thermal/TZ/PMIC] [tsbuck2_raw_to_temp] 673, 392260, 1000000, -1863
2799 [ 16.385439] (2)[258:kworker/2:1][Thermal/TZ/PMIC] [tsbuck2_raw_to_temp] t_current=31015
2800 [ 16.385444] (2)[258:kworker/2:1][Thermal/TZ/PMIC] mt6357tsbuck2_get_hw_temp raw=673 T=31015
2801 [ 16.385449] (2)[258:kworker/2:1][Thermal/TZ/PMIC] mt6357tsbuck2_get_hw_temp pre_tsbuck2_temp1=3101
482 [ 1.120195] (5)[1:swapper/0]set_mcdi_s_state = 5
483 [ 1.122239] (2)[1:swapper/0][GYRO] Cannot find gyro device!
484 [ 1.124769] (2)[1:swapper/0][CMDQ]handle:0000000084f60e7d 0000000084f60e7d
485 [ 1.125100] (2)[1:swapper/0][CMDQ]iwc:000000006cba629e(0x146f8) ex:00000000c9a4f194(0x124ae0) ex2:00000000f51236de(0x7f0e8)
486 [ 1.125106] (2)[1:swapper/0][CMDQ]mdp_late_init begin
487 [ 1.125125] (2)[1:swapper/0][CMDQ]mdp_late_init end
488 [ 1.125129] (2)[1:swapper/0][CMDQ]CMDQ driver late init begin
489 [ 1.127083] (2)[1:swapper/0]qos_sram addr:0xb3fdb80 len:128
490 [ 1.127101] (2)[1:swapper/0]mtkqos:mtk_qos_probe done
491 [ 1.127816] (2)[1:swapper/0]#@# cm_mgr_check_dram_type(285) ddr_type 0x3, ddr_hz 3200, cm_mgr_idx 0x0
492 [ 1.127826] (2)[1:swapper/0]#@# platform_cm_mgr_probe(1222) cm_mgr_num_perf 3
493 [ 1.127835] (2)[1:swapper/0]#@# platform_cm_mgr_probe(1245) cm_mgr_num_array 2
494 [ 1.127857] (2)[1:swapper/0][CM_MGR] platform-cm_mgr cm_mgr_base=00000000e69bf354
495 [ 1.127862] (2)[1:swapper/0]#@# cm_mgr_check_dts_setting(607) opp_count -2
496 [ 1.127868] (2)[1:swapper/0]#@# cm_mgr_check_dts_setting(636) cm_mgr_enable 1
497 [ 1.127873] (2)[1:swapper/0]#@# cm_mgr_check_dts_setting(647) cm_mgr_use_bcpu_weight 0
498 [ 1.127878] (2)[1:swapper/0]#@# cm_mgr_check_dts_setting(658) cm_mgr_use_cpu_to_dram_map 0
499 [ 1.127883] (2)[1:swapper/0]#@# cm_mgr_check_dts_setting(669) cm_mgr_use_cpu_to_dram_map_new 0
500 [ 1.127889] (2)[1:swapper/0]#@# cm_mgr_check_dts_setting(676) cpu_power_bcpu_weight_max 100
501 [ 1.127894] (2)[1:swapper/0]#@# cm_mgr_check_dts_setting(683) cpu_power_bcpu_weight_min 100
502 [ 1.127901] (2)[1:swapper/0][CM_MGR] platform-cm_mgr_probe Done.
503 [ 1.128186] (2)[1:swapper/0][MTK_SMI]debugfs_create_file failed: -19
504 [ 1.128390] (2)[1:swapper/0][mmdvfs]force flip step0 when late_init
505 [ 1.130241] (2)[1:swapper/0][Thermal/tzcharger2]mtktscharger2_pdrv_probe
506 [ 1.131643] (2)[1:swapper/0]mtk_leds get_cust_led_dtsi(220) :The red's led mode is : 0
507 [ 1.131656] (2)[1:swapper/0]mtk_leds get_cust_led_dtsi(235) :The red's led data is : 1
508 [ 1.131846] (2)[1:swapper/0]mtk_leds get_cust_led_dtsi(220) :The green's led mode is : 0
509 [ 1.131851] (2)[1:swapper/0]mtk_leds get_cust_led_dtsi(235) :The green's led data is : 1
510 [ 1.131972] (2)[1:swapper/0]mtk_leds get_cust_led_dtsi(220) :The blue's led mode is : 0
511 [ 1.131977] (2)[1:swapper/0]mtk_leds get_cust_led_dtsi(235) :The blue's led data is : 1
512 [ 1.132087] (2)[1:swapper/0]mtk_leds get_cust_led_dtsi(220) :The jogball-backlight's led mode is : 0
513 [ 1.132092] (2)[1:swapper/0]mtk_leds get_cust_led_dtsi(235) :The jogball-backlight's led data is : 1
514 [ 1.132202] (2)[1:swapper/0]mtk_leds get_cust_led_dtsi(220) :The keyboard-backlight's led mode is : 0
515 [ 1.132207] (2)[1:swapper/0]mtk_leds get_cust_led_dtsi(235) :The keyboard-backlight's led data is : 1
516 [ 1.132317] (2)[1:swapper/0]mtk_leds get_cust_led_dtsi(220) :The button-backlight's led mode is : 0
517 [ 1.132322] (2)[1:swapper/0]mtk_leds get_cust_led_dtsi(235) :The button-backlight's led data is : 1
518 [ 1.132431] (2)[1:swapper/0]mtk_leds get_cust_led_dtsi(220) :The lcd-backlight's led mode is : 5
519 [ 1.132436] (2)[1:swapper/0]mtk_leds get_cust_led_dtsi(235) :The lcd-backlight's led data is : 1
520 [ 1.132441] (2)[1:swapper/0]mtk_leds get_cust_led_dtsi(286) :kernel:the BL hw mode is BLS.
521 [ 1.132743] (2)[1:swapper/0][imgsensor][imgsensor_init] [camerahw_probe] start
522 [ 1.134461] (2)[1:swapper/0]sensordrv kd_camera_hw: Linked as a consumer to regulator.16
523 [ 1.134492] (2)[1:swapper/0]sensordrv kd_camera_hw: Linked as a consumer to regulator.17
524 [ 1.134545] (2)[1:swapper/0][imgsensor][regulator_init] regulator[2][0] cam2_vcama fail!
525 [ 1.134570] (2)[1:swapper/0][imgsensor][regulator_init] regulator[3][0] cam3_vcama fail!
526 [ 1.134581] (2)[1:swapper/0][imgsensor][regulator_init] regulator[3][1] cam3_vcamd fail!
527 [ 1.134592] (2)[1:swapper/0][imgsensor][regulator_init] regulator[3][2] cam3_vcamio fail!
528 [ 1.134602] (2)[1:swapper/0][imgsensor][regulator_init] regulator[4][0] cam4_vcama fail!
529 [ 1.134613] (2)[1:swapper/0][imgsensor][regulator_init] regulator[4][1] cam4_vcamd fail!
530 [ 1.134624] (2)[1:swapper/0][imgsensor][regulator_init] regulator[4][2] cam4_vcamio fail!
531 [ 1.134634] (2)[1:swapper/0][imgsensor][regulator_init] regulator[5][0] cam5_vcama fail!
532 [ 1.134645] (2)[1:swapper/0][imgsensor][regulator_init] regulator[5][1] cam5_vcamd fail!
533 [ 1.134656] (2)[1:swapper/0][imgsensor][regulator_init] regulator[5][2] cam5_vcamio fail!
534 [ 1.134666] (2)[1:swapper/0][imgsensor][regulator_init] regulator[6][0] cam6_vcama fail!
535 [ 1.134677] (2)[1:swapper/0][imgsensor][regulator_init] regulator[6][1] cam6_vcamd fail!
536 [ 1.134688] (2)[1:swapper/0][imgsensor][regulator_init] regulator[6][2] cam6_vcamio fail!
537 [ 1.134698] (2)[1:swapper/0][imgsensor][regulator_init] regulator[7][0] cam7_vcama fail!
538 [ 1.134709] (2)[1:swapper/0][imgsensor][regulator_init] regulator[7][1] cam7_vcamd fail!
539 [ 1.134720] (2)[1:swapper/0][imgsensor][regulator_init] regulator[7][2] cam7_vcamio fail!
540 [ 1.134730] (2)[1:swapper/0][imgsensor][regulator_init] regulator[8][0] cam8_vcama fail!
541 [ 1.134741] (2)[1:swapper/0][imgsensor][regulator_init] regulator[8][1] cam8_vcamd fail!
542 [ 1.134751] (2)[1:swapper/0][imgsensor][regulator_init] regulator[8][2] cam8_vcamio fail!
543 [ 1.134762] (2)[1:swapper/0][imgsensor][regulator_init] regulator[9][0] cam9_vcama fail!
544 [ 1.134772] (2)[1:swapper/0][imgsensor][regulator_init] regulator[9][1] cam9_vcamd fail!
545 [ 1.134783] (2)[1:swapper/0][imgsensor][regulator_init] regulator[9][2] cam9_vcamio fail!
546 [ 1.134793] (2)[1:swapper/0][imgsensor][regulator_init] regulator[10][0] cam10_vcama fail!
547 [ 1.134804] (2)[1:swapper/0][imgsensor][regulator_init] regulator[10][1] cam10_vcamd fail!
548 [ 1.134815] (2)[1:swapper/0][imgsensor][regulator_init] regulator[10][2] cam10_vcamio fail!
549 [ 1.134826] (2)[1:swapper/0][imgsensor][regulator_init] regulator[11][0] cam11_vcama fail!
550 [ 1.134836] (2)[1:swapper/0][imgsensor][regulator_init] regulator[11][1] cam11_vcamd fail!
551 [ 1.134847] (2)[1:swapper/0][imgsensor][regulator_init] regulator[11][2] cam11_vcamio fail!
552 [ 1.135368] (2)[1:swapper/0][imgsensor][gpio_init] gpio_init : pinctrl err, cam1_vcama_on
553 [ 1.135375] (2)[1:swapper/0][imgsensor][gpio_init] gpio_init : pinctrl err, cam1_vcama_off
554 [ 1.135384] (2)[1:swapper/0][imgsensor][gpio_init] gpio_init : pinctrl err, cam3_pnd1
555 [ 1.135389] (2)[1:swapper/0][imgsensor][gpio_init] gpio_init : pinctrl err, cam3_pnd0
556 [ 1.135394] (2)[1:swapper/0][imgsensor][gpio_init] gpio_init : pinctrl err, cam3_rst1
557 [ 1.135399] (2)[1:swapper/0][imgsensor][gpio_init] gpio_init : pinctrl err, cam3_rst0
558 [ 1.135404] (2)[1:swapper/0][imgsensor][gpio_init] gpio_init : pinctrl err, cam3_vcama_on
559 [ 1.135408] (2)[1:swapper/0][imgsensor][gpio_init] gpio_init : pinctrl err, cam3_vcama_off
560 [ 1.135413] (2)[1:swapper/0][imgsensor][gpio_init] gpio_init : pinctrl err, cam4_pnd1
561 [ 1.135418] (2)[1:swapper/0][imgsensor][gpio_init] gpio_init : pinctrl err, cam4_pnd0
562 [ 1.135423] (2)[1:swapper/0][imgsensor][gpio_init] gpio_init : pinctrl err, cam4_rst1
563 [ 1.135428] (2)[1:swapper/0][imgsensor][gpio_init] gpio_init : pinctrl err, cam4_rst0
564 [ 1.135433] (2)[1:swapper/0][imgsensor][gpio_init] gpio_init : pinctrl err, cam4_vcama_on
565 [ 1.135438] (2)[1:swapper/0][imgsensor][gpio_init] gpio_init : pinctrl err, cam4_vcama_off
566 [ 1.135443] (2)[1:swapper/0][imgsensor][gpio_init] gpio_init : pinctrl err, cam5_pnd1
567 [ 1.135448] (2)[1:swapper/0][imgsensor][gpio_init] gpio_init : pinctrl err, cam5_pnd0
568 [ 1.135453] (2)[1:swapper/0][imgsensor][gpio_init] gpio_init : pinctrl err, cam5_rst1
569 [ 1.135457] (2)[1:swapper/0][imgsensor][gpio_init] gpio_init : pinctrl err, cam5_rst0
570 [ 1.135463] (2)[1:swapper/0][imgsensor][gpio_init] gpio_init : pinctrl err, cam5_vcama_on
571 [ 1.135467] (2)[1:swapper/0][imgsensor][gpio_init] gpio_init : pinctrl err, cam5_vcama_off
572 [ 1.135472] (2)[1:swapper/0][imgsensor][gpio_init] gpio_init : pinctrl err, cam6_pnd1
573 [ 1.135477] (2)[1:swapper/0][imgsensor][gpio_init] gpio_init : pinctrl err, cam6_pnd0
574 [ 1.135482] (2)[1:swapper/0][imgsensor][gpio_init] gpio_init : pinctrl err, cam6_rst1
575 [ 1.135487] (2)[1:swapper/0][imgsensor][gpio_init] gpio_init : pinctrl err, cam6_rst0
576 [ 1.135492] (2)[1:swapper/0][imgsensor][gpio_init] gpio_init : pinctrl err, cam6_vcama_on
577 [ 1.135497] (2)[1:swapper/0][imgsensor][gpio_init] gpio_init : pinctrl err, cam6_vcama_off
578 [ 1.135502] (2)[1:swapper/0][imgsensor][gpio_init] gpio_init : pinctrl err, cam7_pnd1
579 [ 1.135507] (2)[1:swapper/0][imgsensor][gpio_init] gpio_init : pinctrl err, cam7_pnd0
580 [ 1.135512] (2)[1:swapper/0][imgsensor][gpio_init] gpio_init : pinctrl err, cam7_rst1
581 [ 1.135517] (2)[1:swapper/0][imgsensor][gpio_init] gpio_init : pinctrl err, cam7_rst0
582 [ 1.135522] (2)[1:swapper/0][imgsensor][gpio_init] gpio_init : pinctrl err, cam7_vcama_on
583 [ 1.135527] (2)[1:swapper/0][imgsensor][gpio_init] gpio_init : pinctrl err, cam7_vcama_off
584 [ 1.135531] (2)[1:swapper/0][imgsensor][gpio_init] gpio_init : pinctrl err, cam8_pnd1
585 [ 1.135536] (2)[1:swapper/0][imgsensor][gpio_init] gpio_init : pinctrl err, cam8_pnd0
586 [ 1.135541] (2)[1:swapper/0][imgsensor][gpio_init] gpio_init : pinctrl err, cam8_rst1
586,7710%
516 [ 1.132317] (2)[1:swapper/0]mtk_leds get_cust_led_dtsi(220) :The button-backlight's led mode is : 0
517 [ 1.132322] (2)[1:swapper/0]mtk_leds get_cust_led_dtsi(235) :The button-backlight's led data is : 1
518 [ 1.132431] (2)[1:swapper/0]mtk_leds get_cust_led_dtsi(220) :The lcd-backlight's led mode is : 5
519 [ 1.132436] (2)[1:swapper/0]mtk_leds get_cust_led_dtsi(235) :The lcd-backlight's led data is : 1
520 [ 1.132441] (2)[1:swapper/0]mtk_leds get_cust_led_dtsi(286) :kernel:the BL hw mode is BLS.
521 [ 1.132743] (2)[1:swapper/0][imgsensor][imgsensor_init] [camerahw_probe] start
522 [ 1.134461] (2)[1:swapper/0]sensordrv kd_camera_hw: Linked as a consumer to regulator.16
523 [ 1.134492] (2)[1:swapper/0]sensordrv kd_camera_hw: Linked as a consumer to regulator.17
524 [ 1.134545] (2)[1:swapper/0][imgsensor][regulator_init] regulator[2][0] cam2_vcama fail!
525 [ 1.134570] (2)[1:swapper/0][imgsensor][regulator_init] regulator[3][0] cam3_vcama fail!
526 [ 1.134581] (2)[1:swapper/0][imgsensor][regulator_init] regulator[3][1] cam3_vcamd fail!
527 [ 1.134592] (2)[1:swapper/0][imgsensor][regulator_init] regulator[3][2] cam3_vcamio fail!
528 [ 1.134602] (2)[1:swapper/0][imgsensor][regulator_init] regulator[4][0] cam4_vcama fail!
529 [ 1.134613] (2)[1:swapper/0][imgsensor][regulator_init] regulator[4][1] cam4_vcamd fail!
530 [ 1.134624] (2)[1:swapper/0][imgsensor][regulator_init] regulator[4][2] cam4_vcamio fail!
531 [ 1.134634] (2)[1:swapper/0][imgsensor][regulator_init] regulator[5][0] cam5_vcama fail!
532 [ 1.134645] (2)[1:swapper/0][imgsensor][regulator_init] regulator[5][1] cam5_vcamd fail!
533 [ 1.134656] (2)[1:swapper/0][imgsensor][regulator_init] regulator[5][2] cam5_vcamio fail!
534 [ 1.134666] (2)[1:swapper/0][imgsensor][regulator_init] regulator[6][0] cam6_vcama fail!
535 [ 1.134677] (2)[1:swapper/0][imgsensor][regulator_init] regulator[6][1] cam6_vcamd fail!
536 [ 1.134688] (2)[1:swapper/0][imgsensor][regulator_init] regulator[6][2] cam6_vcamio fail!
537 [ 1.134698] (2)[1:swapper/0][imgsensor][regulator_init] regulator[7][0] cam7_vcama fail!
538 [ 1.134709] (2)[1:swapper/0][imgsensor][regulator_init] regulator[7][1] cam7_vcamd fail!
539 [ 1.134720] (2)[1:swapper/0][imgsensor][regulator_init] regulator[7][2] cam7_vcamio fail!
540 [ 1.134730] (2)[1:swapper/0][imgsensor][regulator_init] regulator[8][0] cam8_vcama fail!
541 [ 1.134741] (2)[1:swapper/0][imgsensor][regulator_init] regulator[8][1] cam8_vcamd fail!
542 [ 1.134751] (2)[1:swapper/0][imgsensor][regulator_init] regulator[8][2] cam8_vcamio fail!
543 [ 1.134762] (2)[1:swapper/0][imgsensor][regulator_init] regulator[9][0] cam9_vcama fail!
544 [ 1.134772] (2)[1:swapper/0][imgsensor][regulator_init] regulator[9][1] cam9_vcamd fail!
545 [ 1.134783] (2)[1:swapper/0][imgsensor][regulator_init] regulator[9][2] cam9_vcamio fail!
546 [ 1.134793] (2)[1:swapper/0][imgsensor][regulator_init] regulator[10][0] cam10_vcama fail!
547 [ 1.134804] (2)[1:swapper/0][imgsensor][regulator_init] regulator[10][1] cam10_vcamd fail!
548 [ 1.134815] (2)[1:swapper/0][imgsensor][regulator_init] regulator[10][2] cam10_vcamio fail!
549 [ 1.134826] (2)[1:swapper/0][imgsensor][regulator_init] regulator[11][0] cam11_vcama fail!
550 [ 1.134836] (2)[1:swapper/0][imgsensor][regulator_init] regulator[11][1] cam11_vcamd fail!
551 [ 1.134847] (2)[1:swapper/0][imgsensor][regulator_init] regulator[11][2] cam11_vcamio fail!
552 [ 1.135368] (2)[1:swapper/0][imgsensor][gpio_init] gpio_init : pinctrl err, cam1_vcama_on
553 [ 1.135375] (2)[1:swapper/0][imgsensor][gpio_init] gpio_init : pinctrl err, cam1_vcama_off
554 [ 1.135384] (2)[1:swapper/0][imgsensor][gpio_init] gpio_init : pinctrl err, cam3_pnd1
555 [ 1.135389] (2)[1:swapper/0][imgsensor][gpio_init] gpio_init : pinctrl err, cam3_pnd0
556 [ 1.135394] (2)[1:swapper/0][imgsensor][gpio_init] gpio_init : pinctrl err, cam3_rst1
557 [ 1.135399] (2)[1:swapper/0][imgsensor][gpio_init] gpio_init : pinctrl err, cam3_rst0
558 [ 1.135404] (2)[1:swapper/0][imgsensor][gpio_init] gpio_init : pinctrl err, cam3_vcama_on
559 [ 1.135408] (2)[1:swapper/0][imgsensor][gpio_init] gpio_init : pinctrl err, cam3_vcama_off
560 [ 1.135413] (2)[1:swapper/0][imgsensor][gpio_init] gpio_init : pinctrl err, cam4_pnd1
561 [ 1.135418] (2)[1:swapper/0][imgsensor][gpio_init] gpio_init : pinctrl err, cam4_pnd0
562 [ 1.135423] (2)[1:swapper/0][imgsensor][gpio_init] gpio_init : pinctrl err, cam4_rst1
563 [ 1.135428] (2)[1:swapper/0][imgsensor][gpio_init] gpio_init : pinctrl err, cam4_rst0
564 [ 1.135433] (2)[1:swapper/0][imgsensor][gpio_init] gpio_init : pinctrl err, cam4_vcama_on
565 [ 1.135438] (2)[1:swapper/0][imgsensor][gpio_init] gpio_init : pinctrl err, cam4_vcama_off
566 [ 1.135443] (2)[1:swapper/0][imgsensor][gpio_init] gpio_init : pinctrl err, cam5_pnd1
567 [ 1.135448] (2)[1:swapper/0][imgsensor][gpio_init] gpio_init : pinctrl err, cam5_pnd0
568 [ 1.135453] (2)[1:swapper/0][imgsensor][gpio_init] gpio_init : pinctrl err, cam5_rst1
569 [ 1.135457] (2)[1:swapper/0][imgsensor][gpio_init] gpio_init : pinctrl err, cam5_rst0
570 [ 1.135463] (2)[1:swapper/0][imgsensor][gpio_init] gpio_init : pinctrl err, cam5_vcama_on
571 [ 1.135467] (2)[1:swapper/0][imgsensor][gpio_init] gpio_init : pinctrl err, cam5_vcama_off
572 [ 1.135472] (2)[1:swapper/0][imgsensor][gpio_init] gpio_init : pinctrl err, cam6_pnd1
573 [ 1.135477] (2)[1:swapper/0][imgsensor][gpio_init] gpio_init : pinctrl err, cam6_pnd0
574 [ 1.135482] (2)[1:swapper/0][imgsensor][gpio_init] gpio_init : pinctrl err, cam6_rst1
575 [ 1.135487] (2)[1:swapper/0][imgsensor][gpio_init] gpio_init : pinctrl err, cam6_rst0
576 [ 1.135492] (2)[1:swapper/0][imgsensor][gpio_init] gpio_init : pinctrl err, cam6_vcama_on
577 [ 1.135497] (2)[1:swapper/0][imgsensor][gpio_init] gpio_init : pinctrl err, cam6_vcama_off
578 [ 1.135502] (2)[1:swapper/0][imgsensor][gpio_init] gpio_init : pinctrl err, cam7_pnd1
579 [ 1.135507] (2)[1:swapper/0][imgsensor][gpio_init] gpio_init : pinctrl err, cam7_pnd0
580 [ 1.135512] (2)[1:swapper/0][imgsensor][gpio_init] gpio_init : pinctrl err, cam7_rst1
581 [ 1.135517] (2)[1:swapper/0][imgsensor][gpio_init] gpio_init : pinctrl err, cam7_rst0
582 [ 1.135522] (2)[1:swapper/0][imgsensor][gpio_init] gpio_init : pinctrl err, cam7_vcama_on
583 [ 1.135527] (2)[1:swapper/0][imgsensor][gpio_init] gpio_init : pinctrl err, cam7_vcama_off
584 [ 1.135531] (2)[1:swapper/0][imgsensor][gpio_init] gpio_init : pinctrl err, cam8_pnd1
585 [ 1.135536] (2)[1:swapper/0][imgsensor][gpio_init] gpio_init : pinctrl err, cam8_pnd0
586 [ 1.135541] (2)[1:swapper/0][imgsensor][gpio_init] gpio_init : pinctrl err, cam8_rst1
587 [ 1.135546] (2)[1:swapper/0][imgsensor][gpio_init] gpio_init : pinctrl err, cam8_rst0
588 [ 1.135551] (2)[1:swapper/0][imgsensor][gpio_init] gpio_init : pinctrl err, cam8_vcama_on
589 [ 1.135556] (2)[1:swapper/0][imgsensor][gpio_init] gpio_init : pinctrl err, cam8_vcama_off
590 [ 1.135561] (2)[1:swapper/0][imgsensor][gpio_init] gpio_init : pinctrl err, cam9_pnd1
591 [ 1.135566] (2)[1:swapper/0][imgsensor][gpio_init] gpio_init : pinctrl err, cam9_pnd0
592 [ 1.135571] (2)[1:swapper/0][imgsensor][gpio_init] gpio_init : pinctrl err, cam9_rst1
593 [ 1.135575] (2)[1:swapper/0][imgsensor][gpio_init] gpio_init : pinctrl err, cam9_rst0
594 [ 1.135580] (2)[1:swapper/0][imgsensor][gpio_init] gpio_init : pinctrl err, cam9_vcama_on
595 [ 1.135585] (2)[1:swapper/0][imgsensor][gpio_init] gpio_init : pinctrl err, cam9_vcama_off
555,110%
594 [ 1.135580] (2)[1:swapper/0][imgsensor][gpio_init] gpio_init : pinctrl err, cam9_vcama_on
595 [ 1.135585] (2)[1:swapper/0][imgsensor][gpio_init] gpio_init : pinctrl err, cam9_vcama_off
596 [ 1.135590] (2)[1:swapper/0][imgsensor][gpio_init] gpio_init : pinctrl err, cam10_pnd1
597 [ 1.135595] (2)[1:swapper/0][imgsensor][gpio_init] gpio_init : pinctrl err, cam10_pnd0
598 [ 1.135600] (2)[1:swapper/0][imgsensor][gpio_init] gpio_init : pinctrl err, cam10_rst1
599 [ 1.135605] (2)[1:swapper/0][imgsensor][gpio_init] gpio_init : pinctrl err, cam10_rst0
600 [ 1.135610] (2)[1:swapper/0][imgsensor][gpio_init] gpio_init : pinctrl err, cam10_vcama_on
601 [ 1.135615] (2)[1:swapper/0][imgsensor][gpio_init] gpio_init : pinctrl err, cam10_vcama_off
602 [ 1.135620] (2)[1:swapper/0][imgsensor][gpio_init] gpio_init : pinctrl err, cam11_pnd1
603 [ 1.135625] (2)[1:swapper/0][imgsensor][gpio_init] gpio_init : pinctrl err, cam11_pnd0
604 [ 1.135630] (2)[1:swapper/0][imgsensor][gpio_init] gpio_init : pinctrl err, cam11_rst1
605 [ 1.135635] (2)[1:swapper/0][imgsensor][gpio_init] gpio_init : pinctrl err, cam11_rst0
606 [ 1.135640] (2)[1:swapper/0][imgsensor][gpio_init] gpio_init : pinctrl err, cam11_vcama_on
607 [ 1.135645] (2)[1:swapper/0][imgsensor][gpio_init] gpio_init : pinctrl err, cam11_vcama_off
608 [ 1.135686] (2)[1:swapper/0][imgsensor][imgsensor_hw_init] Property cust-sensor not defined
609 [ 1.135691] (2)[1:swapper/0][imgsensor][imgsensor_hw_init] Property cust-sensor not defined
610 [ 1.135696] (2)[1:swapper/0][imgsensor][imgsensor_hw_init] Property cust-sensor not defined
611 [ 1.135702] (2)[1:swapper/0][imgsensor][imgsensor_hw_init] Property cust-sensor not defined
612 [ 1.135707] (2)[1:swapper/0][imgsensor][imgsensor_hw_init] Property cust-sensor not defined
613 [ 1.135712] (2)[1:swapper/0][imgsensor][imgsensor_hw_init] Property cust-sensor not defined
614 [ 1.135717] (2)[1:swapper/0][imgsensor][imgsensor_hw_init] Property cust-sensor not defined
615 [ 1.135722] (2)[1:swapper/0][imgsensor][imgsensor_hw_init] Property cust-sensor not defined
616 [ 1.135727] (2)[1:swapper/0][imgsensor][imgsensor_hw_init] Property cust-sensor not defined
617 [ 1.135732] (2)[1:swapper/0][imgsensor][imgsensor_hw_init] Property cust-sensor not defined
618 [ 1.135737] (2)[1:swapper/0][imgsensor][imgsensor_hw_init] Property cust-sensor not defined
619 [ 1.135743] (2)[1:swapper/0][imgsensor][imgsensor_hw_init] Property cust-sensor not defined
620 [ 1.137440] (2)[1:swapper/0]flashlights_mt6370: mt6370_parse_dt: Channel number(2).
621 [ 1.137457] (2)[1:swapper/0]flashlights_mt6370: mt6370_parse_dt: Parse dt (type,ct,part,name,channel,decouple)=(0,0,0,flashlights-mt6370,0,0).
622 [ 1.137464] (2)[1:swapper/0]flashlights_mt6370: mt6370_parse_dt: Parse dt (type,ct,part,name,channel,decouple)=(0,1,0,flashlights-mt6370,1,0).
623 [ 1.137567] (1)[1:swapper/0]flashlight: flashlight_dev_register_by_device_id: Register device (0,0,0)
624 [ 1.137573] (1)[1:swapper/0]flashlight: flashlight_dev_register_by_device_id: Register device (0,1,0)
625 [ 1.138606] (1)[1:swapper/0]mtk-extcon-usb extcon_usb: Linked as a consumer to regulator.34
626 [ 1.138615] (1)[1:swapper/0]mtk-extcon-usb extcon_usb: vbus-voltage=5000000
627 [ 1.138621] (1)[1:swapper/0]mtk-extcon-usb extcon_usb: vbus-current=500000
628 [ 1.138782] (2)[1:swapper/0]mtk-extcon-usb extcon_usb: failed to get id gpio
629 [ 1.138787] (2)[1:swapper/0]mtk-extcon-usb extcon_usb: failed to init id pin
630 [ 1.138796] (4)[241:kworker/u16:2]mtk-extcon-usb extcon_usb: cur_dr(1) new_dr(2)
631 [ 1.138804] (2)[1:swapper/0]mt6370_pmu_charger mt6370_pmu_charger: mt6370_pmu_chg_get_online: online = 0
632 [ 1.138815] (4)[241:kworker/u16:2]mt_usb mt_usb: role_sx_set role 0, latest_role: 0
633 [ 1.138818] (2)[1:swapper/0]mtk-extcon-usb extcon_usb: online=0, ignore_usb=0, type=0
634 [ 1.139227] (2)[1:swapper/0]log_store: set boot phase, last boot phase is 0.
635 [ 1.139233] (2)[1:swapper/0]log_store: not boot up, don't store log to expdb
636 [ 1.139236] (2)[1:swapper/0]log store:sram_dram_buff addr 0x7f7c0000, size 0x40000.
637 [ 1.139356] (2)[1:swapper/0][PHY layout]log_store_mem:0x7f7c0000-0x7f7fffff (0x40000)
638 [ 1.139363] (2)[1:swapper/0]buff 0000000081dbdc10, sig cdab3412 size 40000 pl 400, sz 404d lk 444d, sz 1868c p c, l c
639 [ 1.139767] (5)[1:swapper/0]sys_timer 10017000.timer: invalid resource
640 [ 1.139779] (5)[1:swapper/0]unable to ioremap sysram base, might be disabled
641 [ 1.139790] (5)[1:swapper/0]mult=161319385, shift=21, maxsec=5000
642 [ 1.139802] (5)[1:swapper/0]enabled: 1, support_sysram: 0
643 [ 1.140646] (5)[1:swapper/0]bootmode: 0x0 boottype: 0x1
However there are weird SELinux permissions errors:
[ 13.580020] (4)[424:logd.auditd]type=1400 audit(1718918922.176:27): avc: denied { read } for comm="camerahalserver" name="u:object_r:default_prop:s0" dev="tmpfs" ino=7620 scontext=u:r:mtk_hal_camera:s0 tcontext=u:object_r:default_prop:s0 tclass=file permissive=0
I tried to disable SELinux but this functionality seems to be disabled:
> adb shell setenforce 0
setenforce: Couldn't set enforcing status to '0': Invalid argument
Seems that we're using a userdebug build:
adb shell
r1:/ # getprop ro.build.type
userdebug
But I don't know at all if it's possible to disable SELinux without access to source (see https://cweiske.de/tagebuch/android-disable-selinux.htm#disable for example)
My suspicion is that there's just a permissions issue, and that when building the image maybe disabling SELinux would enable the camera app to get access to the camera.
I did confirm that camerahalserver is running at least.
Did you re-apply boot.img? On mine, I see this:
[ 1.039477] (3)[253:kworker/3:1]lens_actuator_main_af: probe of camera_af_hw_node failed with error -16
[ 1.039502] (3)[253:kworker/3:1]Error: Driver 'MAIN2AF' is already registered, aborting...
[ 1.039509] (2)[126:kworker/2:1]mmcblk0: mmc0:0001 DV6DAB 116 GiB
[ 1.039512] (3)[253:kworker/3:1]lens_actuator_main2_af: probe of camera_af_hw_node failed with error -16
[ 1.039533] (3)[253:kworker/3:1]Error: Driver 'MAIN3AF' is already registered, aborting...
[ 1.039543] (3)[253:kworker/3:1]lens_actuator_main3_af: probe of camera_af_hw_node failed with error -16
[ 1.039567] (3)[253:kworker/3:1]Error: Driver 'SUB2AF' is already registered, aborting...
[ 1.039578] (3)[253:kworker/3:1]lens_actuator_sub2_af: probe of camera_af_hw_node failed with error -16
[ 1.039603] (3)[253:kworker/3:1]Error: Driver 'SUBAF' is already registered, aborting...
[ 1.039615] (3)[253:kworker/3:1]lens_actuator_sub_af: probe of camera_af_hw_node failed with error -16
I get similar selinux errors spamming after attempting to launch cam:
06-20 20:20:31.938 416 416 E SELinux : avc: denied { find } for interface=vendor.mediatek.hardware.videotelephony::IVideoTelephony sid=u:r:vtservice:s0 pid=685 scontext=u:r:vtservice:s0 tcontext=u:object_r:mtk_hal_videotelephony_hwservice:s0 tclass=hwservice_manager permissive=0
How did you check camera model?
This is interesting because how did they get the camera to work when they used the GitHub method from what I've seen no one else seems to have it work https://youtu.be/iDlM0cYS9Zs?feature=shared
Can anyone who has it working on their device post their logs? I wonder if they had different camera manufacturers for different batches (e.g. maybe the working ones are the galaxycore cameras) and that it's affecting things?
Or -- is it possible that the img between releases is a little different? I only tried the latest release.
Would be great to have an image with SELinux disabled so that we can hack around more.
After some troubleshooting on discord someone suggested a fix that worked for me. During my first install when device went into fastboot mode (black screen with white "fastboot" text) I had issues on Windows and manually resumed on Mac. I did not realize I needed to be in fastbootd (blue "fastbootd" at top of screen) for the vendor partition to work.
TLDR for me the fix was "adb reboot fastboot" and then "fastboot flash boot boot.img" and "fastboot flash vendor vendor.img" from the latest Rabbitude firmware dump. Camera working great now
Interesting, should someone run the /.r1.ps1 sequence again on the already flashed device to perform these actiions?
On Sat, Jun 22, 2024, 9:58 AM djh816 @.***> wrote:
After some troubleshooting on discord someone suggested a fix that worked for me. During my first install when device went into fastboot mode (black screen with white "fastboot" text) I had issues on Windows and manually resumed on Mac. I did not realize I needed to be in fastbootd (blue "fastbootd" at top of screen) for the vendor partition to work.
TLDR for me the fix was "adb reboot fastboot" and then "fastboot flash boot boot.img" and "fastboot flash vendor vendor.img" from the latest Rabbitude firmware dump. Camera working great now
— Reply to this email directly, view it on GitHub https://github.com/RabbitHoleEscapeR1/r1_escape/issues/18#issuecomment-2184108570, or unsubscribe https://github.com/notifications/unsubscribe-auth/BJIXRHDYU725GBTTW3ED223ZIWUNDAVCNFSM6AAAAABJPJP3X6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBUGEYDQNJXGA . You are receiving this because you commented.Message ID: @.***>
It would depend on your context, join us on Rabbitude discord :) https://discord.gg/zy6YuNyP
@djh816 shit I tried flashing boot.img and vendor.img and now I'm stuck in a boot loop :(
After a series of events, I managed to escape the boot loop, flash boot.img
and vendor.img
from the rabbitude firmware dump, re-flash system.img, and the camera started working.
@samliu what were those series of events that happened to escape the boot loop? Im in that loop at the moment
@samliu what were those series of events that happened to escape the boot loop? Im in that loop at the moment
So I kind of forget exactly but loosely I believe it was
# Use the virtualenv. If this doesn't work later, change the shebang in mtkbootcmd.py to point to the python here.
source venv/bin/activate
# This will set the device in fastboot and get you out of the boot loop temporarily.
sudo ./mtkbootcmd.py FASTBOOT
# But to stay out, you need to flash the partitions, especially boot and system.
fastboot flashing unlock
fastboot -w
# Now you need to re-flash the partitions it lets you flash. Here's where I'm hazy -- I forget which partitions you get access to in normal fastboot vs fastbootd. Just try them all, it'll reject if you can't flash the image. Then later when you reboot in fastbootd, you can flash the rest.
# Flashing the boot partition using the one from rabbitude dump
wget https://firmburrow.rabbitu.de/rabbitude/dumps/src/commit/a966826ff9d5236d05f1eeae456dae70e2a4ffbc/boot.img
fastboot flash --disable-verity --disable-verification boot boot.img
# Flashing the system partition
wget https://github.com/RabbitHoleEscapeR1/r1_escape/releases/download/20240605/system.img.xz
unxz system.img.xz
fastboot flash system system.img
# The vbmeta one too.
fastboot flash --disable-verity --disable-verification vbmeta vbmeta.img
# To enter `fastbootd` mode which lets you flash other images.
fastboot reboot-fastboot # If everything went well, your device will reboot and say it's in fastboot.
# Flash the vendor partition.
wget https://firmburrow.rabbitu.de/rabbitude/dumps/media/commit/a966826ff9d5236d05f1eeae456dae70e2a4ffbc/vendor.img
fastboot flash vendor vendor.img
The big trick is to stop the loop by running mtkbootcmd.py, which should put you in a position to at least flash the boot partition.
Another thing I noticed was: maybe I downloaded the wrong version of the vendor and boot images in the beginning? I deleted and re-downloaded and noticed there was a diff in the files I was using vs the one that I re-downloaded. If you use my wget commands, it should get the right ones.
Thanks for the fast reply. I ran sudo ./mtkbootcmd.py FASTBOOT and am still in the loop even though it said it got port /dev/ttyACM0 , initialized it, and sent the command. Going to keep trying that
Ok, i redownloaded mtkbootcmd.py and then didnt alter the shebang, ran the command again and now im out of the loop. It didnt like the boot img, said it wasnt an actual boot image, which was weird
And now I get why you put after a series of events, I am not even sure how but after trying different variations on the commands i finally got it to boot into the actual fastbootd screen where i was able to flash boot, vendor, vbmeta and system image. Now im up and running and the camera works. Getting to fastboot menu was the thing that did it, once youre there flash everything and its good to go
THANK YOU! I made sure to also patch the boot image with magisk before flashing to kill two birds with one stone. Everythings working great now... except for calling but that's an issue for another day.
I still have the same issue with the camera not working. I can flash boot.img, but when I try to flash vendor.img it gives me an error that the partition doesn't exist. Suggestions anyone?
PS C:\Users\User\Downloads\r1_escape-main> fastboot flash boot C:\Users\User\Downloads\r1_escape-main\boot.img
Sending 'boot_a' (32768 KB) OKAY [ 0.769s]
Writing 'boot_a' OKAY [ 0.439s]
Finished. Total time: 1.224s
PS C:\Users\User\Downloads\r1_escape-main> fastboot flash vendor C:\Users\User\Downloads\r1_escape-main\vendor.img
Sending sparse 'vendor' 1/3 (130956 KB) OKAY [ 3.013s]
Writing 'vendor' FAILED (remote: 'This partition doesn't exist')
fastboot: error: Command failed
PS C:\Users\User\Downloads\r1_escape-main> fastboot reboot
Rebooting OKAY [ 0.000s]
Finished. Total time: 0.000s
Output from
adb lolcat
when I try opening the camera: