yashsingh1/xdaforums huggingface dataset:
[Mi 3 Android Development] HarDik Naik:
I am getting below error while installing Gapps
[Mi 3 Android Development] r30857:
Same here, but you can use gapps arm pico type to avoid this issue, serch it from web.(it still under test stage, but it works)
[Mi 3 Android Development] SimonVN:
I have the same issue.

I am downloading the new update. If it works I will update this post.
[Mi 3 Android Development] kkshethin:
Can't boot on Xiaomi Mi 4W (cancro)

Tried lineage18.1 updated rom.

Tried with and without gapps. Tried with and without format data.

Does not boot.

Reboots to recovery
[Mi 3 Android Development] tarkzim:
Please provide logs, like last_kmsg or something, otherwise I can't help you.
[Mi 3 Android Development] smtaba:
Hi

file manager does not work well, when you want to copy a file in the Android folder Obb, it does not work. Thanks
[Mi 3 Android Development] SniperWolf422:
When i play games on this rom it crashes the game ....and basically it's randomly restarts

And you should add more customiszation .....although i like the rom very much
[Mi 3 Android Development] tarkzim:
Logs please.
[Mi 3 Android Development] SniperWolf422:
idont know about logs but a attached a bugs report
[Mi 3 Android Development] SniperWolf422:
plese solve this problem i am using this rom and the rom stucks so please update it
[Mi 3 Android Development] tarkzim:
As i see your logs gave me nothing useful for your issue, and i didn't have any problem like you so i can't really help with this, please learn to capture the logcat or last_kmsg after random reboots thanks.
[Mi 3 Android Development] SniperWolf422:
So i fixed random reboot but When i play games on this rom the game crashes here are the logs..sometimes system ui dosent respond
[Mi 3 Android Development] SniperWolf422:
Here's more logs and bug report
[Mi 3 Android Development] littebear:
can't reboot to system but TWRP

rom:lineage-18.1-20210112-UNOFFICIAL-cancro

hope you can help me ,thank you​
[Mi 3 Android Development] tarkzim:
That's not the logs i need, please give me your last_kmsg after auto-rebooting.
[Mi 3 Android Development] tarkzim:
New build released

Updated to Android 11.0.0_r29 with February security patches.

Upstream updates and fixes.

Minor updates.
[Mi 3 Android Development] tiantiantian:
Hi. Thank you for supporting such an old device with the latest android OS. I would like to ask is it possible to change selinux into enforcing mode? Thank you.

Also, neither opengapps pico nor bitgapps can be installed on MI 3W after installing this rom. Insufficient system storage space error.
[Mi 3 Android Development] tarkzim:
SELinux needs source changes, but i don't have time to do that so no.

about gapps, i used BitGAPPS R20, you gotta find it your self, seems like their service has some trouble.
[Mi 3 Android Development] tarkzim:
New build released

Fixed boot issues on Mi 4.

Fixed IR Blaster on Mi 4.
[Mi 3 Android Development] kkshethin:
booted in mi4. thanks. thank you very much
[Mi 3 Android Development] Zurano:
Hi,

my Poco F1 has died and I have recovered my Mi4 as daily until I get a new phone. I have updated with the last LOS ROM and everything is working except for bluetooth audio. Is it working in this ROM?
[Mi 3 Android Development] tarkzim:
My bluetooth headset working with my Mi 3, what's your problem with BT audio? Media or phone call?

please describe it as detail as possible, thanks.
[Mi 3 Android Development] Zurano:
Sorry, for the confusion, Im using the last oficial lineage ROM: https://lineageosroms.com/cancro/ , not yours. I will try yours now that I know that bluetooth will work.

Thank you for your work :)

Edit: I can canfirm that audio over Bluetooth is working. Thank you again!
[Mi 3 Android Development] h4lik:
Thank you @tarkzim for your support.🙂

