yashsingh1/xdaforums huggingface dataset:
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] bacitoto:
Flashed it and it's working with los camera, nice
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] BJumperBR:
Did you try flashing "markw-hfr-recovery-patch.zip"?

You can also try copying the patched files from "markw-hfr-libs.zip" to folder "\system\vendor\lib" using TWRP.
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] Mactley:
Yeah, flashing the recovery did work. I mistakenly thought you had to flash both zips. Although on stock LOS camera the slowmo doesn't work very well, the video time gets extended but framerate is nowhere near 120fps, looks more like 15.
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] BJumperBR:
Cool!

I just tried on the latest Mokee (0403) from Razziel and it works too.

---------- Post added at 01:50 PM ---------- Previous post was at 01:42 PM ----------

Have you changed the video size to 720p?

I just shot this [MENTION=512813]120[/MENTION]fps from my office window:

https://youtu.be/j7OOv30NQ0I
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] Mactley:
Yeah it's on 720p. Flashed the patch. Very choppy results with LOS and Snap camera, nothing like your example. Weird!
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] BJumperBR:
It seems like the flashing didn't work at all. Choppy (10-15 fps) video and preview is what I get before applying the patched files.

You can also try replacing the files manually (that's what I usually do).
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] :
my phone keeps soft rebooting (it was quick, unlike regular reboot) when using snap camera, google app, and maps. what's wrong with it, please anyone.

I'm using the 20170326 build without R2 kernel. i tried a clean flash, without gapps, supersu, or xposed but keeps having this problem.
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] bacitoto:
Same here, maybe [MENTION=7373712]BJumperBR[/MENTION] is using a different camera app? Or maybe it's because it's Mokee build
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] simo14:
I flashed the patch on LOS 2603 and everything is working good like [MENTION=7373712]BJumperBR[/MENTION]

Inviato dal mio Redmi 4 Prime utilizzando Tapatalk
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] BJumperBR:
As I said before, I've tried this patch on Mokee, Resurrection Remix, LOS and it worked good on all of them except MIUI.

I'm using Snap camera (org.cyanogenmod.snap).
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] Mactley:
Having some serious battery drain issues. CPU Total of LineageOS system is over 6h, which is as long as the phone has been on. This is even while using greenify and amplify to control wakelocks. Anyone else come across this problem?

http://i.imgur.com/pPIlMVi.jpg
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] alreadyregistered:
Post more battery data.. i think you messed something up while playing with wakelocks. For me stock and debloated rom is awesome in battery backup (check my signature).
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] Mactley:
Thanks, the issue started before I tweaked wakelocks though, that's the reason for my tinkering in the first place. http://m.imgur.com/ydlWB1M,8gw04Q9

Sorry i don't have betterbatterystats, is there anything else that would be useful to screenshot?
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] alreadyregistered:
Click on plot and post detailed stats.;)
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] FelixDB:
Yes please, get this phone its own section.
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] Azoset:
There's a request thread in the Moderator forum. Please help.
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] FelixDB:
Comment and thanks added...
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] bioaveiro:
SOT in last build?
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] hugito00:
I must be doing something wrong but I can't reboot to recovery mode after flashing LOS.

It always reboot to System.

And my phone is asking for PIN at boot, is there a way to remove it? I tried disabling PIN and everything at screen lock options but it didn't work.
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] bacitoto:
Turn off device! Press Power and Volume+ and Volume -, trying advance reboot to recovery isn't working

I also have the pattern/pin after restarting device when I didnt set it up, weirdest part is it happens with old backups that were working fine :/
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] hugito00:
I did try Power Volume+ and Volume- also, it got stuck at MI logo

EDIT: Nvm, it worked now

Only thing missing is flashing the kernel. It always get stuck on animation logo.

I tried flashing ROM and Kernel before rebooting, and flashing ROM -> boot to system, flash kernel -> boot to system

Both got me the same results. ;(
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] bacitoto:
Ok so I just noticed if I go to Settings-->Security-->Ecrypt phone Encrypted :/

[IMG="Encrypted"]https://i.imgur.com/P5qsQx2.png[/IMG]

Flashed multiple times after full wipes, can't get rid of this. Maybe just flash Global ROM via Miflash,would that take care of this?
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] hugito00:
I did format data using TWRP to get rid of it.

Not sure what I did to not get encrypted again tough, but it is fine now.
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] bacitoto:
Didn't work for me :/

Also what partitions should one backup with custom ROMS, and/or with MIUI?
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] oieNao:
How do I make Titanium Backup work?
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] alreadyregistered:
15
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] DryEagle:
minutes? :D
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] alreadyregistered:
Yup. Sometimes 15hours and 15 minutes.:D Look signature... it's common result i get after using tutorial from my signature. I also installed it many times for my clients and they got similar results.
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] ghanipradita:
Did you underclocking CPU & GPU? I underclocked the CPU and GPU of mine, and yes it's close to 15h SOT :D
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] Mactley:
http://m.imgur.com/TeBLd6X,XfmW5ZQ

