Development [ROM][13.0] LineageOS 20 for Poco X5 Pro [redwood][27/08/2023]

Search This thread

Carlos Arriaga

Senior Member
Jan 15, 2015
829
3,146
Guanajuato
thestrechh.github.io
397541-jpeg.5814669


LineageOS is a free, community built, aftermarket firmware distribution of Android 13, which is designed to increase performance and reliability over stock Android for your device.

LineageOS is based on the Android Open Source Project with extra contributions from many people within the Android community. It can be used without any need to have any Google application installed. Linked below is a package that has come from another Android project that restore the Google parts. LineageOS does still include various hardware-specific code, which is also slowly being open-sourced anyway.

All the source code for LineageOS is available in the LineageOS Github repo. And if you would like to contribute to LineageOS, please visit out Gerrit Code Review. You can also view the Changelog for a full list of changes & features.

Code:
/*
*
* Your warranty is now void.
*
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this ROM
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will laugh at you.
*
*/

Download
- You can find UNOOFFICIAL LineageOS 20 builds HERE
- Build type: Vanilla

Useful links

- WikiGapps: HERE
- Group help: TELEGRAM
- Source: https://github.com/xiaomi-redwood-devs

Flashing additional partitions

- Download the following files from HERE
$ dtbo.img
$ vendor_boot.img
$ boot.img
- Power off the device, and boot it into bootloader mode:
- With the device powered off, hold Volume Down + Power. Keep holding both buttons until the word “FASTBOOT” appears on the screen, then release.
- Flash the downloaded image files to your device by typing:
$ fastboot flash dtbo dtbo.img
$ fastboot flash vendor_boot vendor_boot.img
$ fastboot flash boot boot.img
- Now reboot into recovery to verify the installation.
- With the device powered off, hold Volume Up + Power. Keep holding both buttons until the “MI” logo appears on the screen, then release.

Installing LineageOS from recovery

- Download the LineageOS installation package that you would like to install or build the package yourself.
- (Optionally): If you want to install an application package add-on such as Google Apps (use the arm64 architecture), please read and follow the instructions on Google Apps page
- If you are not in recovery, reboot into recovery:
- With the device powered off, hold Volume Up + Power. Keep holding both buttons until the “MI” logo appears on the screen, then release.
- Now tap Factory Reset, then Format data / factory reset and continue with the formatting process. This will remove encryption and delete all files stored in the internal storage, as well as format your cache partition (if you have one).
- Return to the main menu.
- Sideload the LineageOS .zip package:
- On the device, select “Apply Update”, then “Apply from ADB” to begin sideload.
- On the host machine, sideload the package using:
$ adb sideload lineage-20.0-xxxxxxxx-UNOFFICIAL-redwood.zip
$ adb sideload fw_redwood_miui_REDWOODRUGlobal_V14_0_1_0_TMSRUXM_4288398401_13.zip
- (Optionally): If you want to install any add-ons, repeat the sideload steps above for those packages in sequence.
- Once you have installed everything successfully, click the back arrow in the top left of the screen, then “Reboot system now”.


If you wish to donate, can help me HERE
 
Last edited:

Carlos Arriaga

Senior Member
Jan 15, 2015
829
3,146
Guanajuato
thestrechh.github.io

Whats works?​

* Boot
* Camera
* Wifi
* RIL
* Bluetooth
* Fingerprint
* GPS
* Sensors
* VolTE
* 5G
* Vibration
* Selinux Enforcing
* NFC

Bugs?​

* Some lineage features (Not implemented yet)
* New devices with panel FTS_FS not supported
* Fast Charging (67W)
* Tell me if you find a bug

Credits​

* @Divyanshu-Modi
* @BladeRunner-A2C
* @ItsVixano
* @Ghostrider-reborn
* @ArianK16a
* And all devs for working in this soc and help me always.
 
Last edited:

vny10

Senior Member
Nov 9, 2013
102
4
35
India
Good to see u again
Really appreciate your work for poco x3
And now redwood
Thanks for your support
 

Carlos Arriaga

Senior Member
Jan 15, 2015
829
3,146
Guanajuato
thestrechh.github.io
New build is up! DOWNLOAD IN THE OP!

Changelog:

• Initial rebrand sm7325-commono based on sm8350-common from LineageOS
• Introduce custom LiveDisplay HAL
• Import AOSP fingerprint HIDL service from lahaina
• Enable suspend to RAM
• Revert use /vendor_dlkm (now can install custom kernels)
• Fixed NFC
• Swtich Enforcing Build
• Kernel rebased on qcom sm8350 from LineageOS (Credits @Divyanshu775 for porting drivers for CAF Kernel)
• Improvements in kernel

Bugs:
• Test and tell me? Fast Charging (67W)
• ? Tell me

Notes: You need install dtbo, boot and vendor_boot. if you don't, your touch may not work.
 
  • Like
Reactions: neodante

Argih

