[DEPRECATED] Detailed Installation Guide for Custom Roms (Mi A2 Lite - Daisy) - Xiaomi Mi A2 Lite Guides, News, & Discussion

Heya,
This is a guide aimed on helping you to switch to a custom rom from the stock firmware.
For any questions, feel free to join our Telegram groups.
PREREQUISITES
1) Stock rom recommended by the maintainer of the rom that you want to flash. Typically for Q roms, 10.0.13.0, 10.0.18.0, 11.0.4.0 work well. (Link here).
2) The custom rom you want (Custom Rom list here).
3) Platform-Tools by Google for adb and fastboot (Link here).
4) TWRP Recovery Image and installer zip (Link here and here).
5) Force Encryption Disabler (Link here).
6) MiFlash by Xiaomi (Download the latest version from here).
7) An unlocked Bootloader
INTRODUCTION
Installing a custom ROM on an Android phone used to be a walk in the park. However, some newer phones, like Xiaomi Mi A2 Lite, have what's called an A/B partition layout. This facilitates an update process on stock ROMs, however it makes it harder to install and develop custom ROMs. You can read more about A/B partitions here.
The upshot is that Mi A2 Lite doesn't have a recovery partition. Instead, when you install TWRP, it gets installed to the boot partition. Which means that every time you install or update a ROM, you will need to re-flash the recovery ZIP. One more thing to keep in mind is that the ROM always gets installed to another slot. Meaning, if you're currently in the slot B, the ROM will be installed to slot A and vice versa.
INSTALLATION PROCESS
A) Installing Stock Rom as a Base
1) Extract the platform tools zip file and open the new extracted folder.
2) Open a command line / PowerShell window in that folder by holding the shift key and right clicking into the empty space of the folder. Press the "open PowerShell / Command line window here" option.
3) Plug the device into your PC with a Micro USB cable.
4) Hold down the power button and the volume down button for ~10-15 seconds. You should see the fastboot screen.
5) In the Command Line / PowerShell window type: "cmd" and hit Enter. Then, type "fastboot oem edl" and hit Enter again. If your device can't get detected (Stuck on "Waiting for any device") and nothing happens on your phone's screen, check the notes section of the guide below.
This will reboot your device into edl mode (Emergency Download Mode). The screen should turn off and the led indicator should be blinking indefinitely
5) Extract the MiFlash zip file and open the extracted folder
6) Launch the Mi Flash application by double clicking the XiaoMiFlash.exe file
7) Install the necessary drivers for MiFlash (Click ok in the dialogues).
8) Extract the downloaded stock rom.
9) Press the "select" button and point into the previously extracted folder. (There should be an images folder and some other sh and bat files in the same directory).
10) Click "Clean All" all in the bottom left.
11) Press "Refresh".
12) Your device should appear (COM port). (If not, check the notes section of the guide below)
13) Click "Flash". The process will take around 200-350 seconds.
14) After it is done, hold down the power button for ~10 seconds and verify that the stock rom boots.
DO NOT UPDATE OR MAKE ANY MODIFICATIONS IN THE BOOTED STOCK ROM IN ANY WAY.
B) Install the Custom Rom
(If you want to flash PixelExperience Official, continue with this guide by the PE team. If you face any issues, check the NOTES section of this guide)
1) Paste the downloaded custom rom (zip file) into your sd card and insert it into your phone.
2) Hold down the power button alongside with the volume down button. You should see the fastboot screen shortly.
3) Copy the TWRP IMG file to the platform-tools folder
4) Copy the TWRP Installer Zip file to your SD Card.
5) Open a cmd / PowerShell window in the platform-tools folder (like Step 2 of Section A)
6) Type: "fastboot boot twrp-3.4.0-3-unofficial-daisy.img".
7) You will see the recovery on your phone, prompting you to enter the password. Choose "Cancel"
8) Go into the main menu of TWRP. Press Wipe, then "Format Data". Type "yes" and press enter. (Keep in mind that all of your data will be wiped and there is no going-back).
9) Go back and press "Advanced Wipe". and select everything except "SD Card". Swipe to confirm the action.
10) Go into the main menu. Press "Install", "Select Storage" and select "Micro SD Card".
11) Flash the zips in this order (Click on them and swipe to confirm the action)
- Custom ROM
- TWRP Installer ZIP
- Force Encryption Disabler
DO NOT install Magisk, GApps or anything else yet, we will do that later!
(Some ROMs do not require Force Encryption Disabler as Force Encryption is disabled by default, although flashing that zip won't hurt anything)
After everything is done, DON'T TAP REBOOT YET. Instead, go back to the main menu, choose "Reboot", change the slot (e.g. if it says "Current Slot: A", tap "Slot B", vice versa.
12) Tap "Recovery" in the reboot menu.
13) Copy anything you would like to install on your phone (Magisk, Gapps, etc.) and flash it the usual way (optional)
(Some roms like EvolutionX and Pixel Experience have Gapps built-in so do not flash any gapps package in such roms.)
(Flashing Magisk isn't necessary but some roms may need it for CTS / SafetyNet to pass.)
14) Reboot to System and enjoy your Rom.
DIRTY FLASHING / MANUALLY INSTALLING A NEW BUILD
Manually Installing a new ROM build a.k.a Dirty Flashing is also somewhat complicated on A/B phones like Xiaomi Mi A2 Lite. However, if you follow these steps, you should be good to go:
1) Download the new build and copy it to your phone.
2) Reboot into the recovery mode (hold power + volume up) and flash the ROM ZIP.
3) Here's where the fun part begins: since we've just overwritten the boot partition, we don't have TWRP anymore, so we need to flash it again.
4) Once again, after you're done, don't tap on "Reboot" yet, instead, go back to the main menu, change the slot, and tap "Recovery".
5) Once the phone boots into recovery again, flash Magisk (optional) and Gapps if you had flashed them before.
6) Reboot the phone to system.
PSA: Dirty Flashing rom builds may cause unexpected problems and for this reason, it is recommended to perform a clean flash (Format Data) every time you want to flash a new build of your rom or switch to a different one.
SEAMLESS UPDATES
LOS Updater (which is used in Lineage OS and many other roms) downloads the ROM ZIP automatically and installs it to the inactive slot, which spares us the need to reboot into recovery. Thus, these updates look like OTA updates from the stock rom. However, there are a few gotchas here too:
After the OTA is installed, DON'T TAP ON "REBOOT". Instead, go to Magisk Manager and install a module called "TWRP A/B Retention Script" (you should be able to find it in the "Downloads" section)
Then, go to the Manager's main menu, tap on "Install" and choose "Install to inactive slot (After OTA)"
After the installation process is completed, you can reboot. You have to repeat the process every time you get an OTA if you want to keep Magisk and TWRP on your newly updated system.
- - - - NOTES - - - -
- Windows is the only supported operating system by this guide.
- If when you type a fastboot command (like fastboot oem edl) it just shows "Waiting for any device", it is probably due to missing drivers. See this page on how to install the Google USB driver that is required for fastboot to detect your phone.
- If you have an older version of Windows like 8, 8.1, 7 etc, your device might not get detected by MiFlash due to missing drivers. In this case, you will have to install the Qualcomm EDL driver on your own (Link here). Windows 10 finds and installs the driver automatically.
- If SafetyNet doesn't pass, ensure you have not modified anything in the system partition and that you have enabled Magisk Hide in Magisk Manager. If it still does not pass, try using the "MagiskHide Props Config" Magisk Module (More Info here). If it still doesn't work, try reinstalling your rom. If there are still issues regarding safetynet, it may be the rom's problem or google's new server-side changes might have affected your device (Learn more here)
- If some apps detect root and do not function properly (like banking apps), make sure SafetyNet passes. Also, you can try selecting the app in the MagiskHide section of Magisk Manager. The "Hide Magisk Manager" option in the Settings of Magisk Manager can be useful too.
- MIUI Roms / Ports have a special installation procedure (different from the one presented here) and thus, it is recommended that you take a look at their respective xda thread(s) and / or in the appropriate telegram group.
- If your download speed is slow when downloading the stock rom base, try using a download manager like IDM. If the speed is still slow, it is an issue with xiaomi's servers and there is nothing that can be done about it.
- 3.18 kernels such as butterfly, dragonheart etc, do NOT work and / or cause unexpected issues in updated custom roms because these roms use newer 4.9 kernels. The recommended custom 4.9 kernel is Sleepy and it can be found on Telegram (https://t.me/Laciakerneltg). Therefore, there will be no support offered if you are using a 3.18 kernel in a ROM that uses 4.9 kernels (all new UPDATED roms do)
- If your fingerprint doesn't work / partially works, flash this fix in twrp (This issue exists in the official version of pixel experience)
- Android 11 ROMs might require extra steps that are not mentioned here, please follow the respective maintainer's installation guide for now.
CREDITS
tkchn for some parts of the guide
@Offain for FED
@FDoop for some links and guides

Amazing ?

Detailed Guide
LinkBoi said:
Heya,
This is a guide aimed on helping you to switch to a custom rom from the stock firmware.
For any questions, feel free to join our Telegram groups.
PREREQUISITES
1) Stock rom recommended by the maintainer of the rom that you want to flash. Typically for Q roms, 10.0.13.0, 10.0.18.0, 11.0.4.0 work well. (Link here).
2) The custom rom you want (Custom Rom list here).
3) Platform-Tools by Google for adb and fastboot (Link here).
4) TWRP Recovery Image and installer zip (Link here and here).
5) Force Encryption Disabler (Link here).
6) MiFlash by Xiaomi (Download the latest version from here).
INTRODUCTION
Installing a custom ROM on an Android phone used to be a walk in the park. However, some newer phones, like Xiaomi Mi A2 Lite, have what's called an A/B partition layout. This facilitates an update process on stock ROMs, however it makes it harder to install and develop custom ROMs. You can read more about A/B partitions here.
The upshot is that Mi A2 Lite doesn't have a recovery partition. Instead, when you install TWRP, it gets installed to the boot partition. Which means that every time you install or update a ROM, you will need to re-flash the recovery ZIP. One more thing to keep in mind is that the ROM always gets installed to another slot. Meaning, if you're currently in the slot B, the ROM will be installed to slot A and vice versa.
INSTALLATION PROCESS
A) Installing Stock Rom as a Base
1) Extract the platform tools zip file and open the new extracted folder.
2) Open a command line / PowerShell window in that folder by holding the shift key and right clicking into the empty space of the folder. Press the "open PowerShell / Command line window here" option.
3) Plug the device into your PC with a Micro USB cable.
4) Hold down the power button and the volume down button for ~10-15 seconds. You should see the fastboot screen.
5) In the Command Line / PowerShell window type: "cmd" and hit Enter. Then, type "fastboot oem edl" and hit Enter again. If your device can't get detected (Stuck on "Waiting for any device") and nothing happens on your phone's screen, check the notes section of the guide below.
This will reboot your device into edl mode (Emergency Download Mode). The screen should turn off and the led indicator should be blinking indefinitely
5) Extract the MiFlash zip file and open the extracted folder
6) Launch the Mi Flash application by double clicking the XiaoMiFlash.exe file
7) Install the necessary drivers for MiFlash (Click ok in the dialogues).
8) Extract the downloaded stock rom.
9) Press the "select" button and point into the previously extracted folder. (There should be an images folder and some other sh and bat files in the same directory).
10) Click "Clean All" all in the bottom left.
11) Press "Refresh".
12) Your device should appear (COM port). (If not, check the notes section of the guide below)
13) Click "Flash". The process will take around 200-350 seconds.
14) After it is done, hold down the power button for ~10 seconds and verify that the stock rom boots.
DO NOT UPDATE OR MAKE ANY MODIFICATIONS IN THE BOOTED STOCK ROM IN ANY WAY.
B) Install the Custom Rom
1) Paste the downloaded custom rom (zip file) into your sd card and insert it into your phone.
2) Hold down the power button alongside with the volume down button. You should see the fastboot screen shortly.
3) Copy the TWRP IMG file to the platform-tools folder
4) Copy the TWRP Installer Zip file to your SD Card.
5) Open a cmd / PowerShell window in the platform-tools folder (like Step 2 of Section A)
6) Type: "fastboot boot twrp-daisy-3.3.1.0-offain.img".
7) You will see the recovery on your phone, prompting you to enter the password. Choose "Cancel"
8) Go into the main menu of TWRP. Press Wipe, then Advanced Wipe and select everything except "SD Card".
9) Go back and press "Format Data".
10) Go into the main menu. Press "Install", "Select Storage" and select "Micro SD Card".
11) Flash the zips in this order (Click on them and confirm the action) :
- Custom ROM
- TWRP Installer ZIP
- Force Encryption Disabler
DO NOT install Magisk, GApps or anything else yet, we will do that later!
PSA: Some ROMs do not require Force Encryption Disabler as Force Encryption is disabled by default.
After everything is done, DON'T TAP REBOOT YET. Instead, go back to the main menu, choose "Reboot", change the slot (e.g. if it says "Current Slot: A", tap "Slot B", vice versa.
12) Tap "Recovery" in the reboot menu.
13) Copy anything you would like to install on your phone (Magisk, Gapps, etc.) and flash it the usual way (optional)
PSA: Some roms like EvolutionX and Pixel Experience have Gapps built-in so do not flash any gapps package in such roms.
PSA2: Flashing Magisk isn't necessary but some roms may need it for CTS / SafetyNet to pass.
14) Reboot to System and enjoy your Rom.
DIRTY FLASHING / MANUALLY INSTALLING A NEW BUILD
Manually Installing a new ROM build a.k.a Dirty Flashing is also somewhat complicated on A/B phones like Xiaomi Mi A2 Lite. However, if you follow these steps, you should be good to go:
1) Download the new build and copy it to your phone.
2) Reboot into the recovery mode (hold power + volume up) and flash the ROM ZIP.
3) Here's where the fun part begins: since we've just overwritten the boot partition, we don't have TWRP anymore, so we need to flash it again.
4) Once again, after you're done, don't tap on "Reboot" yet, instead, go back to the main menu, change the slot, and tap "Recovery".
5) Once the phone boots into recovery again, flash Magisk (optional) and Gapps if you had flashed them before.
6) Reboot the phone to system.
PSA: Dirty Flashing rom builds may cause unexpected problems and for this reason, it is recommended to perform a clean flash (Format Data) every time you want to flash a new build of your rom or switch to a different one.
SEAMLESS UPDATES
LOS Updater (which is used in Lineage OS and many other roms) downloads the ROM ZIP automatically and installs it to the inactive slot, which spares us the need to reboot into recovery. Thus, these updates look like OTA updates from the stock rom. However, there are a few gotchas here too:
After the OTA is installed, DON'T TAP ON "REBOOT". Instead, go to Magisk Manager and install a module called "TWRP A/B Retention Script" (you should be able to find it in the "Downloads" section)
Then, go to the Manager's main menu, tap on "Install" and choose "Install to inactive slot (After OTA)"
After the installation process is completed, you can reboot. You have to repeat the process every time you get an OTA if you want to keep Magisk and TWRP on your newly updated system.
- - - - NOTES - - - -
- Windows is the only supported operating system by this guide.
- If when you type a fastboot command (like fastboot oem edl) it just shows "Waiting for any device", it is probably due to missing drivers. See this page on how to install the Google USB driver that is required for fastboot to detect your phone.
- If you have an older version of Windows like 8, 8.1, 7 etc, your device might not get detected by MiFlash due to missing drivers. In this case, you will have to install the Qualcomm EDL driver on your own (Link here). Windows 10 finds and installs the driver automatically.
- If SafetyNet doesn't pass, ensure you have not modified anything in the system partition and that you have enabled Magisk Hide in Magisk Manager. If it still does not pass, try using the "MagiskHide Props Config" Magisk Module (More Info here). If it still doesn't work, try reinstalling your rom. If there are still issues regarding safetynet, it may be the rom's problem or google's new server-side changes might have "hit" your device (Learn more here)
- If some apps detect root and do not function properly (like banking apps), make sure SafetyNet passes. Also, you can try selecting the app in the MagiskHide section of Magisk Manager. The "Hide Magisk Manager" option in the Settings of Magisk Manager can be useful too.
- MIUI Roms / Ports have a special installation procedure (different from the one presented here) and thus, it is recommended that you take a look at their respective xda thread(s) and / or in the appropriate telegram group.
- If your download speed is slow when downloading the stock rom base, try using a download manager like IDM. If the speed is still slow, it is an issue with xiaomi's servers and there is nothing that can be done about it.
- 3.18 kernels such as butterfly, dragonheart etc, do NOT work and / or cause unexpected issues in updated custom roms because these roms use newer 4.9 kernels. The recommended custom 4.9 kernels are: Sleepy (can be found in Telegram) and Loki (Link here). Therefore, there will be no support offered if you are using a 3.18 kernel in a rom that uses 4.9 kernels (all new UPDATED roms do)
CREDITS
tkchn for some parts of the guide
@offain for TWRP IMG and FED
@FDoop for some links and guides
@ScaryMen1325 for fixing MTP in @offain's twrp for 4.9 kernels
Everyone who builds Custom Roms
Click to expand...
Click to collapse
Hi LinkBoi,
Hope You're Doing Great.
Detailed Guide...
Really Appreciated For Your Hardwork.
Thanks,
MUHAMMAD Asif Qasim

Wow, so much information in one place. Thanks for spending your time on this.

Pat750 said:
Wow, so much information in one place. Thanks for spending your time on this.
Click to expand...
Click to collapse
Thanks for the positive feedback

Thanks for the great and detailed work..

I don't have windows, someone knows how can I do the steps that use the MI software? I just thinking on install Oreo again

mancarv said:
I don't have windows, someone knows how can I do the steps that use the MI software? I just thinking on install Oreo again
Click to expand...
Click to collapse
Not quite the same... But the stock rom .tgz can be flashed using fastboot. That's what I do, since my main system is a Mac.
I think EDL/miflash can fix some things fastboot can't (eg. partition table).
For "flash stock and erase data" it should be fine.

mancarv said:
I don't have windows, someone knows how can I do the steps that use the MI software? I just thinking on install Oreo again
Click to expand...
Click to collapse
Are you on mac or linux? For, mac, I know little about the process. Edl flashing is certainly not possible in mac os. Regarding linux, there is qdl if you wanna try it, but i do not recommend it. For fastboot flashing, you can try the .sh scripts in the stock rom's folder but no support will be given.

Guys thanks for your answers, sorry for being late I have been occupied. I'm on Linux, Ubuntu 18.04. I didn't remember that stock roms come with sh script. Has been a long time since I did this kind stuff and it was with a ZTE Open with Firefox OS :laugh: Maybe I'm gonna try downgrade, I'm testing the last stock version and it is working good so far .