So this is today.. unplugged at 1pm, now 4am, 3h SOT, 30% left. Not sure what's going on, could it be the encryption thing? Mine says encrypted. This is using greenify and amplify, no fb or other battery hogging apps. Any ideas? 15h SOT seems like a total pipe dream from here. Thanks!

Usage details for the Android system process. Pretty intense http://i.imgur.com/juPTL58.jpg
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] dels07:
There should be real development on device before XDA mod can add subforum, so far we only share rom build by developers on other forum (4pda). Take alook Redmi Note 4 SD forum, there's active development.

I voted OP to contact and bring the real developers from 4pda to XDA and make their own thread for their roms to get our device subforum.
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] :
I'm still thinking between the 4 Prime and Note 4, one has kernel source but no devs while the other has no kernel sources but a lot of devs. Nice dilemma.
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] laviniu_c:
stop thinking in those terms...

it's much simpler:

-you want a 5.5" or 5" phone?

-you need the B20 lte band? (check your carrier/country)

-you want a black one (or pink, cyan, blue)?
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] :
Why not? I compared the two devices, they got everything I need so that's why I'm looking at it this way.
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] oieNao:
How to underclock and at what frequencies?
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] laviniu_c:
markw is gaining devs, check github, i suspect we are very close to an official support los. the device doesn't have a lot of users that's why we don't have as much development support as the redmi notes in general (asia likes 5.5" devices instead of 5).

i don't see why the mido wouldn't get sources released - and probably soon - it's the same cpu as markw.

still you should pick based on whether you want a 5" or 5.5". if you need the B20 again only the note has it. and only the global rn4 (non x). as i said above, if you want more colors again, only the note comes in black, pink etc.
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] theowl61:
Forget lineage guys. I have mokee 20140403 and it's super smooth and fast. I wonder why they didn't announce it the official release. BTW after trying all available roms I got to it and just wanted you to have it too. Good luck
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] Tribes11:
Hey XDA hasn't released a subforum for our phone yet?
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] laviniu_c:
nope, not yet
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] Deus.:
Isn't only one of them enough?

Do you have some automation tool installed, like Tasker? Strangely I get about same results when Tasker is ensbled, now I'm testing how to finetune them to work together, not against each other.
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] zyasin:
link please?
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] angelgf90:
where can i find "mokee 20140403" version, mate?
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] FelixDB:
I'm trying to build the lineageos code but I'm stuck(used to work on Kitkat and custom rom stuff is new to me), I will describe what I have done yet so maybe someone could help:

First I used the Lineageos repo manifest on branch cm13 and syncked everything.

I did also manually cloned:

https://github.com/markw-dev/android_device_xiaomi_markw.git to device/xiaomi/markw

https://github.com/markw-dev/proprietary_vendor_xiaomi.git to vendor/xiaomi

https://github.com/markw-dev/android_kernel_xiaomi_msm8953.git to kernel/xiaomi/msm8953

and https://github.com/markw-dev/android_hardware_qcom_display.git to hardware/qcom/display/msm8953 (not sure at all about this one)

Next I copied the kernel config file kernel/xiaomi/msm8953/arch/arm64/configs/msm8937-perf_defconfig to lineageos_markw_defconfig since it looks like lineageos is looking for it.

Next I had to add #define WT_SUBSYSTEM_REASTART_LEVEL "related" to kernel/xiaomi/msm8953/drivers/soc/qcom/subsystem_restart.c to fix a compile error (dont think this is the right fix but I wanted it to compile for now)

Finally this is where I'm stuck I get this error:

libsepol.report_failure: neverallow on line 478 of external/sepolicy/system_server.te (or line 12774 of policy.conf) violated by allow system_server block_device:blk_file { read write };

libsepol.report_failure: neverallow on line 275 of external/sepolicy/domain.te (or line 10070 of policy.conf) violated by allow system_server block_device:blk_file { read write };

libsepol.report_failure: neverallow on line 275 of external/sepolicy/domain.te (or line 10070 of policy.conf) violated by allow tee block_device:blk_file { read write };

libsepol.report_failure: neverallow on line 294 of external/sepolicy/init.te (or line 6012 of policy.conf) violated by allow init system_file:file { execute_no_trans };

libsepol.check_assertions: 4 neverallow failures occurred

Error while expanding policy

external/sepolicy/Android.mk:85: recipe for target '/home/felix/android/system/out/target/product/markw/obj/ETC/sepolicy_intermediates/sepolicy' failed

Building the code this way:

source build/envsetup.sh

breakfast markw

export USE_CCACHE=1

croot

brunch markw

