• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[ROM][10.0][UNOFFICIAL] LineageOS 17.1 for Mix 3 5G [andromeda]

Search This thread

Inkypen

Senior Member
Aug 19, 2018
426
1,312
London
2okPze5.png

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

Code:
#include <std_disclaimer.h>

/*
* Your warranty is now void.
*
* We are 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 us for messing up your device, we will laugh at you.
*
*/

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. You will need to provide your own Google Applications package (gapps). LineageOS does still include various hardware-specific code, which is also slowly being open-sourced anyway.

Base source code is available in the LineageOS Github repo. And if you would like to contribute to the project, please visit our Gerrit Code Review.

GPL compliance:
yG18r6g.png


Working:
Almost everything

Broken:
You tell me

Compatibility:
This is for Mi Mix 3 5G (andromeda) only. Not compatible with regular Mix 3 (perseus)

Downloads:
https://sourceforge.net/projects/xiaomi-andromeda/files/

Installation:
Reboot to recovery
Wipe /system, /vendor, /data and /cache
Install LineageOS zip package
Install [optional] a Google Apps package of your choice (Open GApps is advisable, but stock and super variants are not recommended!!!)

Important notes:
GApps can only be flashed on clean installs.
Formatting data (all user data is wiped, including internal storage) is a must if MIUI was previously installed and device was encrypted.

XDA:DevDB Information
LineageOS, ROM for the Xiaomi Mi Mix 3

Contributors
Inkypen
ROM OS Version: Android 10
ROM Kernel: Linux 4.x
Based On: AOSP

Version Information
Status:
Testing

Created 2020-06-08
Last Updated 2020-06-08
 
Last edited:

Inkypen

Senior Member
Aug 19, 2018
426
1,312
London
Additional installation instructions if coming from stock MIUI:

In order to install a custom ROM you must have an unlocked bootloader. You can apply for this at Xiaomi's official site: https://en.miui.com/unlock/

You then need to install a custom recovery. Official TWRP builds are available, and the official maintainer has a thread with installation instructions here: https://forum.xda-developers.com/mi...covery-unofficial-twrp-xiaomi-mi-mix-t3941867

Once you have TWRP installed, boot into recovery mode. Wipe cache,dalvik,system,vendor partitions.

You are strongly advised to flash the latest modem firmware. You can grab that here: https://sourceforge.net/projects/xiaomi-andromeda/files/firmware.zip/download

WARNING: You will lose all saved files on your internal storage in the next step, make a backup of important files before proceeding

Data partition must be formatted (not wiped) to remove forced encryption. Use the bottom right "Format Data" button in the Wipe menu. You will be asked to type "yes" to confirm your choice.

At this point your internal storage will be empty. Copy the ROM from your PC to the phone, click install in TWRP and select the ROM. If you wish to install gapps/nanodroid, copy it to the phone and install after the ROM. Once you have flashed the ROM and any add ons, you must format internal storage again. Internal storage must be completely empty for the very first custom ROM boot, once a custom ROM has been installed and you want to swap to a different one, further formatting is not necessary.

Reboot back to system and enjoy custom ROM goodness :)
 
Last edited:

pm4rcin

Member
Jun 13, 2020
8
0
1. After some trouble with installing (first time so...) system works fine but when I plug my usbc-jack adapter and headphones it doesn't see them. How can I fix that?
2. Another thing is no 4k option in camera app for recording.
PS. Thanks for your work delivering that ROM.
 

Inkypen

Senior Member
Aug 19, 2018
426
1,312
London
1. After some trouble with installing (first time so...) system works fine but when I plug my usbc-jack adapter and headphones it doesn't see them. How can I fix that?
2. Another thing is no 4k option in camera app for recording.
PS. Thanks for your work delivering that ROM.

I got no problem with headphones here.

Stock LineageOS Snap camera can't do 60fps or 4k recording. There are plenty of camera apps on the play store that have these options.
If you want to use GCam then this port is the most compatible with andromeda, it can do 1080p/60fps and 4k/30fps video recording. https://f.celsoazevedo.com/file/cfiles/gcm1/GCam_7.3.018_Urnyx05-v1.9.apk
This GCam port does not work with selfie camera at all, you must use the built in Snap cam for that. My suggestion would be to set the slider to open the default camera app and to have have GCam on your home screen.
 

Inkypen

Senior Member
Aug 19, 2018
426
1,312
London
Phone is not rooted, but many apps do not work because they think its rooted. I.E. Revolut, banking apps, Outlook, Teams. Is there an workaround for this?

This problem with false positives happens on stock ROMs as well. When I owned a Zuk Z1, loads of apps thought the stock ZUI was a rooted custom ROM. Not a lot can be done about it because each app uses it's own detection method and the companies that make these apps obviously aren't going to broadcast the detection methods they use.