Hi. Question about: "A) Installing Stock Rom as a Base". Can I skip this step if I'm already on a stock rom?

93starletgt said:
Hi. Question about: "A) Installing Stock Rom as a Base". Can I skip this step if I'm already on a stock rom?
Click to expand...
Click to collapse
Yes

93starletgt said:
Hi. Question about: "A) Installing Stock Rom as a Base". Can I skip this step if I'm already on a stock rom?
Click to expand...
Click to collapse
depends one which stock version you're on. The ones I have recommended have been tested and work well. Users have reported that latest stock q works well too. From my experience, anything over 10.0.13.0 is good but if you have weird bugs, try to flash any of the recommended stock roms first and see if those bugs persist.

TWRP Recovery Update
TWRP Recovery v3.4.0-0 - UNOFFICIAL
Updated: 4/9/2020
TWRP Bootable image
TWRP Installer ZIP
Changelog:
• Merged all TWRP 3.4.0-0 Changes
• Based on @TogoFire's OFRP device tree:
- Enabled System-as-Root
- Updated recovery.fstab
- Updated Rootdir & Blobs
- Added bootctrl from Stock Q
- Updated kernel, in the bootable image, to 4.9.233
- Fixed stability issues
- Fixed mounting issues
Note:
- The Tap-to-wake gesture was removed
- Decryption doesn't work (it never did)
Credits:
- @TogoFire for the device tree (Massive kudos to him for making a fully stable tree)
- @lslx_22S99176LF, @LmAo_device for testing
- @ScaryMen1325 for the MTP fix

LinkBoi said:
TWRP Recovery v3.4.0-0 - UNOFFICIAL
Updated: 4/9/2020
TWRP Bootable image
TWRP Installer ZIP
Changelog:
• Merged all TWRP 3.4.0-0 Changes
• Based on @TogoFire's OFRP device tree:
- Enabled System-as-Root
- Updated recovery.fstab
- Updated Rootdir & Blobs
- Added bootctrl from Stock Q
- Updated kernel, in the bootable image, to 4.9.233
- Fixed stability issues
- Fixed mounting issues
Note:
- The Tap-to-wake gesture was removed
- Decryption doesn't work (it never did)
Credits:
- @TogoFire for the device tree (Massive kudos to him for making a fully stable tree)
- @lslx_22S99176LF, @LmAo_device for testing
- @ScaryMen1325 for the MTP fix
Click to expand...
Click to collapse
Original post has been updated aswell

Twrp update 2
If you have the recovery loop issue (the device is always booting to recovery), go to advanced > fix recovery loop, confirm the action and it should be fixed )

Twrp update 2
TWRP Recovery v3.4.0-0 - UNOFFICIAL
Updated: 5/9/2020
TWRP Bootable image
TWRP Installer ZIP
Changelog:
• Based on @TogoFire's TWRP device tree:
- Updated kernel image in the bootable image to 4.9.234.
- Fixed USB, to be recognised better.
- Added the double-tap-to-wake (dt2w) gesture. (When the screen is off, you can press it twice to open it)
- Remove the reboot to EDL option as it didn't work
Note:
- Decryption doesn't work
- If you have any issues regarding double tap to wake, try to delete the .twrps file in the TWRP folder (can be found in the Internal Storage).
Credits:
- @TogoFire for the device tree (all of the work is his)
- @lslx_22S99176LF, @proxer05 for testing

Awesome guide, thanks a lot!
I have a question, if i want to install some patches and fixes throgth TWRP, is necessary to change the slot before reboot?

LinkBoi said:
TWRP Recovery v3.4.0-0 - UNOFFICIAL
Updated: 5/9/2020
Click to expand...
Click to collapse
Is this using some kind of Magisk based stuff to install or something because between this and the Force-enc disabler zip linked in this thread, something is causing my banking app to think my phone is rooted even though it isn't. I'd rather avoid having to install magisk purely for the sake of making my bank app work properly, so what's with this?
EDIT: well, I installed magisk anyway and got safetynet passing + magiskhide set up but the bank app still thinks im rooted so rip me i guess
EDIT 2: "Back in March of 2020, Google made some changes to SafetyNet that permanently trips when your bootloader is unlocked no matter what you do." welp,

Wher can I find "TWRP A/B Retention Script" in Magisk?
There is a new Design with no Download Selection.

Related

Cyanogenmod with Nethunter

