[RECOVERY][TREBLE][rosy][Unofficial] OrangeFox Recovery Project - Xiaomi Redmi 5 ROMs, Kernels, Recoveries, & Other

OrangeFox Recovery Project Treble
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
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.
*/
OrangeFox-Unofficial-rosy-3.2.3-1.zip
Supports Miui, Treble/Non-Treble Custom Roms, GSI
CHANGELOG
Please check the 3rd post of this thread.​
Credits
ATG Droid and Dadi11 - for RedWolf
Kirillmaster4 & ZHANtech - for contribution to UI
z31s1g - for TWRP theme
ManoloRey - for Vince contributions (kernel, etc)
FEATURES
* Supports Treble and non-Treble ROMs
* Up-to-date Oreo kernel, built from sources
* Increased compatibility with TWRP
* Updated with latest TWRP commits
* Built-in support for installing init.d functionality
* Built-in support for installing Magisk
* Built-in support for installing SuperSU (v2.82-201705271822 - non-Treble ROMs only)
* AromaFM
* White Flashlight
* Password, torch, led
* Support for Miui and Custom ROMs
* Better language support
* Optimized versions of community scripts
* Fox theme engine:
- choice of theme (black, dark, etc)
- choice of color scheme
- choice of splash screen
* Alternative lockscreen
* Bug fixes
* And many more!
Frequently Asked Questions, MIUI OTA, Troubleshooting, and Sundry Information:
Please check the 2nd post of this thread.
INSTALLATION
1. Download the OrangeFox zip to your device
2. Reboot to your custom TWRP-based Recovery
3. Install the OrangeFox zip as a normal zip installer
4. The device will automatically reboot into OrangeFox recovery after installation (allow this to happen)
5. Enjoy!
XDA:DevDB Information
OrangeFox is a recovery tool/utility for Android devices.
SourceCode:
https://github.com/LinuxPanda/android_recovery_rosy
https://gitlab.com/OrangeFox
Version Information
Created: Dec-10-2018
Last Updated: Dec-19-2018