New member
Aug 22, 2015
2
0
I'm actually waiting for the warranty to end to test custom roms but thank you for your work. I will be following the development of the rom
 
I've had lineage installed for about a week now...I would die before I go back. I have issues with the cam well more like the fingerprint scanner while using the cam...it will select the screen causing a grey veil over everything. I wanted to use this phone to film and noticed a few times the app closing on its own. Other than that its a great improvement from stock
 

Attachments

  • Screenshot_20230609-074054_Camera.png
    Screenshot_20230609-074054_Camera.png
    1.6 MB · Views: 320
  • Screenshot_20230609-074059_Camera.png
    Screenshot_20230609-074059_Camera.png
    1.7 MB · Views: 318

drewpy1743

Member
May 19, 2017
5
0
[Solved] I forgot adb 1.0.31 was installed by default so I loaded adb 1.0.41 from a folder by navigating there in command prompt and then targeted my rom with:
adb sideload c:\users\a\Downloads\lineage-20.0-20230629-UNOFFICIAL-redwood.zip

adb device
List of devices attached
36c3bcdf sideload

adb sideload lineage-20.0-20230629-UNOFFICIAL-redwood.zip
error: protocol fault (no status)

or

error: closed

I was going to write up a whole post asking for help but I remembered the solution halfway through writing this. Hope this helps someone
 

gmbhneo

Senior Member
Sep 24, 2009
225
49
Xiaomi Poco X5 Pro
@Carlos Arriaga the latest version (01.07.23) has been installed fresh, but now my camera is not working at all. It is just black. Same for gcam and any other app using the camera (like whatsapp and telegram)

Also, the vibration is shutting itself off sometimes. It worked at some point, but after a reboot, it suddenly isn't working anymore.

Also found out, that the Roborock App is simply not starting. Whatever I do, it always got stuck.

There is also different volume on any music app (YT Music for example) and TikTok. On TikTok the EQ seems not to work, which makes the sound 2-3 times louder than any other sound.
 
Last edited:
Aug 20, 2022
10
3
Hey, I just bought myself a X5 pro and I really want to flash lineageOS on it, however before flashing I would like to ask a few questions, to make sure that it fits my needs.

1) Is it stable enough to be used as a daily driver?
2) Can i turn on the 120hz display mode?
3) Does fast charging work?
4) Can i flash magisk?
5) Also are you planning to add signature spoofing feature for microg support?

Thank you for your time and hard work❤️
 

drewpy1743

Member
May 19, 2017
5
0
Well I have a little info

1) I'm using it as my normal phone for gps, wifi calling, and gaming
2) There is an option to use 120hz for certain apps... idk how to check that though. 5/29 reported as always on telegram TheStretchh Builds | redwood
https://www.reddit.com/r/Galaxy_S20/comments/gj3yek 3) 7pm a fast charging fix was found so it might be in the new releases sometime soon
4) Magisk is working with a patched boot.img https://www.xda-developers.com/how-to-install-magisk/
5) "If you want MicroG then don't use lineageos" 6/15 from the telegram TheStretchh Builds | redwood
 

drewpy1743

