[ROM][OFFICIAL] LineageOS 18.1 - Xiaomi Mi 8

Search This thread

aittamattia

Senior Member
Feb 28, 2017
435
135
new test build compiled with OSS audio hal changes by: YumeMichi
https://drive.google.com/open?id=1DJKUZ9SsKjv4imlJ5RoHzhlgNKfnmQpV

Please test various audio scenarios and report back with feedback compared to previous versions.

Sometimes I use an Usb-C to mini jack adapter and with today's build audio isn't working when I connect the adapter, I'm pretty sure it was working with previous build, I've tried two different adapters, so..

For example, using YouTube app, once I plug in the adapter the audio stops working and after a few seconds the video starts to lag and go like in slow motion, if I unplug the adapter the playback resumes correctly after a couple of seconds. I managed to get the logcat, I sent you a PM.
 
  • Like
Reactions: infrag

YumeMichi

Senior Member
  • Nov 22, 2015
    481
    2,532
    Fuzhou
    blog.ikke.moe
    Sometimes I use an Usb-C to mini jack adapter and with today's build audio isn't working when I connect the adapter, I'm pretty sure it was working with previous build, I've tried two different adapters, so..

    For example, using YouTube app, once I plug in the adapter the audio stops working and after a few seconds the video starts to lag and go like in slow motion, if I unplug the adapter the playback resumes correctly after a couple of seconds. I managed to get the logcat, I sent you a PM.

    Try this kernel. https://drive.google.com/open?id=1w3DgVD07d8PEGrXkUA3QZE8hCh1W-6eQ
     

    G A S T

    Senior Member
  • Apr 20, 2018
    177
    77
    Xiaomi Mi 4
    Samsung Galaxy S6
    I appreciate your great effort.
    You are big @infrag
    Thank you

    ---------- Post added at 03:39 PM ---------- Previous post was at 03:38 PM ----------

    I appreciate your great effort.
    You are big @infrag
    Thank you

    I can only second that. A few days ago I saw what's going on in the repos atm...

    https://review.lineageos.org/c/LineageOS/hudson/+/267517

    and what was done there...
    https://github.com/LineageOS/hudson/commit/3b37487592976edc5e92d1ad34669d3e2245e6f7

    Huge thanks @infrag for providing us LOS 17.1 that fast! :cowboy:
     
    • Like
    Reactions: pat__boy

    YumeMichi

    Senior Member
  • Nov 22, 2015
    481
    2,532
    Fuzhou
    blog.ikke.moe
    I flashed the kernel but nothing has changed, still the same behavior. I sent you a PM with the logcat file.

    Try this patch with my kernel.
    https://drive.google.com/open?id=1cNZntu9LabZfYOywc6QrRZYCltpb7JZ_

    Replace 2 files in /vendor/etc

    Permission fix:
    PHP:
    chmod 644 /vendor/etc/audio_platform_info.xml
    chmod 644 /vendor/etc/mixer_paths_tavil.xml
    chcon u:object_r:vendor_configs_file:s0 /vendor/etc/audio_platform_info.xml
    chcon u:object_r:vendor_configs_file:s0 /vendor/etc/mixer_paths_tavil.xml
     

    aittamattia

    Senior Member
    Feb 28, 2017
    435
    135
    Try this patch with my kernel.
    https://drive.google.com/open?id=1cNZntu9LabZfYOywc6QrRZYCltpb7JZ_

    Replace 2 files in /vendor/etc

    Permission fix:
    PHP:
    chmod 644 /vendor/etc/audio_platform_info.xml
    chmod 644 /vendor/etc/mixer_paths_tavil.xml
    chcon u:object_r:vendor_configs_file:s0 /vendor/etc/audio_platform_info.xml
    chcon u:object_r:vendor_configs_file:s0 /vendor/etc/mixer_paths_tavil.xml

    Yeah, this made it! My adapter is working fine now, no issues with it and also with my bluetooth speaker. :good:
     

    samson65

    Senior Member
    Jan 10, 2009
    50
    2
    Android Auto still not working. Telephone is freezing and the screen in the cars stays black.
    Hope the official version is comming soon.
     

    infrag

    Senior Member
    Sep 3, 2008
    1,624
    4,371
    Perth
    I can only second that. A few days ago I saw what's going on in the repos atm...

    https://review.lineageos.org/c/LineageOS/hudson/+/267517

    and what was done there...
    https://github.com/LineageOS/hudson/commit/3b37487592976edc5e92d1ad34669d3e2245e6f7

    Huge thanks @infrag for providing us LOS 17.1 that fast! :cowboy:

    Make sure to thank bgcngm also as he has done a tonne of work for our Xiaomi devices.
    Also thanks to YumeMichi for various things including recent audio OSS work thats been done.
     

    Ignifazius

    Member
    May 9, 2012
    22
    11
    logs?
    I cant test this as I dont have android auto.

    I uploaded some for an earlier Version (see here). I'm not sure if it was logged correctly, since the phone died and the logging app with it.
    I'll try to get some fresh logs over the day.

    Edit: As promised, new logs are attached below.
     

    Attachments

    • Log_2020-03-03_11-37-28.txt
      304 KB · Views: 23
    Last edited:
    • Like
    Reactions: infrag and samson65

    iamROOTX

    Senior Member
    Aug 4, 2016
    107
    21
    I've never tried it.
    Since your not encrypted you'd have to make sure to flash the patch to not encrypt.
    Feel free to try and report back.

    It work but which gcam ur using. Do u have a link? And on home screen the dock is hude app to the buttom of the sceen. Huge space
     

    najabi

    Senior Member
    Jan 14, 2018
    234
    83
    45
    Bilbao
    I have tried to install latest build as in OP but reboots to recovery (orangefox)
    My drill was:
    1) wiping all partitions except internal storage
    2) flashed OP firmware, march 4 rom and nano gapps
    3) reboot system

    no error messages during process.. :(
    reverted to previous rom backup successfully
     
    Last edited:

    mar.ur

    Senior Member
    Oct 30, 2016
    982
    350
    Sosnowiec
    OnePlus 6
    I have tried to install latest build as in OP but reboots to recovery (orangefox)
    My drill was:
    1) wiping all partitions except internal storage
    2) flashed OP firmware, march 4 rom and nano gapps
    3) reboot system

    no error messages during process.. :(
    reverted to previous rom backup successfully
    Format data with yes or flash DFE if your data is decrypted and you don't want to encrypt data.
     
    Last edited:

    mr3p

    Senior Member
    Oct 14, 2013
    475
    126
    Miami
    It work but which gcam ur using. Do u have a link? And on home screen the dock is hude app to the buttom of the sceen. Huge space

    There are multiple gcam threads which you can read thru if that is of interest. I'm always confused by statements about the home screen as if you don't like the default, why not change it or install a launcher from Play store of your preference? At some point, larger versions of Andrdoid 10 Gapps will be released and include Pixel Launcher. Happy testing.

    ---------- Post added at 08:05 PM ---------- Previous post was at 07:35 PM ----------

    @infrag,
    Prior LOS17 build passed SafetyNet CTS, latest versions fails. Kernel change? Not a critical issue just passing it on.
     
    Last edited:

    Top Liked Posts

    • There are no posts matching your filters.
    • 6
      @infrag may we have a new unofficial once the June security update has been merged? That would be great! Thanks much!
      Uh yep sure. Sorry didnt think anyone was using unofficial builds. I'll upload one soon. If you prefer I can also upload stock lineage kernel with safetynet fix and you can flash that with latest los builds (till there are kernel changes you care about).
      4
      Either one appreciated but the unofficial will be easier to update I guess since I can just flash it without having to restore everything (different signatures, right?). And yes confirmed, I'm just after the safetynet w/o need for Magisk... guess it's the same for many others and the LOS official policy is a bit stubborn in my view ;)
      I've uploaded both.
      2
      Thank you for helping me with camera app, all you mates posting above!
      2
      FYI:

      => New 12.5-Firmware incoming for our devices. 😉
      2
      Looks good, but is there any other solution which would not require flashing magisk etc? I am fed up with flashing, bootloops, backups... I mean I can do this, but I already lost too much time to make my Dipper work as a daily device. And my banking app works fine now...
      Just use gcam. Its far easier. Ask for someone to post a link.
    • 68
      https%3A%2F%2Fimg.xda-cdn.com%2Fy-LtXHGCDBH0KxFw9MxWAPF3guk%3D%2Fhttp%253A%252F%252Fi.imgur.com%252F2okPze5.png

      LineageOS is a free, community built, aftermarket firmware distribution of Android 10, 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. 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:


      Device tree source code: LineageOS/android_device_xiaomi_dipper
      Kernel source code: https://github.com/LineageOS/android_kernel_xiaomi_sdm845




      Compatibility:
      Compatible with Xiaomi Mi 8
      Builds are based off the Xiaomi's Android 10 firmware.
      Downloads:
      Official download links: https://download.lineageos.org/dipper

      Lineage 18.1 Kernels:
      15/06/2021

      Lineage 18.1 Unofficial builds:

      Build 15/06/2021



      Recommended firmware is latest MIUI stable firmware.



      Notice:
      No custom kernels are supported in this thread. Only stock kernel and official builds will be supported. No bug reports if that's not the case.

      Installation:
      Reboot to recovery (TWRP recovery for Mi 8)
      Format /system, /data and /cache
      Install MIUI firmware
      Install LineageOS zip package
      Install [optional] a Google Apps package of your choice

      Important notes:
      * Required * firmware version must be based on MIUI *-based builds.
      Formatting data (all user data is wiped, including internal storage) is a must if MIUI was previously installed and device was encrypted.

      All LineageOS team would like to thank everyone involved in helping with testing, coding, debugging & documenting! Enjoy!
      19
      so the newest build 04/11/2019 uses Xiaomi Q blobs.
      Therefore it has some bugs:
      I havent got bluetooth audio working yet. Bluetooth calls seem to work fine though.
      Sound: Speaker works if you make a phone call first and switch to speaker during the call. After that everything else starts working.
      Edit: fixed. - GPS all satellites should show up now.
      Android Auto fixes probably havent been added yet to lineage but when anything shows up I'll add it.

      The reason this build took so long to be released is that Q radio blobs kept causing a reboot when data was used and switched to low power mode. I believe I have fixed this.


      https://drive.google.com/open?id=1bhurP2zIyZf93jJzSN1IBbiMBhmbSd_h

      Edit: Uploaded the correct build now. Also added in gps fix
      17
      Also fyi I'd hoped to have anther build up by now but since lineage has changed to 17.1 branches instead of 17.0 my build system is a bit of a mess. Waiting for all the repos to be updated to 17.1 before releasing anything. Hopefully it wont be too long...
      15
      18/12/2019 finally a working q build with q blobs and working audio.
      havent tested it a lot so any bugs let me know. There will be a v2 of the audio fix/change. This fix was just to make it work. :)
      14
      new build in OP.
      For android auto users unless I say otherwise I have not fixed your problem yet. :|