yashsingh1/xdaforums huggingface dataset:
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] snyperius:
Encryption fix

After several clean installs with different Lineage OS and Open GApps versions, encryption was still not working on the phone (Xiaomi Redmi 4X 32GB Global version, R9 version of OrangeFox recovery). In the security settings I tapped on encrypt device, charged the phone to 100% and left it on the charger as it said to do, tapped the agree button, and then the encryption process seemingly started, but within 5 seconds the phone was back on the lock screen, still unencrypted.

After some research, I managed to find a solution, based on a user called TETs' comment on GitLab. Big thanks to him!

Here is his comment edited to Xiaomi Redmi 4X 32GB Global version:

This process does not clear any data, but for sure make a backup! THE PROCESS BELOW IS ONLY FOR THE XIAOMI REDMI 4X (32GB GLOBAL), I'M NOT RESPONSIBLE FOR ANY DAMAGE TO YOUR DEVICE, DO IT AT YOUR OWN RISK (NO ROOT REQUIRED):

1 - Go to recovery (I'm using OrangeFox R9)

2 - Go to Advanced -> Terminal.

Type in this code:

ls -l /dev/block/platform/soc/7824900.sdhci/by-name/userdata

This will show you where your Data partition is, this should give you an output similar to this:

lrwxrwxrwx 1 root root 21 Jul 27 1972 /dev/block/platform/soc/7824900.sdhci/by-name/userdata -> /dev/block/mmcblk0p49

This means that your data partition is on "mmcblk0p49" block. Now you need to calculate the size of the block, use the code below:

tune2fs -l /dev/block/mmcblk0p49 | grep "Block count"

This should give an output similar to below:

Block count: 6421369

Now you need to calculate the block down 4 KiB,

6421369 - 4 = 6421365

NOW YOU NEED TO UNMOUNT DATA:

1 - Go to recovery - THE INITIAL SCREEN (Press the back button if you're in the terminal).

2 - Go to "Mount" and unmark the "/data" option.

3 - Press the back button.

4 - Go to Advanced -> Terminal (again).

At the terminal, type:

e2fsck -y -f /dev/block/mmcblk0p49

And then:

resize2fs /dev/block/mmcblk0p49 6421365

Done! Press the back button and reboot system.

Now you are able to encrypt your phone.

(I did the process right after sideloading LOS and GApps /before first boot/, and after booting the phone was already encrypted)

---------- Post added at 10:01 AM ---------- Previous post was at 09:52 AM ----------

Since both WiFi (up to the 'n' standard) and Bluetooth work on 2.4 GHz, manufacturers can save money and space by using the same antennas for both, or if the WiFi and Bluetooth antennas are too close to each other, it can have the same effect on the speed and overall reliability.

I don't know if that's the case in this instance but seems to me like a hardware issue rather than software.

There's a new firmware out, give it a try. Just don't be surprised if it doesn't solve the issue
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] davidsurya:
Is anyone had a problem on fingerprint?

Fingerprint on my device work normally when use lineageos 15 but after upgrading to lineages 16 doesn't work.

Also is it possible to update via OTA? Because i'd try update via OTA always bootloop to recovery.
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] ghines:
Yes, FP seems to work but very intermittent.

Did an OTA update today and it worked just fine. Downloads the update, select install, some pre-reboot stuff is done, reboots to TWRP, installs update, reboots and deletes update file.
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] ksdrummer:
Display problem when VPN is active

With the VPN active, when I scroll down the top bar, there is an additional text "Connected to NordVPN" which make the menu larger than the screen.

[IMG="watch the bug here"]https://framapic.org/UUeqeeThLaFX/sO9Qj5nkD5oN.png[/IMG]
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] Xiaomi Warrior:
Test the battery, maybe it is shot, this happens sometimes.

But for me battery backup between 15.1 and 16.0 is night and day. I use to lose >10% in flight mode during night, now I MAYBE lose 2%.
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] WenceKun:
Does the access to notifications work on Lineage 16?

I've tried to use several roms above android 8 and there's no luck.

I use a Mi Band and I need to grant Mi Fit app and Mi Tools permission to access the notifications but that option doesn't show.

Does anyone here uses a Mi band with LineageOs16?

I'm using LineageOS 15.1 and I'm loving it, but maybe it's time to change.
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] Ludo56510:
I'm using LOS16, mi band master app and mi band 4. For mi band 4 you must recover some autorisation code as described in the app. Mi band 4 needs pairing with official Mi app first. Later you can remove it
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] titomi:
Can somebody share LOS 15.1 build from last year? Or give me a link to a source?
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] polware:
Download link: https://uloz.to/file/m4QzEt9Vf7r7/lineage-15-1-20190726-nightly-santoni-signed-zip
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] titomi:
Is it already 2020? :confused: I asked for 2018 build :)
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] polware:
I only find the 2019-07-26 build, I don't know nothing about 2018 builds.
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] titomi:
OK, the one you posted I found. Maybe someone else has it privately stored.
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] polware:
Dude, that is really difficult. Think about it: the people prefer to have an OS less buggy and updated that previous builds with issues.
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] luismmv9411:
The phone's compass doesn't work.

