crwdns2933423:0crwdne2933423:0

Why is my phone shutting off randomly?

I have a Samsung Galaxy A40 which keeps shutting down randomly, for some minutes after it has shut off it doesnt want to turn back on and if i try to plug it in a charger it just bootloops. I cant also take a picture with flash or it will shut off, what can it be the issue?

Update (05/29/2022)

also its not a software issue cuz i factory resseted it

crwdns2934089:0crwdne2934089:0 crwdns2934093:0crwdne2934093:0

crwdns2934109:0crwdne2934109:0

crwdns2889612:0crwdne2889612:0 0
crwdns2934285:0crwdne2934285:0

crwdns2933315:02crwdne2933315:0

crwdns2934057:0crwdne2934057:0

The battery is going out. Here's a guide to replace it:

Samsung Galaxy A40 Battery Replacement

crwdns2934105:0crwdne2934105:0

crwdns2889612:0crwdne2889612:0 2

crwdns2947414:01crwdne2947414:0:

thanks i guess

crwdns2934271:0crwdnd2934271:0crwdne2934271:0

crwdns2934285:0crwdne2934285:0

There are other possibilities, @guardian10 is probably correct, but it could be due to for example water damage or a recently added app. If the phone works okay while plugged in to power with the original cable and power supply, but not when unplugged. (Assuming no damage). He is right. If it makes no differences, restart in safe mode to disable 3rd party apps, if it works fine figure out which were installed bout the time the symptoms began. See if uninstalling it fixes things... if no joy a new battery may cure it. I'd recheck the charger and cable first, though.

crwdns2934105:0crwdne2934105:0

crwdns2889612:0crwdne2889612:0 1

crwdns2944067:05crwdne2944067:0:

You re right, that factory reset ruled out software issues, I was thinking soft reset!

crwdns2934271:0crwdnd2934271:0crwdne2934271:0

I factory resseted the phone 3 times but didnt help

crwdns2934271:0crwdnd2934271:0crwdne2934271:0

one time it shut off during the factory reset

crwdns2934271:0crwdnd2934271:0crwdne2934271:0

the issues dissapear when plugged in

crwdns2934271:0crwdnd2934271:0crwdne2934271:0

Then that gives you the answer, if it works fine while plugged in: it is time for a new battery. Follow the guide @guardian10 posted above or find a local shop or a mail-in repair service to do it for you.

crwdns2934271:0crwdnd2934271:0crwdne2934271:0

crwdns2934285:0crwdne2934285:0

crwdns2934229:0crwdne2934229:0

usdfudihufd crwdns2934231:0crwdne2934231:0
crwdns2936625:0crwdne2936625:0:

crwdns2936751:024crwdne2936751:0 0

crwdns2936753:07crwdne2936753:0 1

crwdns2936753:030crwdne2936753:0 6

crwdns2942667:0crwdne2942667:0 1,408