Mi4 works like a charm, but for me with BiTGApps-arm-11.0.0-R20_signed only. Other Gapps cause "No space left..." error, even pico.
[Mi 3 Android Development] Pawel_:
is it possible to increase system partition?
[Mi 3 Android Development] Pawel_:
I am getting such error on TWRP 3.2.1-0

selinux_android_file_context: Error getting file context handle (No such file or directory)

script aborted: assert failed: xiaomi.verify_baseband("MPSS.DI.4.0") == "1"

assert failed: xiaomi.verify_baseband("MPSS.DI.4.0") == "1"error: 25

Updater process ended with ERROR: 1

I:Install took 0 second(s).

Error installing zip file '/sdcard/lineage-18.1-20210209-UNOFFICIAL-cancro.zip'

Updating partition details...

What is it?

Phone under Windows is shown as Mi3W it seems that W makes difference then.

Is there any hope to get it working with something newer that 4.4.4 that I have already?
[Mi 3 Android Development] tarkzim:
You have to install latest firmware from MIUI for your model.

Download them from HERE , choose the latest one for your variant.
[Mi 3 Android Development] SimonVN:
@tarkzim Thank you. The latest version boots on my phone. Can I ask if you are planning to work on Android 12 (S) for cancro?
[Mi 3 Android Development] tarkzim:
Isn't it too early to ask such question?

But I guess I will do it.
[Mi 3 Android Development] sajjadaf:
Hi. Tanks from your support.i am using the latest version on mi4w.i have some issues.

1.some times touch screen don't work well.

2.when i try to reboot or turn off it reboot to safe mode.

3.plz make rom with more newer apps like gallery or music player or browser i have to disable them and replace newer google apps like phone app or message.

4.plz update installer app like hovoc 3.4 that showa app version.

Tnq ....
[Mi 3 Android Development] tarkzim:
New build released

Updated to Android 11.0.0_r32 with March security patches.

Upstream updates and fixes.

Minor updates.
[Mi 3 Android Development] SniperWolf422:
I am the first one who download it Tarkzim love your work
[Mi 3 Android Development] sajjadaf:
Hi plz reply me in #60 post
[Mi 3 Android Development] dicknorbert:
What works to root.....supersu or magisk?

I tried with both but without success.....
[Mi 3 Android Development] tarkzim:
Latest Magisk (22.0) works for me.
[Mi 3 Android Development] VerdghXeljior:
Hi, can I request for a feature? Can you add the "disable button backlight"?
[Mi 3 Android Development] sajjadaf:
Hi. Tanks from your support.i am using previous version on mi4w.i have some issues.

1.some times touch screen don't work well.

2.when i try to reboot or turn off it reboot to safe mode.

3.plz make rom with more newer apps like gallery or music player or browser i have to disable them and replace newer google apps like phone app or message.

4.plz update installer app like hovoc 3.4 that showa app version.

Tnq ....
[Mi 3 Android Development] gasleak08:
how to fix this?
[Mi 3 Android Development] tarkzim:
That's required sources change, and i don't have time to deal with SELinux stuff on this device yet.

You can only have to wait.

Try to disable physical buttons and use navigation gestures instead, maybe i will consider to add options to disable the button light in the future.

Please don't post the same content again, there is no such problem like 1 and 2 on my device,

you should check your setup like firmware or your panel quality.

for 3 and 4 it's not gonna happen, i will only follow LineageOS's sources, and i don't plan to support other ROMs for now.
[Mi 3 Android Development] sajjadaf:
Hi @tarkzim . I found a new big bug.when using a call and phone is near the 👂 screen off but touch working and it make a lot of problems.like turn on/off speaker/mute/Bluetooth/airplane mode.....

Sorry for my bad English.Do you understand my problem??
[Mi 3 Android Development] sajjadaf:
No reply to my problem and have to change to mokee 10 so im wating for new update and more fixes.

When using a call screen light turn off but touch still working and enoying .
[Mi 3 Android Development] Pawel_:
How to update baseband to v4 in Mi3W?