FAQ:
1. INSTALLING ORANGEFOX RECOVERY FROM STOCK MIUI RECOVERY (adb/fastboot method):
You need a PC for this. If you do not have a PC, or access to a PC, then you are stuck!
1. Install adb, fastboot, and the relevant USB drivers onto your PC
2. Install the Mi Flash tool onto your PC
3. Download the OrangeFox zip file to your phone, and to your PC
4. Extract recovery.img from the OrangeFox zip file, and copy recovery.img to your PC’s adb directory
5. Reboot your phone into fastboot/bootloader mode
6. Unlock your bootloader
7. Open up a command line window on your PC
8. Change to the adb directory on your PC
9. “Hotboot” OrangeFox by running the command:
Code:
fastboot boot recovery.img
10. After OrangeFox has booted up, check that everything is working – eg, that it has mounted the data partition successfully, and that the touchscreen works.
11. Select “Install”, then find and select the OrangeFox zip, and swipe to install it
12. After installation, the phone will automatically reboot into OrangeFox
13. If your installed ROM is MIUI, then you can optionally go to the OrangeFox menu and install magisk or supersu
14. Enjoy!
2. SETTING UP MIUI OTA:
1. Download the most up-to-date release of OrangeFox Recovery
2. Download a full MIUI ROM that will be the basis of your future MIUI experience, and copy it to your phone’s storage
3. Flash the OrangeFox Recovery zip with your current custom recovery (or follow the steps in the thread for installing from adb/fastboot)
4. Reboot into OrangeFox Recovery (this will have happened automatically if you flashed the OrangeFox zip)
5. Go to the OrangeFox settings, and enable these MIUI OTA settings -
a. Support MIUI incremental OTA
b. Include system in OTA survival
c. Incremental OTA signature verification
d. Aggressive stock recovery deactivation
e. Disable DM-Verity
7. Go to the “Wipe” menu, and wipe data, cache, and dalvik
8. Flash your full MIUI ROM. 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.
9. Reboot your phone, and start to use your phone normally
10. 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
11. OrangeFox will install the update automatically (this might take several minutes)
12. OrangeFox will reboot the phone automatically upon completion of the installation of the MIUI OTA update
13. After this, you will not need to flash a full ROM any more - just follow the steps in #10 above
14. If you want to move to a completely different version/build of MIUI, then you will first need to clean-flash the full ROM of that MIUI build, as described above.
3. RETURNING TO A MIUI ROM FROM A TREBLE ROM:
A. Treble ROMs use MIUI’s “cust” partition for their vendor image. This process removes the Xiaomi proprietary files that are necessary for MIUI to run. These files must be restored, otherwise MIUI will not work properly.
B. For this purpose, the cleanest and easiest way to return to MIUI from a Treble ROM is to flash a full fastboot MIUI ROM, using the Mi Flash tool.
C. If you did not create a backup of your MIUI cust partition to MicroSD or USB-OTG before installing a Treble ROM, then you must use the method just described above.
D. If you DID create a backup of your MIUI cust partition (in the newest versions of OrangeFox, this would be the “vendor” partition – it points to the same location as “cust”) to MicroSD or USB-OTG, then you can use OrangeFox to install MIUI when coming from a Treble ROM - but you have to take certain steps:
1) Backup your internal memory to an external device (eg, MicroSD, USB-OTG, or your PC). DO NOT SKIP THIS STEP!
2) Copy the latest stable MIUI ROM to your MicroSD or USB-OTG storage
3) Boot OrangeFox
4) Make sure that OrangeFox can read your MicroSD or USB-OTG storage, and can see the MIUI ROM that you copied there. This is the ROM that you will install in the steps below.
5) Select the “Wipe” menu and wipe everything - system, dalvik, cache, vendor, etc (except MicroSD/USB-OTG)
6) Format data (“format” - not “wipe”) - you will lose all the contents of your internal memory after doing this
7) Reboot OrangeFox - you will see a message saying “No OS installed …” - just swipe to reboot OrangeFox
8) Restore the backup of your MIUI cust partition (in the latest releases of OrangeFox, this will need to be restored to the "vendor" partition)
9) Flash your MIUI ROM
10) Reboot to system, and wait for a long time ...
11) When ready, restore your backup of your internal memory from your external storage device.
4. FLASHING ROMS:
Flashing a ROM is usually a straightforward process. You can either do a "clean" flash, or a "dirty" flash.
First things:
1. Do NOT flash a ROM in a queue with other zips. Always flash a ROM on its own, and when flashing is completed, reboot OrangeFox, before doing anything else.
2. If you ever wipe the /vendor partition (when you are preparing to flash a ROM), then you must first reboot OrangeFox - before flashing the ROM (that is - if you want OrangeFox to patch dm-verity and forced-encryption successfully).
3. Please note that, if you do not follow both of the above instructions, and you encounter problems afterwards (which you definitely will), I will not answer any questions.
A. "Clean flashing" (Strongly recommended)
1) Backup your applications, settings, SMS messages, call logs, etc Do NOT skip this step.
2) Bootup OrangeFox Recovery
3) Select "Wipe"
4) Swipe to reset to defaults (this will restore the installed ROM to a known state, and will remove apps/settings that might be incompatible with the ROM that you wish to install)
5) Return to the main OrangeFox menu
6) Select "Install"
7) Choose the ROM that you want to flash
8) Swipe to flash.
9) Reboot OrangeFox recovery - before doing anything else - so that any changes to partitions/filesystems done by flashing the new ROM will take full effect
10) Flash whatever else you might want to flash (eg, GAPPs, magisk, etc)
11) Reboot your device
12) Wait for a long time while the new ROM sets itself up (go and make a cup of tea!)
13) Enjoy
B. "Dirty flashing" (NOT recommended)
1) Bootup OrangeFox Recovery
2) Select "Install"
3) Choose the ROM that you want to flash
4) Swipe to flash
5) Wipe cache and dalvik
6) Reboot OrangeFox recovery - before doing anything else - so that any changes to partitions/filesystems done by flashing the new ROM will take full effect
7) Flash whatever else you might want to flash (eg, GAPPs, magisk, etc)
8) Reboot your device
9) Enjoy
NOTE: Dirty flashing a ROM is NOT recommended. It can cause all kinds of random problems. Always choose to "clean flash"
5. "YOUR SYSTEM HAS BEEN DESTROYED" scenarios:
A) If you have one of these, then, yes, you might be in deep trouble! But this has nothing to do with OrangeFox. It is rather a result of your decisions and what you have chosen to do, or to flash.
B) For possible solutions, Google is your friend.
C) Salient advice: next time, look very carefully before flashing anything. It is your responsibility to ascertain and completely understand, a) what you are installing, b) what instructions it is giving to the recovery, c) what it will do as part of the installation, and d) what it will do after the installation. Otherwise, there will be tears.
6. Other useful downloads/information:
• Android SDK platform tools (adb, fastboot, etc): https://developer.android.com/studio/releases/platform-tools
• ADB, Fastboot, & Drivers: https://forum.xda-developers.com/showthread.php?t=2588979
• Mi Flash tool: https://www.xiaomigeek.com/download-xiaomi-mi-flash-tool.html
• Xiaomi USB drivers: https://www.xiaomigeek.com/download-xiaomi-usb-driver-windows.html
• How to install TWRP: https://www.xda-developers.com/how-to-install-twrp/
• How to install adb: https://www.xda-developers.com/install-adb-windows-macos-linux/ ​
7. Supported Languages:
cz.xml
de.xml
el.xml
en.xml
es.xml
fr.xml
hu.xml
in.xml
it.xml
ja.xml
nl.xml
pl.xml
pt_BR.xml
pt_PT.xml
ru.xml
sk.xml
sl.xml
sv.xml
tr.xml
uk.xml
zh_CN.xml
zh_TW.xml

ChangeLogs
3.2.3-1
• Minor changes & fixes
3.2.3-0
• Built with oreo sources.
• Treble/Non-Treble Custom Roms, GSI support.

I'll test it

Orangefox always give me internal memory omb error everytime i flash miuipro or xiaomi.eu rom.

Switchonthelight said:
I'll test it
Click to expand...
Click to collapse
Thanks.
carl sagan said:
Orangefox always give me internal memory omb error everytime i flash miuipro or xiaomi.eu rom.
Click to expand...
Click to collapse
Please give recovery log. Thanks.

Why OrangeFox Recovery does not recognize USB OTG?

Nice ans beautifull recovery !
I recommand it !

Recovery updated with minor changes & fixes.
ChangeLog
3.2.3-1
• Minor changes & fixes
GinNig said:
Why OrangeFox Recovery does not recognize USB OTG?
Click to expand...
Click to collapse
I have made few changes. Please check with latest build.

Thanks. It work well on my redmi 5. However, similar to the official TWRP, it cannot view the content of internal storage and ask for password to decryption (miui 10.2 eu roms). For flashing new ROMs, its not problem since I copy ROM/ Zip to SD card to mount in TWRP. With this new recovery hope that someday I will install Android P (pixel experience)

Orangefox creators are working themselves to release an official build. So this thread is useless now. You can download builds soon from the official websites itself, https://orangefox.tech/en/.
Request mods to lock thread. Thanks.

