Hi,
For those of you who don't know , flashing an Aosp source built ROM that was compiled with the command " make otapackage" will break and overwrite your custom recovery (for example Twrp).
But I came up with a fix for it when i saw that Scroler made a script to fix this problem for the Nexus 7 (2013) .
I modified it to work on the Nexus 4.
You only need to flash this in recovery as a zip file just after you flash your ROM.
So for example you would flash your ROM, the Don't_lose_Recovery. zip and after your gapps.
With this script your good to go and you will keep your beloved custom recovery.
Please note that I tested the script with Twrp and not with Clockworkmod recovery since I don't use this one.
Don't forget to hit the thanks button.
Happy flashing.
Link for the script : https://mega.co.nz/#!3wxB2azJ!nBoVqsrDWmfGDHP-egRt_Fwy3b2rRrseMSUPrj1PWzY
Thanks to Scroler for guiding me
Check out my Nexus 4 Aosp ROM here http://forum.xda-developers.com/nexus-4/development/rom-t2931659
Sent from my Nexus 4.
For those of you who don't know , flashing an Aosp source built ROM that was compiled with the command " make otapackage" will break and overwrite your custom recovery (for example Twrp).
But I came up with a fix for it when i saw that Scroler made a script to fix this problem for the Nexus 7 (2013) .
I modified it to work on the Nexus 4.
You only need to flash this in recovery as a zip file just after you flash your ROM.
So for example you would flash your ROM, the Don't_lose_Recovery. zip and after your gapps.
With this script your good to go and you will keep your beloved custom recovery.
Please note that I tested the script with Twrp and not with Clockworkmod recovery since I don't use this one.
Don't forget to hit the thanks button.
Happy flashing.
Link for the script : https://mega.co.nz/#!3wxB2azJ!nBoVqsrDWmfGDHP-egRt_Fwy3b2rRrseMSUPrj1PWzY
Thanks to Scroler for guiding me
Check out my Nexus 4 Aosp ROM here http://forum.xda-developers.com/nexus-4/development/rom-t2931659
Sent from my Nexus 4.
Last edited: