Improvements to Update_Log_File

Change-Id: I5596759b0cb39e4448b6be382f9224feed70a5ea
Merge "Improvements to Update_Log_File" into twrp2.7