yashsingh1/xdaforums huggingface dataset:
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] Choutouketsu:
I installed the ROM already, this rom is very good, but sometimes the Settings would stop responding while I was choosing to do some changes with my SIM card settings. Any way to fix? Thanks the developer, and very appreciate it.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] -+BB+-:
This without a log unfortunately does not make sense to me because

1 - GPS is untouched since the initial release, and I had 0 reports regarding GPS, same for the latest public release

2 - We are using the exact same proprietary blobs and sources used in los 19.1 and latest crdroid ROM, if we have a problem here then I expect they have the same issue too (maybe not in los 19.1 because it's based on Android 12, but at least on crdroid as it's based on Android 13 like PE)

3 - I tried to wipe my phone and did the first GPS fix with WiFi enabled and my SIM inserted, then I disabled WiFi, removed the SIM and rebooted my gemini, and GPS works as expected here.

BTW I'm updating proprietary blobs and sources from LA.UM.9.6.2.r1-04200-89xx.0 and this is the final result:

Thanks :) Unfortunately i cannot reproduce this bug with my SIM, but actually i'm on completely different radio blobs, hopefully i will release soon a test build (works fine here, but it's still WIP)
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] :
Thank you for the reply! Can you tell me what app is that? I'll try doing what you did
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] Mi4_lte:
How many gb of zram I can use in this ROM? Please do as many as possible.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] fyresg:
I'm new to using Pixel Experience Recovery; I've been using TWRP to flash img or zip ROMs. I flashed and loaded recoveryPE-13-Gemini-OLD.img.

I performed factory reset, then started ADB sideload. Then I executed the adb sideload command with the latest ROM zip (md5 is correct). For some unknown reason, the adb command is stuck at 0%. On the recovery app, the console shows up, "Supported API: 3", "Finding update package..." and then "Installing update..."; nothing more.

Any ideas what's going on? How do I fix this? Thank you!

Update: I flashed the latest Recovery ROM gemini_global_images_V10.2.2.0.OAAMIXM_20190115.0000.00_8.0_global but that didn't help.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] -+BB+-:
It's GPS Test, you can find the app in the play store, it's pretty useful if you want to test GPS/Compass. BTW you don't need to wipe your internal data, I did it only because I want to be 100% sure that GPS was working starting from a clean install :)

50% of your RAM

Please try this:

1 Flash the updated recovery (as you can see in the name, you downloaded the OLD version)

2 Try to change USB cable/USB port, sometimes sideload does not work properly with some cable/USB ports

@mandayugana : for your happiness: here and here, EIS fixed in the proper way and all missing libraries added, also video viewfinder now it's working without lags :)
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] fyresg:
I downloaded the OLD version because it was stated in the first post. I assumed the old version was stated there because it works. May I know where to get the updated Pixel Experience Recovery for Gemini?

I went to the Pixel Experience instructions for Gemini, and it instructed to download and flash TWRP 3.7. I suppose this doesn't work for this unofficial ROM?

I'll try another cable, but at the same time, I've been performing ADB sideload with the same cable for my Xiaomi Mi 6X (wayne), and it worked fine.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] teddy0209:
From the afh link in the OP, you can find the recovery folder under Pixel Experience 13...
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] fyresg:
Took me a while to understand what you meant, and then I finally found it:

Recovery folder for Pixel Experience Gemini: https://androidfilehost.com/?w=files&flid=337400

Latest Recovery dated Feb 11, 2023: https://androidfilehost.com/?fid=4279422670115717477

I'll give it a shot later. Thanks!
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] fyresg:
I've tried the latest Recovery but it gave the same result. :(

I also tried 2 other USB-C cables. As well as on another Mac. Nothing worked, same result, stuck at 0%.

I checked the lastlog for clues, here's what I found:

The errors are:

[libfs_mgr]Not running /system/bin/e2fsck on /dev/block/sda13 (executable not in system image)
libc: Unable to set property "ro.boottime.ini t.fsck.cache" to "24": error code: 0xb
...
libc: Unable to set property "ro.boottime.ini t.mount.cache" to "10": error code: 0xb

