[Xiaomi Redmi Note 4 Questions & Answers] kk100:
[ SOLVED]

I am answering my own question as I fixed the issue.

After posting my question on XDA my phone got soft bricked (Got stuck at boot and Restarting again). I lost lot of important because of this.

I tried lot of things but nothing worked. I installed some apps to check although to check automatic Rebooting. These apps are very good and I suggest that you should install it app system panel 2. This app checks all the apps in real time very good graphics and display and information. This app needs root to check system apps etc. I didn't find any problem with this app. I installed apps like alogcat which checks the whole system in real time all the logs in real time these kind of apps are for advanced users and developers which i am not so i didn't understand a thing except some commands which were making phone Restarting Automatically. I thought I may be able to catch some app which is misbehaving. I also disabled RAMEXPANDER app as I thought this app was misbehaving. I had already done kaspersky Antivirus full scan and there was no malware, virus etc. but the problem continued

I had TWRP installed on my phone so after my phone soft bricked. I want into Recovery and did TWRP factory reset as i had no other option. I Had already transferred my phone and memory card data to my PC which was 15 days old. I already had 2 backups one from MIUI backup and other Titanium Backup. These backups were also around 15 - 20 days old.

IMPORTANT - ALWAYS MAKE A HABIT OF BACKUP EVERY 15 DAYS OR ATLEAST A MONTH OR WHEN EVER YOU TRYING TO DO SOME EXPERIMENTS WITH PHONE. A HAVE LEARNED THIS LESSON A VERY HARD WAY. ALWAYS BACKUP.

I did TWRP FACTORY reset and my phone restarted like new. I did backup Recovery from MIUI inbuilt app. My phone recovered all apps and data which was 15 days old but i did lost some very important data which was from past 15 days.

My phone worked quite well and smooth. I again used RAMEXPANDER app everything worked.

I had lot of doubts still so installed an app which I personally think that every phone should have the app is SD MAID PRO. This app is just incredible you will not get any app like this as far as I know.

I ran this app (This app also needs root) it scanned the whole phone. I found 59,000 temporary files or temp files and deleted it. I am sure that this cleaning made my phone very smoother like new or may have also solved some Rebooting problems.

CONCLUSION - I am using my phone for more than a month no problems at all no automatically Rebooting. TWRP factory reset solved soft brick problem and automatically Rebooting problem. I think some app was misbehaving or some system app might have been misbehaving. The best solution is to take a backup of all the data and do a soft factory reset either through Recovery app like TWRP reset then restore the data. The inbuilt factory reset is a Hard reset which will delete internal data also So always be careful.

If you are unable to do above mentioned things then take it to a service center if you are comfortable that somebody might see your Data on phone. If you could manage that your phone is serviced in front of you that would be best like we did with PC.

I hope somebody benefits from all this.

Best Wishes