You may have success running these apps by actually rooting your phone and using Magisk Hide on the apps that don't work.
 

Groctel

Member
Dec 3, 2018
14
3
24
Granada
It's the first time I install a non-official Lineage ROM and I've found that both SELinux and device encryption are disabled. I also got a notification saying this was due to the ROM being built with public keys?

I don't know if this is normal and if there's something I can do to enable SELinux and searching for solutions hasn't returned any :(

Also, what's the keys thing about?

Thanks for your efforts!
 

Inkypen

Senior Member
Aug 19, 2018
426
1,312
London
It's the first time I install a non-official Lineage ROM and I've found that both SELinux and device encryption are disabled. I also got a notification saying this was due to the ROM being built with public keys?

I don't know if this is normal and if there's something I can do to enable SELinux and searching for solutions hasn't returned any :(

Also, what's the keys thing about?

Thanks for your efforts!

I'm not on the LineageOS team so I don't have access to their build system or their private keys, hence the warning about public keys. If you really want encryption it is possible but would involve formatting your data partition again and losing all your files. Writing SELinux policy is a bigger task than porting the ROM and I'm only one guy working alone in his free time. If you try to force SELinux to enforcing mode it's quite likely the ROM won't even boot.

If you're worried about a security risk, considering you have unlocked your boot loader and installed an unknown firmware from a random person on the internet, I would say you have already made a decision concerning your phone's security. All my source code is linked in the first post, so feel free to look it over to make sure I'm not doing anything shady :)
 
  • Like
Reactions: Groctel

Groctel

Member
Dec 3, 2018
14
3
24
Granada
I'm not on the LineageOS team so I don't have access to their build system or their private keys, hence the warning about public keys. If you really want encryption it is possible but would involve formatting your data partition again and losing all your files. Writing SELinux policy is a bigger task than porting the ROM and I'm only one guy working alone in his free time. If you try to force SELinux to enforcing mode it's quite likely the ROM won't even boot.

If you're worried about a security risk, considering you have unlocked your boot loader and installed an unknown firmware from a random person on the internet, I would say you have already made a decision concerning your phone's security. All my source code is linked in the first post, so feel free to look it over to make sure I'm not doing anything shady :)

Well, I've never read a better argument for security! I'll try to learn about writing a SELinux policy and will PR you if I can get it to work in my own device. Once again, thank you very much for your contribution!
 
  • Like
Reactions: Inkypen

kikadisa

Member
Aug 10, 2010
5
1
Hello

Great Job. Hope you could be merged soon in Official build, they announce a relaxed form in order to submit devices BTW.

Also, i'm trying to get encryption working and i'm stuck.
Like my old phone, after a fresh install a go to encrypt my phone.
I have a little droid during few seconds and a reboot (without progressing bar, a classic boot).
After checks phones still unencrypted.

Just for my reminder here are the steps:
- Flash MIUI EEA
- Boot MIUI
- Fastboot > flash TWRP
- Reboot Recovery
- Wipe Cache, System, Vendor, Data
- Install firmware
- Format Data
- Install lineage
Is it correct ?
 

Inkypen

Senior Member
Aug 19, 2018
426
1,312
London
Hello

Great Job. Hope you could be merged soon in Official build, they announce a relaxed form in order to submit devices BTW.

Also, i'm trying to get encryption working and i'm stuck.
Like my old phone, after a fresh install a go to encrypt my phone.
I have a little droid during few seconds and a reboot (without progressing bar, a classic boot).
After checks phones still unencrypted.

Just for my reminder here are the steps:
- Flash MIUI EEA
- Boot MIUI
- Fastboot > flash TWRP
- Reboot Recovery
- Wipe Cache, System, Vendor, Data
- Install firmware
- Format Data
- Install lineage
Is it correct ?

I have testing builds with encryption enabled. The good news is the next update will have encryption enabled, bad news is you'll have to format data partition again to get it working.
 

Inkypen

Senior Member
Aug 19, 2018
426
1,312
London
The LineageOS team have added in Qualcomm's Bluetooth stack so I've uploaded a new build. You probably won't notice any changes because these are "under the hood" improvements, but if you have some high end headphones you may hear a difference!

Also this build and all future builds have encryption enabled. Unfortunately this means you will need to format your data partition in order to install this build, but this is a one time only thing. I can also confirm that F2FS is working perfectly with encryption if you wish to change filesystems. I can also confirm you can switch to a different ROM without formatting (just the usual wipes) so long as the new ROM you are installing is also encrypted. This change might mean that you can come straight from MIUI without formatting but this is completely untested by me.

