can't switch to front camera - Xiaomi Redmi Note 5 Pro Questions & Answers

Whenever I try to switch to front camera on my redmi note 5 pro(whyred) it switch to secondary rear camera.Don't know what's going on.need help!I tried different apps, different roms, clean stock firmware.*Video calling apps are also not working. This happened few days ago maybe because I was trying to enable camera 2 API without root from an app from playstore which is highly unlikely. I can't see front camera details in any hardware spec app so I'm assuming hardware issue but then why it's switching to second rear camera I'm confused. Anyone .?

You can't enable cameraapi2 without root, flash a miui with mitools, clear data as well. See if cameras with then.

JustS0meone said:
You can't enable cameraapi2 without root, flash a miui with mitools, clear data as well. See if cameras with then.
Click to expand...
Click to collapse
I tried, I'm getting antirollback error in miflash tool.
So i flash stock rom using orangefox recovery. Still same issue

Related

[Q] PLEASE Help!!!!

I am currently running CyanogenMod 11 (M3) for t-mobile. I really need help fixing my camera. I was having problems with my camera earlier but now it is constantly force closing. Just recently the camera updated to Google camera and I was hoping the force would not occur anymore, but now it's even worse. If any ideas how to fix PLEASE tell me because I have many needs for the camera. This how the problem occurs: I try to take a picture and it will take it then it will freeze and I have to kill the app. Then I try to restart the app but I get an "Camera error: cannot connect to the camera." The problem was really bad after I flashed the ROM so I deleted that camera and flashed a "better" one. I try to use the other features of this updated Google camera but none of them work such as: lens blur, panorama or photo sphere . I would really love having these features working or even taking regular pictures without any force closes. I have to use the camera everyday so please help as soon as possible. Please anyone help me solve this problem!!!! (Current Phone: Samsung Galaxy S3 SGH-T999)
Thanks for the help in advance!! 
Sent from my SGH-T999 using XDA Premium 4 mobile app
First thing I'd do is make a nandroid backup, then factory reset. If it fixes it then some data you had was causing the issue.
Next thing to try is copy the cameradata folder from a stock rom to yours. Reboot and test.
If that doesnt help i would then Odin flash stock/root66 firmware and factory reset. Then test the camera. If its still not working it may be hardware. If it works, you can be certain its software/firmware related. No sense in more troubleshooting if you determine its hardware related.
If it works on stock but not after a clean rom flash, the rom is likely the problem. Search its thread for similar issues.
Good luck!
DocHoliday77 said:
First thing I'd do is make a nandroid backup, then factory reset. If it fixes it then some data you had was causing the issue.
Next thing to try is copy the cameradata folder from a stock rom to yours. Reboot and test.
If that doesnt help i would then Odin flash stock/root66 firmware and factory reset. Then test the camera. If its still not working it may be hardware. If it works, you can be certain its software/firmware related. No sense in more troubleshooting if you determine its hardware related.
If it works on stock but not after a clean rom flash, the rom is likely the problem. Search its thread for similar issues.
Good luck!
Click to expand...
Click to collapse
Thank you so much for the reply I will try this! If the factory reset does not work do you where I would able to find the camera data folder for Stock S3 Rom?
Unzip any stock based rom such as StockMod and its in the system folder.
Help?!
DocHoliday77 said:
Unzip any stock based rom such as StockMod and its in the system folder.
Click to expand...
Click to collapse
The reset didn't work...I', trying to fix this camera https://play.google.com/store/apps/details?id=com.google.android.GoogleCamera
This camera keeps freezing and then I have to end the task. After I end the task and try to go back to camera I get an "Camera error: Can't connect to camera." The lens blur and photo sphere and panorama are not working. Also, the camera is not taking the full screen when in rear facing camera but when I change to front facing the size becomes even smaller. Any idea how I can fix these problems? I am getting frustrated
me too!!
tennispro820 said:
The reset didn't work...I', trying to fix this camera https://play.google.com/store/apps/details?id=com.google.android.GoogleCamera
This camera keeps freezing and then I have to end the task. After I end the task and try to go back to camera I get an "Camera error: Can't connect to camera." The lens blur and photo sphere and panorama are not working. Also, the camera is not taking the full screen when in rear facing camera but when I change to front facing the size becomes even smaller. Any idea how I can fix these problems? I am getting frustrated
Click to expand...
Click to collapse
Me too! Facing all that errors and don't still know how to fix them.
Solved
Soe Min Thu said:
Me too! Facing all that errors and don't still know how to fix them.
Click to expand...
Click to collapse
I figured it out...it was a ROM problem. I flashed liquid smooth 4.4.2 and it worked perfectly.
tennispro820 said:
I figured it out...it was a ROM problem. I flashed liquid smooth 4.4.2 and it worked perfectly.
Click to expand...
Click to collapse
Ok, then, that issue would be fixed if I flash the latest nightly CM 11 Rom??
Soe Min Thu said:
Ok, then, that issue would be fixed if I flash the latest nightly CM 11 Rom??
Click to expand...
Click to collapse
It is a possibility, you can try and see. I flashed a completely different ROM.

