LineageOS 20.0 (Android 13) for Mi Pad 4 Plus

Search This thread

GregEden

Senior Member
Feb 6, 2020
329
132
Melbourne
I have switched over to LineageOS from sabar's Pixel Experience. This is a cut and paste with small variations from what I tested on Pixel Experience. They are now effectively equal for me.

I did a clean install and did not restore anything. I then spent an hour in Playstore adding back all my most used apps and logging into accounts. So an absolutely clean install. I also used Fastboot to install twrp-4.19-3.7.0_9-clover-20221007-0724 before installing this ROM. I do not use Magisk.

Autorotate works in all my apps, and on the lock screen if you enable it in settings. Playstore is certified. Netflix is installable and indeed runs fine. Netflix is in SD as is always the case but on an 8" screen SD looks good.

WiFi runs at the full speed of my Internet connection, so close to 100Mbps. My connection is via a 5Ghz channel. 4G LTE runs at about 50Mbps which is only limited by my reception. Bluetooth works and my Creative headphones default to aptX HD. I have a Bluetooth DAC for my HiFi and it connects via LDAC for the best bluetooth connection you can have. My wired headphone and microphone work as well.

Microphone works and I can run Duolingo without problems (something that I have not been able to do for a while).

I use external USB-C drives. They work. They also work via the Google Files app, which was not always the case. I have a 256GB microSD card inserted and set as external storage. It works fine.

GPS locks on quickly. No issues. Compass apps and SkyMap work as they should. Google Maps and maps.me work as they should.

I have a Google One account and the Google VPN is installed and running. I also have Avira anti malware installed - the free version.

I use Google Authenticator and was able to use the camera to read the QR codes from inside the app. Google Lens works and will capture an image and look for results.

All in all a very polished product. I do not see much that needs fixing. For me the camera is only for using as a QR scanner, Google Translate and Google Lens and it will never get used for actual photography. But it works.

Inware reports that root is hidden. Thus I do not see any problem with using banking apps if you wanted to do that.
 

zyhk

Senior Member
May 9, 2020
204
81
As I wrote wrong technical information based on the previous ROM before, I will write confirmed technical information on audio based on this ROM.

  • DRC (Dynamic Range Control, i.e., compression) for all audio outputs including Bluetooth
    • disabled unlike other SDM devices (as a tweak? its switch is on though)
  • Bluetooth:
    • a2dp hardware offload disabled, i.e., no forced 48kHz resampling at the mixer unlike other SDM devices
    • codecs: SBC, AAC, aptX, aptX HD, LDAC
    • SBC & AAC: 44.1kHz fixed
    • aptX & aptX HD: 48kHz default
      • changing 44.1kHz is best for usual audio sources
    • LDAC: 96kHz & 32bit & Best effort default
      • changing 44.1kHz & 32bit & 909 kbps is best for usual audio sources
  • USB audio: "usb" HAL module used (not "usbv2" unlike Pixel6)
    • up to 96kHz without some Magisk module as usual
    • automatic detection of your DAC capabilities, and will set 96kHz & 32bit (24bit for cheap ones) mode for almost all external DAC's
 
  • Like
Reactions: GregEden

GregEden

Senior Member
Feb 6, 2020
329
132
Melbourne
As I wrote wrong technical information based on the previous ROM before, I will write confirmed technical information on audio based on this ROM.

  • DRC (Dynamic Range Control, i.e., compression) for all audio outputs including Bluetooth
    • disabled unlike other SDM devices (as a tweak? its switch is on though)
  • Bluetooth:
    • a2dp hardware offload disabled, i.e., no forced 48kHz resampling at the mixer unlike other SDM devices
    • codecs: SBC, AAC, aptX, aptX HD, LDAC
    • SBC & AAC: 44.1kHz fixed
    • aptX & aptX HD: 48kHz default
      • changing 44.1kHz is best for usual audio sources
    • LDAC: 96kHz & 32bit & Best effort default
      • changing 44.1kHz & 32bit & 909 kbps is best for usual audio sources
  • USB audio: "usb" HAL module used (not "usbv2" unlike Pixel6)
    • up to 96kHz without some Magisk module as usual
    • automatic detection of your DAC capabilities, and will set 96kHz & 32bit (24bit for cheap ones) mode for almost all external DAC's
I also tried a Baseus 24bit/48kHz USB-C headphone adaptor. Mainly just to see if it works. Paired with my Koss wired headphones it sounded pretty good. Is it better or worse than just using the headphone jack? That is hard to say. I would not be running out to buy one just for the MiPad because it is probably identical to the headphone jack quality. I have it for another device.
BTW that is streaming from Tidal at HiFi quality, but not he MQA tier.
 
Last edited:

zyhk

