Step by step guide "Flashing OTA beta/stable update using OrangeFox Recovery Project"

Darklouis

Senior Member
Jun 17, 2017
381
122
0
Davao City
Step by step guide "Flashing OTA beta/stable update using OrangeFox Recovery Project"

Code:
/*
* Your warranty is now void.
* 
* We're not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this ROM
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at us for messing up your device, we will laugh at you.
*/

Credits to @ronks888
@madsponge26

Details about OrangeFox Recovery Project, contributors, FAQ. The thread can be located here https://forum.xda-developers.com/po...cial-orangefox-recovery-project-beta-t3853233

DOWNLOADS
OrangeFox TWRP https://drive.google.com/open?id=1IZrV1VmWkqJOZccxbylbGw_0W4FwInFH
Force Encryption Disabler https://drive.google.com/file/d/1InT96d0tZ0eIIUNRDNuzKlaEKD02yLLM
Magisk v18 https://forum.xda-developers.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445
MIUI ROM https://forum.xda-developers.com/poco-f1/how-to/xiaomi-poco-f1-unlock-bootloader-custom-t3839405




Step by step Guide flashing OTA update using OrangeFox Recovery Project

But before proceeding, make sure you did all of the steps here https://forum.xda-developers.com/poco-f1/how-to/xiaomi-poco-f1-unlock-bootloader-custom-t3839405

1. Preparation for the OTA update
-BACKUP YOUR IMPORTANT DATA FIRST
-Download the latest release of OrangeFox Recovery (found above)
-Download your MIUI Full ROM (See above)
1.1 Flash the OrangeFoxRecovery.zip using your current custom recovery
-Reboot to OrangeFox Recovery
1.2 Go to the settings and enable these MIUI OTA settings
-Support MIUI Incremental OTA
-Include system in OTA survival
-Incremental OTA signature verification
-Aggressive stock recovery deactivation
-Disable DM-Verity
-Disable Forced Encryption (Some devices bypass this option, there will be a step on how to fully disable forced encryption later.
1.3 Go to the WIPE menu and tick wipe data, cache and dalvik
1.4 Flash your full MIUI ROM (stable/beta). After the ROM is flashed, OrangeFox will start the "OTA_BAK" process, which will backup your system and boot partitions into the /sdcard/Fox/OTA directory. You must NOT delete any of the files in the /sdcard/Fox/OTA directory. If you do, then incremental OTA updates will most definitely fail.
1.5 Reboot your phone and start to use your phone normally
1.6 When MIUI notifies you that there is an update, download the update, using the MIUI updater app and allow it to reboot automatically to OrangeFox
-If an error shows that the data partition is still encrypted, then time for step 2
-If the ota update succeeded, then Congrats just wait around 5-10 minutes to boot. Ignore the next step
2. Transfer folders Fox and rom_downloads from internal storage to sdcard (Please don't get confused by this, it is explanatory.)
-If you done downloading the OTA, transfer rom_downloads from internal storage to sdcard
-Transfer Fox from internal storage to sdcard, DO NOT SKIP THIS OR YOU'LL BRICK YOUR DEVICE
-Make sure the Force Encryption Disabler and Magisk is in the sdcard. We gonna need it.
2.1 Reboot to OrangeFox
2.2 Wipe Data ONLY, Don't forget to transfer the Fox from internal storage to sdcard or you'll lose the ota survival
2.3 Flash Force Encryption Disabler
2.4 Reboot recovery
-If no pop-up was shown to decrypt data, then Encryption is disabled.
2.5 Reboot the device
2.6 Transfer folders Fox and rom_downloads from sdcard to internal storage
2.7 Go to MIUI updater app then press reboot to flash ota update Don't forget to transfer the Fox from sdcard to internal storage or you'll risk your device to brick because ota_bak never existed during ota update
-Make sure you have 15% battery life or connect it to a plug
2.8 Say your prayers that it worked
2.9 If the ota update succeeded, without bootloop or errors was shown during the flash. Then you are good.
-Takes time to boot after the ota update? Just wait around 10 minutes, in this process, the data partition gets force encrypted again and needed to be disabled again via custom recovery. After boot, you can proceed again to disable force encryption via OrangeFox.
-New ota update? Just repeat the step 1.6

Questions? Feel free to message or reply this thread.
 
Last edited:

nilg0lap

Senior Member
Mar 15, 2015
60
15
0
Chittagong
Great job.… :good:

Try modifying /system partition (like removing a bloted system app or editing build.prop) after step 1.5 then update OTA through rest of the process if it get flashed or not.... Let me know, it'll be great help for me!!

Sent from my POCOPHONE F1 using XDA Labs
 

Darklouis

Senior Member
Jun 17, 2017
381
122
0
Davao City
Great job.… :good:

Try modifying /system partition (like removing a bloted system app or editing build.prop) after step 1.5 then update OTA through rest of the process if it get flashed or not.... Let me know, it'll be great help for me!!

Sent from my POCOPHONE F1 using XDA Labs
Alright, will try it for the next test.
 

Darklouis

Senior Member
Jun 17, 2017
381
122
0
Davao City
Great job.… :good:

Try modifying /system partition (like removing a bloted system app or editing build.prop) after step 1.5 then update OTA through rest of the process if it get flashed or not.... Let me know, it'll be great help for me!!

Sent from my POCOPHONE F1 using XDA Labs
Ohhh yeah... About that...
Even though you modified something in the system partition (like flashed a custom kernel, have Magisk/SuperSU installed), it will get removed because of the OTA update and will be replaced by stock kernel, and a non-rooted system. But about removing bloated system app, I will try that next time.

You could try it, before proceeding to step 1.6, you can back-up your system apps using Titanium back-up or other apps available on the play store. Or just BACKUP everything via OrangeFox. If anything gets wrong or something, at least you have a backup to restore with.
 
Last edited:

Darklouis

Senior Member
Jun 17, 2017
381
122
0
Davao City
  • Like
Reactions: 19iceman32
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone