Thank you m.swastik for noticing the issue in the hw partition and MK+2017 for posting the image! The hw partition was indeed corrupted as the attached diff shows. After copying over all those bytes in the attached image and using dd to overwrite my hw partition, my Moto G4 plus is a Plus again. No need to reflash the OS as the firmware simply reads this partition on startup. FYI, I have an XT1644 and even though MK+2017's image was an XT1642, it worked fine. Note I didn't copy MK+2017's entire hw.img, only the first few bytes of it.
Next time I flash, I won't be relying on the very partial TWRP backup, but rather use the script I posted here:
Complete Partition Backup Script
HEY nice to hear that it worked fr u but in my moto 4 plus XT1643 i am unable topush hw image it completes upto 100% but stuck in between after rebooting it jump back to faulty hw again help mee
---------- Post added at 04:40 AM ---------- Previous post was at 04:31 AM ----------
Anybody not having this issue can you please share your /dev/block/platform/7824900.sdhci/by-name/hw file.
My hw file has __UTAG_TAIL__ just after __UTAG_HEAD__ so may be due to this our hw properties are not being read. Since __UTAG_TAIL__ should be at the end of the file, all scripts stops executing after reading UTAG_TAIL.
Also, people having this issue can try deleting __UTAG_TAIL__ from this file using ES Explorer and try flashing firmware and post results.
hey bro can u post/dev/block/platform/7824900.sdhci/by-name copy