yashsingh1/xdaforums huggingface dataset:
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] mandarjoshiin:
Hey Sandeeep, My phone is working fine but now as I have disabled encryption, my outlook does not work as it required encryption enabled. So can I enable the Encryption again from phone setting? will it have any impact on current data? Please help. :)
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] Sandeeep Kiran:
Just Updated the Guide.

Removed a few spelling errors

Removed old and redundant headers

Removed those not-applicable anymore

Change list of ROMs

Removed files that are no longer needed and updated magisk

Changed the layout of comment 2 and 3 such that more popular questions are in comment 2 and less popular question (+miui related) or in Comment 3
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] mandarjoshiin:
Hi [MENTION=8675715]sandeeep[/MENTION], I am on EU build and today I got notification for new update. Should I go ahead and update the OTA directly? Please advice..

---------- Post added at 01:37 PM ---------- Previous post was at 01:37 PM ----------

Hi [MENTION=8675715]sandeeep[/MENTION], I am on EU build and today I got notification for new update. Should I go ahead and update the OTA directly? Please advice..
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] Sandeeep Kiran:
Go to your food recovery, enable MIUI OTA button, and DFE button in food settings, Latest ofox v11 came out. I haven't used it, but it's usually best to be on the latest.

make a and backup of your current rom as well. (be safe)
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] mandarjoshiin:
Food recovery?
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] NE0HP:
He probably means ofox recovery!
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] Sandeeep Kiran:
damn auto-correct. I meant ofox recovery
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] mandarjoshiin:
I am on MIUI 12 EU rom. I have a strange problem.. I have taken backup of apps from titanium backup and created a flashable zip file. When i install that file from OFox recovery, I see apps getting installed in Ofox recovery but when I reboot to system, I don't see the apps installed. Why this is happening? Any solution anybody knows? I need to switch the Rom.. Please help!
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] Udayaditya Singh:
i tried using the official tool but did not get any wait time and could unlock instantly
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] bdwilk:
Some people get lucky. I had a 7 day wait.
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] nathsagar96:
If it is the first Xiaomi device then you need to wait for 7 days. I have unlocked my device without waiting period. As i have used the same account to unlock other device. After unlocking one device with the account we can unlock a device every month without waiting even if it is a new device
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] Udayaditya Singh:
this is my first device lol
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] picturpoet:
Thanks for the amazing work
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] alabin77:
Stuck at Fastboot Fix

Full credits to @ SivSomRao (telegram handle, since no XDA)

So, when I screwed my phone trying recoveries, I got stuck in FastBoot. no matter what I did, even Power + Vol Up got me to fastboot, and I had just wiped my OS, so I had nothing to boot into.

This happens when you wipe your SYSTEM and/or VENDOR partitions and choose reboot recovery, or flash an incompatible recovery.

After a lot of stressful minutes, scared half out of my mind. A guy named Shivsom helped me.

Basically what he made me do was, Download his file vbmeta_dv_shivsom.img that is given below in attachments.

Then copy the twrp.img file and vbmeta_dv_shivsom.img file to my adb Folder.

Open the Command prompt in that folder, by clicking on the address bar of File Explorer and typing > cmd > then Enter

Type the instructions

fastboot flash vbmeta vbmeta_dv_shivsom.img

