Again, open it and remove line corresponding to flash recovery. Your recovery wont be changed.įor roms in tar or any other format, it should normally be some batch file which carries flash instructions. You can clearly see that its extracting recovery image to some location, so delete this line. Now various rom builders use various methods to flash recovery using script, so there isnt any specific way really, but look for any line that resembles something that means 'copy/flash recovery.img' and delete that line.įor ex in one of the roms I downloaded, recovery was flashed using this command-> package_extract_file('system/etc/recovery.img', '/dev/block/platform/msm_sdcc.1/by-name/recovery') For zip file, the android flash script is inside META-INF/com/google/android/ and you need to edit the file 'updater-script'. The next step is to edit out the scripts so it doesnt give error on missing recovery image. To prevent this, whenever you download a rom, open its tar or zip or whatever format is there with winrar and delete the recovery image inside it (if its zip file, then open it and go to system/etc and delete 'recovery.img' and if its tar file, again open it and delete the recovery.img or any file with similar name.
That will always replace custom recovery. Its because stock roms come with their own recovery.