I am geeting error: It appears you are running an unsupported baseband. Please visit.... but link is not working it shows info that page was deleted.
[Mi 3 Android Development] tarkzim:
Download the latest firmware for your variant from HERE

Install it and reflash the ROM again.
[Mi 3 Android Development] Pawel_:
Hi. Yes it helped but it wasn't easy process. For future reference:

1. Go to this page (latest ROMS) https://xiaomifirmwareupdater.com/miui/cancro/

2. Find highest number for your device. In my case it was V10.1.1.0.MXDCNFI for MI 3 / Mi 4 China

3. Download Fastboot version and unzip it to folder.

4. Download latest Platform Tools https://developer.android.com/studio/releases/platform-tools.html

5. Merge those two folders so you have fastboot.exe and scripts on one level.

6. Run flash_all.bat it will flash many partitions some may fail. Check if NON-HLOS.bin not failed.

7. This will reset your recovery to MiRecovery but with updated modem(baseband) you can use Official TWRP

8. Download https://eu.dl.twrp.me/cancro/ on my Mi3W I have tested twrp-3.5.1_9-0-cancro.img

9. Flash it from fastboot fastboot flash recovery twrp-3.5.1_9-0-cancro.img

10. Download Andorid 11 rom. Tested with lineage-18.1-20210307-UNOFFICIAL-cancro.zip

12. Reboot to recovery, copy zip to internal memory

13. Choose install and select zip.

14. It should flash without any errors.

Congratulations you have Android 11 on phone from 2013.

Enter fasboot by power + vol down.

Enter recovery by power + vol up.

In case of errors with system partition: fastboot format system

Special thanks for @tarkzim for rom and support.
[Mi 3 Android Development] gasleak08:
can i request in wifi connectivity, add to save network connect, i always had hidden network it doesnt auto connect, can you add connect button ? anyways thanks for this rom hope more updates to come to make this rom stable.
[Mi 3 Android Development] Pawel_:
I see one issue after flashing MIUI firmware (in script it is flashing partitions) to update baseband. My storage was cut to 16GB where phone is 64GB version. In setup I se now 6,6 GB used of 16GB.

Is there easy way to fix it?
[Mi 3 Android Development] G A S T:
Wow! I must confess, that I'm really impressed what you're doing here.

I'm a Mi 4 LTE owner and currently still running Windows 10 Mobile on the device because the official LOS 14.1 support was dropped over 2 Years ago and nobody was willing to bring/provide newer LOS-Version for that pretty good device (I'm still impressed about the high quality and longlivity of its inbuild battery that just does not get old). So I'm happy about you're attempt and think it's a good thing only to follow the LOS ressources and guidelines.

If you will ever find the time to deal with the SELinux-stuff, do you intend to make your ROM official?

[This would be absolutely incredible! 🙃]
[Mi 3 Android Development] keithcervent:
I downloaded and installed lineageos 18.1 on MI4, and there was a problem with the wifi link. The network is restricted but can be accessed normally and the Riru EdXposed framework cannot be installed on Magisk. Once the Riru EdXposed framework is installed, the phone cannot be started. Hope the author can fix it. Thank you
[Mi 3 Android Development] keithcervent:
Lineageos 18.1 has MagiskManage module incompatibility problem. It is incompatible with Riru EdXposed and LSPosed modules. EdXposed cannot be activated. There is a problem and the phone cannot be started. I hope the author can fix it. Thank you.
[Mi 3 Android Development] smilehtc:
Hi @tarkzim, first of all I wanted to thank you for your great work on this rom, it is simply one of the best if not the best I have ever tried on mi4 lte even if in early stage.

I have this problem, if I install magisk 22.0 (also 22.1) the microphone stops working in every app except normal voice calls. If i dirty flash over the rom loosing root the mic works in every app but stop working again if i try to reinstall magisk.

