yashsingh1/xdaforums huggingface dataset:
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] asfethan:
As Deus mentioned you have to use Garmin Connect application to pair with your device which you select from list.

Then you have to go to settings menu on your watches, select 'bluetooth' and then 'Pair Mobile Device'. With both (application and watches) in

pairing mode you can pair them together. Watches will display your PIN which you will enter in application afterwards.

Btw you can't use smartlock on MIUI ROM because MIUI only supports xiaomi bracelets and stuff for that even when you actually can select garmin device from list.
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] b1azk0:
Ive been doing that always via Garmin Connect... GC finds the watch (F3 or F5x), initializes pairing attmenpt and thats it. On xperia I would see a window to input PIN from watch, in xiaomi this prompt is not showing up.

It stays in "initilizing pair" mode for ever (until i force close GC). Of course pairing mode is ON on the watch itself (it works without any issue on my xperia Z3)
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] Deus.:
I have a Vivoactive. It's really hard to pair the phone and this watch, sometimes it takes half an hour. Don't get me wrong, it does automatically, but takes much-much longer time as with my previous phone (OnePlus X).

To me it took about 20 tries to pair from the GC app, after that when I turned the BT off, the app forgot the watch. Now it can remember, but the reconnect takes a lot of time. This BT issue is frustrating, but can live with it.
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] jacoghi:
Guys, I didn't touch anything related to the camera between 23 and 27 releases. Other than that, no worries about this build prop edit, it's not on my plans, we have another way of fixing that in the kernel (which is weird, since we shouldn't need to do it that way, if the sources released by xiaomi are the same as the ones used on miui...).

Other than that, I have some good news about fingerprint: I as well was a little annoyed by the way the fingerprint wasn't being able to unlock the device without using the additional security measure, so I changed a few things related to that and fixed the issue. Now it behaves as it should (though I have goodix, does anybody have the other one?) , you just need to input the pattern and fingerprint when starting the phone (and I guess it's because my device is decrypted, otherwise it wouldn't ask for pattern not even when turning it on) and fingerprint will unlock the device straight way. When I get home, I'll look into Bluetooth problems (people with BT problems, can you get me a logcat when pairing? And if possible one with miui successfully pairing as well), since it's more important to me than front camera camera, and since front camera should be an easy fix.

Any other detected issues? How's is idle battery drain?
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] cimdrap:
I have the device decrypted and my fingerprint works as it should.

I have localization disabled yet, so i can't give a feedback on the wakelock, but i would know if it should be resolved for every localization mode or just for "device only" mode
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] jacoghi:
Which fingerprint do you have, fpc or goodix?
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] cimdrap:
Goodix
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] ciku720:
I also have goodix and decrypted phone. I have to enter the pattern once after booting system. I don't see any problems with it - works as it should. The only little thing I'd improve is the fingerprint scanner accuracy. I have to scan the end of my fingers while the 'center' of my fingerprint was scanned while defining it. That's a bit strange. I suppose it's a hardware problem so you can't do anything about it but I haven't tested it on Miui.

P. S.

My front camera is flipped too and after build.prop fix I can't record videos.
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] legocorp:
Garmin devices

I have a garmin forerunner and I had the same problem. Updating to the latest miui version solved some issues. Currently I'm running the latest miui 8.3 (7.3.23) from xiaomi.eu. Right now everything is working fine so this is what I did:

Allowed garmin connect to autostart

Disabled miui battery management on garmin connect

Locked the garmin app on the recents.

To pair, disable Bluetooth, close all apps (even the locked garmin connect) open garmin connect. Aloow bluetooth from within the app. Wait a couple of minutes and try to pair. Keep trying until it shows that the number on the watch. Try to keep the screen on.

Pair and it should take a while to sync. Now it's working.

If you lose connection with the device this is what you have to do.

Clean all apps from recent, including garmin connect

Turn off bluetooth

Open garmin connect, tap the disabled Bluetooth device, give permission to turn on bluetooth

Wait a couple of minutes and it'll automatically reconnect.

Hope this helps.
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] Deus.:
I think it's normal to unlock your phone with a pattern or PIN after the phone is restarted. I have a PIN that I have to enter when I restart it, after that I can wake up the phone with the FP.

Furthermore, I can collect the logcat for the BT pairing on yourROM, but won't install Miui again to check it.
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] baggino:
Does not enter recovery but ..... restarts. Because? what am I doing wrong

27.04
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] xxxMADxxx:
Before u flash this rom make sure u flash miui version 8.1.3.0 stable china first (in my case if used xiaomi.eu build)
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] jacoghi:
Ok, guys, this is our first custom (read slightly modified stock) kernel, a test for now, so let me know how performance feels after using it. Since this is a test, I recommend not flashing it at once, so do a fastboot boot boot.img. If everything loads up as it should (test wifi and bluetooth), you can permanently flash it.