Then type, (Since my twrp image file was re-named to twrp.img, if you haven't done so, do it)

fastboot flash recovery twrp.img

Then press and hold Power and Volume Up till you feel the haptic feedback see the TWRP recovery[/QUOTE]

I was OverJoyed when this worked. However, every time I entered recovery, I was met with the fastboot logo again, Therefore, I just repeated the process I did when I first unlocked my bootloader via twrp in the tutorial above, which was, I went to manage partitions and formatted my data, wiped my rom, and did the same steps as in the tutorial when I first got my orange fox.

Now use twrp interface, copy orangefox.zip to my phone via PC, then flash that zip. Then go to settings > manage partitions > data > format data > type 'yes'. Then quickly flash a vendor, then a flash ROM (normal clean flash, tutorial given above) and then boot the ROM.

This was a nasty disaster. Glad I got through it.

Right so I tried LR-twrp (it's in Chinese, but I can change the language to English) . PitchBlack and PitchBlack-old Both broke my phone to get stuck in fastboot mode no matter what I did. .

HENCE I conclude that for all Xiaomi devices, OrangeFox [OFX] is the best recovery. TWRP is suited for Samsung.

THIS LITERALLY SAVED MY PHONE AND MY HEART ATTACK!!!!!!!!!

THANKXX A MILLION:good::good::good:
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] Saswata Chakraborty:
I don't understand why Xiaomi forces us to wait for 7-15 to unlock the bootloader? And why the waiting period varies from people to people. Is there someone who knows why.
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] Sandeeep Kiran:
Its cause some retailers bulk buy Chinese devices and bulk unlock the bootlocker and install a different OS, this is common for china variants to get say an indian miui. Which the government doesn't want. also, exploits and so forth. This is also to avoid users getting the device, unlocking and messing up from flashing and hard bricking the device, then saying "I got it less than 14days lol, you delivered a pre-broken device, replace it for FREE"

isn't that smart? buy the phone, do your experiments, hard brick it, then get a replacement free saying its their fault. (and this is why we have 14days waiting time, and 1 unlock per user per account per month)
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] Saswata Chakraborty:
am a bit curious to know why is it not recommended to have an encrypted device.
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] Sandeeep Kiran:
encrypted is definitely 100% safer in terms of data protection.

however, newbs flash wrong, forget passwords, or do steps wrong causing them to end up with encrypted files and no OS.

it's just easier to stay decrypted. (and not give your device to some stranger who'll know how to open your recovery, and use a nearby pc with a cable and transfer your files)

or like, use orangefox's inbuilt password feature.

only way outta encrypted files, is to format data partition which will wipe all your internal storage data.
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] Sandeeep Kiran:
Updated Post.

Included latest magisk.

Made persist info on the third comment more VISIBLE with RED and a fix in case you messed up.
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] Minato216:
I need stock recovery zip for Redmi K20 pro

Please leave a link in reply .
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] Sandeeep Kiran:
Raphaelin & Raphael
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] Amandeep Mittal:
Bought an old K20 pro today only.

Unfortunately, I am not able to format data in manage partition in orangefox recovery with some error -1 . If some one could help me out. Thanks and Regards in advance.

Amandeep mittal
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] Sandeeep Kiran:
Latest ofox has it in the WIPE tab now, you can use that. Can you explain the error in detail more? or perhaps contact via telegram?
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] RabidWolve:
I was OverJoyed when this worked. However, every time I entered recovery, I was met with the fastboot logo again, Therefore, I just repeated the process I did when I first unlocked my bootloader via twrp in the tutorial above, which was, I went to manage partitions and formatted my data, wiped my rom, and did the same steps as in the tutorial when I first got my orange fox.

Now use twrp interface, copy orangefox.zip to my phone via PC, then flash that zip. Then go to settings > manage partitions > data > format data > type 'yes'. Then quickly flash a vendor, then a flash ROM (normal clean flash, tutorial given above) and then boot the ROM.

This was a nasty disaster. Glad I got through it.