Maybe I dont know where to find it or simply how to build but if we could have a complete manifest pointing on branches with the small fixes required to build the code until we have OFFICIAL lineageos support it could be easier for me and others.
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] bartelamo:
Here you go! LINK. There is also a FIX.zip for strenght vibration, but I'm unable to download it. If someone can upload it to alternative site will be much aprecciated.

EDIT: I managed to register on 4PDA and download the FIX.zip (see attachment)
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] dels07:
Did you know what it means by official? It mean the build and maintainer are accepted by official development team (LOS/Mokee, etc) and added to their build server.

There are no big difference between official and unofficial, except official build usually get snapshot/nightly build, everything else is up to maintainer to fix and maintain their code.
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] Mactley:
No tasker. They both cover different ground, Greenify puts apps in hibernation that like to run in the background, and Amplify lets you control wakelocks and alarms on a set timer. I tried for a while without these apps but the idle battery drain was even worse.
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] biagio572:
Updater process ended with ERROR: 7 with TWRP 3.1.0-0 and 3.0.2-0 :crying:
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] bartelamo:
Error 7 normally mean that your firmware no match the one ROM required. If you can read below o before error something like "trustzone ..." try to upgrade firmware to latest one and try again.
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] theowl61:
https://yadi.sk/d/7n1RYWvK3GdBUy
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] biagio572:
But I have the last stable global
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] Deus.:
Hey, thanks for this info, I installed Amplify, let's see how it goes. I can see the LocationManagerService was running 10447 times in the last 20 min, but it is so only when the Tasker is enabled. So I must tweak here. Once again, thanks!
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] h4waii:
You simply need to revert this, https://github.com/markw-dev/androi...mmit/66ce8f82fc8e493c7f5bcdca9786ab32986486b3.

DNM = Do Not Merge. These are initial SELinux policies. Revert the commit or remove the files and your build will compile just fine. I've been building my own ROM off these sources for a bit, and back-porting security patches, without issue.
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] :
Is anyone building with the latest gcc toolchain? I got this error:

In file included from arch/arm64/crypto/aes-glue.c:17:0:
include/linux/cpufeature.h:47:33: warning: 'cpu_feature_match_AES' defined but not used [-Wunused-const-variable=]
error, forbidden warning: cpufeature.h:47

kernel/trace/trace_output.c: In function 'trace_graph_ret_raw':
kernel/trace/trace_output.c:1157:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
error, forbidden warning: trace_output.c:1157
scripts/Makefile.build:308: recipe for target 'kernel/trace/trace_output.o' failed

Edit: I googled it and the one solution in github is a broken link because the user deleted everything
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] FelixDB:
Ok thx, I'll try this out.
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] rabin69x:
which kernel is better?

flashing step rn't clear to me. What should i do 1st? clean wipe then flash kernel>flash rom>reboot to system?

or should i have to flash rom and kernel 2 times so that i dont get any bootloops?
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] Deus.:
Logically, because the ROM has a kernel, if you flash the kernel first and then the ROM, the kernel will be overwritten. Furthermore, the ROM uses the kernel, so it must be updated with tbe kernel info.

Shortly: first the ROM, then kernel.

Which is better is a good question. I don't know the difference between them, I was looking for a comparison but could not find.
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] alreadyregistered:
I also gave it a try. Works and looks flawless. Recommend.
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] Vihru:
Hope there is still development in lineageOS. Mokee didnt have fully translations for finnish language.
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] rabin69x:
I heard that r2 kernel has better stability then r1. I also heard that it also has better battery stability [emoji4]
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] dels07:
If you use LOS 0326 you don't have to flash any custom kernel since R1 & R2 was meant to fix issues in 0322 build. Btw for alternative you could use Mokee 0403 which includes so many fixes, link on several post back.
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] benplay:
it's cool to see devs working on this device and thanks to you all but it seems that you are working on LOS13 so i'd like to know, can we expect a nougat rom one day, i mean not official but lineage or mokee or something else?
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] DryEagle:
is mokee fully working?

especially:

- fingerprint

- dual sim

because that's the 2 problems i see a lot of posts about lineage.

is it a 'slim' rom like stripped android base or full of bloatware?

also, does it include gapps/su or must i flash them on top? just so i know
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] ghanipradita:
Already tried Mooke by razel, but the wifi has broken and I experiencing some lag. Clean flash from LOS 0326.

Now I'm using RR, quite smooth and all features seems works fine except I can disable one of my sim card :)
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] dels07:
1. Fingerprint work on goodix sensor, I don't have device with fpc sensor, according to dev should be work on all.

2. Dual sim work, no problem with remembering sim settings or disabling sim.

3. It has more apps than LOS since originally it from China, but you can use my debloater.

4. Root included, but I recommend to flash SuperSU.

5. You have to flash gapps, I recommend opengapps (ARM64) so you can use my debloater script.

