yashsingh1/xdaforums huggingface dataset:
[Lenovo Vibe K5 Plus ROMs, Kernels, Recoveries, & O] daeMysterious:
Dude i know a great fix

Well,I read your post i know i am too late(maybe not) but i will give you a quick guide to install required(and compatible with your hardware)drivers since they seem to be damaged(welp you need to be using a PC and a micro sd for these)(Also you need to know that all your files are going to be gone and you will need to unlock your bootloader again in case you dont want to use full stock rom)

Step One: Download and install Lenovo Moto Smart Assistant

Step 2: go under "Flash" option and then rescue and select the product you are using now choose the model and also select your hw code which i found under battery i dont know yours, and then wait for download.

Step 3:Enable usb debugging and then open cmd and use this command "adb reboot edl" without double quotation marks ofc

Step 4:Proceed and press ok to all of em

AND CONGRATULATIONS! you are now on stock rom with all compatible drivers installed on your drive!

Also this is to everyone a quick tip:if you cant reboot to download mode which you can do on cmd, you can go to fastboot mode first (Voldown+power)and then keep pressing on VolUp+VolDown+Power (keep doing until you see a whole black or a glowing screen)

Also can someone teach me or recommend me a guide for Custom rom devolopment? I'm really into it but i cant find new guides.
[Lenovo Vibe K5 Plus ROMs, Kernels, Recoveries, & O] Fax Max:
Would really love to get the audio balanced....
[Lenovo Vibe K5 Plus ROMs, Kernels, Recoveries, & O] Fax Max:
Using this setting in viper for android legacy material majisk installed because the sound is not balanced.

Also, while a music is playing in a headphones, if a system sound plays the sound plays in both the speaker and headphones and continues like that untill i pause the music and play again, (music is general term i tried on YouTube and any other audio source)

Edit: system sound plays even in silent do not disturb mode, in both headphones and speaker
[Lenovo Vibe K5 Plus ROMs, Kernels, Recoveries, & O] adinechin:
New build with December security patch : https://drive.google.com/open?id=1Te3PN4vZ8lbU-LgqE_mzwGGjN4iwwrbC
[Lenovo Vibe K5 Plus ROMs, Kernels, Recoveries, & O] DnlPereira:
Two questions

Hello! can i use any gapps? I'm on Android 10 but the performance is not very cool ... I remember this ROM is working. Does the camera work normally? And the led of notifications? And WhatsApp , Instagram videos?
[Lenovo Vibe K5 Plus ROMs, Kernels, Recoveries, & O] adinechin:
You can use any Gapps

I think everything works fine

On the last version there were a little bug on the stereo audio repartition, but located on ROM side so to check ;)
[Lenovo Vibe K5 Plus ROMs, Kernels, Recoveries, & O] adinechin:
For those interested, new build : https://edifixiotest-my.sharepoint....pOmqHBR9Akm9UBmfkjlwcbGehtphE79-uhZg?e=YiHAIf

Changelog

Kernel from ArrowOS 10 : QuickSilveR
[Lenovo Vibe K5 Plus ROMs, Kernels, Recoveries, & O] dwnwwl:
I've been using it on my main phone since January 15th. It's completly stable, I have found no bugs. Thank you for your work!
[Lenovo Vibe K5 Plus ROMs, Kernels, Recoveries, & O] adinechin:
Hi, I am wondering if you have the following issues with this build :

having to pair again your bluetooth devices after reboot to make them work

notification tile does not go down

I have these but I don't know if it's related...
[Lenovo Vibe K5 Plus ROMs, Kernels, Recoveries, & O] adinechin:
Hi everyone, new update : https://edifixiotest-my.sharepoint....lPh7wgdiy4pkMBWnXOB0cLKtuSbjmZ51roMg?e=dfe12X

Some informations on this build :

Back to DarkKnight kernel : notification tile bug was due to previous kernel (QuickSilveR)

January patch update

There is still a little bug of bluetooth MAC adress changing after every reboot, but present in all Oreo, Pie and Ten roms
[Lenovo Vibe K5 Plus ROMs, Kernels, Recoveries, & O] frogst:
Hi, [MENTION=4854754]adinechin[/MENTION] ! I've been using this rom (20200113 build) for three days and have no problem with notification tile. My phone is Vibe K5 Plus (2 GB) and this rom is one of the best (and personally i think the best) for our devices. Everything works fine, battery life is good too. True, after rebooting the bluetooth needs to pair again, but it's no big deal. Maybe in a few days i'll try the new build, but this one also completely satisfies me.

Thanks for your work!
[Lenovo Vibe K5 Plus ROMs, Kernels, Recoveries, & O] adinechin:
Ok keep me posted if you encounter any bug. Which model do you have exactly ?
[Lenovo Vibe K5 Plus ROMs, Kernels, Recoveries, & O] frogst:
OK. My model is Vibe K5 Plus(A6020a46, Snapdragon 616, 2 GB RAM).
[Lenovo Vibe K5 Plus ROMs, Kernels, Recoveries, & O] adinechin:
I have the same device, do you ever let it shutdown at the end of the battery ?

If not, continue because it seems to be the source of the bug.
[Lenovo Vibe K5 Plus ROMs, Kernels, Recoveries, & O] frogst:
No, with this rom my phone did not turn off due to low battery.
[Lenovo Vibe K5 Plus ROMs, Kernels, Recoveries, & O] frogst:
I forgot to say that the sound, especially through the speakers, is quite loud and distorted. I changed the value of "RX1 digital volume" (in mixer_paths_qrd_skuh.xml) from 96 to 86 and now it's fine.
[Lenovo Vibe K5 Plus ROMs, Kernels, Recoveries, & O] Nyakov:
Decrypt data

Hi. I installed official TWRP recovery from https://twrp.me/lenovo/lenovoA6020.html (twrp-3.3.1-0-A6020.img) but it does not decrypt encrypted data. Is it expected behavior? Is it right one for this ROM?

Can I install linageOS recovery, how to?
[Lenovo Vibe K5 Plus ROMs, Kernels, Recoveries, & O] adinechin:
I don't know how encryption works, I never used it. But yes you can install any ROM with TWRP. Why do you want LineageOS recovery ?
[Lenovo Vibe K5 Plus ROMs, Kernels, Recoveries, & O] frogst:
I've been using the new build for a while, but I think in the previous build, with QuickSilver kernel, battery life, performance, sounds (and notifications sounds in particular) are better. Thanks again, [MENTION=4854754]adinechin[/MENTION], for your great work.

[MENTION=4933889]Nyakov[/MENTION], for "Oreo" roms I always use TWRP 3.2.1
[Lenovo Vibe K5 Plus ROMs, Kernels, Recoveries, & O] Nyakov:
I expect that LineageOS recovery will decrypt data, also, for the shake of consistency I think :)
[Lenovo Vibe K5 Plus ROMs, Kernels, Recoveries, & O] Brmpft:
[MENTION=4854754]adinechin[/MENTION]: Very nice ROM, thank you for keeping this phone alive :)

[MENTION=4933889]Nyakov[/MENTION]: I ha(ve|d) exactly the same problem: I encrypted the phone, and TWRP asks for the pin/password, but it does not accept the correct code.

Workaround: Run TWRP, connect the phone by USB to a PC, and run: adb shell twrp decrypt 123456 (replace 123456 with your pin/pwd).

I could mount then and make TWRP backups. However, I did not try to restore or install anything using TWRP yet...

Edit: The cause seems to be the ROM, and not TWRP, because I just tried to install and setup "snooper stopper", and also this program complains about an invalid current password. On another phone of mine it works fine.