It's not just this particular Pixel Experience Recovery. All the other Recoveries (crDroid & LineageOS) are like that, and I posted about it here: https://xdaforums.com/t/problem-with-flashing-roms-with-adb-sideload.4581441/

Update: I tried platform-tools version 33.0.3-8952118, and it works! The latest version 34.0.1-9680074 gave me the errors! I have no idea why!
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] mandayugana:
Man, you are amazing. I already am using PE13 for about 2 weeks. I think I can generate a clean base gcam config in on Sunday or Monday. Will share the config once it's ready.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] :
hey, i again am having problems with GPS. Can you tell me how i can calibrate it?
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] Choutouketsu:
Hello. I tested it. Sometimes the fingerprint and home button does work. And as I am now in China, I found that with the China Telecom SIM card I can only surf the Internet by cellular data, but I cannot properly make or receive calls over 4G LTE. In other words, the Volte doesn't seem to work. My other phones are working fine to make or receive calls with the Same Sim card over LTE.

I saw a lot of people in forums used to solve this issue by replacing China Telecom volte config file with China Unicom one in MIUI 10 based on Android 8.0. In a Way as below:

Replace

/firmware/image/modem_pr/mcfg/configs/mcfg_ sw/mbn/ct

with

/firmware/image/modem_pr/mcfg/configs/mcfg_ sw/mbn/cu_volte

But Android 13 seems to be in another folder.

Is it possible to solve? Thank you so much.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] -+BB+-:
FP proprietary blob and wrapper are the same used in my old PE 12 and Android 10/11 with 4.4 kernel nothing has changed. The issue you are experiencing unfortunately cannot be fixed, if you try to logcat you will see that fp sensors is stuck at

fpc_fingerprint_hal: wait_wake_up (get_irq)

This happens because the sensor is dirty and thinks that your finger is still pressing it (often if your fingers are wet), clean the sensor and will work

Regarding volte config the path is correct, but you need a root shell (and remove the space in mcfg_ sw):

adb root && adb shell ls /firmware/image/modem_pr/mcfg/configs/mcfg_sw/mbn
restarting adbd as root
airtel
att
cmcc
csl
ct
cu
cu_volte
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] Choutouketsu:
Thank you for timely and detailed reply, but unfortunately I can only find mbn files in vendor directory and its sub-directories, not /firmware/image/modem_pr/mcfg/configs/mcfg_sw/. Am I making losing some steps, sorry but I am not so experienced lol
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] -+BB+-:
/firmware is a symlink to /vendor/firmware_mnt , you can safely use that path, you are on the correct partition :)

BUT I don't know if will work simply copying the mbn file, I never tried, you may need to use Qualcomm QPST tool in order to properly register the profile. Also try to set SELinux permissive (or check SELinux file context) in order to avoid denials while you are testing, you can do it with

adb root && adb shell setenforce 0
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] Choutouketsu:
Thank you bro. I tried replacement under that directory firmware_mnt, but sadly doesn't work either, A great pity that i don't know how to proceed with QPST registration
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] mandayugana:
I apologize for the delay. I just got the right time. I attach the config for SGCam 8.4 v35. This is just a basic configuration. Please feel free to modify and redistribute.

Main points of this config:

* custom noise model, calculated using Morgenman Noise Modeller

* front camera black level set to 16

* video bitrate 5Mbps
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] mrinfinity0007:
So after using some times found some issue

In latest build

1.video playback isn't smooth in fb shorts and insta reels

1st i thought it was network issue.. But its happening regularly and network seems ok..

2. Randon reboot happened just 1 time( same happened in last 2 build also) thought just let u know..no big issue though

3. Battery drain very much when phone in idle mode

4. i used this gcam regulary cz its better for both cam

https://github.com/PixelExperience-..._xiaomi_gemini/raw/ten/GCam/prebuilt/gcam.apk

but after updating to last build every time i open the cam it freezes for 5 to 10s ...and camera switching (front to back or back to front) also lagging very much...but no other issue
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] vladiu:
Good afternoon!

