[OFFICIAL] LineageOS 21 for Xiaomi Mi 6 (sagit)

Search This thread

Roddy_Perry

Member
Feb 14, 2012
29
13
Hi. I installed LOS 19.1 15/09/2022 built and Lineage Recovery. I have two sims. But it only detects one sim card. When I remove and replace the sim cards the phone detects both of them. But when I restart the phone it only detects one sim card again. Anyone having the same problem as me? Is there a solution to this?
2 SIMs functionality has not been working for me since 17.1. It has been mentioned in previous threads but it seems pretty difficult to fix and not many people use this functionality. I have a GiffGaff UK SIM that is not detected at all. I use an old phone for it as I do not need it as often. It's a shame that this cannot be fixed. But at least we have a 5 year old phone with modern Android :)
 

hanzn

Senior Member
Apr 12, 2020
52
18
2 SIMs functionality has not been working for me since 17.1. It has been mentioned in previous threads but it seems pretty difficult to fix and not many people use this functionality. I have a GiffGaff UK SIM that is not detected at all. I use an old phone for it as I do not need it as often. It's a shame that this cannot be fixed. But at least we have a 5 year old phone with modern Android :)
Weird! I'm using 2 sims since a long time. Maybe even since v16. So far this is working very well. Both sims are beign recognized. I can chose which one should use data/calls/sms.
 

Roddy_Perry

Member
Feb 14, 2012
29
13
Weird! I'm using 2 sims since a long time. Maybe even since v16. So far this is working very well. Both sims are beign recognized. I can chose which one should use data/calls/sms.
It seems that not all of us are having this problem. When I posted a similar message on a previous thread other people reported not having problems. I guess that's why it is so difficult to debug and fix.
 
  • Like
Reactions: hanzn

GPSMapper

Senior Member
Apr 11, 2009
60
16
Xiaomi 12
Hi All,
I am trying to get custom (unofficial) Android Auto apps working in LKOS 18.1/19.1 and fail.
AA has a protection which bans all applications which are installed not from Play Store.

It is however possible to tweak the system and make it thinking that App is installed ffrom Play Store by manually editing application string in /data/system/packages.xml file

On the stock MIUI and PixelExperience Plus unofficial rom - this method works, I can read and edit the file (with root), but on LOS it seems this xml file is somehow encrypted and it does not look as a normal xml file but rather as a binary with some text.

Any ideas?

1664567858430.png
 

Attachments

  • 1664567836371.png
    1664567836371.png
    26.7 KB · Views: 54
Last edited:

krpa1

Member
Jun 15, 2019
12
2
Hi, can someone please help me. I was using linage os but wanted to convert to a stock MIUI. Linage os recovery was installed and I wiped all data including cache and system partitions. After that, phone can't be discovered by the PC anymore (neither from ADB, nor from fastboot). Linage os recovery is still installed and I can enter it (and therefore enable ADB - but after enabling it PC still doesn't show the device using command ADB devices). I can also enter fastboot, but fastboot command also doesn't recognize that the phone is connected to PC. I tried on PC and laptop, using Windows and Ubuntu without any luck. First I thought it may be a driver on the PC, but now it looks like some partition on the phone that is responsible for communication with PC is deleted.
Any help is appreciated.
 

vip77

Senior Member
Jan 6, 2009
77
20
Hi, can someone please help me. I was using linage os but wanted to convert to a stock MIUI. Linage os recovery was installed and I wiped all data including cache and system partitions. After that, phone can't be discovered by the PC anymore (neither from ADB, nor from fastboot). Linage os recovery is still installed and I can enter it (and therefore enable ADB - but after enabling it PC still doesn't show the device using command ADB devices). I can also enter fastboot, but fastboot command also doesn't recognize that the phone is connected to PC. I tried on PC and laptop, using Windows and Ubuntu without any luck. First I thought it may be a driver on the PC, but now it looks like some partition on the phone that is responsible for communication with PC is deleted.
Any help is appreciated.
Try other cable? Try USB 2.0 port? Also try carefully clean phone port.
 
Last edited:

vip77

Senior Member
Jan 6, 2009
77
20
I don't understand how I can perform OTA update while keeping root on 19.1. Previously, I installed an OTA update and patched the boot.img with Magisk before rebooting. Now the reboot happens automatically and I have to flash the patched boot.img through the bootloader every time. Any advice?
 

Roddy_Perry

Member
Feb 14, 2012
29
13
Actually, I have V11.0.6.0.PCAMIXM stock OTA installed on my Mi6(Sagit).

Have any issues been reported on nightly 19.1 LineageOS?

Thanks in advance.
I just installed the latest nightly and I have to say it's working great. Battery life is not better but not worse I would say. After doing updates from LineageOS 17 I decided to do a fresh install (Format everything except Internal Storage) with the latest TWRP 3.7. It does feel like buying a new phone. Thanks to NeoArian and the LineageOS team.
 
  • Like
Reactions: pmbrs

pmbrs

Senior Member
Aug 18, 2014
107
14
Lisbon
Xiaomi Mi 6
I just installed the latest nightly and I have to say it's working great. Battery life is not better but not worse I would say. After doing updates from LineageOS 17 I decided to do a fresh install (Format everything except Internal Storage) with the latest TWRP 3.7. It does feel like buying a new phone. Thanks to NeoArian and the LineageOS team.
Thank you @Roddy_Perry for your feedback!
 

Dester.exe

Member
Jul 7, 2018
19
23
Google Nexus 4
OnePlus X
Tried everything except USB 2.0... I dont have a device with 2.0.
I had the same issue. It is a Windows 10 USB 3.0 issue.
Create a .bat file with the following content:


@)echo off reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "osvc" /t REG_BINARY /d "0000" /f reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "SkipContainerIdQuery" /t REG_BINARY /d "01000000" /f reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "SkipBOSDescriptorQuery" /t REG_BINARY /d "01000000" /f pause
 
  • Like
Reactions: krpa1

krpa1

Member
Jun 15, 2019
12
2
I had the same issue. It is a Windows 10 USB 3.0 issue.
Create a .bat file with the following content:


@)echo off reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "osvc" /t REG_BINARY /d "0000" /f reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "SkipContainerIdQuery" /t REG_BINARY /d "01000000" /f reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "SkipBOSDescriptorQuery" /t REG_BINARY /d "01000000" /f pause
Mate, you just saved my phone. Thanks a lot.
 
  • Like
Reactions: Dester.exe

Top Liked Posts

  • There are no posts matching your filters.
  • 5
    Due to the QPR2 update (the march security patch/pixel feature drop) introduced some breaking changes, which deprecated our radio hal. We try to get sagit, and other devices with the same issue, supported again but in order to not hold newer devices from shipping with newer security patches again, the affected devices have been removed from the build list for now.
  • 31
    2okPze5.png


    Code:
    [COLOR="Purple"]#include <std_disclaimer.h>[/COLOR]
    [COLOR="Navy"]/*
    * 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.
    */[/COLOR]

    Introduction
    LineageOS, an open-source Android distribution, is available for several devices,
    with more being continuously added thanks to the biggest, yet ever growing, Android open-source community.
    Join us and breathe new life in your device, be it old or new.
    If you don't know LineageOS and would like to read about it before installing it you can take a look at the official Website.

    Features
    Individuality

    Customization is paramount to productivity.
    That’s why LineageOS promises to push for user personalization and preference.
    Everyone is unique and your device should be too.
    Security
    Your data, your rules. With powerful tools such as Privacy Guard, you are in control of what your apps can do whenever you want.
    Trust will help you understand the security of your device and warn you about possible threats.
    We take security very seriously: that’s why we deliver security updates every month to all our supported devices.
    And to make your device more secure, lock everything behind an enhanced lock screen.
    Longevity
    LineageOS extends the functionality and lifespan of mobile devices from more than 20 different manufacturers thanks to our open-source community of contributors from all around the world.

    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.

    Installation:
    If you are on stock OS, you need a custom recovery first. You can get the recommended recovery in the official installation instructions link below.
    If you are coming from stock or other ROMs, you need to make a factory reset.
    As always, make sure to backup before installing this ROM.

    More detailed instructions at:
    Install LineageOS on sagit

    Downloads
    Download LineageOS for Xiaomi Mi 6.

    If you prefer TWRP over Lineage recovery, you can get it here.
    More information about Google apps can be found here.

    Source code:
    xiaomi msm8998 kernel
    sagit specific device tree
    xiaomi msm8998-common device tree

    Changelog:
    Changes for sagit

    Bug reports:
    How to submit a bug report
    LineageOS GitLab

    Donate to support development:
    Donate via PayPal to NeoArian
    Donate via PayPal to mikeioannina
    Donate via PayPal to LineageOS
    9
    As some of you already noticed, we started working on LineageOS 19.1 for Mi 6 and Mix 2. You can find builds here: https://sourceforge.net/projects/ephedraceae/files/sagit/lineage-19.1/ Note that google apps are included.
    They latest build should be working pretty good, but swiping up on lockscreen (when not using fingerprint sensor) needs to be done slowly (the system thinks that it's an accidental swipe up, i didn't figure that out yet).

    You can find automated release messages about future builds here: https://t.me/releases_by_arian
    5
    Due to the QPR2 update (the march security patch/pixel feature drop) introduced some breaking changes, which deprecated our radio hal. We try to get sagit, and other devices with the same issue, supported again but in order to not hold newer devices from shipping with newer security patches again, the affected devices have been removed from the build list for now.
    5
    Earlier today, this happened in the Releases by Arian Telegram group. If this ends up materializing as an official LineageOS 20 image when the time comes, I'm going to be really grateful, @NeoArian. Thanks for not forgetting this device.

    I show off Phone Information screenshots of my 5 year-old Mi 6 phone to geeky friends, and they are always truly amazed.

    LineageOS 20.0 for Xiaomi MI 6 (sagit)


    📅 Build date: 2023-01-03
    🛡️ Security patch: 2022-12-05
    💬 Variant: VANILLA

    🗒️ Changelog (https://raw.githubusercontent.com/arian-ota/changelog/lineage-20/sagit.txt)

    Download
    ⬇️ lineage-20 (https://github.com/arian-ota/ota/re...5e/lineage-20.0-20230103-UNOFFICIAL-sagit.zip)
    ⛭ GitHub release / additional files (https://github.com/arian-ota/ota/releases/tag/20.0-sagit-704da75e)

    SHA-256 checksum
    704da75ed57272b438699cc1d0b918626335aced126d05a4971d045bb71351ac

    #sagit
    4
    I'm posting a total success with my upgrade to 18.1:

    - Previous version was last 17.1 image
    - I had problems flashing lineage recovery so I flashed latest TWRP (it ended up being an issue with the cable, though)

    Once booted into TWRP:
    - Flashed latest firmware just in case, but I'm pretty sure I was up to date
    - Dirty flashed LineageOS 18.1 20210603
    - I flashed MindTheGapps
    - I flashed @NeoArian's Miui camera from late in the 17.1 thread.

    Everything worked flawlessly, Miui camera included! 😎 I only had to reverse the back button again in the preferences.

    I had a weird charging issue since January (it would only charge if I plugged the cable in and then rebooted), which is now gone too.

    11/10, this is awesome!