[ROM][UNOFFICIAL][MONTHLY][EAS][R-HALs] Pixel Experience 13 [NORMAL/PLUS] for Xiaomi Mi5

Search This thread

fyresg

Senior Member
Dec 8, 2011
121
20
Singapore
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:

Untitled.jpg


The errors are:
Code:
[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://forum.xda-developers.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!
 
Last edited:

mandayugana

Senior Member
Jan 17, 2012
255
84
It's GPS TesYou are amazing.t, 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 :)

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 :)
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.
 

-+BB+-

Inactive Recognized Developer
Nov 28, 2013
383
2,701
Hi to everyone, I've decided to share my latest internal build, since there are big changes and I cannot test everything by myself please report any regression/broken things that were working in previous release. If something is broken report here and roll back to previous version for now
Here's the changelog:

Recovery
- Reduced recovery size
- Updated kernel
- Update recovery sources with latest changes from PE

ROM
- Sync sources with latest PE changes
- Merged android-13.0.0_r43 AOSP updates

Kernel
- drivers: Fix function prototypes
- mi8996_defconfig: enable CONFIG_MSM_MHI
- Revert "mi8996_defconfig: disable xz decompression"
- sched/tune: raise group count to 7

Device Tree & Vendor
- audio: set valid and supported channel mask for earpiece
- update Adreno and SDM blobs from LA.UM.10.6.2.r1-01600-89xx.0
- enable and use qti IWLAN
- update DRM from Coral TPP1.220114.016/8158200
- update all possible Radio libs from LA.UM.9.6.3r1-06200-89xx.0
- update CarrierConfig from LA.UM.9.6.2.r1-04200-89xx.0
- update carrier configs from LA.UM.9.6.2.r1-04200-89xx.0
- update GPS and config to LA.UM.9.6.2.r1-04100-89xx.0
- update GPS blobs to LA.UM.9.6.2.r1-04200-89xx.0
- gps: conf: Enable more features
- add TUI blobs from LA.UM.9.6.2.r1-04200-89xx.0
- update cnss-daemon from LA.UM.9.6.2.r1-04100-89xx.0
- update audio libs from LA.UM.9.6.2.r1-04200-89xx.0
- update Time Services from LA.UM.9.6.3.r1-06200-89xx.0
- update sersors blobs from LA.UM.9.6.2.r1-04200-89xx.0
- migrate to AOSP power off charging daemon
- update DRM and SEE from LA.UM.9.6.2.r1-04200-89xx.0
- update charger blob from LA.UM.9.6.2.r1-04200-89xx.0
- update peripheral manager from LA.UM.9.6.2.r1-04200-89xx.0
- update listen blobs from LA.UM.9.6.2.r1-04200-89xx.0
- update ANT+ and BT from LA.UM.9.6.2.r1-04200-89xx.0
- Revert "msm8996-common: remove BOARD_RAMDISK_USE_XZ flag"
- camera: clean and fix camera HAL
- update and fix SoundTrigger
- add missing listen blobs
- load the correct BT audio policy
- reintroduce ULL output
- rootdir: remove writepid deprecation
- overlay: Improve pinner configuration
- move some props to system.prop
- rootdir: update vendor.audio service override
- [SQUASH] Update Media HAL from LA.UM.10.6.2.r1-02200-89xx.0
- QCOM: audio: misc fixes
- QCOM: media: misc fixes
- Update Display HAL from LA.UM.10.6.2.r1-01900-89xx.0
- add missing camera libs
- A lot of other changes and fixes, check my branch for full history (it's a little bit messy, i have to rebase it)

Download Recovery

EDIT: LINK REMOVED, download latest public version

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?
My bad, i forgot to update the link in the OP for the recovery, now it's ok, thanks :)

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!
Glad you solved! :) I use adb and fastboot from AOSP build environment, so i don't have that problem, since the executables are compiled with the ROM are 100% compatible
EDIT: if you are using a Mac avoid version 34 for now, according Google changelog they fixed a stability connection issue for Mac users, but then they reverted the change because the fix was breaking adb install feature, i suppose connection stability issues are still there.

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.
This is great! :) I've included all changes for camera in latest build, hopefully everything works fine for you too!
 
Last edited:
D

Deleted member 12549905

Guest
Hi to everyone, I've decided to share my latest internal build, since there are big changes and I cannot test everything by myself please report any regression/broken things that were working in previous release. If something is broken report here and roll back to previous version for now
Here's the changelog:

Recovery
- Reduced recovery size
- Updated kernel
- Update recovery sources with latest changes from PE

ROM
- Sync sources with latest PE changes
- Merged android-13.0.0_r43 AOSP updates

Kernel
- drivers: Fix function prototypes
- mi8996_defconfig: enable CONFIG_MSM_MHI
- Revert "mi8996_defconfig: disable xz decompression"
- sched/tune: raise group count to 7

Device Tree & Vendor
- audio: set valid and supported channel mask for earpiece
- update Adreno and SDM blobs from LA.UM.10.6.2.r1-01600-89xx.0
- enable and use qti IWLAN
- update DRM from Coral TPP1.220114.016/8158200
- update all possible Radio libs from LA.UM.9.6.3r1-06200-89xx.0
- update CarrierConfig from LA.UM.9.6.2.r1-04200-89xx.0
- update carrier configs from LA.UM.9.6.2.r1-04200-89xx.0
- update GPS and config to LA.UM.9.6.2.r1-04100-89xx.0
- update GPS blobs to LA.UM.9.6.2.r1-04200-89xx.0
- gps: conf: Enable more features
- add TUI blobs from LA.UM.9.6.2.r1-04200-89xx.0
- update cnss-daemon from LA.UM.9.6.2.r1-04100-89xx.0
- update audio libs from LA.UM.9.6.2.r1-04200-89xx.0
- update Time Services from LA.UM.9.6.3.r1-06200-89xx.0
- update sersors blobs from LA.UM.9.6.2.r1-04200-89xx.0
- migrate to AOSP power off charging daemon
- update DRM and SEE from LA.UM.9.6.2.r1-04200-89xx.0
- update charger blob from LA.UM.9.6.2.r1-04200-89xx.0
- update peripheral manager from LA.UM.9.6.2.r1-04200-89xx.0
- update listen blobs from LA.UM.9.6.2.r1-04200-89xx.0
- update ANT+ and BT from LA.UM.9.6.2.r1-04200-89xx.0
- Revert "msm8996-common: remove BOARD_RAMDISK_USE_XZ flag"
- camera: clean and fix camera HAL
- update and fix SoundTrigger
- add missing listen blobs
- load the correct BT audio policy
- reintroduce ULL output
- rootdir: remove writepid deprecation
- overlay: Improve pinner configuration
- move some props to system.prop
- rootdir: update vendor.audio service override
- [SQUASH] Update Media HAL from LA.UM.10.6.2.r1-02200-89xx.0
- QCOM: audio: misc fixes
- QCOM: media: misc fixes
- Update Display HAL from LA.UM.10.6.2.r1-01900-89xx.0
- add missing camera libs
- A lot of other changes and fixes, check my branch for full history (it's a little bit messy, i have to rebase it)

Download Recovery
Download Pixel Experience Plus ROM

PS: only Plus version for now


My bad, i forgot to update the link in the OP for the recovery, now it's ok, thanks :)


Glad you solved! :) I use adb and fastboot from AOSP build environment, so i don't have that problem, since the executables are compiled with the ROM are 100% compatible
EDIT: if you are using a Mac avoid version 34 for now, according Google changelog they fixed a stability connection issue for Mac users, but then they reverted the change because the fix was breaking adb install feature, i suppose connection stability issues are still there.


This is great! :) I've included all changes for camera in latest build, hopefully everything works fine for you too!
hey, i again am having problems with GPS. Can you tell me how i can calibrate it?
 

-+BB+-

Inactive Recognized Developer
Nov 28, 2013
383
2,701
Hi to everyone, no one reported regressions after days of usage so I've merged everything in main branch and now it's time to release may update! Here's a partial changelog from April public release:

ROM
- Sync sources with latest PE changes
- Merged android-13.0.0_r43 AOSP updates

Kernel
- drivers: Fix function prototypes
- sched/tune: raise group count to 7
- mi8996_defconfig: disable MSM MHI
- mm: Micro-optimize PID map reads for arm64 while retaining output format
- mi8996_defconfig: Remove CPUFreq times driver
- Merge remote-tracking branch 'qcom-msm8998/lineage-20' into thirteen
- msm: kgsl: Mark the scratch buffer as privileged
- Revert "mi8996_defconfig: disable xz decompression"
- Minor code fixes

Vendor
- update SDM and Adreno blobs from LA.UM.10.6.2.r1-01600-89xx.0
- update audio, DSP and listen blobs from LA.UM.9.6.2.r1-04200-89xx.0
- add missing camera libs
- update DRM from Coral TPP1.220114.016/8158200
- the massive blob update
- add face beautify libs
- bind several services to system-background cpusets