Here's the link, and remember you MUST format internal storage if you are on an unencrypted build:
https://sourceforge.net/projects/xi....1-20200630-UNOFFICIAL-andromeda.zip/download
 

Mimyl

Senior Member
Nov 30, 2014
56
2
I have tried to flash after format data partition, but I had a bootloop. I was forced to do a clean install after that. I don't know why, but it's working now.

Thanks for your work :)
 

Top Liked Posts

  • There are no posts matching your filters.
  • 9
    2okPze5.png

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

    Code:
    #include <std_disclaimer.h>
    
    /*
    * Your warranty is now void.
    *
    * We are 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 us for messing up your device, we will laugh at you.
    *
    */

    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. You will need to provide your own Google Applications package (gapps). LineageOS does still include various hardware-specific code, which is also slowly being open-sourced anyway.

    Base source code is available in the LineageOS Github repo. And if you would like to contribute to the project, please visit our Gerrit Code Review.

    GPL compliance:
    yG18r6g.png


    Working:
    Almost everything

    Broken:
    You tell me

    Compatibility:
    This is for Mi Mix 3 5G (andromeda) only. Not compatible with regular Mix 3 (perseus)

    Downloads:
    https://sourceforge.net/projects/xiaomi-andromeda/files/

    Installation:
    Reboot to recovery
    Wipe /system, /vendor, /data and /cache
    Install LineageOS zip package
    Install [optional] a Google Apps package of your choice (Open GApps is advisable, but stock and super variants are not recommended!!!)

    Important notes:
    GApps can only be flashed on clean installs.
    Formatting data (all user data is wiped, including internal storage) is a must if MIUI was previously installed and device was encrypted.

    XDA:DevDB Information
    LineageOS, ROM for the Xiaomi Mi Mix 3

    Contributors
    Inkypen
    ROM OS Version: Android 10
    ROM Kernel: Linux 4.x
    Based On: AOSP

    Version Information
    Status:
    Testing

    Created 2020-06-08
    Last Updated 2020-06-08
    4
    Additional installation instructions if coming from stock MIUI:

    In order to install a custom ROM you must have an unlocked bootloader. You can apply for this at Xiaomi's official site: https://en.miui.com/unlock/

    You then need to install a custom recovery. Official TWRP builds are available, and the official maintainer has a thread with installation instructions here: https://forum.xda-developers.com/mi...covery-unofficial-twrp-xiaomi-mi-mix-t3941867

    Once you have TWRP installed, boot into recovery mode. Wipe cache,dalvik,system,vendor partitions.

    You are strongly advised to flash the latest modem firmware. You can grab that here: https://sourceforge.net/projects/xiaomi-andromeda/files/firmware.zip/download

    WARNING: You will lose all saved files on your internal storage in the next step, make a backup of important files before proceeding

    Data partition must be formatted (not wiped) to remove forced encryption. Use the bottom right "Format Data" button in the Wipe menu. You will be asked to type "yes" to confirm your choice.

    At this point your internal storage will be empty. Copy the ROM from your PC to the phone, click install in TWRP and select the ROM. If you wish to install gapps/nanodroid, copy it to the phone and install after the ROM. Once you have flashed the ROM and any add ons, you must format internal storage again. Internal storage must be completely empty for the very first custom ROM boot, once a custom ROM has been installed and you want to swap to a different one, further formatting is not necessary.

    Reboot back to system and enjoy custom ROM goodness :)
    3
    Sorry guys, I've been quiet on the XDA forum because the telegram support group is just faster and more convenient. As some of you have seen I've been working on Lineage 18. The latest build has almost everything working including 5G.

    In relation to Magisk, many devices seem to have a problem with A11 and Magisk. I have discovered a method to get it to work though:

    Boot into recovery and flash Magisk 20.4 then reboot.

    Phone will loop on Mi/Mix logo.

    Boot back into recovery and flash Magisk 21.1 then reboot.
    3
    The LineageOS team have added in Qualcomm's Bluetooth stack so I've uploaded a new build. You probably won't notice any changes because these are "under the hood" improvements, but if you have some high end headphones you may hear a difference!

    Also this build and all future builds have encryption enabled. Unfortunately this means you will need to format your data partition in order to install this build, but this is a one time only thing. I can also confirm that F2FS is working perfectly with encryption if you wish to change filesystems. I can also confirm you can switch to a different ROM without formatting (just the usual wipes) so long as the new ROM you are installing is also encrypted. This change might mean that you can come straight from MIUI without formatting but this is completely untested by me.

    Here's the link, and remember you MUST format internal storage if you are on an unencrypted build:
    https://sourceforge.net/projects/xi....1-20200630-UNOFFICIAL-andromeda.zip/download