As I told earlier my phone was randomly restarting once or twice in a day. I tried everything from wiping factor data reset, reinstalling official firmware using odin, tested my battery by revolving it on the flat table, tested battery terminals, nothing solved my problem. Ultimately I gave up...