Device Tree
- Update Display HAL from LA.UM.10.6.2.r1-01900-89xx.0
- audio: set valid and supported channel mask for earpiece
- QCOM: audio: misc fixes
- QCOM: media: misc fixes
- QCOM: audio: Update audio HAL from LA.UM.10.6.2.r1-02500-89xx.0
- [SQUASH] Update Media HAL from LA.UM.10.6.2.r1-02200-89xx.0
- update packages for new display HAL
- Revert "msm8996: Enabel ro.hwui.render_ahead"
- update display props
- correct BT audio policy for audio 7.x HAL
- small fixes in audio policy
- rootdir: update vendor.audio service override
- add missing camera libs
- camera: clean and fix camera HAL
- rootdir: small fixes for camera cpuset
- camera: enable face beautify
- update all possible Radio libs from LA.UM.9.6.3.r1-06200-89xx.0
- update CarrierConfig from LA.UM.9.6.2.r1-04200-89xx.0
- update carrier configs from LA.UM.9.6.2.r1-04200-89xx.0
- update ueventd.qcom.rc from LA.UM.9.6.2.r1-04200-89xx.0
- add props for DPM
- update GPS and config to LA.UM.9.6.2.r1-04100-89xx.0
- gps: conf: Enable more features
- migrate to AOSP power off charging daemon
- start sensors using CAF script
- Revert "msm8996-common: remove BOARD_RAMDISK_USE_XZ flag"
- enable and use qti IWLAN
- disable BT SCO enhanced connection
- update and fix SoundTrigger
- add missing listen blobs
- don't start vendor.qseecomd twice
- overlay: Improve pinner configuration
- SELinux: address new denials
- update and sync some props with CAF
- fix various props not properly set
- reintroduce ULL output
- convert CarrierConfig Overlay to RRO
- port Xiaomi edits to WiFi config
- disable mac spoofing as our firmware doesn't support it
- Speed profile services and wifi-service to reduce RAM and storage
- update SELinux rules for the new blobs
- Switch to jemalloc for libc

For a complete list of changes take a look at my repos, commits history is clean now
NOTE for the users that are running my internal build: please flash the new version, test build misses some fixes (BT audio not working during calls with some Headsets) and some minor improvements

Pixel Experience 13 Direct download link
Pixel Experience 13 PLUS Direct download link

@ergr3333f3 what problem exactly do you have? No matter what I do, GPS is working as it should here, and no one else reported a problem with GPS since the initial release. Logs? Screenshot of something useful like GPS Test?
 
Hi to everyone, no one reported regressions after days of usage so I've merged everything in main branch and now it's time to release may update! Here's a partial changelog from April public release:

ROM
- Sync sources with latest PE changes
- Merged android-13.0.0_r43 AOSP updates

Kernel
- drivers: Fix function prototypes
- sched/tune: raise group count to 7
- mi8996_defconfig: disable MSM MHI
- mm: Micro-optimize PID map reads for arm64 while retaining output format
- mi8996_defconfig: Remove CPUFreq times driver
- Merge remote-tracking branch 'qcom-msm8998/lineage-20' into thirteen
- msm: kgsl: Mark the scratch buffer as privileged
- Revert "mi8996_defconfig: disable xz decompression"
- Minor code fixes

Vendor
- update SDM and Adreno blobs from LA.UM.10.6.2.r1-01600-89xx.0
- update audio, DSP and listen blobs from LA.UM.9.6.2.r1-04200-89xx.0
- add missing camera libs
- update DRM from Coral TPP1.220114.016/8158200
- the massive blob update
- add face beautify libs
- bind several services to system-background cpusets