Attached the debloater, put it in the same folder with opengapps. If you want to modify the script just open with notepad and add # to not remove item you need.

By default I remove almost everything unnecessary including built-in calendar, clock, calculator, messaging, file manager so I could install replacement from playstore (which were so much better).

However if you clean install, script wont let you to remove default launcher and keyboard.
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] theowl61:
Everything works bro. No bloat ware. Smooth as butter and quick as a flash
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] DryEagle:
which android version is the mokee rom based on? 6.0, 7.0, 7.1? i need to know for gapps

also, have you tested if fingerprint still works with full device encryption on? i've heard some roms have problem with that too. how can i check which hardware version of fingerprint i have?
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] :
ARM64 Android 6.0

Inviato dal mio Redmi 4 Prime utilizzando Tapatalk

---------- Post added at 08:21 PM ---------- Previous post was at 08:14 PM ----------

I'm thinking to compiling RR using the markw-dev source (RR is based on cynogenmod; cynogenmod is based on LOS ?). I watched into markw-dev repo:

android_device_xiaomi_mark is the configuration profile; proprietary_vendor_xiaomi is the proprietary files and android_kernel_xiaomi_msm8953 is the kernel (i will not use it). But what is android_hardware_qcom_display? What do I have to do with this?

Inviato dal mio Redmi 4 Prime utilizzando Tapatalk
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] DryEagle:
OK well i flashed in mokee, gapps, su. all worked fine (though flashing it was a little strange). except, now i have problem.

so i set password for unlock screen, and fingerprint.

locked screen, unlock to test. it asks for password, fine.

i type password... 'incorrect, try again in 30 seconds'.

i've tried 6 times now, definitely typed it right because it made me type it 3 times when setting........ i will reflash and try again, i hope this isn't a broken thing in this rom, that would be very sad :o ...
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] alreadyregistered:
delete lockscreen****.*** files from /data/system with twrp...
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] DryEagle:
i don't have those, i do have locksettings.db and 2 more locksettings files, deleting them cleared it, thanks.

btw i just did a full wipe and reflashed, and tried again, after setting password and going to lockscreen, it doesnt work, says failed. so something is wrong with this rom. i will try a shorter password, maybe 13 letters is too long for it

edit: 4 letters password works ok. will try longer one again and see how many letters it cuts off the end XD

edit2: yep, 13 letter password and again its broken. at least now i know how to quickfix it. will see what length i can have without it dying on me...
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] alreadyregistered:
Yeah... sorry for misspelling.

I'm using PIN password and it's working well.. report it on 4pda forum.:)
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] DryEagle:
ok, well, 4 character password works, 10 or 13 long breaks. i'm going to keep deleting password file and trying shorter one until it works... will try 8 letters next.... great security (NOT)

edit: yep, 6-7-8 long password works no problem.

9 character password is immediately broken.

seems there's an 8 letter limit on the password field, and typing any longer, it just doesnt save it properly and you can't get in.

at least now i know
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] alreadyregistered:
8bit password.:P common bug in most password softwares.
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] DryEagle:
seems so... even miui didn't have this problem though. can you report it on the 4pda? i dont want to register an account there just to make 1 post. thanks mate :good:
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] alreadyregistered:
I don't have account there...
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] FelixDB:
I think that android_hardware_qcom_display is related to display drivers. I think that you have to put clone them in hardware/qcom/display/msm8953 folder.
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] lasbrujazz:
Does this ROM support hi-res audio?
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] dels07:
Use magisk and Qualcomm Hi-DAC module or install viper4a
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] mascot4m:
I updated to the 29170326 but still get the discharging during the night. See screenshot attached. Does someone else has the same? Any suggestions?
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] DryEagle:
I'm really starting to hate this mokee ROM... Yesterday battery was showing OK as i charged it, but since i gave it full charge, my battery is showing 100% for hours now, clearly it can't tell it's going down........

Edit: plugged and unplugged charger, now battery shows going down... I don't know what the true percent is, will do a full cycle i guess
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] Nemorosus:
Is your phone encrypted? That puts an extra drain on the battery, but I may had a similar problem before patching to the R2 kernel.

Anyways, go to Security and see if it says Phone Encrypt or Encrypted (you can send a screenshot). If it's encrypted, you'll have to do a full reset and wipe the data, if not the drain is in something else that you'll need to find out. But before giving up also try the R2 kernel if you don't have it installed.
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] mascot4m:
Where you able to get this right? I tried different scenarios but after flashing R2 kernel I also get stuck on the animation logo.

---------- Post added at 10:51 AM ---------- Previous post was at 10:49 AM ----------

Yes, the phone is encrypted.

I tried to install the R2 kernel but I always get stuck at the boot animation. I tried flashing ROM, boot, install kernel without wipe and no luck.