Warning: This tutorial is working on the OnePlus5 which lost the model ID file but the Recovery mode and Fastboot mode is still working.
What we need:
- Oxygen OS ROM package
- OnePlus 5
- Notepad++(https://notepad-plus-plus.org/download/v7.5.1.html)
- WinRAR
Some time, we may have already flashed a WRONG ROM package or you may have already done something WRONG. So the Recovery mode showed us Failed: E3004: This package is for "OnePlus 5" devices; this is a "[NAME]" .
At this time, the devices name what the Recovery mode showed me is empty.
I think that the model ID file may have already lost. But the Recovery mode showed me the device name is empty. Then I switch model validation file which in the ROM package to empty. It may be still working. Right?
Start:
- Download the ROM package
- Enter the folder
\META-INF\com\google\android
- Find this file
update-script
and unzip it.Then, open the file by Notepad++.
- Find this string
getprop("ro.display.series") == "OnePlus 5"
at the first line.And change the name to which Recovery mode showed.(At this time, I change to empty.)
- Finally, put this file into the zip package and select the compression mode to storage.
At this time, the ROM package has already made.Then, flash the TWRP Recovery and touch [Mount]-[Enable MTP]
- Flash the ROM package what we edited.