anyone has this problem on the last build ? dunno if this problem was present in precedent builds because i have clean install the last one.

I also have some spontaneous reboots sometimes (it happens more often with tiktok app) but nothing I can't live with for now.
[Mi 3 Android Development] tarkzim:
New build released

Updated to Android 11.0.0_r34 with April security patches.

Upstream updates and fixes.
[Mi 3 Android Development] tarkzim:
New build released

SELinux is now enforcing.

Please let me know if something is broken after this build, like IR on Mi 4 since i can't test it on Mi 3.

Uprev Health HAL to 2.1.
[Mi 3 Android Development] gasleak08:
thank you for updates

mi 3 not working apps force close like browsers gmail, tried to clear data and re install apps same thing appsforce close, tried format data cannot sign in account force close and apps again cannot add anything

booting time (not frst boot) takes long
[Mi 3 Android Development] tarkzim:
Please provide logcats, apps on my Mi 3 are all fine.
[Mi 3 Android Development] sajjadaf:
Hi tanks a lot for your work and support.but please pay attention to my problem in #70 post.i new version this bug anoying.when using a call proximity sensor turn off screen light!but touch still working...like on/off every option on screen. Try a call and put your hand on sensor.so test touch...

Please solve it 🙏☺️
[Mi 3 Android Development] tarkzim:
New build released

Fixed crash/boot issues of previous build.

First boot after clean flash might be stuck, simply reboot manually will solve it.

Disable DT2W feature, which preventing screen from going sleep while calling or locked.
[Mi 3 Android Development] dicknorbert:
Can not install this last version.. I got twrp 3.4.0..can someone help me please... This is the first time I can not install lineage 18...after advanced clear... System cache data.. Etc
[Mi 3 Android Development] tarkzim:
Error message already on your screen, the file is corrupted, please re-download it and update your twrp to latest 3.5.2.
[Mi 3 Android Development] dicknorbert:
Twrp 3.5.1...or 3.5.2 is not only for Android 9????

As I see is written twrp cancro 3.5.2_9.0
[Mi 3 Android Development] tarkzim:
that means nothing, just the versioning that twrp get built under 9.0 trees, you can flash it without any problem.
[Mi 3 Android Development] dicknorbert:
OK.. I will try.... Thanks so much
[Mi 3 Android Development] sajjadaf:
Tnq in latest version you mean solve proximity sensor bug???
[Mi 3 Android Development] tarkzim:
Yes.
[Mi 3 Android Development] sajjadaf:
In previous versions everything work well.just proximity sensor bug.that seems solved in latest build.

Now i am on mokee 10 so i must migrate to your best android 11 rom.

Tnq for your support.
[Mi 3 Android Development] tarkzim:
New build released

Bring back missing button brightness settings.

Resolved some SELinux denials that causing some bootloop issues.

Fixed AudioFX and audio effects related issues.
[Mi 3 Android Development] tarkzim:
New build released

Fixed Hardware Encryption.

Updated build fingerprint to match latest MIUI Global Stable.
[Mi 3 Android Development] sajjadaf:
Hi what means fingerprint for mi4???
[Mi 3 Android Development] tarkzim:
That's not Hardware "Fingerprint sensor", just an information of the ROM.

It's used to be verified for SafetyNet checks.
[Mi 3 Android Development] VerdghXeljior:
Hi is the browser crash fixed? Also the "Save to downloads" is not working in Telegram.
[Mi 3 Android Development] tarkzim:
Browser crash has been fixed, and if something is not working please provide me logcat.
[Mi 3 Android Development] greedus:
Problem with cpu on mi4
[Mi 3 Android Development] SajjadHosain:
I can't use Brave Browser. Crashing when opened. The phone is rebooting when the terminal is opened.
[Mi 3 Android Development] tarkzim:
Will be fixed in the next build, but Terminal issues still under investigation.
[Mi 3 Android Development] tarkzim:
Will be fixed in the next build.
[Mi 3 Android Development] tarkzim:
New build released