I've been trying to get Nethunter to work on top of cyanogen mod on my Nexus 7 (2013) and have encountered many problems
I've tried many guides featuring similar procedures and still ended up with the same result
(I first set up basic stuff ie; TWRP, rooting etc.)
It technically 'works' but when I first boot into it via multi-ROM I get the boot anim but instead of blue its yellow-orange then light blue
'baby blue' colored screen appears then after a bit it goes to the setup where all colors once blue are now orange (loading icons,font)
and on top of this it is unbearably laggy to the point where it takes about 10s for my touch to actually do something (this is also apparent in loading anim)
After spending yesterday and the entire day today (6:00am to now; 8:42pm) in and out of adb and TWRP I am finally going to ask here (did not have luck with google ) Demonstration of my problem (made a video of it but I cant post links)
I would love some sort of advice here and if there is none someone please tell me that I can't fix it and to stop trying or I probably wont.
A guide I have tried
#################################################################################################
"Step 1: Installing MultiROM :
Install MultiROM manager from Google Playstore
1) After installing, Open it.
2) Tick all the Check-boxes
3) In the last one choose the correct Kernel (Kitkat or Lollipop)
(WARNING: Check the Kernel Status: It should be in Green Letters, but if in RED then, ask about it in the comments section)
4) Tap Install
5) This will do everything for you, sit back and relax, it will take time.
6) After everything goes right, you should have:
A modified custom recovery,
A boot manager at start-up that asks, which ROM to boot into. (Press cancel so it won't automatically boot into the Internal ROM)
The same application, in the internal ROM, which manages every ROM, and Check for Updates.
Step 2: Downloading CM11-M11 ROM:
We will be using this because it is highly compatible with MultiROM.
Goto this website, and Download CM11 M11 ROM for OnePlus.
Click here for WiFi Model Nexus 2013
Click here for 4G/LTE Model Nexus 2013
Click here for LG Nexus 5
Click here for Nexus 4
Go to your default search engine (Google) and search this ROM for your Device if not listed here.
Step 3: Downloading Kali NetHunter
Go to the Official website of Kali
Scroll down to the bottom and download the correct image (actually .zip) for your Device.
Don't use the Windows Installer.
Step 4: Downloading SuperSU.Zip and BusyBox:
Download this Super User update.
Also, Download BusyBox from Playstore or from here
Step 5: FLASHING CM11-M11 as a Secondary ROM:
After all of your Weapons are ready, it's time to FIRE. (I mean Flash)
Move all the items to the root of your SD-card in your Device (or any other Folder)
Reboot your system to Custom Recovery. (Vol-Down + Power, when device is turned off)
Once booted, go to Advanced, then MultiROM settings, tap on add ROM
Tap on Next. (Or choose where do you want to install the ROM Eg: A Flash/Pen Drive)
Choose ZIP file
Choose cm-11-20141008-SNAPSHOT-M11-xxxx.zip (The ROM you just Downloaded)
Swipe to Confirm
Once Finished, Reboot system.
------------------------------------------------Flashed--------------------------------------------
Use the MultiROM manager at Start-up to boot into The Flashed ROM.
Go out there and explore!
Install BusyBox, open it and then Install it. (It may/will fail because the system is not rooted) (Don't worry its temporary, you may even skip this step)
Once you are happy, and want to move on, Follow the next step.
Step 6: FLASH KALI NET-HUNTER!!!
Reboot to Recovery.
Go to MultiROM settings.
Tap on 'List ROMs'
Choose the CM11-M11 ROM
Tap the small button stating 'Flash ZIP'
Choose The Kali Nethunter.zip you just downloaded.
Swipe to Confirm Flash
After flashing, Reboot system.
-----------------------------------------FLASHED-------------------------------------------------
Congratulations you Successfully Flashed Kali NetHunter!!
Boot into the ROM
EXPLORE! Go Go Go!
Sort things out, install necessary apps, play-store, Google services etc..
Tap on KaliNetHunter Home (App) and Explore it too!
However any service provided by it won't WORK, because the ROM is not Rooted.
Then what are we waiting for? Let's gain the root access.
Step 7: Rooting the ROM:
It's too easy! (Now that you have practice)
Reboot to Custom/TWRP Recovery.
Go to MultiROM settings.
Then to 'List ROM'.
Choose the same ROM
Then to 'Flash ZIP'.
Choose The SuperSU.zip that you downloaded."
Swipe to Confirm Flash.
After the Flash Reboot System.
####################///////////////////////////////////////////////////////////////////////////////
EDIT: I FIXED IT!!!
SOLUTION:
I reflashed Cyanogenmod and everything worked
##########################################
EDIT: None of the nethunter tools work instead opening in terminal with no commands. probably should have expected this

Ulefone Power 5 twrp + root + project treble

Hello everyone, lets root your ulefone power 5 and if you want: flash another rom. I'm kinda new here so don't mind if I'm telling things in a stupid way.
Code:
/*
* Your warranty is now void.
*
* I am 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 me for messing up your device, I will laugh at you.
*/
Ok, first of all, massive shout out to @gamr13 and @Dukino and @CarelMinnaar for providing some of the files.
Original threat: https://forum.xda-developers.com/android/help/ulefone-power-5-twrp-root-t3848501/
Link to the website I copied and translated the guide from: https://www.chinahandys.net/android-9-auf-dem-ulefone-power-5-anleitung/
Code:
If you are using any custom rom on your phone, I strongly
recommend reflashing your whole phone with the original
firmware provided by ulefone. I'll add the link.
I assume you know how to flash, otherwise search on youtube or
request it and I'll add a guide.
Most files you may need and worked in my case:
MediaFire
MediaFire is a simple to use free service that lets you put all your photos, documents, music, and video in a single place so you can access them anywhere and share them everywhere.
www.mediafire.com
More files in the spoiler below.
Let's begin!
First of all, make sure your phone is recognized by your pc and use a good cable. (the original one broke pretty quickly in my case)
Next, go to system and search for 'build number'.
Tap it untill it says: you are now developer.
Go to developer options and enable: OEM unlocking. Then power your phone off.
Next, download the fastboot and adb zip file I provided. If you already use adb and fastboot, download the recovery zip and you know how it works.
Extract the 'android' folder and put it on the root of your system disk (mostly /C).
Next, go to your command prompt and type: cd \android
Now you start your phone in bootloader. Press and hold volume up and power and let your phone cycle untill you enter bootloader.
Select 'fastboot'.
Plug your phone into your pc and type in the command prompt: fastboot devices
Now you should see the serial number of one device (in my case it was something like ABCD1234567890). If not, install some fastboot drivers and use device manager to select the fastboot driver for your phone.
Then, type: fastboot oem-unlock
Select Yes on your phone and let it reboot.
Re-enter fastboot on your phone.
To be sure: fastboot devices
Flash your recovery using: fastboot flash recovery TWRP_3.2.3_Ulefone_Power_5_AND_5S.img
Then, you need (maybe not but just do it) to reboot straight into bootloader. So press volume up and power untill it shows the bootloader, and then select recovery.
Now your phone may be encrypted or something like that. Select 'Wipe' and accept.
Next, put your gsi (A only, arm64), gapps and/or your decrypt file on your sdcard and flash it!
Known bugs:
- VoLTE - I needed to use a simcard from a different provider to get calling working.
- Hotspot
- Seems sticky to 2.4G?
- MTP not working in recovery
- When waking up your device you may encounter some weird behaviour. Just wait a second and it's gone.
Spoiler: The old guide
Files:
https://mega.nz/#!N2hijYAB!0LLshTYgW...SUfOKpV5BELo4A (seems to be down and dated)
or
http://www.mediafire.com/folder/55lxwzgdd938t/ulefone_power_5
or
https://drive.google.com/drive/folders/1totRbNzS1RBeSO66WW2O0hG2kPGbGERl?usp=sharing
So, the method.
1.) In the files above you will find a file ulefone power 5 twrp root. Extract it and find the map called SP_Flash_Tool. Open this and run the flash_tool.exe. Please download the firmware.zip and the flashtool.zip and extract them. Put the decrypt.zip on your sdcard. (in some cases you need also the 'MT65xx_USB_VCOM_DRIVERS.zip' to install properly)
2.) Once opened the flashtool.exe, go into the options menu, click the connection tag and make sure USB is selected. make sure its set to Full speed and auto detect.
3.) Browse through the map sp flashtool and use the MTK_AllInOne_DA.bin file as the DA file (may be selected by default).
4.) Select the scatter file found in the firmware folder with all the .img files. Its called: MT6763_Android_scatter.txt
5.) While unplugged, hold the volume up and power button to load the phone into it's bootloader mode.
(if your phone is bricked in any screen skip this step) Turn your phone totally off.
6.) Set the SP flash tool to download only and press the download button to start the download.
7.) Plug your phone in and as expected, nothing will happen.
8.) Now, hold the volume up and power button continuously. Keep holding it until the SP Flash tool starts start downloading and the bottom bar loads things. Be sure you immediately loose the buttons, otherwise it soft-bricks itself so you have to start the download again.
9.) Be patient and wait until you get the green check mark, then unplug your phone.
10.) Boot directly back into bootloader. (vol. up and power, hold it untill you get the fastboot screen. Sometimes it takes up to 4 reboots), select and boot recovery.
11.) Now it's all for you! Put something on your sdcard and flash it. Mine seems to be broken so I used an usb stick, wich is working fine. MTP is not working in the recovery.
12.) CarelMinnaar published the new decrypt file, wich I thrust more than the previous russian one. Put it on your sdcard, do a full wipe and install. This should ban the forced encryption.
12.)
A.) For root: flash the magisk .zip file from the files above or search on the internet for the right one.
Thanks to @gamr13
1. Reboot to TWRP
2. MAKE A FULL BACKUP (every partition checked)
3. Mount System and Vendor
4. Go back to the main screen
5. Advanced > File Manager
6. Go to Vendor
7. Go to the "lib" folder
8. tap libdirect-coredump.so and Copy File
9. Go to /system/lib
10. paste the file in here
11. Go to /vendor/lib64
12. Copy libdirect-coredump.so
13. Paste in /system/lib64
14. Install Magisk
15. Reboot
16. Go to Magisk > Download > Search for "SafetyPatch" by hackintosh5
17. Reboot and enjoy
Click to expand...
Click to collapse
B.) 1. For another rom: search overhere for a system.img Download the A only variant. I'll keep you updated below. I am not using this phone frequently anymore, so updates may come later. @gamr13 will keep you updated
2. Wipe cache, dalvik cache, data and System.
3. Select flash .img and flash the .img at your System.
4. Flash magisk or other mods.
5. There may be some bugs. Sms was not working on the phh treble for me. The launcher crashed also.
13.) Boot up
14.) Enjoy! Feel free to ask anything.
Got some pm's asking what to do if stuck on boot/recovery, this video explains the return to stock process. In short: start spflashtool, select the scatter file in the stock firmware, select download only, firmware upgrade or download and format. Plug your cable in. Then click start, and press vol. up and power until you hear the 'new device found' sound on your pc and let it go. Then just reboot.
Feel free to use his files or mine. Doesn't really matter.
Working gsi images
These gsi images are tested on this phone:
Android 8.1
https://forum.xda-developers.com/pr...-development/experimental-phh-treble-t3709659
bugs: sometimes the screen flickers when powering on. (once or twice per month)
Android 9
https://forum.xda-developers.com/pr...0-resurrection-remix-v7-0-arm64-32-b-t3891636
bugs: a bit laggy. It takes up to 30 seconds to wake up from just screen off. Maybe a bug with the sleep state. When you use your phone frequently you don't suffer from this.
Thanks to @gamr13 :
Alright boys, yet another stride made today.
I've done some extensive testing on some Generic System Images for the Ulefone Power 5. This GSI seems to be the most stable I've used so far and best of all, it has root built-in (of course, it's LineageOS).
This is the only one I've gotten to work with ViPER4Android and root. Quick note that this still does have the screen flicker on the lock screen, but it's not as bad in this ROM compared to others I've tried.
Android Q GSIs currently do not work on the Ulefone Power 5, I've tried and fought hard with 'em but nothing. So, Pie it is for now.
Note: Magisk DOES NOT work. Please do not flash it on this ROM or you will break root access and need to reflash the system image.
First things first:
https://sourceforge.net/projects/andyyan-gsi/files/
1) Download the A-ONLY ROM.(avN): https://sourceforge.net/projects/an...309-UNOFFICIAL-treble_arm_avN.img.xz/download
2) Make a backup of your stock ROM as it is, just in case in TWRP.
3) WIPE System, Data, Cache and Dalvic in the Advanced Wipe section of TWRP.
4) Flash the image as a System Image in TWRP.
5) Flash Open Gapps
7) Reboot into ROM
8) Enable Developer Options and enable root for apps and adb
9) Download ViPER4Android 2.5.0.4 (This is critical as the newest release will not work)
10) Install the driver
11) On every reboot you will have to go into V4A and go to Settings > Turn on developer mode > Disable SELinux
12) Enjoy Android Pie with ViPER4Android on your Ulefone Power 5.
Click to expand...
Click to collapse
Android 11
Havoc os
[11][OFFICIAL] Havoc-OS 4.1 [ARM64/ARM/A64][A/AB/AB-VNDKLITE][GApps/Vanilla]
Havoc-OS 4.x is based on AOSP, inspired by Google Pixel. Has a refined Material Design 2 UI crafted by @SKULSHADY. Many useful features that will blow your mind. All you can dream of and all you'll ever need. Just flash and enjoy... General...
forum.xda-developers.com
Not the quickest, but looks nice with the pixel inspired interface. No extra bugs found.
Handy thread!
I can’t get Magisk working though on any GSIs. I don’t ever get a prompt to allow root access to an app or even with it set to automatically grant, nothing happens and apps don’t detect it, yet, Magisk is installed and Magisk Modules install and work no problem.
Weird issue.
oes20 said:
These gsi images are tested on this phone:
Android 8.1
https://forum.xda-developers.com/pr...-development/experimental-phh-treble-t3709659
bugs: sometimes the screen flickers when powering on. (once or twice per month)
Android 9
https://forum.xda-developers.com/pr...0-resurrection-remix-v7-0-arm64-32-b-t3891636
bugs: a bit laggy. It takes up to 30 seconds to wake up from just screen off. Maybe a bug with the sleep state. When you use your phone frequently you don't suffer from this.
Click to expand...
Click to collapse
Does Magisk work for you on these GSIs?
gamr13 said:
Does Magisk work for you on these GSIs?
Click to expand...
Click to collapse
It works on (i guess) the android 8 gsi. I do not recommend magisk, as it messes with your /vendor partition. That partition can not be factory reset other than re-flashing the whole recovery/system/vendor/radio etc. Magisk is also not optimized for this device. Tweaks like viper4androidfx won't work. I don't use my phone anymore at this moment, so any tips, tricks or new information is always welcome to ensure that everybody can get the same good experience
oes20 said:
It works on (i guess) the android 8 gsi. I do not recommend magisk, as it messes with your /vendor partition. That partition can not be factory reset other than re-flashing the whole recovery/system/vendor/radio etc. Magisk is also not optimized for this device. Tweaks like viper4androidfx won't work. I don't use my phone anymore at this moment, so any tips, tricks or new information is always welcome to ensure that everybody can get the same good experience
Click to expand...
Click to collapse
That reply gave me serious doubt that you know a single thing about what you're doing. If it touches /vendor, you flash stock vendor.img in fastboot mode, ez pz. Not that it matters at all since nothing will get messed up at all. Magisk works perfectly fine on stock ROM. V4A works on stock, but when I use any GSI then no apps that require root work at all.
gamr13 said:
Handy thread!
I can’t get Magisk working though on any GSIs. I don’t ever get a prompt to allow root access to an app or even with it set to automatically grant, nothing happens and apps don’t detect it, yet, Magisk is installed and Magisk Modules install and work no problem.
Weird issue.
Click to expand...
Click to collapse
It is a problem, I know. We can't do anything than reporting these problems to the Magisk team and hope for help. In my case, Magisk worked for root, but not for the modules. I got also knocked out of Snapchat because of Magisk. Just one of those little things that are part of our development hobby
gamr13 said:
That reply gave me serious doubt that you know a single thing about what you're doing. If it touches /vendor, you flash stock vendor.img in fastboot mode, ez pz. Not that it matters at all since nothing will get messed up at all. Magisk works perfectly fine on stock ROM. V4A works on stock, but when I use any GSI then no apps that require root work at all.
Click to expand...
Click to collapse
In my case I got root acces working in Magisk. I apologize for that part about the vendor. You are right about that. I am trying my best to share my experience. I am no expert in anything.
Alright boys, yet another stride made today.
I've done some extensive testing on some Generic System Images for the Ulefone Power 5. This GSI seems to be the most stable I've used so far and best of all, it has root built-in (of course, it's LineageOS).
This is the only one I've gotten to work with ViPER4Android and root. Quick note that this still does have the screen flicker on the lock screen, but it's not as bad in this ROM compared to others I've tried.
Android Q GSIs currently do not work on the Ulefone Power 5, I've tried and fought hard with 'em but nothing. So, Pie it is for now.
Note: Magisk DOES NOT work. Please do not flash it on this ROM or you will break root access and need to reflash the system image.
First things first:
https://sourceforge.net/projects/andyyan-gsi/files/
1) Download the A-ONLY ROM.(avN): https://sourceforge.net/projects/an...7-UNOFFICIAL-treble_arm64_avN.img.xz/download
2) Make a backup of your stock ROM as it is, just in case in TWRP.
3) WIPE System, Data, Cache and Dalvic in the Advanced Wipe section of TWRP.
4) Flash the image as a System Image in TWRP.
5) Flash Open Gapps
7) Reboot into ROM
8) Enable Developer Options and enable root for apps and adb
9) Download ViPER4Android 2.5.0.4 (This is critical as the newest release will not work)
10) Install the driver
11) On every reboot you will have to go into V4A and go to Settings > Turn on developer mode > Disable SELinux
12) Enjoy Android Pie with ViPER4Android on your Ulefone Power 5.
Android 10 and TWRP...
Me. I tested 10 different roms of Android 10 and none works correctly .. I always stay on the Android logo that lights up in a loop. if you find information and manipulations or roms that work and are stable, send me the link or download. Thank you. And if you also find a new TWRP custom 3.3.0 or 3.3.1, put the download here. Thanks ?
gamr13 said:
Alright boys, yet another stride made today.
I've done some extensive testing on some Generic System Images for the Ulefone Power 5. This GSI seems to be the most stable I've used so far and best of all, it has root built-in (of course, it's LineageOS).
This is the only one I've gotten to work with ViPER4Android and root. Quick note that this still does have the screen flicker on the lock screen, but it's not as bad in this ROM compared to others I've tried.
Android Q GSIs currently do not work on the Ulefone Power 5, I've tried and fought hard with 'em but nothing. So, Pie it is for now.
Note: Magisk DOES NOT work. Please do not flash it on this ROM or you will break root access and need to reflash the system image.
First things first:
https://sourceforge.net/projects/andyyan-gsi/files/
1) Download the A-ONLY ROM.(avN): https://sourceforge.net/projects/an...7-UNOFFICIAL-treble_arm64_avN.img.xz/download
2) Make a backup of your stock ROM as it is, just in case in TWRP.
3) WIPE System, Data, Cache and Dalvic in the Advanced Wipe section of TWRP.
4) Flash the image as a System Image in TWRP.
5) Flash Open Gapps
7) Reboot into ROM
8) Enable Developer Options and enable root for apps and adb
9) Download ViPER4Android 2.5.0.4 (This is critical as the newest release will not work)
10) Install the driver
11) On every reboot you will have to go into V4A and go to Settings > Turn on developer mode > Disable SELinux
12) Enjoy Android Pie with ViPER4Android on your Ulefone Power 5.
Click to expand...
Click to collapse
8 Days later and I can confirm the ROM has been really stable with no issues other than the lock screen flicker which rarely happens, especially compared to other ROMs. Battery life has had a significant increase even when putting the phone under heavy usage (Call of Duty: Mobile and other games). Performance has shown a decent increase compared to the stock ROM. All in all, very impressed with the substantial improvements the GSI has brought over the stock Oreo firmware that came with this phone.
Can not install ANDROID 10 AOSP v201 !
Hello, I tested all versions of Android 10 phhusson and none works ..
phhusson offers to do this manually but I do not understand where to put it and how to run it!
phhusson: "need to manually setprop ro.skia.ignore_swizzle true"
If you have a solution to my problem, tell me here because I'm tired of Android 9 .. I'd like to upgrade to the latest version and not bother with this Android 9 .. Thanks ​
Android 10 GSIs currently do not work with the Ulefone Power 5.
gamr13 said:
8 Days later and I can confirm the ROM has been really stable with no issues other than the lock screen flicker which rarely happens, especially compared to other ROMs. Battery life has had a significant increase even when putting the phone under heavy usage (Call of Duty: Mobile and other games). Performance has shown a decent increase compared to the stock ROM. All in all, very impressed with the substantial improvements the GSI has brought over the stock Oreo firmware that came with this phone.
Click to expand...
Click to collapse
Tried to install the .xz gsi-image in TWRP but that doesn't work. Can anybody tell me how to install this image, because in TWRP you can only choose between .zip and .img install. Thanks in advance!
fernseher said:
Tried to install the .xz gsi-image in TWRP but that doesn't work. Can anybody tell me how to install this image, because in TWRP you can only choose between .zip and .img install. Thanks in advance!
Click to expand...
Click to collapse
You have to extract the file and then you will have an .img
Extract it with Winrar or 7ZIP
PetroChina said:
You have to extract the file and then you will have an .img
Extract it with Winrar or 7ZIP
Click to expand...
Click to collapse
This!
A guy was able to install Android 10 with another TWRP
I will soon receive the recovery on Facebook,
I am impatient for me and for all of you who tries to
install Android 10 without success, I hope to have it this week!
I'll let you know about Ulefone Power_5's friends <3
https://1drv.ms/u/s!AidaoCKFpLudgeJAwtAZTJlaLIV2EQ?e=6N3RaD​
PetroChina said:
I will soon receive the recovery on Facebook,
I am impatient for me and for all of you who tries to
install Android 10 without success, I hope to have it this week!
I'll let you know about Ulefone Power_5's friends <3
https://1drv.ms/u/s!AidaoCKFpLudgeJAwtAZTJlaLIV2EQ?e=6N3RaD​
Click to expand...
Click to collapse
Great! Let us know what bugs it has (if any) and especially for TWRP if it has the screen flicker!
gamr13 said:
Great! Let us know what bugs it has (if any) and especially for TWRP if it has the screen flicker!
Click to expand...
Click to collapse
I will tell you everything, I must first test it personally and after the upload on Mediafire.
In my opinion, I hope that the scienceillements of the TWRP will not be there ​
I have the files but I can not install it because it did not explain very well the steps ..
http://www.mediafire.com/file/eqzhwznxxr9qlsf/TWRP_3.3.1_UlefoneP5.img/file
http://www.mediafire.com/file/1sf9mi9qlcv5ari/no_encryption_mod.zip/file
He told me this and I do not understand much and it is not clear enough... : no encryption mod first before install latest twrp if your phone doesnt boot from old twrp to twrp 3.3.1​