Right so I tried LR-twrp (it's in Chinese, but I can change the language to English) . PitchBlack and PitchBlack-old Both broke my phone to get stuck in fastboot mode no matter what I did. .

HENCE I conclude that for all Xiaomi devices, OrangeFox [OFX] is the best recovery. TWRP is suited for Samsung.

THIS LITERALLY SAVED MY PHONE AND MY HEART ATTACK!!!!!!!!!

THANKXX A MILLION:good::good::good:

[/QUOTE]

I was OverJoyed when this worked. However, every time I entered recovery, I was met with the fastboot logo again, Therefore, I just repeated the process I did when I first unlocked my bootloader via twrp in the tutorial above, which was, I went to manage partitions and formatted my data, wiped my rom, and did the same steps as in the tutorial when I first got my orange fox.

Now use twrp interface, copy orangefox.zip to my phone via PC, then flash that zip. Then go to settings > manage partitions > data > format data > type 'yes'. Then quickly flash a vendor, then a flash ROM (normal clean flash, tutorial given above) and then boot the ROM.

This was a nasty disaster. Glad I got through it.

Right so I tried LR-twrp (it's in Chinese, but I can change the language to English) . PitchBlack and PitchBlack-old Both broke my phone to get stuck in fastboot mode no matter what I did. .

HENCE I conclude that for all Xiaomi devices, OrangeFox [OFX] is the best recovery. TWRP is suited for Samsung.

THIS LITERALLY SAVED MY PHONE AND MY HEART ATTACK!!!!!!!!!

THANKXX A MILLION:good::good::good:

[/QUOTE]

Im having a simular issue with Pixel Experience Rom. Posted this in the official PE Thread. Would this fix apply to it?

"I was able to communicate with the phone through adb in fastboot mode after installing a windows update driver for android/google with the phone connected.

adb devices still showing nothing

fastboot devices shows the device

Was able to do the flash twrp command, then boot into twrp recovery command. Then tried to flash orangefox through twrp but after reboot it went into fastboot again. Then tried flashing twrp through twrp but same thing.

It still boots into Pixel Experience and Im able to use the phone.

Any ideas how to solve this?"

https://xdaforums.com/t/rom-11-raphael-pixelexperience-normal-plus-aosp.4247261/page-4
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] Sandeeep Kiran:
I was OverJoyed when this worked. However, every time I entered recovery, I was met with the fastboot logo again, Therefore, I just repeated the process I did when I first unlocked my bootloader via twrp in the tutorial above, which was, I went to manage partitions and formatted my data, wiped my rom, and did the same steps as in the tutorial when I first got my orange fox.

Now use twrp interface, copy orangefox.zip to my phone via PC, then flash that zip. Then go to settings > manage partitions > data > format data > type 'yes'. Then quickly flash a vendor, then a flash ROM (normal clean flash, tutorial given above) and then boot the ROM.

This was a nasty disaster. Glad I got through it.

Right so I tried LR-twrp (it's in Chinese, but I can change the language to English) . PitchBlack and PitchBlack-old Both broke my phone to get stuck in fastboot mode no matter what I did. .

HENCE I conclude that for all Xiaomi devices, OrangeFox [OFX] is the best recovery. TWRP is suited for Samsung.

THIS LITERALLY SAVED MY PHONE AND MY HEART ATTACK!!!!!!!!!

THANKXX A MILLION:good::good::good:

[/QUOTE]

Im having a simular issue with Pixel Experience Rom. Posted this in the official PE Thread. Would this fix apply to it?

"I was able to communicate with the phone through adb in fastboot mode after installing a windows update driver for android/google with the phone connected.

adb devices still showing nothing

fastboot devices shows the device

Was able to do the flash twrp command, then boot into twrp recovery command. Then tried to flash orangefox through twrp but after reboot it went into fastboot again. Then tried flashing twrp through twrp but same thing.

It still boots into Pixel Experience and Im able to use the phone.

Any ideas how to solve this?"

https://xdaforums.com/t/rom-11-raphael-pixelexperience-normal-plus-aosp.4247261/page-4

[/QUOTE]

Ofc it will
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] RabidWolve:
Didnt work. Just kept going to fastboot mode.

Flashed the fastboot recovery image. Back to stock.
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] eggbro:
Did everything up to booting into TWRP, just keeps sending me back to fastboot, Now I'm stuck with a stock Mi 9T, any fix for this?
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] Kursem:
Any guide on installing google official GSI successfully? I'm stuck in bootloop trying to use Android 12 Beta 1
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] RabidWolve:
Appreciate some help.

Is there a reason why in the latest Stable Orangefox I cannot seem to seem to connect to my computer to transfer files.

I wanna move from Xiaomi.eu to Arrow OS and do a full format. When the phone is booted in Xiaomi.eu I can connect to the computer and transfer files.

But when I reboot to Orangefox I can hear the computer detect the phone when plugged in, but it does not detect in Windows.

I have usb debugging mode enabled.
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] RabidWolve:
nm.
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] Sandeeep Kiran:
Damn, What happened? Did you miss a step?

Mi 9T? This is Mi 9T pro forum.

Sorry, I'd rather just wait for stable a12 to be released. But I have heard SparkOS, Radiant & dotOS have great a12 similar designs.

Unsure why. I use the latest stable ofox too. Is MTP Enabled? perhaps you're encrypted?

