New thermal imported from @Dorimanx branch and adjusted for I9505.
Revert "New thermal imported from @Dorimanx branch and adjusted for I9505."

This reverts commit e41aa5d44e10e8d221bde53db33a39334c630f87.