Most of the time the build works like on Pixel. Great!

In the latest assembly, in idle, the battery loses about 80 percent overnight. What could be the problem?

Built-in gcam works well, but sometimes crashes on startup.

Have a good day!
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] vladiu:
swapped sim cards - stopped wasting battery
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] walhallaDE:
Hi, what is the difference between "Standard" and "PLUS" version? Thanks for your answer!
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] Choutouketsu:
Awesome, I'll try. Cheers!!
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] vladiu:
Hi!

The screenshots above are from the latest build.

Sorry, I think I was wrong in my observations. SIM card change does not work.

Then I deactivated the Google app and the phone stopped running at night.

I need more time to analyze the dependency.

Are there logs? Where are the logs that I can send?

Have a good day!
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] -+BB+-:
The screenshots you posted are from the latest public build, please try my internal build i shared Wednesday, the download link is at the end of my previous post :)

Regarding logs I prefer to keep them as latest resource because i need radio logs and that logs may have some sensible data (your personal data are redacted, but there are various info regarding the carrier you use and the cell you are connected). If you still have this issue even with the new build I will share my mail so you can send the logs there

Also, there's a couple of thing i need to know for understand better what's going on:

1 - The SIM you are using are from different Carriers?

2 - Have you tried with a single SIM? In case you tried, does it happen even using a single SIM?

3 - Does it happen randomly or every time you use two SIM?

4 - When you experience the issue a reboot fix it (at least for a while) or doesn't work even rebooting the device?

5 - Did you try to see if the device properly enter in deep sleep state? You can check easily installing CPU Spy Material
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] -+BB+-:
Well, I decided to compile a test build of LOS 20 to see how my branches perform with a light ROM, if someone is interested to give it a try here's the recovery and ROM download link

ROM has been compiled with the following sources:

- Gemini Repo

- msm8996-common Repo

- Vendor Repo

- Kernel Repo

- Manually donwloaded hardware/xiaomi LOS 20 Repo

IMPORTANT: i made this build only for testing purposes, even if apparently everything works fine with core NikGApps (and surprisingly device pass SafetyNet checks) do not report me bugs or ask for new builds, but if someone is interested to build and maintain it feel absolutely free to fork my repos and use them, pretty sure there are still some minor things to do for LOS bringup, but 99% of work has been done. Only bug i found is in Aperture, switching between 1080p 30 fps and 2160p 30 fps video mode breaks viewfinder, exit with home button and opening Aperture again from icon or recent apps fixes it.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] mitraillette:
There is a huge battery drain, even when the phone is completely off. My battery health was at %83 and my latest rom had fewer battery drain issues. I don't know if it's because these phones aren't designed to withstand Android 13 or the rom is just bad configured. Either way, it's a nice and clean rom, even though it doesn't have too many benefits for me at this point.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] -+BB+-:
If you loose battery when the phone is completely off then your battery is faulty, replace it.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] vladiu:
I put the last build a few days ago - the battery holds perfectly! I really liked the additions of the plus version.

I will answer questions just like that, although this is no longer relevant

1. yes

2. no :) I always have two sim cards there

3. and 4. Discharged strongly only at night, or so it seemed to me. Earlier, I still thought that a weak signal was on the bedside table, so I was discharged. But on the new build there is no such thing and I also set the settings for the SIM with calls and the Internet (LTE/CDMA/EvDo/GSM/WCDMA) and for the SIM with calls (GSM/WCDMA preferred)

5. okey)

So far so good!
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] mitraillette:
This isn't the case. I just swapped roms a week ago and while using my previous from I had less battery drain. My battery obviously can't become faulty overnight so I suspect it has something to do with the from. Mobile data used %44 of the battery but I have no sim card inside the phone! I don't understand this issue and I need help with it.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] -+BB+-:
Phone completely off = turned off. That's pretty different than phone in deep sleep/idle state with the screen off. BTW did you read at least the last messages of the thread before posting? Another user had the exact same issue and latest build I shared fixed the battery drainage for him. I've used both PE and my LOS 20 build as daily this week and I had no issues at all. With a year old battery in a day i have 5 hrs SOT with PE and 6 with LOS