Device Tree
- Update Display HAL from LA.UM.10.6.2.r1-01900-89xx.0
- audio: set valid and supported channel mask for earpiece
- QCOM: audio: misc fixes
- QCOM: media: misc fixes
- QCOM: audio: Update audio HAL from LA.UM.10.6.2.r1-02500-89xx.0
- [SQUASH] Update Media HAL from LA.UM.10.6.2.r1-02200-89xx.0
- update packages for new display HAL
- Revert "msm8996: Enabel ro.hwui.render_ahead"
- update display props
- correct BT audio policy for audio 7.x HAL
- small fixes in audio policy
- rootdir: update vendor.audio service override
- add missing camera libs
- camera: clean and fix camera HAL
- rootdir: small fixes for camera cpuset
- camera: enable face beautify
- update all possible Radio libs from LA.UM.9.6.3.r1-06200-89xx.0
- update CarrierConfig from LA.UM.9.6.2.r1-04200-89xx.0
- update carrier configs from LA.UM.9.6.2.r1-04200-89xx.0
- update ueventd.qcom.rc from LA.UM.9.6.2.r1-04200-89xx.0
- add props for DPM
- update GPS and config to LA.UM.9.6.2.r1-04100-89xx.0
- gps: conf: Enable more features
- migrate to AOSP power off charging daemon
- start sensors using CAF script
- Revert "msm8996-common: remove BOARD_RAMDISK_USE_XZ flag"
- enable and use qti IWLAN
- disable BT SCO enhanced connection
- update and fix SoundTrigger
- add missing listen blobs
- don't start vendor.qseecomd twice
- overlay: Improve pinner configuration
- SELinux: address new denials
- update and sync some props with CAF
- fix various props not properly set
- reintroduce ULL output
- convert CarrierConfig Overlay to RRO
- port Xiaomi edits to WiFi config
- disable mac spoofing as our firmware doesn't support it
- Speed profile services and wifi-service to reduce RAM and storage
- update SELinux rules for the new blobs
- Switch to jemalloc for libc

For a complete list of changes take a look at my repos, commits history is clean now
NOTE for the users that are running my internal build: please flash the new version, test build misses some fixes (BT audio not working during calls with some Headsets) and some minor improvements

Pixel Experience 13 Direct download link
Pixel Experience 13 PLUS Direct download link

@ergr3333f3 what problem exactly do you have? No matter what I do, GPS is working as it should here, and no one else reported a problem with GPS since the initial release. Logs? Screenshot of something useful like GPS Test?
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.
 

-+BB+-

Inactive Recognized Developer
Nov 28, 2013
383
2,701
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.
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
Code:
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):
Code:
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
 
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
Code:
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):
Code:
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
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
 

Attachments

  • Screenshot 2023-05-19 000856.png
    Screenshot 2023-05-19 000856.png
    103.1 KB · Views: 35

-+BB+-

Inactive Recognized Developer
Nov 28, 2013
383
2,701
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
/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
Code:
adb root && adb shell setenforce 0
 
/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
Code:
adb root && adb shell setenforce 0
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
 

mandayugana

Senior Member
Jan 17, 2012
255
84
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.
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
 

Attachments

  • sgcam-8.4-v35-pe13.xml
    165.1 KB · Views: 44
Mar 27, 2017
21
5
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
 

vladiu

Member
Feb 21, 2023
6
2
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!
 

Attachments

  • photo_2023-06-09_11-05-42.jpg
    photo_2023-06-09_11-05-42.jpg
    50.2 KB · Views: 29
  • photo_2023-06-09_11-05-40.jpg
    photo_2023-06-09_11-05-40.jpg
    50.2 KB · Views: 30
  • photo_2023-06-09_11-05-36.jpg
    photo_2023-06-09_11-05-36.jpg
    51.5 KB · Views: 30

vladiu

Member
Feb 21, 2023
6
2
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!
swapped sim cards - stopped wasting battery
 

walhallaDE

Member
Aug 22, 2008
21
1
GtwTyCR.png

PixelExperience for Xiaomi Mi 5 [Gemini]

What is this?
Pixel Experience is an AOSP based ROM, with Google apps included and all Pixel goodies (launcher, wallpapers, icons, fonts, bootanimation)

Our mission is to offer the maximum possible stability and security, along with essential features for the proper functioning of the device

Based on Android 13.0



Whats working?
Wifi
Wifi hotspot
RIL
Mobile data
GPS
Sensors
Camera
Flashlight
Camcorder
Bluetooth
NFC/GPAY
Lights
Sound / vibration
Fingerprint
WiFi Display
VoLTE
Double Tap To Wake
Buttons swap
Google Voice Match
SELinux enforcing
Safetynet



DON'T FLASH GAPPS, ALREADY INCLUDED
Download standard version from Android File Host
Download PLUS version from Android File Host


Flashing Instructions:

Pre-installation:

First time installation:
  • Fastboot or flash recovery image
  • Reboot to new recovery
  • Click on Factory Reset --> Format data/factory reset
  • Click on apply update and sideload the zip file or install it using an USB OTG
  • Enjoy