Autorotation doesn't work.
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] snyperius:
Works fine on my device. Try to perform a clean install
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] domi.nos:
Day and night, but favouring which?

I would like to install this to my dad's santoni. Now it runs Extended AOSP, and has great battery life. But here, as I see this is often updated ROM - Extended AOSP is not updated since September. Battery life and stability are the most for me.
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] Xiaomi Warrior:
Lineage OS 16.0 all the way! https://download.lineageos.org/santoni
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] playerum:
I found this in my notebook:

lineage-15.1-20181030-nightly-santoni-signed.zip

lineage-15.1-20190207-nightly-santoni-signed.zip

Do you still need it?
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] titomi:
Yes, both will be helpfull.

---------- Post added at 06:11 PM ---------- Previous post was at 06:04 PM ----------
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] playerum:
I uploaded them to my google drive...

lineage-15.1-20181030-nightly-santoni-signed.zip

lineage-15.1-20190207-nightly-santoni-signed.zip
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] titomi:
Thanks man :good: Downloaded.
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] Bismuth83:
did you clean vendor partition?
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] snyperius:
No, I followed the installation instructions from the LOS wiki page. Only the data, the cache and the system partitions need to be formatted (I did dalvik as well)
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] playerum:
WhatsApp problem..

Hi!

I'm using lineage-16.0-20191211-nightly-santoni-signed.zip and my WhatsApp turn de screen black when I try to listen audio that people send to me and the audio is too low.

Is this happen to anyone ?
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] arvindgr:
Had unrooted LOS 15.1. Thanks to all for upgrade steps, just installed OrangeFox recovery and just installed LOS16 28Dec19 zip, OpenGapps arm64 zip and wipped cache. Took some 5-10mins to boot. No issues on torch/auto brightness sensor or fingerprint. Thanks Dev!

Network speed indicator in centre of status bar looks very odd though
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] SebiderSushi:
Just like during a call, that would be perfectly normal behavior if your proximity sensor (next to the selfie camera) is detecting any object close to it.

You can read the sensor information using apps like CPU Info (Google Play), CPU Info (F-Droid) or SatStat (F-Droid).

If the proximity sensor reads a distance of 0cm without anything in front of it you can try cleaning the area from any dirt. Removing screen protection can help as well, but your sensor could also be broken. As far as i know, you then have the following options to "fix" this:

- Install Xposed Framework and the Sensors Remover app, then remove the proximity sensor in software.

- Open your device and unplug the sensor, if you're lucky this will "fix" your issue as well

- Open your device and swap the sensor for a new, working one

- Telegram has a setting that allows ignoring the proximity sensor. As do some custom phone dialers like Simple Dialer.
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] playerum:
Thanks man!

I forgot to say that WhatsApp was fine in Lineage 15.1...

I'll try the latest release...
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] Davidshh:
hey guys, i'm using LineageOS 15.1 in my redmi 4x

at first, everything is fine. but about 3 days ago, suddenly the fp scanner stopped working. i don't remember doing anything with the system.. just using it as daily driver. accelerometer and compass also not working..

i would prefer not resetting my device since i already used to it, and i find it a hassle to re login to many apps. but if it cannot be helped, then it's okay

anybody has solution?
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] snyperius:
Yes. Bite the bullet and do a fresh install of LOS 16. (I'd also recommend using OrangeFox Recovery, the updates go through without a hitch, while on TWRP they used to break Google Services on my phone.) For me, it's been working flawlessly ever since it was released, and it is much better than 15.1.
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] brcr:
Can someone tell me how to flash persist please?
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] czarkoff:
Just restore the backup from TWRP.
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] Davidshh:
i'm using orangefox now.

will flashing persist solve my problem?

edit: flashing persist solved my problem. i just remembered that because i mainly use my phone on desk in portrait position, i didn't realized all the sensors are frozen since i flashed LOS.. so the sensors and FP were different problem to begin with which i thought was same problem.

as for the FP, it turns out my scanner is still working, but for some reason cannot recognize my FP. Luckily i stumbled upon this solution by chance when i tried registering another finger and it worked!! so i deleted the registered fingerprint and register new FP. it's been working flawlessly since then..