Oh was the issue fixed? I'm glad. What was the issue with

1. Booting your first rom (initial comment)

2. Ofox issue?

3. ArrowOS issue?

I apologize for taking so long to reply to everyone!! I got a job and just focused on real life, and simply never bothered to check XDA.

But you can tag me @ sandeeep in telegram in my group @ hangoutsk20p.

Ofc, added the @ I didn't want to accidentally tag anything/anyone on XDA
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] Kursem:
I've found the solution actually. You'll need to use android 11 firmware and vendor to boot android 12 GSI.
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] astroboye:
Hello.

Each time I try to root my MI9T pro it finish stuck on fasboot mode.

I open the boootloder (2mn with MIunlock) then I can send twrp (twrp-3.4.0-10-raphael-mauronofrioI ) as weel and magisk 20.4 too. But even I format data each time I install the rom it is impossible to return to recvoery and the phone is stuck on fasbooot, nothing works so I have to use miflash and return to start.

If someone can help me solve this problem I could finally use my phone. Thank you for your help
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] Mr.Slark:
I have a question about the vendor thing. I use a Redmi K20 Pro. It was originally CN version but I flashed the global ROM on it. Should I use the global firmware vendor?
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] B123@#:
I have poco f4, having the same issue fastboot loop, this method didn't work for me. Please help
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] Mr. Chicken:
Hi everyone , is the guide still up to date?

I'm currently using Global 12.5.1 stock.