(snooper stopper allows to set different passwords for booting/mounting and for screenlock. A brute force attack to TWRP with a script calling above adb function would be successful in a relatively short time for non-inconvenient lockscreen-protections (i read somewhere that TWRP needs ~10 seconds pause between attempts, so a 4-digit-pin is cracked in a few days; I don't know if this can be drastically reduced e.g. by just patching TWRP, or if this delay is implemented in hardware...)).
[Lenovo Vibe K5 Plus ROMs, Kernels, Recoveries, & O] adinechin:
Hi everyone, for those who prefer, here are two updates, both with february patch, I've also lowered the volume as suggested earlier :

DarkKnight kernel (less battery backup, but no problem when phones turns out because of battery out) : https://edifixiotest-my.sharepoint....BMmDTr_u9y0X4BXmlOY8NorO8Z9NSL32G5hA?e=IpQVdP

QuickSilver kernel from ArrowOS 10 (more battery backup) : https://edifixiotest-my.sharepoint....dOolJWU8c6op0B4LLoMcFDXJnDOeFsOGEN_A?e=i2FZIo
[Lenovo Vibe K5 Plus ROMs, Kernels, Recoveries, & O] Akash Raj1:
Wow, that must be a lot of work for you. Thanks for keeping the development for this device alive.:)
[Lenovo Vibe K5 Plus ROMs, Kernels, Recoveries, & O] frogst:
Hi, [MENTION=4854754]adinechin[/MENTION]! Maybe I misled you a bit about the "RX1 digital volume" (with the QuickSilver kernel). I only changed the value at the beginning of the file (screenshot 1). But in the "mixer specific settings" - "handset" I did not change the RX1 - the value was 96 (screenshot 2). So, if the earpiece sound is not loud enough, the RX1 digital volume (screenshot 2) can be increased to 92-96 according to personal preference.
[Lenovo Vibe K5 Plus ROMs, Kernels, Recoveries, & O] frogst:
Sorry for the delayed reply. I left my phone to turn off due to low battery, but I don't have notification tile bug. I'm using the latest build with QuickSilver kernel.
[Lenovo Vibe K5 Plus ROMs, Kernels, Recoveries, & O] adinechin:
Thanks for the feedback, I'll try again next time ;)
[Lenovo Vibe K5 Plus ROMs, Kernels, Recoveries, & O] rafaellancas:
I would love to try, could you please post some decent working link?

Would you please post a link to download the rom? I would like to try it to give you feedback, but there are only these super confused github links with a few nonsense folders and no roms :S

---------- Post added at 10:45 PM ---------- Previous post was at 10:37 PM ----------

Could you post a downloadable link please?
[Lenovo Vibe K5 Plus ROMs, Kernels, Recoveries, & O] adinechin:
All the links are in the post you quoted. It's on my professional OneDrive (the ones with "edifixiotest" in it). I advise you the one with DarkKnight kernel.
[Lenovo Vibe K5 Plus ROMs, Kernels, Recoveries, & O] rafaellancas:
I couldn't find it even in the link you told, there were only more nonsense folders with Meta inf and similar stuff, but I gave up this forum. None of the ROMs here have downloadable links anymore, so I just used and old port of Lineage 14 that I still had in my computer. Too bad, this used to be the best place to find good ROMs. Maybe you guys are aiming only on devs now, and, for us users, it's really hard to turn these folders from GitHub or onedrive into flashable zip ROMs like you guys used to post before. But thank you for your answer anyway!
[Lenovo Vibe K5 Plus ROMs, Kernels, Recoveries, & O] Akash Raj1:
The link was available in the quote and it's working fine. I downloaded the ROM just now. So why don't you stop ranting and ask nicely? For your query, you need to click the download icon in top left corner.
[Lenovo Vibe K5 Plus ROMs, Kernels, Recoveries, & O] adinechin:
Hi everyone, here is a new build with some fixes : https://edifixiotest-my.sharepoint....FAjfcTul90Y64Bz6CoE6mHBF-AWGoVICONGQ?e=WuAh3n

March security patch

QuickSilveR kernel (quite stable, see below for more details)

Bluetooth and wifi MAC are fixed (official device one, and not changing at every reboot)

Also for those who encounter sometime a reboot or shutdown when you have low battery, and lose the hability to

pull down notification bar

use home button

see any notification

Follow this guide (using only ADB and root for ADB) : https://xdaforums.com/k5-plus/development/rom-arrowos-10-0-stable-t4028183/post82081237#post82081237
[Lenovo Vibe K5 Plus ROMs, Kernels, Recoveries, & O] antoniu200:
[MENTION=4854754]adinechin[/MENTION] Thanks for this stable and smooth ROM! I installed it last night and until now (10 am) I am surprised how stable and smooth this ROM is. Far better than any Android 8.1 ROM that I have tested on this device (A6020a40).

I, however, have a few suggestions for improvements.

The battery performance while the phone is locked (in sleep) is pretty bad compared to other ROMs using different kernel. Now, I really hope it doesn't come to replacing QuicksilveR, because it's very stable, but it isn't the wakelocks that are causing this, there's something else. I tried WakeBlock from Google Play, it didn't help. So, if you can fix this issue, that's great. If not, please link me to the QuicksilveR thread (I have no clue where it is, I browsed through XDA multiple times and I haven't seen it) so I let the kernel maker know about this issue, maybe they can fix it.

Since this is a really good ROM and the most persisting bug I see is that speaker pop one, I'd say you should try and fix it. I've looked through the logcat of the phone using Apps2SD and I've seen that the speaker audio system keeps being turned on and off. My Xperia XZ1 Compact doesn't do that, so that may be the cause of the pop. I'll help you in any way I can, I just want this bug fixed. I'm so tired of it.

This is just a recommendation, not a bug, but it's annoying to see. The Animator Duration Scale is too fast even at 1x; faster than the tranzition and window animations, at least. I found that 1.5x makes them very close in duration. If you could fix this, it would be great.

Another recommendation, not an annoyance this time: the dropdown quick settings menu is white in Android 8, we all know that. But Sony found a way to make the quick settings menu black. If possible, I'd like it that way on this build. If you know how I can make that way, please let me know. I'm also going to attach a screenshot of my other Xperia XZ1 Compact (on Android 8) so you can see what I am looking for.

Again, thanks for building this ROM with care! It's just great.

LE: Forgot to mention there is also some micro-lag while scrolling that appears everywhere except for the settings app.

LLE: I installed this ROM by just updating a build of LineageOS 14.1. I installed this over the previous one and just wiped cache and Dalvik Cache. No app crashes, no nothing, except of the ones mentioned above.

Yet another LE: Tonight, 4th of April, it dropped 6%. Even more than yesterday night.
[Lenovo Vibe K5 Plus ROMs, Kernels, Recoveries, & O] frogst:
I think that "deep sleep" is OK. Maybe you need to try a clean install.
[Lenovo Vibe K5 Plus ROMs, Kernels, Recoveries, & O] antoniu200:
It is ok, but compared to 0% discharge in 6-8 hours on other 8.1 ROMs, this discharges 2-3% in 6-8 hours.

Not that it isn't ok, but it can be much better.
[Lenovo Vibe K5 Plus ROMs, Kernels, Recoveries, & O] eurodiesel:
I'd say it's fine. How old is your battery?

---------- Post added at 05:47 PM ---------- Previous post was at 05:42 PM ----------

Xz1 is a completely different kind of hardware, though.

Also maybe put your phone into aeroplane mode overnight, that might help with excessive battery drain.
[Lenovo Vibe K5 Plus ROMs, Kernels, Recoveries, & O] antoniu200:
It's brand new, I just bought 2 to replace one that I've used for about 2 years.

You all say it's fine, but never say how much the phone actually discharges over 6 hours in deep sleep.

Again, 3% is fine, but I know the phone can do 0%.

It is indeed, but I still find it abnormal to keep turning on and off the driver for sound. No matter the device, I highly suspect it's not good to keep doing that.

I tried, didn't help. Wi-Fi off, Airplane mode on and still seeing 3-6% drop. I'm doing a clean install tonight and report back here, if any improvement occurs.

EDIT: No improvement. 9% over 18 hours (forgot to check on it this morning). Device: A6020a40 with Snapdragon 615. Did a clean install by formatting /data, /system, /cache and dalvik-cache. Installed the zip over the formatted partitions.
[Lenovo Vibe K5 Plus ROMs, Kernels, Recoveries, & O] adinechin:
Hi and thanks for your feedback, here is my answer ;)

First of all, I'm quite new to ROM developpment so for most of your requests, I haven't any idea on how to fix it, so if you have any suggestion please feel free !

Also for your information, I'm right now like most of you I think in confinment, managing as I can between my wife and 3 kids in a 80m² appartment, trying to manage my work, my wife's one (urgentist), and the family life, so I don't have much space and time to work on bugs right now

And last, if you want to try/build/test yourself, the last build uses this repo/branch for kernel : https://github.com/ghostrider-reborn/android_kernel_lenovo_msm8916/tree/lineage-16.0, and on my side I've not check the exact percentage, but during the night I only see a flat line...
[Lenovo Vibe K5 Plus ROMs, Kernels, Recoveries, & O] adinechin:
I suggest you to report this to the developper of the kernel, and if your interested to join the Telegram groups for K5/K5+ to be informed about all developpments and updates.

https://t.me/vibek5

https://t.me/vibe_k5
[Lenovo Vibe K5 Plus ROMs, Kernels, Recoveries, & O] antoniu200:
Thanks a bunch for replying! I was thinking to make my own build of LOS for this phone and try and fix the bugs myself, but I don't have 130 GB of free storage, so that's a no-go, I guess. Unless I don't really need 130 GB.

I don't want the bugs fixed in any timely manner. You do them as your time allows you to. We all have our lives. But I'd appreciate it if you did fix them. Even if it's in 6 months from now, it still won't be too late for me.

As for reporting the bug to the kernel maker, that I can do. Thanks for the link! I might actually join the Telegram group.
[Lenovo Vibe K5 Plus ROMs, Kernels, Recoveries, & O] frogst:
It is absolutely normal to drain the battery by 9% for 18 hours, or by 2-3% for 8 hours. With which rom for this phone you have 0% battery drain for 6 hours?
[Lenovo Vibe K5 Plus ROMs, Kernels, Recoveries, & O] antoniu200:
Oh God… Please stop saying it's normal. I said it myself it's "alright" as in "normal".

This was the ROM I was using [ROM][UNOFFICIAL][8.1] LineageOS 15.1 for the Lenovo K5/K5 Plus by Shreps with this kernel [KERNEL][A6020][Dragon-Elite][v3.10.108] by yankit293.

I don't know how this helps, though, as I'm going to contact the guy making QuicksilveR tonight (GMT + 3).
[Lenovo Vibe K5 Plus ROMs, Kernels, Recoveries, & O] frogst:
OK. I'm stoping. Good luck!
[Lenovo Vibe K5 Plus ROMs, Kernels, Recoveries, & O] SidR21:
Is D2W enabled in any of the two kernels?
[Lenovo Vibe K5 Plus ROMs, Kernels, Recoveries, & O] adinechin:
Honestly I don't know, I'm using QuicksilveR kernel developped by [MENTION=277463]Ghostrider[/MENTION]_reborn on Telegram. But I think there is a way to check with some kernel configuration app...
[Lenovo Vibe K5 Plus ROMs, Kernels, Recoveries, & O] adinechin:
Hi everyone, it's a little late but I think Oreo ROMs are updated last on LineageOS ;)

Here is the new build with April security patch : https://edifixiotest-my.sharepoint....lBjsdAUJXRaB0BRPR7fZw7U7AIYjG5f_2XMg?e=1L0hgF
[Lenovo Vibe K5 Plus ROMs, Kernels, Recoveries, & O] Docmine7:
I updated from the February version (clearing cache and dalvik cache) and it worked well! thank you :D
[Lenovo Vibe K5 Plus ROMs, Kernels, Recoveries, & O] adinechin:
New update with may security patch : https://edifixiotest-my.sharepoint....5AhWfJAbHsRHABga7xJDMZDqd8oXmC2524ow?e=CruTtJ
[Lenovo Vibe K5 Plus ROMs, Kernels, Recoveries, & O] mrsiri:
Is this ROM based on Android One? I need a Lightweight ROM
[Lenovo Vibe K5 Plus ROMs, Kernels, Recoveries, & O] eurodiesel:
No, it's not based on android one and yes, it's lightweight.
[Lenovo Vibe K5 Plus ROMs, Kernels, Recoveries, & O] Phanox:
Hi! Is there a way to change the Bluetooth's MTU to 512 on the rom? To match most Samsung phones' MTU and use the Amiibo support on the Joy-Con Droid app. Thanks in advance.
[Lenovo Vibe K5 Plus ROMs, Kernels, Recoveries, & O] KurioHonoo:
The file that needs to be altered is located here https://github.com/adinechin/android_system_bt/blob/dot-o/include/bt_target.h if the Dev is using their own repo or https://github.com/LineageOS/android_system_bt/blob/lineage-15.1/include/bt_target.h if they are using the LineageOS repo.

The line line of code that needs to be change is #define HID_DEV_MTU_SIZE 64

The 64 just needs to be changed to 512 and then make that puppy!

I am actually going to be building this ROM for someone on Reddit and was just looking for this file since it's not in the same place as it is for LineageOS 17.1/AOSP 10
[Lenovo Vibe K5 Plus ROMs, Kernels, Recoveries, & O] adinechin:
As you seem to know your subject, would you help me find out why to BT Mac address is not the correct one and changes at every reboot ? I thought I fixed it but it does not seem to work anymore...
[Lenovo Vibe K5 Plus ROMs, Kernels, Recoveries, & O] KurioHonoo:
So does that mean you'll be making the HID MTU change for your June Patch release? =)

As for your Bluetooth Mac address changing, I am definitely going to need more information on that. Mac addresses are know as "Burned in addresses" because they are quite literally burned into the hardware. That isn't to say that they can't report different Mac addresses. I can't quite remember which version of Android introduced it, but by default the Wi-Fi Mac address is randomized for each wireless network you connect to for "security" reasons, but you can go in on a per network basis and tell it to use the devices Mac address. There is no such option for Bluetooth as far as I am aware. I don't know why there would need to be.

So where are you checking your device's BT Mac address on the device? When did this start happening? Was it after a change you made to the ROM?
[Lenovo Vibe K5 Plus ROMs, Kernels, Recoveries, & O] adinechin:
Maybe ;) I don't understand wat is the impact of such a change by I can try...