Rear camera not working

Hi, the rear camera and flash seem to not be working a few days after installing Viper on my M9. Camera worked for about 1-2 days after flashing latest Viper ROM, but then stopped altogether. Anything trying to utilize the flash also doesn't work (HTC and Google flashlight). I've tried wiping the camera's data & cache, and I flashed the upgraded camera software that is available on Venom Hub, still no luck. Launching the camera app shows a black screen for a few seconds, then crashes back to home screen with no error message. Front camera works fine. Service provider is Sprint. Recovery is TWRP. I know that I could likely get a functioning camera back by re-flashing the Viper ROM or another ROM, but that's time consuming, and I'd prefer to only do that as a last resort. Any help greatly appreciated!
There is no fast way. Reflash the rom over the top, it shouldn't erase anything as you are recovering, not upgrading. Otherwise you're looking at going back to stock to test.
Sent from my HTC One M9 using Tapatalk
IncredibleHulk6 said:
Hi, the rear camera and flash seem to not be working a few days after installing Viper on my M9. Camera worked for about 1-2 days after flashing latest Viper ROM, but then stopped altogether. Anything trying to utilize the flash also doesn't work (HTC and Google flashlight). I've tried wiping the camera's data & cache, and I flashed the upgraded camera software that is available on Venom Hub, still no luck. Launching the camera app shows a black screen for a few seconds, then crashes back to home screen with no error message. Front camera works fine. Service provider is Sprint. Recovery is TWRP. I know that I could likely get a functioning camera back by re-flashing the Viper ROM or another ROM, but that's time consuming, and I'd prefer to only do that as a last resort. Any help greatly appreciated!
Click to expand...
Click to collapse
this happened to me without any software change (that I know of) just a hardware change. I even bought and installed a new rear camera which now allows the use of the front camera but the rear is not detected in the app and the flashlight just loops forever with a "loading" message. I am also SPRINT

Back camera not working/Flashlight not activating on stock, custom ROM or safe mode