Fixed more app crashing issues.

Fixed CPU information bugs on 3rd-party apps.

Built-in terminal is buggy for some device, try other terminal apps on Play Store like "ConnectBot".
[Mi 3 Android Development] sajjadaf:
In 16/4/2021 version i have a bug.when i turn off my phone and pluge in charger screen still with light and dont turn off .is there this bug in latest version?
[Mi 3 Android Development] Kai_Jan_57:
First of all, thank you very much for all your effort and the great result, that is one really smooth rom. I'd like to point out an issue with sensors I encountered, though:

Is it just me, or are sensors actually broken in the latest build (including the one I compiled from sources yesterday)? Because of that, the screen can't even auto-rotate :(

The following was recorded after wiping system, cache, data partitions (on a clean and fresh install).

Spoiler content hidden.

And these repeat over and over until boot is finished:

05-06 00:15:37.948 807 955 E libsensor1: sensor1_open: Error in connect() errno=111 Connection refused
05-06 00:15:37.949 807 955 E qcom_sensors_hal: _hal_sensors_get_sensors_list: sensor1 init failed

Could that be a SELinux issue maybe?
[Mi 3 Android Development] tarkzim:
Thanks for reporting, although it's not happening to me but i will fix it in the next build.
[Mi 3 Android Development] Kai_Jan_57:
That's good news; thank you very much!

You seem to be aware of what exactly is the issue - do you mind clearing it up for us?
[Mi 3 Android Development] tarkzim:
As your logs has shown, that suspicious selinux denial seems like the real cause, I've already addressed them locally, hope it will fix your problems.
[Mi 3 Android Development] SajjadHosain:
Bugs:

- Sometimes didn't added music instantly to music player. I downloaded *.mp3 from internet but didn't find there on music player. It happens so many times.

- Music player not work properly while moving files on file manager or browsing Internet.
[Mi 3 Android Development] tarkzim:
That's weird, can you grab the full logs since booting, and send it via PM?
[Mi 3 Android Development] Phone Crazzer:
Some issues were found:

• When the device is used in reversed orientation with rotation angle set to 180°, app screenshots in the recent panel don't change their orientation.

• Stock font style does not get changed after flashing (.)zip files of other fonts.

• System UI crashes after changing font, status bar icons or system accent color from Settings>Display>Styles and wallpapers.
[Mi 3 Android Development] tarkzim:
New build released

Updated to Android 11.0.0_r37 with May security patches.

Upstream updates and fixes.

Fixed sensors related SELinux policies, it should be working for all users.

Fixed offline charging and bring back MIUI charging animations.
[Mi 3 Android Development] Phone Crazzer:
More bugs were found:

• Photos can not be uploaded to Facebook.

In Facebook app, tapping the 'Photos' button to select pictures makes the screen go black and leaves it like that until a 'forced reboot' is performed.

• Texts are not shown properly in some Play Store dialogues (as shown in the attached screenshot).
[Mi 3 Android Development] tarkzim:
I just tried the facebook on my Mi3, and the gallery shows up correctly without any problem.

And i don't see any strange dialogs on Play Store.
[Mi 3 Android Development] tarkzim:
- Rotation seems be an upstream bug or LineageOS bug?

- I don't think that's a correct way to change the fonts in Android 11 or recently versions.

- Style settings working fine for me, maybe it's related to your font files zip?
[Mi 3 Android Development] Phone Crazzer:
I updated the Facebook app to v318.0.0.27.154 on Xiaomi Mi 3W (16GB). Still no photo can be uploaded through Facebook (com.facebook.katana) app as the screen turns black and the system becomes unresponsive after entering the camera roll to select photo(s), whether that be at the timeline, 'comment' or 'reply' sections.
[Mi 3 Android Development] Phone Crazzer:
Apps' names are not shown in the Play Store dialogue in which it tells to free up space before downloading new app.
[Mi 3 Android Development] sajjadaf:
I installed latest lineage 18.1 with 560 MB size when try to install bitgapps twrp gives me error 1 that not enough storage space.