About Camera App: default camera app is GCAM version SGCAM_8.4.400.42.XXX_STABLE_V35 by Shamim. Everything works fine except 240 fps (1/8) slow motion videos, but front camera require some changes in settings:
- Reduce front camera noise: GCAM Settings --> Additional Settings --> Noise Modelers --> Front Lens: 77
- Front camera photos with green tint: GCAM Settings --> Additional Settings --> Black Level --> Front Lens --> Black Level --> 16
- Slow Motion Videos: GCAM Settings --> Additional Settings --> Stream Config ---> Enable "Open stream configuration" --> Main Cam --> Slow motion ---> select 262144 or 32888

Big thanks to mandayugana for his precious infos and tips for Google Camera

XDA:DevDB Information
Pixel Experience, ROM for the Xiaomi Mi 5

ROM OS Version: Android 13
ROM Kernel: Linux 4.4
ROM Firmware Required: MIUI V10.2.2.0.OAAMIXM as minimum target
Based On: AOSP
Source Kernel repo: Link
Gemini device tree repo: Link
Xiaomi msm8996-common repo: Link
Vendor repo: Link

Special thanks to
LineageOS
Pixel Experience

Shamim
xNombre

Hi, what is the difference between "Standard" and "PLUS" version? Thanks for your answer!
 

-+BB+-

Inactive Recognized Developer
Nov 28, 2013
383
2,701
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
Awesome! photo quality is much more better than before, I've tried and works pretty fine, with latest changes in dt it's working like a charm, and finally GCAM is rock solid! Thanks for your great work, I've added it on my GitHub and changed the OP so everyone can download it :)

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
1, 3 and 4 are fixed on my latest internal build, unfortunately jemalloc randomly break things, in particular cases with high CPU load (camera is the most affected by this bug, but other things may crash when executing CPU intensive operations, may happen to GPS or media service when using software codecs for example)
Regarding 2 we have them since the initial releases, it's just a matter of luck if happens or not, but are really sporadic and does not affect at all device functionality. Unfortunately 4.4/4.9 kernels has been deprecated, and basically are dead, there's no more official support, security updates or bug fixes from AOSP and Linux kernel developers. Some parts of code has been backported from mainline or from 4.9/4.14/4.19, but does not receive updates, for example this commit i pushed some days ago fixes a potential panic in bpf: bpf: fix truncated jump targets on heavy expansions. I must also say that the kernel is using some potential unsafe option (for stability) because there are great performance improvements using them, if I can still use this old Gemini with 3gb of RAM as primary device I can live with a panic every 2 months (but i will try to fix them) :)

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!
Hi! Could you please try my latest build and see if idle battery drain it's fixed even without the SIM switch? I moved to QCRIL so unless there are some modem incompatibilities now we are in line with latest CAF code for msm8996 devices

Hi, what is the difference between "Standard" and "PLUS" version? Thanks for your answer!
Hi, plus version have some additional features and customisation (battery icon style, clock position, network monitor indicator, etc), while the normal version tries to be as much as possible similar to Pixel official devices

@Choutouketsu : could you please try the latest build and see if you get the same behaviour or you see some changes/improvements? Unfortunately i cannot test by myself because my carrier break Volte on my device some years ago because they are providing it in B20, which is unsupported by Gemini modem, and they turned off 3G network so there's no chance for me to phisically test some functions (but QCRIL and the related blobs are used by other msm8996/msm8998 devices and works fine, I was also using them in my old PE 12 ROM without any issue)

Please note that this ROM is compiled with all the fixes and changes that I will include for sure in next public release (jemalloc revert, ZSTD compression as standard for ZRAM, camera debugging disabled, several debug packages removal and some misc kernel fixes/improvements) but will include also some changes that i'm still testing, most important are:

Kernel:
- Some misc kgsl fixes/improvements (not pushed yet in my Github, but one of them fixes a potential kernel panic caused by a null pointer deference)

Device Tree:
- QCRIL migration (it's marked as WIP because I had no time yet to update proprietary files list, but there are no functional changes to do) --> Please report me regressions or issues
- Unused library removal is not over yet, but it's safe to use and spare a little bit of space and memory


Here's the download link (only plus version)
 
Last edited:
Awesome! photo quality is much more better than before, I've tried and works pretty fine, with latest changes in dt it's working like a charm, and finally GCAM is rock solid! Thanks for your great work, I've added it on my GitHub and changed the OP so everyone can download it :)


1, 3 and 4 are fixed on my latest internal build, unfortunately jemalloc randomly break things, in particular cases with high CPU load (camera is the most affected by this bug, but other things may crash when executing CPU intensive operations, may happen to GPS or media service when using software codecs for example)
Regarding 2 we have them since the initial releases, it's just a matter of luck if happens or not, but are really sporadic and does not affect at all device functionality. Unfortunately 4.4/4.9 kernels has been deprecated, and basically are dead, there's no more official support, security updates or bug fixes from AOSP and Linux kernel developers. Some parts of code has been backported from mainline or from 4.9/4.14/4.19, but does not receive updates, for example this commit i pushed some days ago fixes a potential panic in bpf: bpf: fix truncated jump targets on heavy expansions. I must also say that the kernel is using some potential unsafe option (for stability) because there are great performance improvements using them, if I can still use this old Gemini with 3gb of RAM as primary device I can live with a panic every 2 months (but i will try to fix them) :)