EDIT: you also provided no info, how do you expect someone helps you?
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] Lazuli Ly:
Sorry if my questions is unrelated,

But i want to buy this phone dont know if it worth it to do custom rom and other mod. Im currently use samsung j4 plus and its have ton of issue.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] NagasRamazan:
As with Android 12 rom, this rom also has video and animation optimization problems. For example, when watching high resolution reels videos on Instagram, there is a lot of lag and freezes. Animation lags frequently when navigating through the menus. In general, there are animation and video problems, I did not see any other problems. By the way, pex10plus was the only rom among the roms compiled for this device that did not have video and animation problems. You can examine that rom and use it for the solution. Just advice thanks 🙂
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] NagasRamazan:
Applications running in the background are stopped quickly, I think it would be better if low memorykiller was more flexible.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] -+BB+-:
Hi to everyone, July build is out, here' s a partial changelog from latest public build (for full changes take a look at my branches, changes expecially on kernel side are huge)

ROM

- Rebased over QPR3 sources

- Merged July security patches

Device tree (msm8996):

- move to QCRIL

- Update few volte related blobs from sweet

- remove unused libraries

- remove several debugging packages

- disable various camera debug

- disable Google Dialer call recording

- enable debugfs restrictions

- allow appdomain to read camera_prop

Device tree (gemini)

- overlay: Switch to config_screenBrightnessSettingMinimumFloat

- correct Camera permissions

Kernel

- Compiled with Clang 17.0.3 (latest available on AOSP master branch)

- Ported and set to 16 PELT half-life feature

- Ported and enabled ZRAM dedup

- Ported and enabled ZSTD, replace our old version of LZ4

- Fixed all compiling warns spotted by Clang 17.0.3

- misc bug fixes/improvements for sched, ksgl, qcacld-2.0, dynamic memory allocation, etc

- A lot of other changes and fixes, see my branch for more info

- merged all security patches

Here's the direct download links:

Pixel Experience 13

Pixel Experience 13 Plus

Recovery updated to latest PE sources
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] Glorious240fps:
Do I need to install the latest firmware? I had MIUI 10 global stable installed on my Mi5 before I switched to PE10 Plus(which I'm currently using). What's the installation process for me?
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] Mi4_lte:
I tried crdroid and lmodroid a13 and those roms have terrible ram and zram managment. I tried many instrucrions, scripts, modules nothing helps, only your lineage a13 has good ram and zram management. I haven't tried pixelexperience. Because this rom is heavy, a lot of google apps that i don't like, like google photos (about 300mb on the drive. I use simple gallery 20-30mb on the drive). thats why I use lineage.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] Glorious240fps:
You should definitely try PE10 Plus for Mi5, it's probably the best ROM for Mi5 till date. Install the August 2020(20200821) version, as it doesn't have any unnecessary Google Apps. It does have Photos(which takes around 10MB), but you can just disable the app and forget about it. That's what I did.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] Mi4_lte:
I've been using lineage for 24 hours. Super rom. No battery issues. Ram, zram are also good. Not as good as 9a, 7a roms. No reboots. All functions I use work well. Problem: 4k video recording, after the second attempt, recording with lags. I use another app, open camera, there are no problems. Another problem: I use all roms without animations. This rom too. As you can see the problem on the screenshot. When I opened the notification panel, there is no time or date. Sometimes it shows, sometimes it doesn't. When i tried to resize zram from 1.5gb to 3gb. The phone screen flashed for 30 seconds or 1 minute. On 9a, 7a there was no blinking. Why? There is no improvement after resizing. 1GB zram was used with 1.5GB zram and 1GB zram was used with 3GB zram.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] -+BB+-:
These LOS build are only for testing my branches with a light ROM, with PE sometimes I can barely understand if a change is really working or not due to the high CPU and in particular way RAM usage, If there are some bugs then belongs to LOS not to me, does not happen at all on PE, and BTW in 2 weeks of usage never happened to me with LOS too. But I'm not surprised that something bad happens if you try to resize ZRAM when in use (worked everytime fine for me with swapoff --> delete old ZRAM device --> create new ZRAM device --> swapon), and change the size is unuseful. It's math. You start with 1250-1300 Mb free after boot completed with LOS 20 + NikGapps core version (which is the zip with less Google services and packages), and LMKD starts killing tasks when memory go below 350 Mb. There's no space, and also Google in their Go devices set ZRAM to 50% of the real RAM size. Even if I've ported ZRAM deduplication feature in my kernel and ZRAM size is reduced by 5-7% with 3 Gb of ZRAM you will have only 800/900 Mb of available RAM for user apps, the number of dirty pages that can be written on ZRAM are limited to the number of the app that can run in background, once the app is killed dirty pages will be removed from ZRAM too, that' why increase ZRAM size is completely unuseful. Oh and when ZRAM increase in space the available RAM for user apps will obviously decrease, luckily ZSTD in conjunction with deduplication have an awesome compression ratio :