This problem also for flashing addson package.how i can solve it.i think rom size is so big
[Mi 3 Android Development] tarkzim:
The system for the phone is not enough for newer android, use MindTheGapps instead.
[Mi 3 Android Development] sajjadaf:
Can you increase size of rom from 560 mb to 450 mb?
[Mi 3 Android Development] tarkzim:
Unfortunately, not possible.
[Mi 3 Android Development] sajjadaf:
MindtheGapps also has 176 mb size.no problem for installing??
[Mi 3 Android Development] tarkzim:
I am using it right now, no problem for me.
[Mi 3 Android Development] Phone Crazzer:
Some major bugs:

• Microphone: Built-in microphones don't work (Recorder app works with external mics only).

• PIP: Picture-in-picture windows often don't get zoomed out (those get stuck at 'zoomed in' position after tapping) & UI elements don't show up accordingly. [Partial screenshot is attached].

• CPU: CPU max frequency is set to 1.9GHz (by default) instead of 2.3GHz.
[Mi 3 Android Development] tarkzim:
Microphone is working fine om my device, recorder is working.

Haven't got a chance to test it for now.

CPU max frequency is 2.2/2.3GHz here, it's showing correctly for me on CPU-Z.

Additionally you should provide information like MODs that you were using, or did you activated any power-saving mode, and even logcat is helpful.
[Mi 3 Android Development] shafi1885:
Amazing ROM, got updated to A11 from A6. It is a really clean and lightweight UI and very smooth to use.
[Mi 3 Android Development] Phone Crazzer:
• Disabling a magisk module solved the mic issue.

• CPU-Z shows 2.27GHz but I noticed that CPU clock speed was peaking at 1958MHz. Used Kernel Auditor to set the max working freq to 2265MHz.

• PIP issue isn't solved; it was there from the beginning.
[Mi 3 Android Development] 随心意想:
The phone will restart when opening some applications. Maybe it’s the same bug as when opening the built-in terminal. Request a fix

——————Google Translate
[Mi 3 Android Development] Phone Crazzer:
Exactly. I installed TikTok Lite & now the phone restarts most of the times I open it.
[Mi 3 Android Development] tarkzim:
I just downloaded this app and tried so many times it never happens to me, please send me last_kmsg after reboots.

(Google for it if you don't know how to grab it)
[Mi 3 Android Development] 随心意想:
/proc/kmsg
[Mi 3 Android Development] tarkzim:
I said "last_kmsg", not "kmsg".
[Mi 3 Android Development] 随心意想:
Grab three times
[Mi 3 Android Development] Phone Crazzer:
I enabled local terminal from Dev options but opening the terminal made the device restart. Then I installed Termux but it said- no such directory found after writing the command (su -c "cat /proc/last_kmsg" > /sdcard/last_kmsg.log).

Today the device started restarting itself in a loop. It became unusable to I had to flash the ROM again. Then I installed TikTok Lite v17.9.1 and opening it trhice or twice made the phone take restart. I tried to grab last_kmsg via SysLog App (last_kmsg option is greyed out) and Termux (Operation not permitted) but none of those worked.

..

Note that now the ROM seems quite snappy & smooth after reflashing. But random freezing and restarting (in loop) issues tend to appear after a few days of usage.
[Mi 3 Android Development] tarkzim:
1. last_kmsg required ROOT permissions to access it.

2. You have to pull them at the first boot right after the reboot.
[Mi 3 Android Development] Phone Crazzer:
Followed those instructions of grabbing last_kmsg right after the restarting due opening of the app. And root permission was given as well.
[Mi 3 Android Development] tarkzim:
I can grab it without any problem in Termux with ROOT access.

Try to put your full command into your quote marks after su -c.