Thread closed @ op request

Related

[NEWBIE GUIDE] MIUI ROMs, TWRPs, ZIPs, UNLOCK, BACKUP, ROOT, FLASH, RESTORE

GUIDE SECTIONS QUICK LINKS
#1 - MIUI ROM, Types of MIUI ROM
#2 - TWRP, Types of TWRP, Flashing TWRP
#3 - Unlock, Root, Flashing via TWRP
#4 - Custom ROM, Types of custom ROMs
MIUI ROM
MIUI (pronounced as Me-You-I) is Xiaomi's custom built firmware like Samsung's OneUI, HTC's SenseUI, OnePlus's OxygenOS which is built on top of Android's AOSP base with its own modifications and features. At first glance it resembles like a hybrid between Google's Material Design and Apple's iOS. But unlike Stock Android or iOS, MIUI is very intuitive, feature rich and has multiple tweaking options. MIUI is updated regularly depending on the development branch. Xiaomi gathers reports, feedbacks and suggestions from the community, addresses the bug-fixes and integrates new features upon request. Most of Xiaomi devices are regularly patched with security updates every 2-3 months. The flagship "Mi" series like Mi9 receive quicker Android version updates than their budget "Redmi" series like Redmi 7, Redmi Note 7 Pro etc.
TYPES OF MIUI ROM
There are 2 development branches of MIUI ROMs for all Xiaomi devices.
A) Stable Builds
It is updated on a monthly basis or longer
New features are added slowly after testing
Higher system stability and less bugs than Beta ROMs
It has a four digit numbering scheme (X.X.X.X)
For eg. 8.X.X.X is MIUI8 Stable Build
Stable builds come in 2 variants
1. MIUI China Stable ROM
This ROM is pre-installed on all Xiaomi devices sold in China.
It is made for the Chinese market & contains Chinese MIUI apps.
Google Apps are absent. You can install them manually.
It supports Chinese & English languages.
2. MIUI Global Stable ROM
This ROM is pre-installed on all Xiaomi devices sold outside China.
It is made for the International market & contains English MIUI apps.
Google apps are pre-installed by default.
It supports 50+ languages.
B) Beta Builds
It is updated on a weekly/bi-weekly basis or longer.
New features are added quickly for testing.
Lower system stability and more bugs than Stable builds.
It has a three digit numbering scheme (X.X.X)
For eg. 6.11.21 is MIUI8 Beta build for 21th Nov, 2016.
This ROM is not pre-installed on any Xiaomi device.
You can install Beta build over Stable build manually.
Beta/Developer builds come in 2 variants.
1. MIUI China Beta ROM
It is made for the Chinese market & contains Chinese MIUI apps.
Google Apps are absent. You can install them manually.
It supports Chinese & English language.
2. MIUI Global Beta ROM​ It is made for the International market & contains English MIUI apps.
Google apps are pre-installed by default.
Supports more than 50+ languages.
TWRP
Team Win Recovery Project is a custom recovery which is flashed over the stock recovery as it gives user more options such as flashing custom ROMs, kernels & scripts, take full system backups, restore backups, root etc.
TYPES OF TWRP
1. TWRP by iscle: https://forum.xda-developers.com/mi-max-2/development/recovery-twrp-3-1-1-0-touch-recovery-t3652762
Based on Stock TWRP 3.1.1-0 with no modifications.
Ported from Redmi Note 4 (mido)
English language as default
Need to flash dm-verity zip immediately after flashing this TWRP, else your phone wont boot.
2. TWRP by xuefer: https://forum.xda-developers.com/mi-max-2/development/twrp-max2-oxygen-t3634437
Built using LineageOS 14.1 source
Built and tweaked for Mi Max 2 (oxygen)
Decryption support added for /data
Faster transfer using adb push
Extra fonts added
FLASHING TWRP
Unlock bootloader here: https://forum.xda-developers.com/mi-max-2/how-to/guide-unlocking-bootloader-mi-max-2-t3641257
Install "Minimal ADB+Fastboot Drivers": https://forum.xda-developers.com/showthread.php?t=2317790
Download TWRP file and copy the file in the C:\Program Files (x86)\Minimal ADB and Fastboot folder
Download dm-verity disabler and copy the file in your phone: https://build.nethunter.com/android-tools/no-verity-opt-encrypt/
Switch off phone. Hold Power + Volume Down to boot into fastboot mode. Connect it to PC.
Inside the folder where TWRP file is present, open command prompt window.
Type "fastboot devices". Your phone will get detected with serial number.
Type "fastboot flash recovery <recovery_name.img>". TWRP will get flashed on your device.
E.g. "fastboot flash recovery twrp_3.1.1-0.img".
Type "fastboot boot <recovery_name.img>". You will boot into TWRP. Disconnect phone from PC.
E.g. "fastboot boot twrp_3.1.1-0.img".
On the screen, swipe to allow modifications and select your language. Uncheck "Keep system read-only"
Select Install and then choose the dm-verity disabler zip and swipe to flash.
Select Backup and check all partitions. Swipe to backup. The backup will be stored in "TWRP" folder
Select Reboot and then system. You will be asked if you want to disable the stock recovery. Swipe to disable.
You will boot into MIUI with TWRP installed.
TWRP ZIPs
These zips are meant to be flashed with TWRP with a specific order. Before flashing any zip make sure you have taken full backup of your device partitions using TWRP.
1. no-verity-opt-encrypt: https://build.nethunter.com/android-tools/no-verity-opt-encrypt/
Also called as dm-verity disabler/lazy flasher
"dm-verity" is a feature in the MIUI kernel which checks and prevents the phone from booting normally if you modify the phone. (e.g. flash TWRP)
To prevent that, you need to flash the dm-verity disabler zip which removes dm-verity check and also decrypts the /data partition so that you can boot into MIUI normally.
Else you can flash a custom ROM immediately after flashing TWRP which removes the MIUI system and kernel
2. Xiaomi.EU ROM Patch: https://forum.xda-developers.com/mi-max-2/development/xiaomi-eu-rom-patches-dpi-change-t3656296
You need to install Xiaomi.EU ROM before installing these zips via TWRP.
MIUI to Google Apps: Replaces default MIUI apps with Google apps.
Google Now/Pixel Launcher: Replaces stock MIUI launcher and enables Google Assistant via build.prop tweak.
DPI changer: Change values from stock 440 (low res, bigger) to 325 (high res, smaller).
3. Hardware Key Disabler : https://forum.xda-developers.com/mi-max-2/themes/mod-disable-hardware-keys-lineageos-rom-t3696108
This mod enables on screen navigation bar and disables the hardware keys
You can revert back to stock configuration by flashing "enable_HWkeys.zip"
FLASHING VIA TWRP
Some important terms to remember:
Formatting data: Factory resets the phone, will erase internal storage, will remove encryption
Wiping data: Factory resets the phone, will not erase internal storage, will not remove encryption
Clean flash: Flashing a new ROM or an updated version of the same ROM by wiping or formatting data of current ROM in TWRP. Cache & dalvik is automatically wiped in TWRP.
Dirty flash: Flashing an updated version of the same ROM without wiping or formatting data of current ROM in TWRP. Cache & dalvik wipe is recommended in TWRP.
Treble TWRP: Custom TWRP which uses existing /cust partition and formats it into /vendor partition which is needed for non-MIUI Oreo and Pie ROMs where Treble is used.
Notes:
Always read the entire post & comments of the custom ROM page before asking any questions, chances are your query has already been answered.
You do not need to wipe /system partition manually, it its automatically wiped when a ROM is flashed by the updater-script inside the ROM zip. General rule of thumb is always clean flash any ROM, unless mentioned by the ROM developer or maintainer that dirty flashing is okay.
Requirements:
Unlocked bootloader with TWRP installed
Phone partition backup using TWRP
All data backup from internal storage (sms, contacts, files etc.)
Official MIUI ROM encrypts /data partition, you will need to Wipe > Format Data to decrypt it completely else need to flash dm-verity disabler zip or Magisk zip.
1. Rooting MIUI / non-MIUI ROM
Boot into TWRP (Power+Volume Up)
Install > Magisk zip
Reboot > System
2. Flashing official MIUI recovery ROM
Boot into TWRP
Wipe > Format data (if storage is encrypted)
Reboot > Recovery
Install > MIUI ROM zip + Magisk Zip
Reboot > System
3. Flashing custom MIUI ROM (Xiaomi.EU / RevOS / Mi Globe)
Boot into TWRP
Wipe > Format data (if storage is encrypted)
Reboot > Recovery
Wipe > Factory reset
Install > Custom MIUI ROM zip
Reboot > System
4. Flashing LineageOS/AOSP ROMs (Non-Treble)
Boot into TWRP
Wipe > Format data and Reboot > Recovery (if storage is encrypted)
Wipe > Factory reset
Install > Firmware + ROM Zip + Google Apps Zip
Reboot > System
5. Flashing LineageOS/AOSP ROMs (Treble)
Boot into Treble TWRP
Wipe > Format data (if storage is encrypted)
Reboot > Recovery
Wipe > Factory reset
Install > Firmware + ROM Zip + Google Apps Zip
Reboot > System
TYPES OF CUSTOM ROMs
There are mainly two types of custom ROMs for any Android device. You need to flash them on your phone using custom recovery such as TWRP.
1. Stock based ROMs
They are based on the factory ROM which came pre-installed on your device. In case of Xiaomi devices, developers take the stock China Stable/Beta MIUI ROMs as base, perform modifications and tweaking and then re-pack it. Examples of stock based MIUI ROMs.
Xiaomi.EU: https://xiaomi.eu/
MIUI Pro: https://miuipro.by/
Mi Globe: http://mi-globe.com/
Epic ROM: http://www.epicrom.pro/
2. Custom based ROMs
They are typically based on either AOSP or LineageOS code. They can either be ported from similar devices or built using the kernel source code of a particular device. Xiaomi has not yet released kernel source code for Mi Max 2. Kernel source codes are needed for relatively stable and bug-free experience on custom ROMs. Examples of some popular custom ROMs
A) AOSP based ROMs
AOSPExtended: https://www.aospextended.com/
Nexus Experience: http://www.nxrom.us/
SlimRoms: https://slimroms.org/
B) LineageOS based ROMs
LineageOS: https://lineageos.org/
Resurrection Remix: http://www.resurrectionremix.com/
XenonHD: http://www.xenonhd.com/
Reserved #4
Reserved #5
Thanks for wonderful explanation and for content too
Hi,
I flashed TWRP from PC using above procedure & tried to install no-verity-opt-encrypt (version 5.1.zip).
I got below error while installing :
Error: unpacking ramdisk failed
Phone booted normally & TWRP is not there.
How to fix this issue?
I know these questions are sometimes annoying, but for someone who hasn't been following Android development since Android 4.4.4, I'm a little overwhelmed by all this information. What does the "Oxygen" mean? Is it just a certain model of the Mi Max 2? I see all ROMs say Oxygen but none explain what it means. If it's a model of the Max 2, how can I know if the version I have is Oxygen?
Thanks and sorry if it's a dumb question
It's a code name for Max 2, so you don't mistakenly flash the wrong ROM, if it says Oxygen, than you're sure it's for your model, not for i.e. Mi Max...
Sent from my Mi Max 2 using Tapatalk
Hello,
I have a Mimax 2 bootloader unlocked, rooted, SuperSU, twrp 3.1.0-0 (cofface) installed. I installed, after some difficulties, the rom xiaomi.eu 7.12.28. When I'm in recovery, after the flash I sometimes have a red line that says "... no-verity-opt-encrypt ..." blah blah. But the phone boot normally, everything works fine. Do I have to install lazyflasher-no-verity-opt-encrypt or can I do without it?
thank you and sorry for my bad english
Hi, I have unlocked BL and installed Developer ROM 7.12.28. for a few weeks now. Can I install latest 8.1.4 developer ROM with TWRP without wiping cache/dalvik and will I keep my data/apps that way?
Thanks.
Sent from my Mi Max 2 using Tapatalk
@frulex, I installed the 8.1.4 (via updater) after using the 7.12.28, without any problem. That you erase the cache where not, you will not lose the data of your apps
What was the size of that update file you installed? I first got notification of 8.1.4 update and it said it's something like 95 MB file size. Tried to install it twice via updater, it starts updating, boots to TWRP and ends with error without installing. After reboot notification changed and now it offers update of full 1.5 GB 8.1.4 version ROM. I didn't have time to download and try that but I wonder will that also end in error and that's why I ask about downloading .zip and flashing through TWRP.
Sent from my Mi Max 2 using Tapatalk
These are the roms I used, as you see 8.1.4 weighs 1.2 Go
edit: I had uploaded an image of the explorer but it does not appear! (decidedly i'm struggling with this forum, lol)
Not many roms for this phone..it sux..I regret exchanging it with my oneplus 3..
How many ROMs have you expected in 3 days since kernel source has been released?
Sent from my Mi Max 2 using Tapatalk
good tutorial
thanks to you @SharkcpN . this is such a clearly, easily tutorial "How to Flash TWRP" for newbie like me..
I tried and succeed with no error at all.. once again, thanks for your good job :good:
Hi there! Thanks for the excellent thread and collection of links. I started here and found a setting on this phone's NVRAM that I have not seen mentioned anywhere else, and you will need it for LTE unlocking.
Below are the exact steps, many taken from this guide, that I used to go from a phone with an unlocked bootloader to flipping the LTE B2 and LTE B4 bits on. After I did it and rebooted, I suddenly had a working LTE connection!
I cannot yet PROVE that this actually enabled the bands, but it hasn't hurt anything. I will test for that in a couple days, because the only dumb thing I did was afterwards, when I accidentally re-locked the bootloader by not paying attention to what I was doing. If you use the MiFlash program to install a ROM, don't forget to change the setting in the lower right corner!
Notes for those wishing to use this as a guide:
I don't think you can brick the phone completely playing with just these settings, but you should be prepared to restore everything. Take backups where I mention them, and if you need the device working, you should have a current MIUI fastboot flashable image, available from the official website, on hand.
This is LTE only and there are different settings for GSM that work the same way.
The steps are numbered, but you should also understand mostly what they do.
You may ignore the VM part and just boot your normal Win7 with driver signature checking DISABLED (F8 on boot). I use Linux and I'm security-conscious about downloading programs that I can't verify, so I'm using a VM.
There is a dialpad option for opening the diag port (if you have root), but it did not work for me, so I have provided a method that I know works and it clears itself upon reboot
QXDM's NV browser has a checkbox for "DUAL SIM". You don't need to check it for this process, you won't lose SIM2.
Downloads section:
(REQUIRED) Most are in the links provided by OP:
MiFlash (official one)
QPST 2.7.460
QXDM 3.12.714
Minimal adb and fastboot
no-verity-opt-encrypt-6.0.zip
twrp-3.2.1-0-oxygen.zip
SuperSU-v2.82-201705271822.zip
(OPTIONAL, needed if you mess up. I chose to have it ready to go.):
From MIUI official site, go to the ROMs for the Max 2. The one on the download button here is NOT what you want.
Select Flashing guide, then on on the left hand side select FastBoot.
Download the image for your device. I have a copy of oxygen_global_images_V9.0.3.0.NDDMIEI_20171209.0000.00_7.1_global_298fd5f49c.tgz
SETUP SECTION (install tools and root phone):
Enable developer mode and USB debugging on phone
Boot into a Windows VM, pressing F8 to go into unsigned drivers mode
Install MiFlash, just to get the drivers
Install QPST and QXDM for later
Install adb and fastboot
Pass USB port through to VM and check adb is working by twice typing
Code:
adb devices
Shutdown phone and remove SD card from phone.
Add no-verity-opt-encrypt-6.0.zip and SuperSU-v2.82-201705271822.zip to SD card
Put SD card back in phone
Reboot phone into fastboot mode using PWR & VOL-, and re-pass to VM if needed
From cmd terminal in adb folder,
Code:
fastboot flash recovery twrp-3.2.1-0-oxygen.img
Code:
fastboot boot twrp-3.2.1-0-oxygen.img
Once TWRP comes up, install no-verity-opt-encrypt-6.0.zip
(OPTIONAL) Make a backup. I didn't because I don't want the ROM that's on there anyway.
Reboot and ensure MIUI loads
Shutdown phone and reboot into TWRP using PWR & VOL+
Install SuperSU as a system app
Reboot into MIUI
Access and edit the NVRAM:
Connect the device back to the computer, pass to VM if necessary
From your terminal in the adb folder,
Code:
adb devices
Grant debug permission on the device, if it asks again
Code:
adb shell
Code:
$su
Grant permission in superSU popup
Code:
#setprop sys.usb.config diag,adb
When the device reconnects, re-pass to VM if needed, and it may install another driver
Open QPST Configuration and make sure the device's port is enabled.
At the top, go to "start clients" and open "software download"
In the "Backup" tab, choose a location to save your file and hit Start, just in case you do break something
Once finished, close "software download" but leave QPST Configuration running
Open QXDM Professional
Under Options->Communications, make sure your phone is set "active" then set "target port" to the port it's on, then press OK
Go to NV Browser in the dropdown on the upper left.
Scroll down to 06828 :"nv_lte_bc_config_type.lte_bc_config"
Press READ and save this value somewhere in case you forget which bits you set! Mine was: 2061584302293
It's little-endian, and I wanted to flip bits from 0 to 1 to enable bands {2} and {4}, so I added 2^({2}-1)+2^({4}-1) = 10 to get a value of 2061584302303
Enter your new value in the "value" field and press "write"
Now, scroll down to the corresponding LTE prefs value at 65633
Read again. This should be the same number you had before, in hexadecimal format. Mine was 0x1E0000000D5, so to add B2 and B4 (Combined value 0xA), I changed it to 0x1E0000000DF
Again, enter your new value in the "value" field and press "write"
I doubt this requires any sort of "safe shutdown," but I hit "offline" then closed QXDM, then closed QPST, then rebooted the phone.
For a quick test, you can set network preferences to "LTE ONLY" by going to the dialpad and hitting *#*#INFO#*#*, then selecting your SIM card and using the dropdown in there. Mine was preferring HSPAP because the signal was stronger, even though the data was blocked.
Further testing I want to do when I get the bootloader unlocked again:
Use an app that shows what bands are in use to prove I'm on B2 or B4
Try disabling bands I will never use that have similar frequencies to the bands I want to see if signal improves
TWRP ZIPs
These zips are meant to be flashed with TWRP with a specific order. Before flashing any zip make sure you have taken full backup of your device partitions using TWRP.
1. no-verity-opt-encrypt: https://build.nethunter.com/android-...y-opt-encrypt/
Also called as dm-verity disabler/lazy flasher
"dm-verity" is a feature in the MIUI kernel which checks and prevents the phone from booting normally if you modify the phone. (e.g. flash TWRP)
To prevent that, you need to flash the dm-verity disabler zip which removes dm-verity check and also decrypts the /data partition so that you can boot into MIUI normally.
Else you can flash a custom ROM immediately after flashing TWRP which removes the MIUI system and kernel
2. Xiaomi.EU ROM Patch: https://forum.xda-developers.com/mi-...hange-t3656296
You need to install Xiaomi.EU ROM before installing these zips via TWRP.
MIUI to Google Apps: Replaces default MIUI apps with Google apps.
Google Now/Pixel Launcher: Replaces stock MIUI launcher and enables Google Assistant via build.prop tweak.
DPI changer: Change values from stock 440 (low res, bigger) to 325 (high res, smaller).
What does It mean??

[tutorial] how to flash a generic system image on your redmi note 4/4x

In this tutorial we'll try to explain step by step how to install a GSI. Hope you find it helpful.
REQUIREMENTS
- A treble enabled device and recovery (TWRP or RedWolf).
- A GSI: you can choose from a few generic system images out there such as Lineage OS (Los), Resurrection Remix (RR), or even Pixel Experience (PE). You can find them by going to XDA's GSI page. Links will be down below. Please only download A partition GSIs, never A/B partitions, as our device isn't compatible with seamless updates.
- A treble enabled rom: you need this to use it as a base rom or a "vendor rom". Any treble rom should work. We'll get to that in just a moment.
- (Optional) Cust magisk.
PROCEDURES
1) Download all the required files mentioned earlier and keep them away from your internal storage, as you will need to completely format it. Note that the GSI comes as a zip file, but it is not a flashable zip, so make sure you extract the zip file and save the .img file before proceeding.
2) Once everything is in place, reboot to recovery.
3) (RECOMMENDED) Take a full backup of your current apps and data from TWRP and keep it safe in case you ever need it.
4) In your recovery, navigate to the format section and format data, system, vendor, cache, dalvik, and internal storage.
5) Once done, go to the installation tab in your recovery and install the treble rom mentioned earlier (not the GSI).
6) After the installation is complete, go back to the installation tab and press the button (on the bottom right corner of your screen in TWRP) which says "install image", or something similar. Then the GSI .img file you extracted should appear. Click on it to install it and select the option "system image".
7) Once the GSI has finished installing, feel free to either install magisk or reboot. Don't forget to cross your fingers!?
And that's it, the device should hopefully boot flawlessly and you'll enjoy the Generic System Image. However, these GSIs are meant to work on a wide variety of devices, so expect a few bugs here and there. These bugs will probably be fixed in time.
Hope you found this article helpful. If you have any questions or doubts, please don't hesitate to. Have a good one!?
USEFUL LINKS:
- List of all Generic System Images: https://github.com/phhusson/treble_experimentations/wiki/Generic-System-Image-(GSI)-list
- Original tutorial to install GSIs: https://www.xda-developers.com/flash-generic-system-image-project-treble-device/