http://depositfiles.com/files/rdytj2i33
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] cimdrap:
Shut off the device then press vol down + vol up + power button, when the MI logo appears release them
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] Alecotro:
27/04 awesome battery. Even better than miui. 30% at 00:30 from 9:00 with 3 hour playing reactor, 2 hour normal stuff and 2 hour of Google duo. Tomorrow I'll test the new kernel, today lake :D
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] baggino:
I would like to try the new kernel. You can explain the procedure to test the new kernel. Usually new kernels I test them with twrp, with fastboot how do you proceed? With ADB? How about recovery.img?

p.s. Battery is great

Solved ...
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] nimbold:
what a great ROM man!

Thank you for the great work bringing LOS to our device.

With latest build all things sounds to be working great. the only thing broken is front camera which others and Deb himself mentioned (upside-down).

for me video recording works well and I tested the file and recorded well.
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] cimdrap:
I tested the "battery saving" mode in location option, but i think i still get wakelocks.

In wakelock detector i get 13% of wake time that is not so bad, but i got:

LocationManagerService = 5 minutes x78010

Is it normal?
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] Deus.:
Same here. If I use battery saving, the number of wakelocks is rising pretty fast.
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] LokaX2:
It was said that the fix for the GPS wakelock is only for the "Device Only" mode so it's normal that it doesn't work for the others modes.
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] baggino:
There is a ver zip. 8.1.3.0 to flash before rom? For xiaomi mi 4i there was before flash lineage 13 / 14.1 or I have to install rom ver. Complete 8.1.3.0
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] Alecotro:
What do you mean by "fastboot boot boot.img"? Twrp backup?
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] cimdrap:
You can put the boot.img on pc and use ADB to let the device start through that boot image with fastboot
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] Alecotro:
I used ADB only one time to do something I don't remember... So I don't know where to start. Can you write steps to do? Or link a beginner guide to adb :)
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] baggino:
If the procedure is correct:

I put boot.img in ADB, command "fastboot flash boot boot.img" I restarted and ..... bluetooth did not work well
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] cimdrap:
You added the "flash" command why? You had not to flash anything, but just boot through that boot image. Please guys at least read the instructions in the proper way.

"Fastboot devices" command while the device is in fastboot mode (shut down the phone and then vol down + power) and plugged in. If there is a numerical code output then your device is properly set.

At this point "fastboot boot boot.img" (the boot.img file must be in the adb folder).

The phone should boot following that boot.img data
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] Alecotro:
Ok, just booted with the new kernel. Wifi and bluetooth work as they should, I will let you know if I find something strange

With wifi I made a speedtest and bluetooth I connected mi band 2 and bluetooth speaker. No problem at all.
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] xxxMADxxx:
So latest kernel is good to flash?
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] swxxz:
Can't disable dt2w,already disabled in setting and still works.
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] cimdrap:
We are near to the perfect ROM.

Now we just need to get rid of location manager wakelock and it's done for major bugs

Can you read? We know exactly what you know
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] xxxMADxxx:
Just to make it sure..chillin boy..!!
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] dels07:
Jacoghi said he forced it to always work, so it can work on ebbg screen, currently ni way to disable this.
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] Muhammad Sena:
I got problem with notification delay, how can I fix, I'm new, I have install PNF(Root) and still gor delay. Thx before
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] oieNao:
Is there a way you can enable a Screenshot system tile in the toggles and lock apps in memory just like in Mokee rom? I think they're very useful features
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] cimdrap:
+1 for both the requests
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] BlaX72:
Great rom, but I have a question. I flashed this over stock MIUI (brand new phone) and since then, I cant access the TWRP recovery. Fastboot says the bootloader is still unlocked but whenewer I try to enter the recovery the phone just freezes at MI logo. Tried to flash recovery again throug fastboot with no luck. Othervise everything else works. Any ideas?
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] cimdrap:
To enter in recovery you have to shut down the phone and then press vol down + vol up + power button and release them after mi logo
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] BlaX72:
Welp, I know that. But it hangs it freezes at MI logo. I tried to reflash TWRP 3.1, then tried to flash twrp 3.0.2 and cofface recovery without luck. I've managed to get into recovery with fastboot boot command though...
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] cimdrap:
Check your bootloader status with "fastboot oem device-info". I think it is locked. If it's unlocked explain how you flash the recovery
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] jacoghi:
- The conditions for the Advanced Reboot menu to work properly are given on the youtube video, people. Just read it and you'll be fine;