i still don't know why my device stopped recognizing my fingerprint. it was all of a sudden, i didn't touch any settings in system nor in recovery. the last time i install something was a few days before it happens.. but hey it's working now so i'll just forget it lol...

thanks for the replies guys.. appreciate it!!
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] oscarmassy:
Hello, i install the last lineage 16.0 on my redmi 4x but I find that the speaker volume is too low. i search the file named mixer_paths.xml but this file no exist. how to increase the volume ? thank.
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] rehe96:
Flash stock rom again..then flash back this cusrom..It works for me..
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] TheRevi:
How to install GAPPS in Lineage 16.0 (2020-01-25) ?

I downloaded rom and GAPPS (ARM64, Android 9.0, pico).

First WIPE, next flash room, next install gapps.

I have bootloop ...

Can someone help me ?
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] polware:
Try to install an older release of OpenGApps from here or try with BiTGApps.
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] VinceVega1978:
Are you using twrp? If so, try using OrangeFox Recovery, i always had bootloops after updates with twrp, OrangeFox Recovery fixed this issues.
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] TheRevi:
wow, THANKS <3
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] arka2k14:
I am running lineages os 16 (20200123 build). Are you guys facing a random drop of network signals? Sometimes out of a sudden both the sims show no signals and after a second or two it goes back up automatically. The SIM status shows "radio off" while this happens.
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] luismmv9411:
Same here.
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] arka2k14:
I think I have figured out the solution. Set the preferred network type as "LTE" for jio and "GSM only" for others. I haven't had a network disruption since then.
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] blue4:
A had same problem in every ROMs but now I replaced my broken display then cleaned and strengthened oxidised antenna contacts and it solved this issue and now have fully stable and strong signals.
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] QuantumAnant:
> strengthened oxidised antenna contacts

How shall one do that ?
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] blue4:
I increased spring tension with screwdriver cz springs was ,,flat" cz the phone was broken and kinked before I replaced screen.
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] Xiaomi Warrior:
I find the "January" update less stable than the "December" update (i update when the latest security string is available) as I also experience these sort of signal drops.

I hope the February release will be solid again as I was really happy with the build I used in December.
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] b4b4.4l1:
Currently running Lineage 16 build 20200210(which in 'Settings' somehow said 20200209). So far so good for me. Everything works as it should. Battery consumption is excellent, 100% to 23% with moderate usage(no gaming, no movies; using wifi and mobile network) gave me 8 hours plus of SOT.

I just wish we have the option to remap HW navigation buttons to take screenshot.
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] Chiefbrain:
The fingerprint sensor on a fresh install of 20200212 does not work. While setting up, it it is not recognized: https://gitlab.com/LineageOS/issues/android/issues/1358
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] nikolagg20:
flashed it today and Having problems with the mobile network in the latest 2020-02-13 build. Waste of time, Will have to try pie havoc os now.
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] davidsurya:
is anybody facing issue of ghost touch in this rom?
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] AbhirupD:
Encryption after Installation

Can anyone tell me the procedure to remove the force Encryption in this Rom, I've tried P.E & Havoc and none of them have encrypted my device after the installation.:rolleyes:

Recovery :- TWRP (Latest)

Rom Build :- 20200216

Gapps:- Opengapps / Pico
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] k23m:
Here is the procedure:

in recovery do Format Data

and reboot

back to recovery

in recovery do Wipe

install LineageOS

install Disable_Dm-Verity_ForceEncrypt

install addons, gapps, etc.

reboot to system

:good:
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] vecino:
Hi there,

please I can´t find option for direct unlock via fingerprint (16.0-20200223). I have to wake up phone via power button and after that I can use fingerprint. That's not good for me. That's not good for me

Thanks

edit: resolved
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] rote66:
Nice works!
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] SuDGLaD:
Hello to all,

a simple question: with this rom how much SOT does this smartphone?

Thanks and a greeting to everyone.
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] rkdok23:
Camera is force closing when i open it .
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] MarcosJungbluth:
Are there any procedures for Google Camera to work without the application forcibly closing? I already have Camera2 enabled, but the app does not work
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] evolucja:
Have you guys experienced a problem when sometimes the phone doesn't wake up LCD screen and it stays black (even if I can click something on the screen)? It's happening to me once a day and I need to restart phone in order to get it working (turn LCD on) again. It's a bit frustrating and it happens accidentally.
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] keenofhiphop:
Hello,

long time no see, xda. Nice to be here again.

I am using this ROM since the build from 8-23, now on the newer version my camera works wonderfully. Props!

A big I (still) encounter is that, when connecting to bluetooth audio devices, my device will show my soundbox as well as my headset, but if I select one of them, it will not connect. Instead I need to go into pair mode whenever using the device.

Is someone else experiencing this?

