
Step 1
1) Go to Developer Options in Settings and enable Doze Mode and enable Advanced Reboot.
2) Go to Battery and click 3 vertical dots at the top right corner,now go to Aggressive doze & app hibernation and enable it for apps that you feel should not be running in background.Don't select apps like Whatsapp/Messengers because they need to be running in order to receive text.
Note:-If your battery backup is reduced using this step then unable the Aggressive doze & app hibernation.
3) Go to Storage and click on Cached data to delete it.
4) Go to Apps/Google and click on Storage/Manage Space and Clear All Data.

5) Repeat this step for Google Play Services.
6) Now don't click anywhere and reboot into recovery.
7) In recovery delete the Cache.It won't delete your data!
This solved the heating issue for me and enhanced a bit of battery life(not much though)
Step 2
- Go to WiFi/WiFi Settings and turn off Smart WiFi switcher.
- Go to Developer Options,scroll till you find Networking section and turn off every thing that you see there.
- Go to Backup&Reset and turn off Back up my data.
Step 3
If still battery is very less then download apps like Greenify(Click to know more) that will stop most of the apps running in the background and help you save some of our precious battery.
Note:Screen On Time of 4 hours is great in this device so if you are getting that don't panic .