I'm a bit unsure whether I can skip the vendor file step or not.
[Google Pixel XL Questions & Answers] ocarinaz64:
[/COLOR [MENTION=614507]razorloves[/MENTION] I compiled my own unofficial LineageOS 17.0 for Marlin from your sources, but I don't have gapps compiled in. Is it possible to install gapps over the Lineage zip file? When I tried, it said that it thought I had Android 9, and it needed Android 10, so it wouldn't install.
[Google Pixel XL Questions & Answers] GT3CH1:
I have tried the same too... Android 10 appears to lock out the ability to mount /system as rw in recovery from my understanding.

I have had no luck compiling LOS 17 with opengapps at all.
[Google Pixel XL Questions & Answers] ocarinaz64:
I was able to easily delete some of the safety checks on the gapps install script. It ran the installation .zip, but nothing appeared differently when I booted into the ROM. I got the same result with every gapps package I have found so far. So far the only way I can get gapps then is this ROM where it's already built into it.
[Google Pixel XL Questions & Answers] GT3CH1:
I was able to extract all of the opengapps files from one of their installers and attempt to push it to LOS17... I ended up with a continuous bootloop because of a priv-app permissions issue... which was weird because I added the permissions to the right files, but it still erred out.

If anyone has any bright ideas, I would love to contribute some of my server space to set up nightly builds of LOS17 (stock LOS17 works just fine), but I want see if there is a good way to add in gapps to the build first.
[Google Pixel XL Questions & Answers] NZedPred:
I've been trying to build with open gapps integrated into the rom as well. I managed to get it to build without errors (which is a bit tricky at the moment as the current state of the branches is breaking the build), but I got boot loops that I haven't been able to diagnose.

This is using the instructions here

https://github.com/opengapps/aosp_build/blob/master/README.md

But would be ideal if razorloves could give us the relevant details on how to do build with mindthegapps.

For your issue on permissions, have you set the selinux contexts?
[Google Pixel XL Questions & Answers] GT3CH1:
I haven't been able to mess with selinux yet... I'm waiting for a break so that I can sit and mess with my phone again.

I second the idea of getting the details to build with MTG. I did what the aosp build instructions said for opengapps. It acted like it pulled the repo down, but it isn't copying the APK's over to the final zip install. Maybe I am missing something.
[Google Pixel XL Questions & Answers] NZedPred:
For the apk issue, you need to make sure you have git lfs installed, and for each of the folders in vendor/opengapps/sources/ do a git lfs pull.

I made that mistake as well... Repo doesn't appear to apply the git lfs pull on its own. The files that you have are just text files with URLs to the files.
[Google Pixel XL Questions & Answers] GT3CH1:
I did that too.... Something else is going on with my system then. I did a git lfs pull on each directory, and it looked like it pulled down the apps - the file sizes changed... I might just wipe my current opengapps directory, allocate a little more disk space, and re do that pull.

I am trying to build with MTG at the moment, despite the super vague readme.
[Google Pixel XL Questions & Answers] NZedPred:
I just re-read what you said about the final zip install, sorry i mis-read that. Did you create a file device/google/sailfish/device.mk and put the lines in? If so, they actually need to go into device/google/marlin/device-sailfish.mk. I did that mistake, and it didn't put anything into the final zip. You will get some other build errors that you have to work around after don't that change though... (Yes it's frustrating).

In any case, thanks for the link to the MTG readme. I'll have a go when I'm at home and see if I have any luck...
[Google Pixel XL Questions & Answers] GT3CH1:
No worries. Even though i've got a marlin does it go under device-marlin.mk? That wouldn't make any sense...

For MTG I added this to my .repo/manifests/default.xml

<remote name="mtg" fetch="https://gitlab.com/MindTheGapps/" />
<project path="vendor/gapps" name="vendor_gapps" revision="qoppa" remote="mtg" />

And it is acting like it is syncing properly. Step 2 has got me a little bit confused... I am going to assume that it is similar to opengapps

$(call inherit-product, vendor/opengapps/build/opengapps-packages.mk)

line for device-marlin.mk, but just modified for MTG.

It'd be cool if this works. I'd love to have my own build of LOS working.

---------- Post added at 02:48 AM ---------- Previous post was at 01:51 AM ----------

Ok, I was able to get gapps to *almost* work - log shows that it is copying the files and all the fun stuff... however...

'linux/msm_ion.h' file not found

is appearing from

file included from device/google/marlin/camera/QCamera2/stack/mm-camera-test/src/mm_qcamera_reprocess.c:31:
02:42:21 device/google/marlin/camera/QCamera2/stack/mm-camera-test/inc/mm_qcamera_app.h

I'm gonna clean the build dir... see if that works.
[Google Pixel XL Questions & Answers] NZedPred:
I've done the same change to the manifest. I would suggest though once you get it up and running, that you don't make the change directly to the default manifest, but rather put it into e.g. .repo/local_manifests/mindthegapps.xml. That way it won't get overwritten if the default manifest gets updated.

I had a build just complete with that change, but as it was practically built anyway, I'm trying from a clean build directory just to make sure it definitely builds! The only change in my case for sailfish is adding the line

$(call inherit-product, vendor/gapps/arm64/arm64-vendor.mk)

near the bottom of device/google/marlin/device-sailfish.mk. You'd do the same in the device/google/marlin/device-marlin.mk file.

If the build compiles successfully then I'll probably put together a start-to-finish guide on how to do this. I also want to do a "user" build that is signed, and see if it's possible to pass safety net without requiring magisk. But for now, my fingers are crossed that I just get a basic build done!
[Google Pixel XL Questions & Answers] hairycheez:
Been building for a couple weeks using razorloves' gapps then swtiched to shagbag913's gapps. Added the call inherit-product code to device/google/marlin/sailfish/device-lineage.mk but your way should work.

Everything has been working fine except for Android Auto which I think is a bigger GApps issue.
[Google Pixel XL Questions & Answers] ocarinaz64:
Can someone explain how to either properly install a pre-built gapps package for Android 10 and / or explain how to properly build gapps packages into a ROM (if such action is even legal)?

I followed the instructions from https://github.com/opengapps/aosp_build/blob/master/README.md and ended up getting build errors that I couldn't push through.

[MENTION=614507]razorloves[/MENTION], I would love your input since you have already accomplished this.
[Google Pixel XL Questions & Answers] GT3CH1:
Hi,

I have written up a quick documentation on how to do this with MTG and my Google apps package.

Please take a look at it here.

My Google apps package(gavapps) may/may not work for your device, I have specifically fine-tuned it to work for a Google Pixel XL.

HOWEVER,

If you follow the instructions for the Mind The GApps, you will be able to compile a version of Android 10 with the Google play store.
[Google Pixel XL Questions & Answers] GT3CH1:
For those who care, I was able to compile the most recent of LOS17 for Google Pixel XL with a couple of gapps pre-built.

Link is here