How To Guide [GUIDE][UNLOCK][ROOT] How to unlock bootloader, flash ArrowOS v11.0 ROM and root Xiaomi Poco X3 Pro

If you've recently purchased a Xiaomi Poco X3 Pro, but were on the fence about using it until an AOSP ROM became available then you're in luck. Kudos to @kubersharma for his contribution by providing us the first official AOSP release, ArrowOS v11.0 [vayu].
Now, throughout this guide, I have linked the page or post based on information I gathered to put this guide together in order to credit that person instead of having to name drop them individually. These are fully detailed instructions to make it easier for newbs.
I've spent the better part of my day figuring all of this stuff out so hopefully you won't go through the trouble I did. PLEASE DO NOT PM ME FOR HELP. REPLY TO THIS GUIDE BELOW, THANKS. NOW LET'S BEGIN!!!
UNLOCK BOOTLOADER
1. Unlock the bootloader with Xiaomi Unlocker tool.
a. Be aware this process will factory reset the device before proceeding.
b. Download the Mi Unlock app onto your PC. Extract the contents within the zip file into an empty folder then run the app.
c. Register for Xiaomi account and sign in with your Mi Account.
d. Your Mi Account must be added to your Mi Settings
Sign into your Mi Account on the device.
Go to Settings –> About Phone –> tap on MIUI version (For POCO) until it says Developer options is enabled.
Back out of About Phone, Additional Settings –> Developer options –> Mi Unlock status.
Agree, then "Add account and device".
e. Shut down your phone manually, and hold Vol down + Power button to enter Fastboot mode.
Download and install the latest Xiaomi USB Drivers or here (or Google's latest USB drivers for Windows if all else fails) for your PC.
Connect the device to the computer via USB cable, and confirm that your phone shows up recognized as "Android Bootloader Interface" (in Device Manager), and click "Unlock" in the Unlock app.
NOTE: If Windows does not recognize the device due to it automatically installing the wrong "Kedacom Device Driver" then you will have to manually install the drivers for "Android ADB Interface/Android Bootloader Interface".
f. After your first initial unlock attempt, you MUST wait 168 hours before unlock process can fully complete.
Wiping the device or removing the Mi account from the device could result in the timer being reset.
g. After the waiting period expires, click "Unlock" in the Unlock app. You will notice the phone will restart followed by subsequent different screens during the phone's boot sequence including the "POCO" screen which now displays an "open lock icon" at the top, indicating your bootloader unlock attempt and will eventually end up on a "This device is locked" screen where you have to confirm you are the device owner by entering your Mi Account password to "activate this device"; connect to your WiFi prior to doing so if the device lacks an active sim card.
FLASH CUSTOM RECOVERY, DECRYPTION DISABLER, & ROM THEN ROOT
2. Download the Official ArrowOS v11.0-vayu fastboot ROM for POCO X3 Pro [direct link here].
a. NOTE: ArrowOS requires MIUI V12.0.4.0 firmware so it recommended to downgrade to this version before flashing ArrowOS otherwise the ROM may not boot.
b. Choose the GApps build type which "includes Play services and now some AOSP apps have been replaced with GApps... All GApps packages and other[sic] files [were] extracted from original firmware images for Pixel4XL (coral)."
3. [OPTIONAL] Download the latest version of Encryption Disabler then copy it along with the fastboot ROM into a folder named 'TWRP' on the root of your microSD.
4. Ensure USB Debugging is already enabled on your device (in Settings –> Additional Settings –> Developer options).
5. Remove any screen unlock (i.e., fingerprint, PIN, pattern or password) in MIUI.
6. Power off device and put it in Fastboot mode (Vol down + Power button).
7. Download the latest SDK Platform Tools from Google for adb compatibility and create a folder called "adb" in the root of the "C:\" drive.
a. Extract the files adb, AdbWinApi.dll, AdbWinUsbApi.dll, and fastboot into the folder.
b. Ensure the latest USB drivers are installed for your PC, connect the device to the computer via USB cable, and confirm that your phone shows up recognized as "Android Bootloader Interface".
c. Launch "Command Prompt" on your PC and run the command:
cd C:/adb
To show a list of devices (including your phone) connected to your PC, enter the command:
fastboot devices
8. Download the unofficial Pbrb (test3) recovery file (PitchBlack Recovery Project 3.1.0 unofficial) by Alex Besida and copy it into the ADB install folder and rename it to "recovery.img".
9. Flash custom recovery file in CMD, run commands:
fastboot flash recovery "recovery.img"
fastboot boot recovery.img
10. Your device should automatically boot into custom recovery. At this point, the microSD will become accessible from recovery or the PC, but the device's internal storage will not be which makes using a microSD card much more imperative for this process since the recovery is in early access development.
a. Go to Wipe –> Format Data, type "yes" to perform data wipe; Back out to the main menu.
b. Go to Install –> Navigate to the TWRP folder on the microSD (via "external_sd").
Select "Arrow-v11.0-vayu-OFFICIAL-20210424-GAPPS.zip" and flash the ROM, but do not change any of the checkboxes that show up before doing so.
Format data (not wipe) before rebooting into the new ROM.
NOTE: At most it takes around 1 minute to boot back up.
11. [OPTIONAL] Power off the device and boot back into recovery.
a. Go to Install –> Navigate to the TWRP folder on the microSD.
Select " Disable_Dm-Verity_ForceEncrypt_11.02.2020.zip" and flash it, but do not change any of the checkboxes that show up before doing so.
NOTE: This will disable forced encryption of data partition for better performance and internal SD + Data mounting in TWRP. It's not needed for the ROM to work, but due to disabling encryption it compromises security.
Reboot into the new ROM.
12. After going through the phone's boot sequence, you'll be presented with the initial phone setup process onscreen where you can begin recovering your data.
13. Go to Settings –> About phone –>tap on Build number until it says Developer options is enabled.
a. Back out to Settings –> System –> to access Developer options –> Enable USB Debugging.
14. Installing Magisk via custom recovery will fail in the background, resulting in an unresponsive "POCO" screen which is caused by installer scripts not being able to properly detect the correct device info or the recovery environment does not meet its expectation. In this case, you will need to use the Patch Image method as it is guaranteed to work 100% of the time. Installing Magisk through custom recoveries on modern devices is no longer recommended due to this reason.
a. Pull down the Notification Bar from the top of the screen and change "Charging this device via USB" to "File Transfer".
b. Open " Arrow-v11.0-vayu-OFFICIAL-20210424-GAPPS.zip " and copy "boot.img" to the phone's internal storage.
c. Download the latest version of Magisk (Magisk v22.1) and copy it to the phone's internal storage and use the native "Files" app to install the apk.
NOTE: Magisk binaries (ZIP) are now included within Magisk Manager APK file. Now you don’t have to download it separately. You can install the .apk file or rename its extension to .zip then flash it through custom recovery / TWRP.
d. Launch Magisk from the app drawer and go to "Install" under Magisk –> "Select and Patch a File," select the "boot.img" you copied internally –> "LET'S GO".
e. Copy the generated patched file to the ADB folder and flash it via fastboot by running the following commands:
cd C:/adb
fastboot flash boot boot.img
f. Reboot into the new ROM and voila!
fastboot reboot
g. Use an app such as Root Checker or BusyBox Checker (from the Play Store) to confirm root status.
h. To bypass/restore SafetyNet validation, open the Magisk app, go to Settings (cogwheel icon) and enable MagiskHide.
SIDENOTES:
These are either my comments or other user's comments that may be considered helpful as it relates to ArrowOS
Picture guide unlock bootloader, flash custom ROMs & root Xiaomi Poco X3 Pro (Credits to @pl1992aw)
Using TWRP to install OTA Updates
Installing OTA updates
Stability of 'PitchBlack Recovery Project' Recovery
How to verify SafetyNet status
Feel feel to let me know of other threads or comments that are also related to installing ArrowOS.
Excellent guide
My suggestions in terms of improvements:
- 7-day waiting time before unlocking: I would mention that wiping the device or removing the Mi account from the device could result in the timer being reset;
- DFE/Encryption Disabler: it's optional, not needed for the ROM to work and thanks to disabling encryption it compromises security;
- Firmware: Arrow OS requires MIUI V12.0.4.0 firmware, so before flashing Arrow OS it's recommended to downgrade MIUI to this version, otherwise the ROM might not boot
In the future, once more custom ROMs come out, it should be easy to turn this guide into general flashing instructions instead and not just for Arrow OS, which would be a great resource to have here
kamild_ said:
Excellent guide
My suggestions in terms of improvements:
- 7-day waiting time before unlocking: I would mention that wiping the device or removing the Mi account from the device could result in the timer being reset;
- DFE/Encryption Disabler: it's optional, not needed for the ROM to work and thanks to disabling encryption it compromises security;
- Firmware: Arrow OS requires MIUI V12.0.4.0 firmware, so before flashing Arrow OS it's recommended to downgrade MIUI to this version, otherwise the ROM might not boot
In the future, once more custom ROMs come out, it should be easy to turn this guide into general flashing instructions instead and not just for Arrow OS, which would be a great resource to have here
Click to expand...
Click to collapse
Fair enough, thanks for the suggestions. I can add them in.
Thanks for this detailed guide! I'm currently on MIUI 12.0.2 - do you know if I have to update to 12.0.4 first or if I can follow your guide directly?
Aulig said:
Thanks for this detailed guide! I'm currently on MIUI 12.0.2 - do you know if I have to update to 12.0.4 first or if I can follow your guide directly?
Click to expand...
Click to collapse
Yes, you have to update to MIUI 12.0.4.0 before flashing.
How stable is the PBRP Beta? Great Guide btw
DeblaGaming said:
How stable is the PBRP Beta? Great Guide btw
Click to expand...
Click to collapse
More stable than other unofficial custom recoveries such as OrangeFox, especially when it comes to functionality. Based on my experience using OrangeFox, it failed to flash anything that was already present on my microSD, but PBRP worked OOB w/ no issues first time, and allowed me to copy over files onto the microSD while the device was in recovery while simultaneously being connected to my PC. Thanks btw.
AusVGM said:
Yes, you have to update to MIUI 12.0.4.0 before flashing.
Click to expand...
Click to collapse
Thank you, I did that now and then followed the guide (without disabling encryption as that's an important feature to me). Super easy to follow even though I haven't been modding a lot these past years. Worked perfectly, thanks @urbanman2004
Tip: make sure to check safetynet with an app and not magisk, as described in the thread linked regarding magisk hide
Aulig said:
Thank you, I did that now and then followed the guide (without disabling encryption as that's an important feature to me). Super easy to follow even though I haven't been modding a lot these past years. Worked perfectly, thanks @urbanman2004
Tip: make sure to check safetynet with an app and not magisk, as described in the thread linked regarding magisk hide
Click to expand...
Click to collapse
Thanks for the compliment... I didn't feel the need to include how someone could check their device's SafetyNet status, but the app I use is called SafetyNet Helper Sample in the Play Store.
Very detailed instruction thumbs up...
My questions
1. For miui requirement the MIUI V12.0.4.0 , is it free or need specific version like chinese or europe or asia or america for more clearly
2. In future when twrp or custom recovery available , can we just flash the rom via recovery as simple as that. Like other phone
bla.tiga said:
Very detailed instruction thumbs up...
My questions
1. For miui requirement the MIUI V12.0.4.0 , is it free or need specific version like chinese or europe or asia or america for more clearly
2. In future when twrp or custom recovery available , can we just flash the rom via recovery as simple as that. Like other phone
Click to expand...
Click to collapse
Thanks for the compliment. To answer your questions:
1) Any version of MIUI V12.0.4.0 will do.
2) To flash future OTA updates (ROMs), it will require flashing the "compatible recovery" (vayu ArrowOS Recovery) in fastboot mode, rebooting the device then followed by installing the OTA update once it becomes available and letting it flash automatically.
hello all,
I have flashed vanilla version of ArrowOS, and magisk...
could somebody help me with installing microG for VANILLA build ROM? I'm new to microG stuff, so I don't really know from where should I install, what version etc.
some apps are not running as they require Google play services
I have asked this question elsewhere but maybe somebody here has some experience. Is it possible to install ArrowOS OTA with another TWRP than from ArrowOS ?
I'm asking because this AOS TWRP is very limited in functionality.
as400l said:
I have asked this question elsewhere but maybe somebody here has some experience. Is it possible to install ArrowOS OTA with another TWRP than from ArrowOS ?
I'm asking because this AOS TWRP is very limited in functionality.
Click to expand...
Click to collapse
Best that your question be taken up w/ the devs.
as400l said:
I have asked this question elsewhere but maybe somebody here has some experience. Is it possible to install ArrowOS OTA with another TWRP than from ArrowOS ?
I'm asking because this AOS TWRP is very limited in functionality.
Click to expand...
Click to collapse
So I have some breaking news:
I can confirm that the latest unofficial alpha version of TWRP (TWRP-3.5.1-vayu-Nebrassy-1) is capable of decrypting and reading internal storage. Due to this advancement, I can also confirm that ArrowOS OTA updates will officially work using TWRP. There is NO NEED TO USE ANY OTHER CUSTOM RECOVERY BESIDES TWRP.
Hi everyone, i have one dubt in unlock bootloader process...
When phone wipe /data partition???, after or before wait the time to unlock???
Let's remain on topic and avoid bickering.
My bootloader unlocks in 4 days and I am planning to change the room using your guide. I have a doubt, I am a beginner. can I do step 8 with TWRP instead of Pbrb (test3)? Would the steps be the same with the change?
@newbrn of course. Pitch Black is literally a dark themed TWRP with some tweaks.

Can someone help me to understand this custom ROM installation?

Hello, I'm new here, I've been dealing with certain ROM mods for a little while. My test device is an old Samsung Galaxy S4 mini (GTI9195). Now I've been sitting for a few days trying to figure out how to bring my device up to date as best as possible. Lineage OS seemed the best to me. Unfortunately there is no officially confirmed software for my device directly from Lineage, which is why I looked elsewhere. I came across this thread on XDA: https://forum.xda-developers.com/t/...520-r890-unofficial-11-0-0-lineageos-18-1-for -s4-mini.4189967/ . The user arco68 is, so to speak, the boss among S4 mini modifications. Unfortunately, I can't find exact instructions anywhere (especially for the recovery) on how to install all the packages correctly. That's why I researched. I was able to record various steps, but cannot determine if they are correct. Can someone on this forum please help me? My steps:
1. Turn on developer options
2. Turn off OEM encryption (if available)
3. USB debugging on.
4. Download and install Android platform tools in Path
5. Download and zip Magisc
7. Put the phone in bootloader/fastboot/download mode (volume down + home)
8. Flash Team Win Recovery Project (or other custom recovery).
9. Restart phone and boot into recovery mode (volume up + home + power)
10. Erase all data
11. Copy Google Apps to Phone (Optional)
12. Copy Lineage OS (or other custom rom) to phone
13. Install packages one by one (OS first)
14. Reboot device
15. Wait and set up
Okay, First of all requirement-
A portable sd card- Because after flashing twrp, you might face issue where you can't access internal storage from twrp. That's because the phone might be encrypted. You have to decrypt it by flashing a "disable dm verity- forceencrypt.zip". In this case, you might not be able to transfer files from pc when booted into twrp. So, It's a smart move to insert a sd card containing all required files before to avoid these problems.
Another requirement is samsung drivers installed in pc. I will attach that file.
Follow these steps -
1/Unlock bootloader -Go to developer options. Turn on oem unlocking. It will tell you that you're going to loss all data. Proceed. If it doesn’t tell you anything, then there is definitely some extra process to unlock bootloader of your device.(search on internet)
2/Download your phone's official firmware in pc- it will help you if anything goes wrong. Search " Sm fw" on google. Go to first site. Create an account. Search the model number, Download a firmware that matches with all your device's information in "About phone".
3/ Download the lineageos rom and twrp recovery for your model. Then install device info hw from play store to check bits(32/64). Search open gapps. Go to the website. "arm" is for 32 bit & "arm64" is for 64 bit. Select which matches to your device’s bit. Then select the android version of the custom rom. Then select "Pico". Download the file. Next, download latest magisk 25.2 from github page. Rename the apk file to "magisk.zip" Move rom,gapps, magisk.zip to SD CARD. Keep twrp in pc.
4/In pc, download latest odin software. It's an special software for samsung download mode. (There is no fastboot mode in samsung)
5/Boot your device into download mode. And connect with pc.
6/In pc, extract the twrp file(If It's in zip format). Open odin software, Go to options, turn off auto reboot. Now select "AP" & select that extracted twrp file. Click open. Then hit start button.
(Note that most of the samsung devices can't boot stock rom after flashing twrp. So you have to flash custom rom to boot your device. Follow the next step)
7/Boot into twrp wipe>format data>type "yes". Press home button. Install>Select storage>SD card>select the rom.zip. Then add more zips> select the gapps.zip. Again, add more zips> select magisk.zip. After all, swipe to flash.
After installation, reboot device.
What if anything goes wrong?
Extract the stock firmware that you downloaded from sm fw. Connect device in download mode. Open odin, select AP,BL,CP,CSC file one by one. Start flashing. You device will be alive again.

No roms for 5g variant?

So I've had the oneplus 7 pro 5g for over 2 years now, stuck on android 10. Here in the UK, EE dropped support for the phone so no updates past what I've got installed. I understand that non-5g variant roms can't be flashed to the 5g version. I came across YAAP on telegram but there were no proper installation instructions for the 5g version so I decided against trying to install it.
Are there ROMs available for this variant? Or is there anyone that can link me to a proper guide to installing YAAP?
Thanks in advance.
the instructions are in the chat
Before starting, download these files on your computer to save time
Download your custom rom choice from #5g-custom-roms-latest
Download the latest EU5G OTA from here (https://otafsg-cost.h2os.com/OnePlu....E.31_OTA_031_all_2111271509_64912a56fefe.zip)
Have drivers and ADB/fastboot (platform-tools) (https://developer.android.com/studio/releases/platform-tools) ready (#drivers if you don't have them)
1. Use MSMDownloadTool to convert to EU5G firmware. (If you’re on Sprint, I would use EU5G due to the ease of unlocking bootloader and local upgrading)
2. Set up the device on Android 9, and move the EU5G OTA zip file from your computer onto your phone (do not put it in a folder, just in internal storage)
3. Go to System Updater, click the gear icon, and local upgrade to the latest EU5G version (Start here if you’re already on EU5G, but on OOS 9)
4. Once you boot back into system, go back to the System Updater, and local upgrade to the same version again (this is because the 7 Pro 5G uses A/B and has 2 slots for updates. You need OOS 10 on both before flashing a rom) (start here if you’re on EU5G OOS 10)
5. Once you reboot back into system tick OEM Unlocking in Developer Options, reboot into bootloader by typing adb reboot bootloader (if USB debugging enabled) or powering off the device and pressing both volume and turning the device on. Now you can unlock the boot loader by typing fastboot oem unlock. Once it’s unlocked and reset, you can reboot back into boot loader and continue.
YAAP/YAAP Vanilla Flash
6. Get boot.img from @yaapop7 with the command #dumped_images (use guacS latest image)
7. In bootloader, fastboot flash boot boot.img (boot.img being guacamoles boot.img) (you can drag in the YAAP file into the terminal/CMD window and it'll auto populate file location)
8. On your device, use volume buttons to reboot to recovery, then once in YAAP recovery, select "Apply Update from ADB" or something related to ADB
9. On your PC, type ADB sideload YAAP.zip (yaap.zip being YAAP zip file) (you can drag in the YAAP file into the terminal/CMD window and it'll auto populate file location)
10. Once that finishes, format in recovery and reboot.
You should be done!
KOSP/Flamingo Flash
6. On your terminal window with fastboot, type fastboot update --skip-reboot rom.zip (rom.zip is the KOSP img release, you can drag the file into the window and it’ll auto fill the location)
7. Once this finishes, on your phone use the volume keys to reboot to recovery
8. Once in recovery, wipe data and reboot.
You should be done!
If you want Magisk
1. Setup your rom
2. Download Magisk.apk from the Magisk GitHub (https://github.com/topjohnwu/Magisk)
3. Move the boot.img from your rom of choice into your phone's internal storage (the YAAP one is the same one you used to install, the KOSP one is linked in the rom posts in @op7pro5gupdates)
4. In the Magisk app, hit install under Magisk and select “Select and patch a file”, then select the boot.img
5. The Magisk patched boot.img will be in your phone’s Downloads folder, so move it to your PC
6. Now back in your fastboot terminal window, type fastboot flash boot magiskboot.img (magiskboot.img is whatever it’s named, you can drag the file into the window and it’ll auto fill the location)
Passing SafetyNet with Magisk (and possibly some apps that detect root)
1. Once you have Magisk installed, and are back into the system, open Magisk, and if it prompts you to reboot for additional setup, do so.
2. Click the gear icon in the top right corner, then enable “Zygisk” and click on “Hide the Magisk app” (this will change the Magisk app icon and package name to “Settings” if you kept it at default)
3. Reopen Magisk, hit “Enforce DenyList” and “Configure DenyList”
4. Hit the 3 dots in the top right corner and “Show System Apps”
5. Search for “Google P” and click on the Google Play services app (not the check mark), hit com.google.android.gms and com.google.android.gms.unstable. Also click on the Play Store.
6. If you have any apps that detect root, select those as well (like Google Pay, Pokemon GO, and some banking apps), otherwise, you are done!
Some apps will still detect root!
Refer to #l1 for Netflix
OnePlus 7 Pro 5G - GM1925/GM1920
The OnePlus 7 Pro 5G (GM1920 and GM1925) chatroom!
t.me
if you have the GM1920 than I'm pretty sure you need to downgrade to OOS9, bootloader unlock, than flash YAAP feel free to ask any questions on telegram, also they would know more about the GM1920. I have the GM1925, I'll be happy to help

Categories

Resources