Hi all,
I've been having quite a few problems with my month-old HTC 10, specifically with the camera (and the WLAN coverage, but at least that's working somewhat!) I finally unpacked it last week and have spent the whole week since attempting to fix the "Camera has stopped/Unable to connect to camera" problem. The selfie camera, however, is perfect and can be used in other apps, but attempting to switch to the camera on the back results in a freeze/force close. Considering I decided on the HTC 10 because of the camera quality, I'm a bit disappointed so far. A google search reveal a number of people having the same problem, but no real solution. Here's what I've done so far:
- Set up phone, comes with Nougat 7.0. Camera works at first, though seems to have problems with the auto focus. Camera app then updates overnight and stops working. Clear data/cache, remove updates, hard reset - no good. Flashlight does not work either, simply says "loading..." and stays like this indefinitely until closed.
- Factory reset, no change. Switch to safe mode, no change. Decided to unlock bootloader and install custom ROM after hearing that would fix it (I know, I know...I should have just sent it back at this point). Install Viper 5.10 + root with magisk, camera and flashlight still not working. Safe mode, not working. Full wipe in TWRP, RUU back to stock firmware (CID: HTC_034, flashed 2.41.401.3 signed firmware). Set up phone again on stock firmware, still no change in camera or flashlight.
- Install LeeDroid 10 3.7.0 custom ROM, root with magisk. I get a breakthrough here; turning off "OK Google" in settings gets the camera and flashlight working again! Still have the "laser autofocus blocked" issue, but I figure I'll deal with that later. Backed up with TiBu.
- Next day, decide to use a ROM that includes the latest security patches (got a bit annoyed waiting for HTC to push out the European updates, still on 1st January patch) so went for Resurrection Remix. Wipe, clean install etc. Camera stops working again, no change in safe mode. Wipe, clean flash back to LeeDroid, camera is no longer working, in normal mode or safe mode.
- Went through a bunch of custom ROMs at this point; ICE, Dirty Unicorns, LineageOS, then decided to try RR, LeeDroid and Viper again - camera still not working in normal mode or safe mode. With the ROMs that required GApps, used every package in both Open GApps and Dynamic GApps to install. No change to camera, Google Camera was unable to start as well.
- Flashed upgraded RUU (2.41.401.4 signed firmware) and went through the process of wipe/clean install custom ROM/test camera with all the above custom ROMs in normal mode and safe mode. No change in camera, though the ROMs were all excellently made
At this point I'm pretty stumped If it was a hardware problem, why did it work when I first installed LeeDroid, but not after? It's not been mishandled, it's just been sitting on my desk since I got it. The fact that it doesn't work in safe mode would suggest to me that ,maybe, a camera driver has been deleted somewhere along the way? I also tried a load of other methods I found on various message boards; flash it with no SD card inserted, flash without SIM card installed, etc. but absolutely nothing works.
Third party camera apps also don't work; most simply crash on starting. Open Camera says "Unable to access camera. Maybe being used by another app?", so I tried removing the permissions of all apps that had access to the camera except the camera itself - no change. Deleted cache/data/preferences of all apps - no change.
Finally, I had a look at the HTC diagnostics test using *#*# 3424 #*#* on the dialler - the camera test doesn't even show up! :crying:
I've run out of things to try at this point, so I'm posting this here to see if anyone can possibly shed some light on this very strange situation. Is there something I can do to fix it? Or should I start begging Amazon to give me a refund? Unfortunately I'm a week outside their 30 day return window...lesson learned for next time; if in doubt, send it back!
Oops, meant to post this in the Q and A forum. Don't want to spam a duplicate, is it possible to move it over?
Hardware issue. Contact HTC for a replacement. sounds like it may just not be connected. I had one with no working vibration notification, the motor would turn on, you could hear it, but the phone wouldn't vibrate. Got it replaced ASAP! I recommend you do the same!
FinnMacKool said:
Hi all,
I've been having quite a few problems with my month-old HTC 10, specifically with the camera (and the WLAN coverage, but at least that's working somewhat!) I finally unpacked it last week and have spent the whole week since attempting to fix the "Camera has stopped/Unable to connect to camera" problem. The selfie camera, however, is perfect and can be used in other apps, but attempting to switch to the camera on the back results in a freeze/force close. Considering I decided on the HTC 10 because of the camera quality, I'm a bit disappointed so far. A google search reveal a number of people having the same problem, but no real solution. Here's what I've done so far:
- !
Click to expand...
Click to collapse
Same issue here. The only thing that works for me (so far) is flashing back to a Marshmallow rom. HTC has been completely silent on this issue in terms of actually fixing the problem. They know the problem is there for only a small number of us and so aren't going to do anything about it. Fine. This was my first and will be my LAST htc phone. Buh bye htc, you'll never get another dime from me.
Did you fix the issue, coz i have the same in my HTC 10
Hi
follow my post in anildsouza73 blog..I will show how to fix it if someone really spoiled it...have a good day..
from yesterday morning the problem appeared to me. Initially, the difficulty in focusing, then rebooting the impossibility of opening the camera app and the flashlight. I found on Youtube the videos that showed the same problem. Is there a solution today?
Hi all
I found if I cleared my flashlight cache and then the camera cache, soft reset phone I could get the camera working again. Only problem now is the autofocus is not working properly. Any ideas for that?
Same problem. Focus stopped working, then I cannot launch camera app. Anyone found a solution?

OnePlus 5t camera issue

Hey I recently bought the OnePlus 5t and it was working fine,but now the camera app crashes and the back camera just shows a blank screen,I am able to use my front cam via third party apps,but back camera is completely not working.does anybody else face same problems and is there a solution? ( PS: I already cleared cache of camera app,wiped cache by pressing volume down and power button,used safe mode and also did a factory reset and it's still not working)
I am facing the same issue, I tried the same things you did. I did see on one plus forums that rooting the OS fixed the problem but I don't want to do that
Try to re flash stock (latest) Oxygen OS if that wont help probably you have faulty device.
Any solution? I have the same issue and I wouldn't like to buy a new one

Camera does not work

Ok I've googled a lot and none of the suggested solutions worked.
Device: Cedric XT1676
Bought second hand with Oreo pre-installed. Camera does not work. Things I tried:
- Clear cache/data and adjust permissions of camera app
- Clear cache partition
- Tried OpenCam
- Tried Custom ROMS: LineageOS 15, 16, OMNI, ArrowOS, back to stock
In all custom ROMs the camera app immediately closes and does not work. Any terminal command to debug the issue or other way to fix it?
Happy for any help on this issue
Camera does not work correctly on custom oero/pie roms
If you are trying to work out if your camera works then it's pointless trying these roms
Flash the latest stock oero firmware via fastboot
If the camera doesn't work correctly with stock oreo firmware it's likely to be a hardware fault
Possibly it is a camera problem, try changing it or take it to be repaired

Categories

Resources