[ROM][13][clover] LineageOS 20 for Xiaomi Mi Pad 4 [UNOFFICIAL]

Search This thread

25agosto

Senior Member
Oct 6, 2012
68
5
Varese
Hi all. I'm under 2022-1111, what if I want to install latest and what to install magisk? Do I have to lost data/app/settings I have from the first flash? I don't really want that happen, but if I have to, can I install only magisk without updating to latest and losing anything?
I ask because i don't remember how the hell i got this rom working, and everytime i get into recovery a receive just a few eerors:

Failed to mount '/data' (invalid argument)
Unable to recreate /data/media folder

Updating partition details...
Failed to mount '/data/ (invalid argument)
...done
Unable to mount storage
failed to mount '/data' (invalid argument)

Full SELinux support is present.
Unable to mount /data/media/TWRP/.twrps
MTP enabled
 
Last edited:

azz_kikr

Senior Member
Oct 23, 2010
164
14
Seems like the charging bug is persistent, @kyasu

Added logcat when pluggin in the power cable

Clean flash. Tried reset, stays the same until reboot of tablet
 

Attachments

  • logcat_01-10-2023_23-20-42.txt
    35.8 KB · Views: 17

azz_kikr

Senior Member
Oct 23, 2010
164
14
Hi all. I'm under 2022-1111, what if I want to install latest and what to install magisk? Do I have to lost data/app/settings I have from the first flash? I don't really want that happen, but if I have to, can I install only magisk without updating to latest and losing anything?
I ask because i don't remember how the hell i got this rom working, and everytime i get into recovery a receive just a few eerors:

Failed to mount '/data' (invalid argument)
Unable to recreate /data/media folder

Updating partition details...
Failed to mount '/data/ (invalid argument)
...done
Unable to mount storage
failed to mount '/data' (invalid argument)

Full SELinux support is present.
Unable to mount /data/media/TWRP/.twrps
MTP enabled
Put ROM and Magisk on sd or sideload, then full flash it from there
 
Last edited:

huracancun

Member
Nov 22, 2017
5
0
I just downloaded the latest version and flashed it via TWRP.

I agree that this ROM is great.
thanks, i was trying, but now the TWRP now dont go to the boot image. The recovery is 3.7.0_9-6
photo_2023-01-12_11-25-01.jpg
 

Slagathor

Senior Member
Apr 29, 2010
596
196
Tilburg
Just wanted to say thanks for this awesome ROM for my Mi Pad 4. MIUI have given up on security updates but Clover and Lineage are top notch.

Works great and haven't found any problems yet.
 

SINXYZ

New member
Jan 19, 2023
1
0
This rom is amazing.
Thanks for your effort.

My tablet is Mi pad 4 Plus.
Flashed Rom ver. lineage-20.0-20230106 and MindTheGapps-13.0.0-arm64-20221025_100653 by official twrp-3.7.0_9-0-clover

- Bluetooth earphone works with Aptx HD
- GPS and Wifi work
- Front and rear camera work
- Speaker works
- Gyroscope works

But I have below 2 issues

1) A few seconds delay before touch input is recognised on screen wake. (Seems this issue were mentioned by other members before)

Fingerprint unlock is recognised immediately.(Only Mi Pad 4 Plus with fingerprint scanner)
I have waited a few seconds for the screen to recognise my touch input, and then I can use pattern unlock.

2) Smart cover is not functioning. (Stock rom no this issue before I flashed LineageOS 20)

May I know if the FlipFlap package is included?
https://github.com/LineageOS/android_packages_apps_FlipFlap

========
I have had enough for the stock rom issues (e.g. GPS not found, battery drain....)
No fix, no android upgrade (They responded that the software team was focusing on handset support)
I thought they gave up the market share in tablets.
However, Mi Pad 5 was released a few years later. (Mi Pad 4 - 2018, Mi Pad 5 - 2021)

It is hard to find words to express my gratitude. (Stock rom => This rom)
 

twu2

Senior Member
Oct 25, 2009
177
278
Taipei
blog.teatime.com.tw
Hi.
When I plug in the charging cable, it does not charge. Only after a reboot. Does anyone else have this problem?
This might caused by kernel.
@kyasu could you modify this commit? https://github.com/kyasu/android_ke...mmit/60f214f8aa4a14e2a26dc875a9277b2b51c884b7

I try to build rom from your github source. When build the kernel CONFIG_MACH_XIAOMI_SDM660 is not defined.
so we got
sec_access = (addr & 0x00FF) >= 0xBA;
This will cause my mipad4 stop charge sometimes, only reboot will fix it.
after change it to
sec_access = (addr & 0x00FF) > 0xD0;
it will solve this issue.

based on xiaomi's clover source: https://github.com/MiCode/Xiaomi_Ke...ver-o-oss/drivers/power/supply/qcom/fg-util.c
in fg_write()/fg_masked_write(), sec_access should be:
sec_access = (addr & 0x00FF) > 0xD0;
 
Last edited:
  • Like
Reactions: psdp and kyasu

Artsi59

Member
This might caused by kernel.
@kyasu could you modify this commit? https://github.com/kyasu/android_ke...mmit/60f214f8aa4a14e2a26dc875a9277b2b51c884b7

I try to build rom from your github source. When build the kernel CONFIG_MACH_XIAOMI_SDM660 is not defined.
so we got
sec_access = (addr & 0x00FF) >= 0xBA;
This will cause my mipad4 stop charge sometimes, only reboot will fix it.
after change it to
sec_access = (addr & 0x00FF) > 0xD0;
it will solve this issue.
This is known bug. I have this problem also.
I think @kyasu should fix this. I can't build kernel.
 
  • Like
Reactions: kyasu

Top Liked Posts