Member
May 19, 2017
5
0
Anyone have wifi calling and texting working in any of this month or last month's builds? I'm still using one from May. I'm on Tmobile
 

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    New update is up! You can update via OTA if comming from old build. About problems with can't boot recovery: Xiaomi made the great idea to release new devices with a different panel (fts_fs) these drivers are not released therefore the kernel is not compatible for new phones that have this panel. I will look for the way to boot build with kernel prebuilt. If I have new news I will let you know.
    1
    Interesting, if I'm looking in the right place in Device Info HW (Touchscreen under the "General" tab) then it looks like I have a gtx8_spi screen, despite a 2023.06 batch phone.
    You should be okay then. It's possible yours is an early 2023.06 batch or something. It's the other screen that's incompatible.
    1
    Interesting, if I'm looking in the right place in Device Info HW (Touchscreen under the "General" tab) then it looks like I have a gtx8_spi screen, despite a 2023.06 batch phone.
    I also have a brand new 2023.06 batch. Following the instructions flashing the additional partitions (dtbo.img, vendor_boot.img and boot.img) completed successfully.

    However trying to reboot into recovery just flashes my screen once and shuts the phone down. Am I doing anything wrong or is this a known issue? If so, is there any workaround?

    For now I flashed the original MIUI back, but I'd really love any kind of Custom ROM (preferably Lineage).
  • 9
    397541-jpeg.5814669


    LineageOS is a free, community built, aftermarket firmware distribution of Android 13, which is designed to increase performance and reliability over stock Android for your device.

    LineageOS is based on the Android Open Source Project with extra contributions from many people within the Android community. It can be used without any need to have any Google application installed. Linked below is a package that has come from another Android project that restore the Google parts. LineageOS does still include various hardware-specific code, which is also slowly being open-sourced anyway.

    All the source code for LineageOS is available in the LineageOS Github repo. And if you would like to contribute to LineageOS, please visit out Gerrit Code Review. You can also view the Changelog for a full list of changes & features.

    Code:
    /*
    *
    * Your warranty is now void.
    *
    * I am not responsible for bricked devices, dead SD cards,
    * thermonuclear war, or you getting fired because the alarm app failed. Please
    * do some research if you have any concerns about features included in this ROM
    * before flashing it! YOU are choosing to make these modifications, and if
    * you point the finger at me for messing up your device, I will laugh at you.
    *
    */

    Download
    - You can find UNOOFFICIAL LineageOS 20 builds HERE
    - Build type: Vanilla

    Useful links

    - WikiGapps: HERE
    - Group help: TELEGRAM
    - Source: https://github.com/xiaomi-redwood-devs

    Flashing additional partitions

    - Download the following files from HERE
    $ dtbo.img
    $ vendor_boot.img
    $ boot.img
    - Power off the device, and boot it into bootloader mode:
    - With the device powered off, hold Volume Down + Power. Keep holding both buttons until the word “FASTBOOT” appears on the screen, then release.
    - Flash the downloaded image files to your device by typing:
    $ fastboot flash dtbo dtbo.img
    $ fastboot flash vendor_boot vendor_boot.img
    $ fastboot flash boot boot.img
    - Now reboot into recovery to verify the installation.
    - With the device powered off, hold Volume Up + Power. Keep holding both buttons until the “MI” logo appears on the screen, then release.

    Installing LineageOS from recovery

    - Download the LineageOS installation package that you would like to install or build the package yourself.
    - (Optionally): If you want to install an application package add-on such as Google Apps (use the arm64 architecture), please read and follow the instructions on Google Apps page
    - If you are not in recovery, reboot into recovery:
    - With the device powered off, hold Volume Up + Power. Keep holding both buttons until the “MI” logo appears on the screen, then release.
    - Now tap Factory Reset, then Format data / factory reset and continue with the formatting process. This will remove encryption and delete all files stored in the internal storage, as well as format your cache partition (if you have one).
    - Return to the main menu.
    - Sideload the LineageOS .zip package:
    - On the device, select “Apply Update”, then “Apply from ADB” to begin sideload.
    - On the host machine, sideload the package using:
    $ adb sideload lineage-20.0-xxxxxxxx-UNOFFICIAL-redwood.zip
    $ adb sideload fw_redwood_miui_REDWOODRUGlobal_V14_0_1_0_TMSRUXM_4288398401_13.zip
    - (Optionally): If you want to install any add-ons, repeat the sideload steps above for those packages in sequence.
    - Once you have installed everything successfully, click the back arrow in the top left of the screen, then “Reboot system now”.


    If you wish to donate, can help me HERE
    7

    Whats works?​

    * Boot
    * Camera
    * Wifi
    * RIL
    * Bluetooth
    * Fingerprint
    * GPS
    * Sensors
    * VolTE
    * 5G
    * Vibration
    * Selinux Enforcing
    * NFC

    Bugs?​

    * Some lineage features (Not implemented yet)
    * New devices with panel FTS_FS not supported
    * Fast Charging (67W)
    * Tell me if you find a bug

    Credits​

    * @Divyanshu-Modi
    * @BladeRunner-A2C
    * @ItsVixano
    * @Ghostrider-reborn
    * @ArianK16a
    * And all devs for working in this soc and help me always.
    3
    New build is up! Download in the OP

    05/07/2023

    - Merge tag LA.UM.9.14.r1-21000-LAHAINA.QSSI13.0 in kernel source
    - Merge tag ASB-2023-06-05_11-5.4 in kernel source
    - Fixed battery stats (bat % usage)
    - Update all blobs from V14.0.1.0.TMSMIXM
    - Drop unnused stuff shima/udfps configs
    - Fixed some sepolicy denials (Build still permissive for now)
    - Drop QTI perfd stack
    - Migrate xiaomi power hal
    - Merge June (QPR3) is ready!
    - OTA support added

    NOTE: Clean flash mandatory!
    1
    New build is up! DOWNLOAD IN THE OP!

    Changelog:

    • Initial rebrand sm7325-commono based on sm8350-common from LineageOS
    • Introduce custom LiveDisplay HAL
    • Import AOSP fingerprint HIDL service from lahaina
    • Enable suspend to RAM
    • Revert use /vendor_dlkm (now can install custom kernels)
    • Fixed NFC
    • Swtich Enforcing Build
    • Kernel rebased on qcom sm8350 from LineageOS (Credits @Divyanshu775 for porting drivers for CAF Kernel)
    • Improvements in kernel

    Bugs:
    • Test and tell me? Fast Charging (67W)
    • ? Tell me

    Notes: You need install dtbo, boot and vendor_boot. if you don't, your touch may not work.
    1
    This working for poco x5 4G?
    No, it's for x5 pro (redwood) only.