Hi! Could you please try my latest build and see if idle battery drain it's fixed even without the SIM switch? I moved to QCRIL so unless there are some modem incompatibilities now we are in line with latest CAF code for msm8996 devices


Hi, plus version have some additional features and customisation (battery icon style, clock position, network monitor indicator, etc), while the normal version tries to be as much as possible similar to Pixel official devices

@Choutouketsu : could you please try the latest build and see if you get the same behaviour or you see some changes/improvements? Unfortunately i cannot test by myself because my carrier break Volte on my device some years ago because they are providing it in B20, which is unsupported by Gemini modem, and they turned off 3G network so there's no chance for me to phisically test some functions (but QCRIL and the related blobs are used by other msm8996/msm8998 devices and works fine, I was also using them in my old PE 12 ROM without any issue)

Please note that this ROM is compiled with all the fixes and changes that I will include for sure in next public release (jemalloc revert, ZSTD compression as standard for ZRAM, camera debugging disabled, several debug packages removal and some misc kernel fixes/improvements) but will include also some changes that i'm still testing, most important are:

Kernel:
- Some misc kgsl fixes/improvements (not pushed yet in my Github, but one of them fixes a potential kernel panic caused by a null pointer deference)

Device Tree:
- QCRIL migration (it's marked as WIP because I had no time yet to update proprietary files list, but there are no functional changes to do) --> Please report me regressions or issues
- Unused library removal is not over yet, but it's safe to use and spare a little bit of space and memory


Here's the download link (only plus version)
Awesome, I'll try. Cheers!!
 

vladiu

Member
Feb 21, 2023
6
2
Hi! Could you please try my latest build and see if idle battery drain it's fixed even without the SIM switch? I moved to QCRIL so unless there are some modem incompatibilities now we are in line with latest CAF code for msm8996 devices
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!
 

-+BB+-

Inactive Recognized Developer
Nov 28, 2013
383
2,701
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!
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
 
  • Like
Reactions: vladiu

-+BB+-

Inactive Recognized Developer
Nov 28, 2013
383
2,701
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.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 4
    Sorry for really ii late reply🙏 apparently im just selling my samsung j4 plus because that one have lot of issue. Im not really new with custom rom and such instead im already play with plenty of device primarily from xiaomi like redmi 5a, redmi 8a, redmi note 8, xiaomi mi a2 lite and samsung like my s5, note4, j7 pro, j4 plus. I just wanna know that if this phone is comfortable to use as daily driver because im used to own lg g6 and ohh boy that phone is both slow and hot. Even my s5 is running better with custom rom ofc. Soo how is this phone? Thank for reading my long sentences im not really used to write this long.
    If you want to use the phone as daily driver then you must be aware that there are several limitations with Mi5, especially on 3 Gb variants, and probably Android 14 will be even worse than Android 13, pretty sure it will require more RAM, and we are already struggling on 3 Gb. Basically everything works so if you already have an Mi 5 you can use it, but if you want to spend some moneys for an Mi 5 there are better alternatives. If you are interested I'm actually using a Mi9 SE (Grus) as primary phone with Pixel Experience 13, only confirmed bug is GCAM face retouching not working (really minor bug), everything else is fine, with my light usage my stats are 4/5 hrs SOT in 48 hrs with a year old battery. And unless a disaster comes out I will move to Android 14 when possible, this means at least another year of support and security updates :)

    Late but i thought i should share this..
    I have one issue in this August build... So when the device is pretty much heat like 42+ the device reboot itself and its very annoying...i faced so many time...i donno anyone facing this kinda issue or not...but i thought i should share this...
    And 13 is the end of gemini?? Or any hope for 14
    LOS guys added several fixes to scheduler the day after i merged their changes from qcom_msm8998 kernel in my kernel, so something may not work as expected, good news are that I've merged the remaining missing commits some days ago, and while i was rebasing the kernel in preparation to Android 14 :) I spotted this, it was there since the initial release and will lead to a deadlock for sure, then can cause some performance/stability issues or in the worst case completely crash the kernel. On LOS 100+ hrs uptime without any issue with latest kernel in my repo

    PS: PE devs did not merge Google September patches yet, I'm testing my latest changes on LOS so if someone is interested here's the download link (sources synced with LOS repos a few hours ago):
    Lineage-20 Unofficial
    1
    Late but i thought i should share this..
    I have one issue in this August build... So when the device is pretty much heat like 42+ the device reboot itself and its very annoying...i faced so many time...i donno anyone facing this kinda issue or not...but i thought i should share this...
    And 13 is the end of gemini?? Or any hope for 14
  • 9
    GtwTyCR.png

    PixelExperience for Xiaomi Mi 5 [Gemini]

    What is this?
    Pixel Experience is an AOSP based ROM, with Google apps included and all Pixel goodies (launcher, wallpapers, icons, fonts, bootanimation)

    Our mission is to offer the maximum possible stability and security, along with essential features for the proper functioning of the device

    Based on Android 13.0



    Whats working?
    Wifi
    Wifi hotspot
    RIL
    Mobile data
    GPS
    Sensors
    Camera
    Flashlight
    Camcorder
    Bluetooth
    NFC/GPAY
    Lights
    Sound / vibration
    Fingerprint
    WiFi Display
    VoLTE
    Double Tap To Wake
    Buttons swap
    Google Voice Match
    SELinux enforcing
    Safetynet



    DON'T FLASH GAPPS, ALREADY INCLUDED
    Download standard version from Android File Host
    Download PLUS version from Android File Host


    Flashing Instructions:

    Pre-installation:

    First time installation:
    • Fastboot or flash recovery image
    • Reboot to new recovery
    • Click on Factory Reset --> Format data/factory reset
    • Click on apply update and sideload the zip file or install it using an USB OTG
    • Enjoy


    About Camera App: default camera app is GCAM version SGCAM_8.4.400.42.XXX_STABLE_V35 by Shamim. Everything works fine except 240 fps (1/8) slow motion videos
    mandayugana shared his config xml file, which add the specific noise model for Gemini with Shamim GCAM, dowload it from my Github (sgcam-8.4-v35-pe13.xml) or from his post, apply to GCAM following this tutorial and say thanks to him for his great work

    XDA:DevDB Information
    Pixel Experience, ROM for the Xiaomi Mi 5

    ROM OS Version: Android 13
    ROM Kernel: Linux 4.4
    ROM Firmware Required: MIUI V10.2.2.0.OAAMIXM as minimum target
    Based On: AOSP
    Source Kernel repo: Link
    Gemini device tree repo: Link
    Xiaomi msm8996-common repo: Link
    Vendor repo: Link

    Special thanks to
    LineageOS
    Pixel Experience

    Shamim
    xNombre
    mandayugana
    8
    Hi to everyone, I've decided to share my latest personal build if someone wants to try it, there are only some small changes in dt sources, but improvements are noticeable, especially in UI smoothness. There are also a couple of fixes for some small bugs i found in latest public release.
    Here's a small changelog from latest public build:

    Device tree
    - Disable prefer_idle when screen goes off, this will optimize task placement for energy
    - Fix power hints for camera (were working only partially)
    - Fix adsprpcd and vendor audio service entry
    - Assign several services to system-background cpuset
    - Audio: misc fixes/updates and enabled call recording. NOTE: Google Dialer Call Recording is actually broken, 3rd party apps works fine
    - Audio: switch to AOSP impl for sw effects
    - Use GPU HW for rendering (improve UI smoothness)
    - Small generic updates that i had no time to merge in public build

    BONUS: I've synced my sources with PE, in this release some Pixel exclusive features has been unlocked

    Here's the direct download link
    8
    Hi to everyone, march update is out, here' the changelog from latest public build:

    ROM
    - Updated sources to latest PE
    - Merged AOSP android-13.0.0_r35 updates

    Proprietary blobs
    - Update Adreno, SDM and postproc blobs to LA.UM.9.6.2.r1-04100-89xx.0
    - Update media blobs to LA.UM.9.6.2.r1-04100-89xx.0
    - Update graphics firmware from LA.UM.9.6.2.r1-04100-89xx.0
    - Update audio and ADSP blobs from LA.UM.9.6.2.r1-04100-89xx.0 and and Oneplus 3T PKQ1.181203.001

    Device tree
    - Set UI rendering Skiagl with skiaglthreaded
    - Clean up useless log spams
    - wifi: smarter decisions on whether to use a 2- or 5Ghz AP
    - camera: mix fixes and improvements for memory, stability and timeout logic (long exposure now should work, or at least doesn't crash camera app)
    - props: add missing ro.vendor.extension_library prop
    - Updated conf and props for R media and display HALs
    - QCOM HALs: migrate to R HALs
    - Reworked and updated pixel dance service
    - fstab: enable discard option on /data partition
    - Update configuration and props for R audio HAL
    - Bluetooth: disabled APCF extended features
    - Misc updates/fixes/improvements

    Kernel
    - backport speculative page fault
    - backport ashmem and binder from 4.19
    - mbcache: misc updates and fixes
    - random: misc updates and fixes
    - fix LD_DEAD_CODE_DATA_ELIMINATION, add support for our arch and enable it
    - kbuild: misc updates/improvements
    - improve thin archives
    - crypto: port specific accelerated libs and enable them
    - port LTO fixes and enable CLANG LTO
    - Optimizations: compile with O3 flag
    - disable frame pointers
    - port and enable flatmem
    - ported missing cutoff and capacity approximation changes from Xiaomi
    - Disable all debugging and tracing
    - Enable several optimisations
    - Misc fixes
    - take a look at my repo for all other updates, changes are really huge

    Here's the direct download link

    IMPORTANT: roll back from this version to older version is not possible without a clean flash, if someone needs to roll back to a 100% safe release without wiping the device download and flash latest internal build i shared, it has been used for days by several users and can be used safely for daily usage, here's the download link

    Enjoy :)

    @mrinfinity0007 sounds more like an APN configuration issue, did you check your APN settings?
    8
    Hi to everyone, April update is out and starting from this month i will provide PE Plus version too.
    Here's the changelog from last public release:

    ROM
    - Sync sources with latest PE changes
    - Merged android-13.0.0_r41 AOSP updates

    Device tree
    - Disable prefer_idle when screen goes off, this will optimize task placement for energy
    - Fix power hints for camera (were working only partially)
    - Fix adsprpcd and vendor audio service entry
    - Assign several services to system-background cpuset
    - Audio: misc fixes/updates and enabled call recording. NOTE: Google Dialer Call Recording is actually broken, 3rd party apps works fine
    - Audio: switch to AOSP impl for sw effects
    - Use GPU HW for rendering (improve UI smoothness)
    - disable ripple unlock animation
    - Update conf and SEPolicy for new blobs
    - Small generic updates that i had no time to merge in previous public build
    - Added back LiveDisplay feature (Plus version only)

    Kernel
    - Small cleaning

    Pixel Experience 13 Direct download link
    Pixel Experience 13 PLUS Direct download link

    NOTE: Plus version can be dirty flashed over default version

    Enjoy :)
    6
    Hi to everyone, august update is out, here's a small changelog:

    ROM
    - Updated AOSP sources to android-13.0.0_r67
    - Merged all PE changes

    Device tree (msm8996-common)
    - wlan: enable QPower and Deep Sleep at the same time

    Kernel
    - Sched: migrate to PELT
    - sdcardfs: merged missing fixes from 4.9 kernel
    - Ext4: fixed a couple of potential kernel panics
    - ufs: drop QCOM PM QoS imp and Add simple IRQ-affined PM QoS operations
    - Update ARM optised routines to latest possible version
    - arm64: Implement optimised checksum routine and merged all fixes from upstream
    - Misc updates/improvements for buffers
    - sched: Robustify fetch_or()
    - atomic: port all needed atomic calls for qspinlocks/qrwlocks/locking
    - locking/atomics bitops: rewrite using the atomic_fetch_*() ops
    - qspinlock/qrwlock: sync with 4.9 kernel, fix compiling for 4.4 kernel and move to qrwlocks and qspinlocks
    - qspinlocks/qrwlocks: merged further optimisations/improvements from 4.14/upstream kernel
    - Revert "kernel: time: Add delay after cpu_relax() in tight loops"

    Download links:

    Pixel Experience 13 Standard
    Pixel Experience 13 Plus

    Los20. I had a reboot when I clicked connect to VPN in the Psiphon app
    As I already wrote I do not support LOS builds, but if you had a reboot at least provide me the ramoops (if any)

    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
    Does it happen even using only GCAM? Please provide me a log of the first crash