gemini:/sys/block/zram0 # cat mm_stat
1032503296 103975207 206917632 0 225869824 11631 153287 4333 30630309 11833192

EDIT: also swappiness value has been raised to 100, kernel already move pages in ZRAM in a more aggressive way than default

ZRAM mm_stat doc in my kernel

memory-management page on Google docs

EDIT 2: Uploaded new test kernel for LOS 20 and for PE, compiled from my MERGE branch
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] Glorious240fps:
I've switched from PE10+ to this PE13+ rom on my Mi5 for a couple of days now. Here's my output:

Pretty smooth and stable, but not as stable and smooth as PE10+.

Overnight battery drain is okay but a bit higher than PE10+.

YouTube in Chrome browser lags at 720p or higher.

GCAM has a lot of issues, like laggy preview, broken selfie(green tint), huge battery drain, takes too long to process HDR+.

Sometimes the touch doesn't work.

The WiFi network became a bit weak. Having struggle to keep the network connected.

Other than that, it's as good as an Android 13 ROM can be on a 6 year old device. But still, I'd rather stick with PE10+ rom, especially the April 2020 build.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] Mi4_lte:
Lineage with old boot and installed fde.ai (some VM, cpu, etc tweaks). Ram management unbelievable. Android 13 works much better than the latest miui android 8. Unbelievable.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] Mi4_lte:
Is it possible to make a dual speaker? If possible please do this with your lineage and pixel roms. Or tell me how to do it? I saw on android 8 it's possible.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] Glorious240fps:
Three major issues found on this ROM:

Fast charging is not working properly. 10watts when the battery is under 15%, drops to 5watts when it gets above 20%. Tried with Xiaomi's original QC3.0 charger.

The speed of internal storage has reduced significantly. It's now around 50KB/s during multiple image transfers. Before, it was around 5MB/s.

Touch becomes unresponsive sometimes.

I've gone back to PE10+ April build, and all the above-listed problems have been resolved.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] Mi4_lte:
los20 wit old boot, battary drain problem.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] Glorious240fps:
How do I root with this rom? There's no option to flash zip with PE recovery.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] Mi4_lte:
adb sideload magisk.zip (or .apk).
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] gadom92:
I'm using BabyCam app on MI5 as a recorder, so camera i working a lot on this phone. Sometimes rear camera stops working and even restart is not helping.even gcam doesn't work anymore then. It could be overheating or something? Or hardware issue
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] Mi4_lte:
Lineage 20. Now there are no problems with the battery with the new boot. Perhaps there is also no problem with the old boot. Most likely my applications were draining the battery.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] Mi4_lte:
Most likely overheating. There is a restriction on throttling, it seems to be at 50 degrees, on lineage. I have no problems with the camera. I don't record much video. I tried to write 4K with the noise reduction turned off, the frames dropped very quickly, I stopped recording, the camera continued to work.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] Mi4_lte:
Los20. I had a reboot when I clicked connect to VPN in the Psiphon app