To see the MAC addresses for Wifi and BT, I go into Settings > About phone > Status and I enable both.

What I've done :

At the beginning, when I built LOS as is, I did not have the same MAC addresses as in stock ROM

On the advice of one developper, I replaced wcnss_service by stock one

by removing it in device tree (https://github.com/adinechin/androi...mmit/e3a3d84af8d1c97b6f27d27f16f9030ee0e9a829)

and adding it in vendor tree (https://github.com/adinechin/androi...mmit/d6ba57466fcebee73aef77e1d39f3f81339cb267)

It seemed to work for some time, but lately I realized that it did not work anymore.

Thanks for your help.
[Lenovo Vibe K5 Plus ROMs, Kernels, Recoveries, & O] KurioHonoo:
There is an app called JoyCon Droid that allows you to use your phone as a Nintendo Switch Pro Controller to connect to your Nintendo Switch and that aspect of it works quite well. The feature people want it for is the ability to pass through amiibos to the switch. The issue is that at this time it only really works on Samsung devices as they have much higher HID MTU sizes than nearly all other Android devices. Making the change from 64 to 512 allows the app to work on any device it's baked into. I've already done it on my Essential PH-1 on LOS 17.1 and it's been great. It's an extremely simple change and won't hard the ROM.

As for your Wi-Fi and BT, I see that you removed wcnss_service from the qcom-wifi.mk, but not the WCNSS_qcom_cfg.ini which you added to the A6020-vendor.mk.

I tried looking around at other ROMs and it's a bit wonky to find the proper files. That being said, everywhere that I was able to find the vendor proprietary files, the "vendor/lenovo/A6020/proprietary/etc/wifi/WCNSS_qcom_cfg.ini:system/etc/wifi/WCNSS_qcom_cfg.ini " line was always in the A6020-vendor.mk file, but "vendor/lenovo/A6020/proprietary/bin/wcnss_service:system/bin/wcnss_service " never was.

So maybe try readding wcnss_service back into your qcom-wifi.mk file and removing the line from the A6020-vendor.mk file, make the HID MTU change to 512 ;) and then try building that and see how it goes.
[Lenovo Vibe K5 Plus ROMs, Kernels, Recoveries, & O] adinechin:
I'll try that and keep you posted. I did not see that I put the ini file on both sides...
[Lenovo Vibe K5 Plus ROMs, Kernels, Recoveries, & O] Phanox:
Hi! I'm the one who [MENTION=3069846]KurioHonoo[/MENTION] referred to, to test a build on the K5 Plus when you need. :D