Orangefox Recovery [REDMI 4X] [OFFICIAL]

OrangeFox Recovery Project​
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
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 recovery
* 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.
*
*/
[/CENTER]
OrangeFox is FREE SOFTWARE ​
Supports Treble, Miui, Custom Roms
INSTALLATION:
0. Backup your ROM, your data, your internal storage, and your settings/apps, to an external device
1. Download the OrangeFox zip file to your device
2. Reboot to your custom TWRP-based Recovery
3. Install the OrangeFox zip file as a normal zip
4. The device will automatically reboot into OrangeFox recovery after installation (allow this to happen)
5. Enjoy!
Credits
* TeamWin - for TWRP
* The OrangeFox Team - for your hard work
* All our testers - for your patience and help
FEATURES:
* Updated with latest TWRP commits
* Built-in support for installing init.d functionality
* Built-in support for installing Magisk
* Flashlight
* Password, torch, led
* Support for Miui and Custom ROMs
* Superb new UI and themes
* OrangeFox theme engine:
- choice of theme (black, dark, etc)
- choice of color scheme
- choice of splash screen
* Alternative lockscreen
* And many more!
DOWNLOADS
https://files.orangefox.tech/OrangeFox-Stable/santoni/
XDA:DevDB Information
Orangefox Recovery [REDMI 4X] [OFFICIAL] , Tool/Utility for the Xiaomi Redmi 4X
Contributors
Dhruvgera
Source Code: https://github.com/Dhruvgera/santoni-ofrp
Version Information
Status: Stable
Current Stable Version: R10
Created 2020-02-29
Last Updated 2020-02-29​
Tq sar for update
Error
When trying to access the custom recovery it asks for a password but i havent set one. I use lineage os 16 and when i get OTA updates the rom is able to update through the custom recovery without a password. I have tried to use the password that i use to unlock my custom rom but that doesnt work. Can you help?
When trying to access the custom recovery it asks for a password but i havent set one. I use lineage os 16
Click to expand...
Click to collapse
It is the same with my santoni and Lineage 15.1 and 16.0 and OrangeFox 10.1_02 and OrangeFox 10.1_01
It works with OrangeFox 9.0 "Successfully decrypted with default password."
Did you try OrangeFox 9.0 ?
art99 said:
It is the same with my santoni and Lineage 15.1 and 16.0 and OrangeFox 10.1_02 and OrangeFox 10.1_01
It works with OrangeFox 9.0 "Successfully decrypted with default password."
Did you try OrangeFox 9.0 ?
Click to expand...
Click to collapse
The last time i used one of the OrangeFox 9 versions i remember it encrypting my data partition on my phone making me reinstall the custom Rom so i havent rolled back to OrangeFo 9 versions since. Do you have any idea how to decrypt it on the latest version or should i just wait for a patch from lineage or the Orangefox maintainer as i dont want to risk my data being wiped on my phone
I have a problem with the screen date.
I also tried version 8 and 9 and 10.
My screen is 2018, instead of 2020.
Which is the solution.
I have this problem for about 4 months.
I don't know where is the mistake .
Can anyone help me solve the problem?
Love these recovery
I always use these recovery sir and I loved it
Hi,
Every time I try to restore a backup (system, data, boot and vendor from Android 10) i end up whit boot logo and nothing happens anymore. I use OrangeFox-R10.1_02. Has anyone encountered such problems before?
I'm doing something wrong?
1. Download the OrangeFox zip file to your device
2. Reboot to your custom TWRP-based Recovery
3. Install the OrangeFox zip file as a normal zip
4. The device will automatically reboot into OrangeFox recovery after installation (allow this to happen)
I have not been set the any lockscreen pattern or pin.
I install using above steps but when it reboots automatically in Orange Fox Recovery it asks password to decrypt the data.
What is the solution for this?
Mihiranpura said:
I install using above steps but when it reboots automatically in Orange Fox Recovery it asks password to decrypt the data.
What is the solution for this?
Click to expand...
Click to collapse
My experience after trying with 2 phones: use Orange Fox 9 or go back to TWRP which I use now again.
art99 said:
My experience after trying with 2 phones: use Orange Fox 9 or go back to TWRP which I use now again.
Click to expand...
Click to collapse
Then what about this recovery, how can i can use this as decrypted?
flashed recovery.img of OrangeFox-R11.0_0-Stable-santoni.zip on xiaomi redmi 4x
and the phone cant reboot. It auto starts in orangefox recovery mode with data partition encrypted message
if i press the power button it auto restarts into recovery mode.
(not sure if relevant i had miui 10 rooted with magisk and i had twrp 3.2.3-1 i believe, i updated to miui 11 and lost the twrp, only mi-recovery would start, and after that i did this recovery flashing of orangefoxR11)
there was no password set on the phone.
Edit:
the nightmare continued:
OrangeFox-R10.0_3-Stable-santoni.zip recovery.img i flashed this in fastboot
then orangefox loaded.
i pressed exit to system
then the phone was just stuck on loading screen which wasnt really doing anything. (no loading icon on bottom, just standard Mi screen stuck) volume up + power did nothing, volume down+power let me into fastboot again
from here i flashed the older orangefox-r10.0.3 but didnt work, same constant mi screen.
as last resort i downloaded mi flash tool https://xiaomiflashtool.com/download/xiaomi-flash-tool-20200314
and https://androidmtk.com/download-xiaomi-usb-drivers
and stock firmware https://androidmtk.com/download-xiaomi-stock-rom-for-all-models
then successfully flashed the stock.
had to wait a good while until the system started but now im back to stock and my story is finished here, i won't mess with it any more
art99 said:
My experience after trying with 2 phones: use Orange Fox 9 or go back to TWRP which I use now again.
Click to expand...
Click to collapse
thanks a lot for your suggestion. it worked for me but now I'm stuck at boot animation. Any idea how to fix it?
LZRNDenso said:
thanks a lot for your suggestion. it worked for me but now I'm stuck at boot animation. Any idea how to fix it?
Click to expand...
Click to collapse
Hold power and volume down to go into fastboot. Then flash a stock fastboot rom.