My kind regards,

Kai
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] gauti_1998:
Thanks for the ROM
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] Radnanum:
About your install instruction, so there nothing about nougat bootloader firmware. But in your link download, there is the nougat bootloader firmware.

So how to install your ROM?

Thanks before

---------- Post added at 02:30 PM ---------- Previous post was at 02:04 PM ----------

so what ur ROM now sir? :) I need a suggestion
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] pyshydv:
RR is quite stable, but there is battery drain problem which can't be used for daily driver, as Lineage have some issues with fingerprint and and some other minor issues but battery backup is still better than RR.

AOSPextended is also very stable but the sudden battery drain issue is still there, i tried MIUI 9 modded roms but after tasting the stock android nothing is gonna better, nothing can beat stock android :D

i am currently on crDroid battery backup is best of all the customs roms and quite stable now:cowboy:

hope you got your answer:good::fingers-crossed::laugh:

---------- Post added at 08:19 PM ---------- Previous post was at 08:16 PM ----------

yesterday google had released sept security patchs, so the dev of RR, AOSPex,LOS etc will begin again and and hope new builds will solve all the problems:o
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] trilliana:
I don't have a solution for 1 but that is because I haven't connected more Bluetooth devices, but I will see if I can replicate that later today. 2 and 3 were fixed for me by flashing the newest MIUI then this ROM. All the sensors work after that.

Also, if you look through the miui forums there are threads about the color LED notifications, it seems to be a kernel issue, but if you use tasker, there are ways to make it work. (Honestly would link, but on my phone right now.)
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] Radnanum:
where i can find screen recorder?
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] TingyiChen:
original AEX don't have this,need to install app manually
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] potlapalli1:
finally u came back after long time. hope from now onwards devlopment goes on
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] BigChris1337:
Do I need the nougat bootloader firmware?

Or can I simply install the ROM? I have already installed another version of Lineageos.
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] raza_maestro:
You can directly install the rom.
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] BigChris1337:
Have a mistake with me.

After a restart, the fingerprint reader does not work anymore. I've got to start reading in new fingers.
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] YoungYakov:
Будет ли lineage os 15?
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] TingyiChen:
try install nougat bootloader&check,here working
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] TingyiChen:
me always doing;-;just dont wanna open browser kek
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] Coisir:
I have the same issue.

Installed Bootloader first, then LineageOS both from the Links in post 1.

After setting everything up i restarted the phone and couldn't use my fingerprints (After i unlocked it for the first time, tried it multiple times)

Would be nice, if that could be fixed... :)

The Rest so far is very nice! Thx
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] alterspitz:
Hi all,

a very nice ROM. I had long time a Nexus 5 with Lineage14 and now i have switched to the REDMI 4x.

Everything is working fine for me, but there is only one thing i have a problem.

I connect my phone over bluetooth with my handfree car kit --> everthing works

but if i restart the phone it does not find the connection again.

I have to pair again with my bluetooth device.

Does anyone have a solution for this problem?

Thanks in advance.

Regards

Sven
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] Jay_Mehta_:
Facing Problem with Banking Apps

I am on Lineage OS 16 I am unable to receive an OTP and logging into Google Pay anybody else facing the same issue?
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] ghines:
Suddenly LED Notifications have stopped working for me. Have tried several email apps and none give me LED Notifications. Sound Notifications work OK for Email and LED Notifications work for SMS. Just not for Emails.

Any ideas anybody?
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] 3x()7c15t:
Help

When trying to reboot to custom recovery it asks for a password. OTA updates work fine as it bypasses this password screen. The rom isnt encrypted as it says "phone not encrypted" and i havent set a password in orange fox. Ive tried to use the password for lineage but it doesnt unlock the custom recovery. Can anyone help remove the password on the custom recovery or recommend a recovery which will remove the password so i can get into the custom recovery? I would appreciate if it doesnt wipe my phones data :D

Custom rom: lineage os 16 latest version

Custom recovery: OrangeFox-R10.1_02-Stable-santoni
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] elpols:
Hello. Does anybody know where can I find roms older than 2020-03-16? I've started to have some black screens since. Thanks.
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] lbt:
I can send you lineage-16.0-20200131-nightly-santoni-signed.zip, that's the latest I have before 2020-03-16, please send me a DM if you still need it.
[Xiaomi Redmi 4X ROMs, Kernels, Recoveries, & Other] Chadpapy:
Auto rotation doesn't work. what can I do, I try this but it doesn't work

https://xdaforums.com/xperia-tablet-z/help/lineageos-auto-rotating-solved-t3736105

In fact, it's my gyro. It doesn't work. How can I fix this ?

EDIT : oops wrong topic. It was for lineage 16 sorry