Senior Member
May 9, 2020
204
81
I also tried a Baseus 24bit/48kHz USB-C headphone adaptor. Mainly just to see if it works. Paired with my Koss wired headphones it sounded pretty good. Is it better or worse than just using the headphone jack? That is hard to say. I would not be running out to buy one just for the MiPad because it is probably identical to the headphone jack quality. I have it for another device.
BTW that is streaming from Tidal at HiFi quality, but not he MQA tier.
I wouldn't say much. The reasons why usual Android devices cannot deliver hi-fi music are the quality of resampling and the amount of jitter generated from battery optimizations and others.

If you like, try my Magisk modues Audio Misc Settings and Audio Jitter Silencer. They can improve the resampling quality ( to a mastering quality) and reduce the jitter.

Enjoy hi-fi music!
 

GregEden

Senior Member
Feb 6, 2020
329
132
Melbourne
I wouldn't say much. The reasons why usual Android devices cannot deliver hi-fi music are the quality of resampling and the amount of jitter generated from battery optimizations and others.

If you like, try my Magisk modues Audio Misc Settings and Audio Jitter Silencer. They can improve the resampling quality ( to a mastering quality) and reduce the jitter.

Enjoy hi-fi music!
I might dabble but it is unlikely because my tablet is mostly for casual use. Kudos to you for doing the work to create the system. I mainly use a Dell notebook (Linux) and a USB connected SMSL SU-9 DAC connected to my HiFi gear. The DAC is a mid range unit but I am happy enough with the result.

As an aside there is a setting on our MiPads Settings -> System -> Device Settings -> Mi Sound Enhancer. I think it degrades the sound when switched on. But sound is a personal thing and depends on age a lot (not music taste loss of high frequency hearing as you get older).
 
  • Like
Reactions: zyhk
I have switched over to LineageOS from sabar's Pixel Experience. This is a cut and paste with small variations from what I tested on Pixel Experience. They are now effectively equal for me.

I did a clean install and did not restore anything. I then spent an hour in Playstore adding back all my most used apps and logging into accounts. So an absolutely clean install. I also used Fastboot to install twrp-4.19-3.7.0_9-clover-20221007-0724 before installing this ROM. I do not use Magisk.

Autorotate works in all my apps, and on the lock screen if you enable it in settings. Playstore is certified. Netflix is installable and indeed runs fine. Netflix is in SD as is always the case but on an 8" screen SD looks good.

WiFi runs at the full speed of my Internet connection, so close to 100Mbps. My connection is via a 5Ghz channel. 4G LTE runs at about 50Mbps which is only limited by my reception. Bluetooth works and my Creative headphones default to aptX HD. I have a Bluetooth DAC for my HiFi and it connects via LDAC for the best bluetooth connection you can have. My wired headphone and microphone work as well.

Microphone works and I can run Duolingo without problems (something that I have not been able to do for a while).

I use external USB-C drives. They work. They also work via the Google Files app, which was not always the case. I have a 256GB microSD card inserted and set as external storage. It works fine.

GPS locks on quickly. No issues. Compass apps and SkyMap work as they should. Google Maps and maps.me work as they should.

I have a Google One account and the Google VPN is installed and running. I also have Avira anti malware installed - the free version.

I use Google Authenticator and was able to use the camera to read the QR codes from inside the app. Google Lens works and will capture an image and look for results.

All in all a very polished product. I do not see much that needs fixing. For me the camera is only for using as a QR scanner, Google Translate and Google Lens and it will never get used for actual photography. But it works.

Inware reports that root is hidden. Thus I do not see any problem with using banking apps if you wanted to do that.
hi @GregEden with which GAPPS version has you installed this rom? Thanx
 

zyhk

Senior Member
May 9, 2020
204
81
Thanks @sabar_op, I updated to the latest ROM by dirty flashing without problems.

I find the DRC is now on default unlike Nov. 1 & Nov. 6 ROM's.
I feel this DRC is rather old and not in good quality, even generates slightly clipping noise. I felt previous DRC was rather deep, but in considerably good quality.

Edit:
Corrected by comparison,


DRC switch: on (default)
(speaker_drc_enabled="true")
DRC switch: off
(speaker_drc_enabled="false")
Nov.6 ROMvery shallow compression,
but good quality
deep compression,
but good quality
Latest ROMshallow compression,
and obviously rough quality
(very like the stock one)
completely no compression,
and very good quality

Note:
speaker_drc_enabled in /vendor/etc/audop_policy_configuration.xml is the DRC switch on Android for not only internal speakers, but also USB DAC's, 3.5mm jack, Bluetooth earphones and capturing


Edit:
I think now slightly clipping I wrote is wrong. It might be rough sound caused by jitter distortion.
 
Last edited:
  • Like
Reactions: senseii

msgar