[GUIDE] [J400X] How To Install GSI in Samsung Galaxy J4

• Introduction
Samsung Galaxy J4 is a phone based on Exynos 7570 with 720x1280 resolution, ARM Mali T720 GPU, Cortex A53 Quad-core CPU. This phone released in 2018 with Android 8 shipped out-of-box, and available OS update until Android 10.
But, since it already 2 years (in 2020) from launched, this phone only have developer that can be counted on one hand. There is no custom rom for this device, and custom kernel only 1 or 2 or 3 (I'm building this kernel right now, but I'll release it when I have enough post count )
The good news is, this device is Treble supported! So we can install most of available GSI, even without any vendor or kernel required.
• Stock ROM vs GSI
What's the different? In my opinion, very much! As we know, GSI is based on AOSP, which is pure android, and almost no bloatware. And, for other GSI, like Havoc or Lineage or any GSI like that, have cool theme and animation. Why not giving a try?
• Warning
Although this is cool, but, remember this is GSI, bugs are widely open. Bugs I found are in below.
Second thing, your warranty is void! This is sure, you unlock bootloader, Install TWRP, even install GSI, that surely will trip knox and voiding warranty.
And, last one, backup ALL of your data. This process will wipe your data partition.
• Bugs
As far as I use Havoc-OS GSI 3.7 Android 10, I feel these bugs:
1. Camera Streching, use Open Camera
2. Video recording, use Open Camera too
3. Camera in Whats'App
4. I forgot
If you feel other bugs, please write it in below.
• Steps
Since currently this phone have Android 9 Android 10 update, the steps will be different. Dont worry, I'll write all the steps
From Android 9 stock :
1. Download TWRP 3.2 and 3.4
2. Copy to your PC
3. You must have Odin
4. Download GSI image A64 A-ONLY / ARM32_BINDER64 and put it in your Micro SD card or USB (for OTG)
5. Download Gapps (optional if you want google apps installed) nano / pico ARM-10.0
6. Download Magisk if you want root
7. Dont forget to copy downloaded zip file to Micro SD Card or USB (For OTG)
8. Flash TWRP 3.2 via odin, then reboot recovery
9. Wipe - format data - yes
10. Wipe - advanced wipe - choose system, data, internal, cache / dalvik cache
11. Install - install image - choose gsi image you downloaded - choose system image
12. reboot recovery
13. mount - system
14. wipe - advanced wipe - choose system - repair filesystem - resize
15. install - install gapps zip
16. reboot download
17. flash TWRP 3.4
18. reboot recovery
19. flash magisk (optional)
20. flash zygotefix
21. reboot and complete setup
From Android 10 stock :
1. Download TWRP 3.2 or OrangeFox
2. Download any a64 A/B (arm32_binder 64) xz decompress it* and put it in your Micro SD card or USB (for OTG) or internal memory
3. extract it with any extractor app
5. Download Gapps (optional if you want google apps installed, some have it included)
6. Reboot recovery
7. wipe. advance wipe. system, data, dalvick cache.
8. Flash the extracted GSI
9. Flash Gapps if they are not included
10. Flash magisk (optional)
11. Reboot system
And Done!
If you have anything you ask, feel free to join our Telegram group : t.me/SamsungGalaxyJ4
Or PM me in Telegram : t.me/hendramanudinata
Cheers!