- DT2W can be disabled by changing a build.prop property called markw.dt2w (or dt2w.markw don't remember right now). Just set it to 0;

- High accuracy and battery saving modes will be fixed probably by today, I have some ideas on how to solve this, but was too lazy to try it (and I don't use those things, anyways, haha). Same is valid for front camera, sorry for the wait, I just don't use it so it didn't bother me yet, can anybody tell me if the problem happens on SKYPE when placing a video call?

- New kernel will be made default, if nobody had problems;

- I don't use two SIM cards, so I can't really test/fix the issue where the settings get messed up when rebooted;

Anyways, I don't see anyone talking about sudden reboots and stuff like that, and that's what matters to me: stability and usability.
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] Deus.:
[MENTION=4864553]jacoghi[/MENTION], I collected the logcat for the bluetooth, on unsuccessful tries it reported "ACK_DISCONNECT". Can upload if you need it.

A small misbehaviour (not a bug, as it causes no issues): I turned on the system's built-in LED notification (Settings -> Display & lights -> Notification light), gave the missed calls a good green color, hex 00ff05. Now when I had a missed call, the LED blinked light blue instead of the green. Changed the last number from 5 to 0 (same color as the battery indicator LED), now it blinks green, as expected. Instead of orange I get the yellow, hex ffff00. Very strange.

Otherwise, the ROM is stable, no freezes or hangs.
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] ups2k:
About face camera problem:

Edit build.prop does not solve the problem completely

The problem of the inverted face camera is in the boot.img

I tried installing in this ROM (20170427) other boot.img from LOS-20170418 by Liberation , face camera is working correctly.

Fix for correct sound adjustment (solution from the forum 4pda.ru, Is implemented in Mokee by Razziell)

To separately adjust the sound of headphones and speaker you need to fix the file /system/etc/mixer_paths_skuk.xml

not a valid section:

<path name="speaker">

<ctl name="RX3 MIX1 INP1" value="RX1" />

change:

<path name="speaker">

<ctl name="RX3 MIX1 INP1" value="RX3" />

To support the Xiaomi and other headset buttons, you need to add to the file system/usr/keylayout/Generic.kl

key 250 VOLUME_DOWN

key 251 VOLUME_UP
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] VulcanX:
Hey guys, if i flash this ROM will i need to clear data if i reflash with the official?

How stable is it currently? Big issues been resolved?

Thanks guys
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] Razziell:
android_frameworks_opt_telephony

git reset --hard 6ac081027f188b0e8d858e33d08fde08ed8905c8
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] Flynhx:
I don't know why, but my front camera is not upside down anymore even without "persist.camera.HAL3.enabled=1" on the build.prop, though i put it before on 20170423 build, after flashing 20170427 build(wiping all, except data)"persist.camera.HAL3.enabled=1" just disappeared on the build.prop. and now my problem is everytime i try to record a video, the camera app just crash, i already tried stock los camera and snapcam v8.3.0 but both of them seems to freeze/crash. The camera capture works fine though. Am i the only one facing this issue?
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] oaid:
I had camera crashes (in Snap Camera too) with the persist.camera.HAL3.enabled=1 srtting in build.prop.

Removed it, rebooted and camera works fine. The front camera shows the image upside-down, but I'd rather have that instead of being unable to take photos and videos.

Otherwise, no issues spotted - great work, devs :)
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] Flynhx:
Well, i want to revert back to where i can use video recording even my front cam is upside down but i can't, "persist.camera.HAL3.enabled=1" disappeared on my build.prop. even if i put it, my front cam is still the same(normal/not upside down), video recording always crash. I am willing to sacrifice front cam just for video recording. Any fix for this?
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] cimdrap:
Guys you are the classic persons that bother the developes.

This is a very alpha ROM and it has been said million of times that the camera issue is being​ analyzed.

If you test this rom be sure to take the consequences or move on and install a stable MIUI.

Imagine to be a developer being asked always the same things even if you warned everyone about the bugs...
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] baggino:
If you do not want to wait for the new release .... I did as Ups2k says and that is: I took boot.img file in the jacobi zip of the 18-4 and copied it into the 27-4 zip - made twrp flash without wiping over my Rom and frontal room are ok and the video too
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] Flynhx:
Sorry, if i posted comment that might disturb the developers, the ROM is very good and i'm using it as my daily driver, it is near stable and better than MIUI imo.

Can you share the link for 4-18 build? or maybe just the boot.img? All i can find is the latest 4-27.
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] baggino:
You will not believe it but I can not load it. This is the message:

413 Request Entity Too Large
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] bravo90078:
Not sure if anyone brought this up already, but regarding face camera problem; i have seen some variations in behaviour.

In stock LOS camera, the viewfinder on face camera is upside down and picture when captured is also upside down; this we know.

However I've tried other camera apps, and with some the viewfinder stays right side up; but the picture remains upside down. For instance with the camera apk in this thread:

https://xdaforums.com/redmi-4-prime/how-to/root-los-13-cleaning-guide-t3577284

Hope this helps a little.
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] Alecotro:
Found another bug, screen mirroring doesn't work. Anyone else?
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] nimbold:
guys can you share your battery life results? SOT will be just fine. I don't know if I damaged my battery or not but the best SOT I can get is 10 hours.
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] Deus.:
I charged my phone to 80% yesterday, the charger was pulled at 3 PM. Was on wifi the whole time, at night at 22:30 it turns off wifi and enters into flight mode, stays so till 6 AM (Tasker rulez). I came to work, used mobil data on the way (about 30 min) and the phone is online on wifi since 9 AM. Now it's 3:57 PM here, SOT is 55 minutes and it is on 54% now, system shows 1 day 7 hours are remaining.
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] Flynhx:
Nvm, thanks anyway, maybe i'll just wait for the next build release. Btw, you can use Google Drive or MEGA to upload bigger file.
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] nimbold:
Thank you for sharing the results. comparing to your results I guess my battery is OK then. I just feel global ROM 8.2.1 had the best battery for me. I remember 12 hours SOT with heavy usage and WiFi on all the time. but after 8.2.4 it went down to 8-10 hours at most.

the problem is I can't go back to miui anymore. after working with LOS, it is really hard to go back!
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] jacoghi:
People with logs, just host it somewhere and send me the link through pm, I'll look into BT issue.

Screen mirroring = cast to screen? Works just fine here with Nexus player.

Raziel, my friend, thanks for the finding on the dual sim thing, I'll apply it and people can test it out.
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] oieNao:
[MENTION=4864553]jacoghi[/MENTION] what about that? Sorry for being repetitive
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] cimdrap:
Vol down + power and you get your screenshot. There are major bugs to solve before
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] Azoset:
Please please please stop using deposit files, it's painful.
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] Grusel:
Please please please stop the mimimi about the filehoster, it's annoying... :rolleyes:
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] Dreamescaper:
I don't understand, why won't you install mokee?
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] Alecotro:
Yeah screen mirroring like that, with my LG smart TV doesn't work anymore.

I think it's via WiFi direct
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] karevn:
Any news regarding official Lineage OS support?
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] jacoghi:
Has it ever worked? If so, which build? Maybe it's the new blobs, does it work though Miracast?
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] m4tt94:
Is it really necessary to be a jerk?
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] :
Add persist.debug.wfd.enable=1 to build.prop for enable Miracast

Inviato dal mio Redmi 4 Prime utilizzando Tapatalk
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] :
After reboot you have to enable this: (see picture)

Inviato dal mio Redmi 4 Prime utilizzando Tapatalk
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] cimdrap:
Camera crash log
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] BlaX72:
I've already stated that i checked whether the bootloader is locked. Its unlocked. And I flashed recovery the same way i did it hundred times since i had Nexus 7: fastboot flash recovery *recovery_name*.img
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] Alecotro:
With stock miui it worked, sorry, but I never tried with other ROM.

When I'm home I'll update this post with the answer to miracast.

Update:

-miracast confirmed

-with build.prop tweak by [MENTION=7982513]Yoshi02[/MENTION] now it works
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] asfethan:
Hi there again, I was testing MIUI ROM for some days and here are some my discoveries.

- probably there is no problem with BT pairing after all

- the only one difference I can see between MIUI and this LineageOS build is that MIUI will reconnect noticeably faster after connection loss

I enabled BT logging and disconnected remote device by disabling its bluetooth. Then I re-enabled it again and after some waiting I disabled logging and retrieved the file from phone. Remote device is still disconnected which is far longer than on MIUI ROM.

I'll send you link to that log via PM. I can also log whole time until remote device reconnects but sometime it's more than hour.

UPDATE: Probably I was wrong again. I couldn't pair with watches again using several attempts after first successful pairing. I tried to reboot the phone and then I could pair them on first try.
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] Alezzander_:
Try: Forget Paired device (watches) in Bluetooth menu (gear opposite the pairing device), then Paire your watch again. I use this method when try to connect to the Car Bluetooth. This help to me.
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] baggino:
Sometimes I miss the call ringing, I go, in settings> sounds, and no ringtone is selected. Has it happened to some of you too? With miui, this did not happen
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] rabin69x:
can anyone confirm me about HW decoder working for 1080p videos or not? And I don't like HW+ decoder
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] Flynhx:
HW decoder works fine on my phone with this ROM, Played it with this type of video, 1080p/MP4 format/x264 video codec/aac audio codec
[Xiaomi Redmi 4 Prime ROMs, Kernels, Recoveries, & ] smaxlyb:
nice