Member
Feb 9, 2011
19
10
Xiaomi Mi Pad 4
have you finally boot to the system? I've got the same problem. The Mi pad does not start, I've tried several TWRP, and different ROMs and always restart into the recovery.. don't know what else to do...
finally I've managed to do it... for some reason when I updated from version lineage-20.0-20221106-UNOFFICIAL-clover to version lineage-20.0-20221110-UNOFFICIAL-clover the system when corrupt and I had to perform all the steps in the first post: Perform clean install from TWRP (factory reset, format data and wipe system), to be able to boot the system. Previously I did all the steps except the format data and it didn't work, with all the steps the system boots just fine :)
First time I had such an issue.

Great room, using daily with no issues
 
  • Like
Reactions: GregEden

GregEden

Senior Member
Feb 6, 2020
329
132
Melbourne
Great to read that this ROM is great and steady. Can anyone help with to jump from Android 11 sabar rom to this Android 13. Am a rookie please, thanks.
It is a big leap. The new ROMs use the 4.19 kernel and the layout is different. So it has to be a clean install. You will need the latest 4.19 version of TWRP. So read the instructions carefully and do not rush.
 

GregEden

Senior Member
Feb 6, 2020
329
132
Melbourne
lineage-20.0-20221110-UNOFFICIAL-clover.zip

NikGapps-basic-arm64-13-20220908-signed.zip

twrp-4.19-3.7.0_9-clover-20221113-0854.img

So put the Lineage ROM on an SD card together with NikGAAPS and put the card in the tablet.
Use a computer to use Fastboot to write the TWRP image - a USB 2 device works best. Then boot into recovery and follow the instructions above. From TWRP format System and Data and wipe the caches. Do NOT under any circumstances wipe or format Vendor or Persist
 
Last edited:
  • Like
Reactions: syneoa

Top Liked Posts

  • There are no posts matching your filters.
  • 11
    Latest update, see 1st post
    2
    Thank you for your kind reply. I have never worked with magisk modules before. Does my device have to be rooted to install GS RAM Drive?
    I think you have to read some relevant posts before doing any modifications to the ROM.
    Yes, using magisk module = magisk installed = rooted.
    For your information, I have installed the following:
    1) Magisk v25.2-delta-6
    2) Universal SafetyNet Fix v2.4.0 - for passing safetynet
    3) systemless hosts - for AdAway
    4) God Speed Mode - GS Ram Drive v7 - for 6GB swap (max. up to 20GB and I think 6GB is enough)
    Good luck and enjoy your journey :)
    1
    Will this work evwn withiut installing/passing through the 3.10 i have been reading on the thread?

    EDIT:

    ive b::n readimg the entire 10 pages of this thread and saw an instruction saying you need to install firmware 310 or something (or is it lineage-20.0-20221003-UNOFFICIAL-clover.zip?) But somehow i cqnt find the link to it.

    Installing the latests version outright is a bad idea and just throws me back to TWRP.

    Can someone point me to the right direction? Somehow OP doesnt have the link to the "base ROM we need to install before applying the latest builds. 😊
    This is how I installed this ROM:

    Format data before installing the Pix106 TWRP. This is to prevent any encryption problems as it is based on 4.19 kernel.

    Flash latest version of ROM and your GApps package from SD card or via OTG.

    Format data again. I don't think I did this but others have and it won't do any harm.

    Reboot
    1
    OK, I get it now, thanks again.
    Another question, if I may:
    Is it possible, in this ROM version, to extend RAM by getting some memory from internal memory?
    Is there an option for that in the settings, somewhere, or in the developer options section?
    Yes, you can install some magisk module alternatively. For instant, I am using GS Ram Drive magisk module to get 6GB swap memory for my Mi PAD 4 w/o plus. The device becomes very smooth!
    1
    Finally the syatem booted! Thank you! I did the wipes wrong. Lol. On the newest version of recovery i mentioned thwre was a button for wipe data. I never saw it before. Lol. So i wiped system and wiped data then flash..now it's booting! 😍😍😍
  • 24
    Latest rom lineage-20.0-20230109-UNOFFICIAL-clover.zip :
    - January 2023 Security update
    - 4.19 Nyx Kernel
    - OSS cam HAL
    - Migrate to Xiaomi power AIDL HAL and common sdm660 powerhint
    - Build QTI thermal HAL
    - Switch to S62Pro blobs
    - Switch to original clover graphic firmware
    - Build Livedisplay

    Download

    Installation instructions :
    - Perform a backup of your current ROM (optional)
    - Use latest 4.19 TWRP created by pix106: (TWRP)
    - Perform clean install from TWRP (factory reset, format data and wipe system)
    - Flash ROM
    - Flash GApps (optional).

    Keep in mind that some LineageOS features have not been completed yet.

    What's working:
    - All hardware

    What's not working:
    Let me know.

    Source : https://github.com/LineageOS
    Kernel : clover
    Device tree : sdm660
    11
    Latest update, see 1st post
    9
    Latest rom, 1st post.
    New changelog:
    - Desember security patch
    - Build Livedisplay
    7
    Latest rom, check 1st post.
    6
    Latest update....see 1 post. Now device is certified in playstore.