[GUIDE] CorvusOS for J7 Prime

As you all may know, CorvusOS is one of the most popular custom ROM At the moment, and the developers known as "Tipz Team Builds" Have made it compatible for J7 Prime!
(IMPORTANT!!, There are currently lots of bugs in CorvusOs, so i recommend waiting for a stable release, if you wanna install it then im not responsible for any damages done to your phone, i warned you!)
(Please as always take a nandroid backup of your phone as with any other custom rom installation!)
Credits :
Tipz Team Builds original thread : https://forum.xda-developers.com/t/gsi-beta-11-phh-corvusos-v16-8-avalon.4212765/
Downloads :
Treblue : https://www.mediafire.com/file/xskqacpul8glpfx/Treblue_v2.0.zip/file
NikGAPPS : https://www.mediafire.com/file/fk3xv8xr8i2bxrt/NikGapps-basic-arm64-11-20201231-signed.zip/file
CorvusOS : https://sourceforge.net/projects/ti...e-25082021-Beta-Official-0000.img.xz/download
Installation :
*I cannot stress this enough, Please always take a nandroid backup of your phone when installing a custom rom!*
1. Download all of the above
2. Boot into custom recovery
3. Wipe : Cache, Dalvik Cache, Data, System, Vendor *DO NOT WIPE INTERNAL STORAGE*
4. Extract the CorvusOs*version*.img.xz as .xz
5. Flash the extracted CorvusOs as system image
6. After flashing CorvusOs, Mount System and vendor, *If you can't mount it, Reboot into recovery again*, After mounting Flash Treblue
7. After flashing treblue Flash NikGAPPS
8. Wait for it to finish
9. To confirm it works reboot into recovery and look at terminal, it should say something like "Custom ROM (TREBLE) CorvusOs"
10. Now reboot into system and enjoy!!
After installation it should reboot a few times, let it rest for 5-10 minutes
Credits are given above, please give me suggestions on how to improve my guide!
Also, if you are gonna update to the latest version, do not download ones with "gapps" in their name, also the file must have either vndklite or nonlite on the file, so it looks something like this
CorvusOs-*version*-treble-arm64-vndklite/nonlite-*DATE OF RELEASE*-Beta/Stable-Official-0000.img.xz

Categories

Resources