yashsingh1/xdaforums huggingface dataset:
[Lenovo Vibe K5 Guides, News, & Discussion] electric.droid:
NOTICE: This tutorial only works for Snapdragon 415 variant, and i am currently working on the SD616 variant. thanks for understanding.

hello ladies and gentlemen,

in this tutorial i'll show you how to install TWRP into Vibe K5 a41 variant, which is known for having an un-unlockable bootloader, and flashing using traditional ways like fastboot won't work.

But if you go low-level, you can ignore the bootloader.

To be honest, i found this tut long ago on the internet, so i thought it would be good to recreate it by updating it. Thanks for those who came with this awesome idea.

I am not responsible for bricked devices, dead SD cards,
thermonuclear war, or you getting fired because the alarm app failed.
Please do some research if you have any concerns about features
included in the products you find here before flashing!
YOU are choosing to make these modifications, and
if you point your finger at me for messing up your device, I will
laugh at you. A lot.

Anyway,

STEP 1

First reboot your windows with driver signature enforcing disabled.

Ref.: [url]https://www.howtogeek.com/167723/how-to-disable-driver-signature-verification-on-64-bit-windows-8.1-so-that-you-can-install-unsigned-drivers/[/URL]

You can also run (as admin ofc)

bcdedit.exe /set nointegritychecks ON

. However, i did not test it.

STEP 2

Then install the drivers and qfil.

https://mega.nz/#!1Dpy0JaK!D_D5JWnjUzi9rGRWCsnTHekgBd6MiEMv5Rrawl4PVvA

STEP 3

run

adb reboot edl

to reboot into download mode.

how to install adb: [url]https://www.xda-developers.com/install-adb-windows-macos-linux/[/URL]

Make sure your phone appers as a COM port in Device Manager (and QFIL)

STEP 4

Select as in screenshot.

Vibe K5: https://mega.nz/#!hXxiwazQ!kRSfPAMm28v8ZOnMepy6ir65Brqmyv9gC2Fx83siMi8

Vibe K5 plus: https://mega.nz/#!sbBUVC7C!FF9abiFe7MXD-VT3O8opwqs_NnKOVJedK6l72goFGYo

Download these accordingly to your SoC and extract anywhere you like.!!!THESE FILES ARE OBSOLETE. DOWNLOAD FROM THE BOTTOM OF THE POST!!!

I have tested this on my SD415 device. SD616 users may need the "k5 plus" file. Do at your own risk.

Also, i'm in no way responsible for anything you flash through recovery.

have fun!!!

UPDATE 21.03.18:

i kinda changed the technic how this tutorial works. Now instead of flashing the files above i will give you stock roms with twrp built in for you to flash. just don't forget to boot into recovery so that stock rom does not overwrite the twrp.

phones with Snapdragon 616: https://mega.nz/#!H7RTUQbR!5P6ZP4F_rcuFR2DYuJ63M4z1U6hfqKpYx5PfTPtsSTkThese files appear not to work. Flash if you are okay with no cellular connection.

phones with Snapdragon 415: https://mega.nz/#!PmgGGI6I!9Gda2ZHNNG6lE_0dt4ag11Ng6Q1v_2DxgCGsFOHcga4

to find out what chipset you have, look at specs on your original box.
[Lenovo Vibe K5 Guides, News, & Discussion] electric.droid:
Some Notes:

+ to run qfil, go to Program files (x86) folder and find there qfil exe. Make sure to run as admin.

+ if you get sahara error, that's likely because of misconfigured drivers.
[Lenovo Vibe K5 Guides, News, & Discussion] ceanunez:
Sahara error

Thanks for the tutorial ... but i get the Sahara error, how can I solve this or the misconfigured drivers?

Regards!
[Lenovo Vibe K5 Guides, News, & Discussion] eurodiesel:
first, make sure you are running windows in test mode (driver signature disabled mode). Run cmd as admin, type "bcdedit /set testsigning on" without quotes.

After a reboot, connect your phone to pc in download mode and open Device Manager (run: devmgmt.msc). if your device shows up as "QUALCOMM HS-USB" or similar, then your drivers are fine.

Which way did you take to get into download mode?

PS: to get out of test mode, type "bcdedit /set testsigning off".

UPDATE: new download links
[Lenovo Vibe K5 Guides, News, & Discussion] Pandemicc:
windows sees the phone as a qualcom device, everything is okay with the drivers but sahara fails, please help
[Lenovo Vibe K5 Guides, News, & Discussion] eurodiesel:
what model number and what SoC do you have?
[Lenovo Vibe K5 Guides, News, & Discussion] Pandemicc:
model: a6020a41

hw code: 49

i dont know what do you mean by soc, so i send the hw code. if you ask for completely another thing, tell me that how can i find it
[Lenovo Vibe K5 Guides, News, & Discussion] eurodiesel:
SoC, or System on Chip, is what is called Snapdragon. in your case it is either Snapdragon 415 or 616. judging by your hw code, it must be SD616. plus, it must be written on your oem box.

try the link for vibe k5 plus, maybe that will solve sahara.
[Lenovo Vibe K5 Guides, News, & Discussion] Pandemicc:
yes you are right, I have checked it and it is 616. please tell me that you can help me with that
[Lenovo Vibe K5 Guides, News, & Discussion] eurodiesel:
follow tutorial step by step and use vibe k5 plus files
[Lenovo Vibe K5 Guides, News, & Discussion] agritux:
Hi,

i saw your answer in : https://xdaforums.com/vibe-k5/help/installation-twrp-a6020a41-t3745060/post75451263#post75451263

i have two questions.

1- i think drivers are true. because i can flash indian and device's factory stock rom with qfil. is it true?

2- i flahed custom roms after flashing twrp. but gsm network not exist too. is it possible extract modem.img of factory firmware? if i can extract it, i think i can flash it with fastboot.

thanks for your answers.
[Lenovo Vibe K5 Guides, News, & Discussion] eurodiesel:
i have an idea: install lenovo moto smart assistant, select device rescue, enter your model name & hw code, and continue. it should be easy.
[Lenovo Vibe K5 Guides, News, & Discussion] agritux:
i can return stock with qfil and factory image.

let me explain my issue again.

i can not install twrp on my device with factory image. with fastboot commands it says bootloader locked.

So i installed indian a40 rom. i can install twrp with fastboot command on indian rom. but on indian rom i do not have gsm network. so i need a41 modem.img i think. :)

i installed twrp on indian rom and installed custom roms but no signal again.

so i returned stock firmware with qfil. now everything is stock and i have gsm network signal. but no root no twrp no custom rom.

i want to install custom rom :)
[Lenovo Vibe K5 Guides, News, & Discussion] eurodiesel:
thats ok. now follow the tutorial you're now on.

let me explain what i did:

since fastboot won't allow me to flash twrp, i did flash it forcefully via qfil.

if you've got sd415 chipset, then go for vibe k5 files.

if sd616 then vibe k5 plus files.
[Lenovo Vibe K5 Guides, News, & Discussion] ceanunez:
Download

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

I got the solution by this command: "bcdedit.exe /set nointegritychecks ON" ... I used the "adb reboot edl" command for download mode and now it works fine.

Thanks!
[Lenovo Vibe K5 Guides, News, & Discussion] eurodiesel:
thank you very much. i'll add to tutorial sometime.

Edit: i've added it.
[Lenovo Vibe K5 Guides, News, & Discussion] eurodiesel:
[MENTION=4589777]agritux[/MENTION] how's going? did you flash twrp?
[Lenovo Vibe K5 Guides, News, & Discussion] agritux:
i couldn't :( if i have twrp, i have no gsm signal :(
[Lenovo Vibe K5 Guides, News, & Discussion] eurodiesel:
did you follow the tutorial at the first post? did you flash using K5 Plus files?

because right now, i am using my a41 device with a locked bootloader running an Android Nougat based ROM, with all kinds of mods installed, and i am sure you can do it too.

PS: i live in Turkey too and i have no idea how all a41 users except me have a SD616. ? where did you buy your phone?
[Lenovo Vibe K5 Guides, News, & Discussion] Pandemicc:
hi

I finally flashed successfully k5 plus files to my sd616 a41 device but the phone won't boot now, the device vibrates when I power it up but won't boot. can you help please?
[Lenovo Vibe K5 Guides, News, & Discussion] igorpwned:
i flashed it through flashify, yeah.. and restore the stock recovery cuz this was not working ,,
[Lenovo Vibe K5 Guides, News, & Discussion] electric.droid:
Yeah i wasn't expecting a working recovery, i just wanted to see if it would boot. So that i can make use of it.
[Lenovo Vibe K5 Guides, News, & Discussion] electric.droid:
Hello guys, how exactly did you root the vibe ui? i'm having hard time rooting it...

Edit: nevermind, root successfully achieved.
[Lenovo Vibe K5 Guides, News, & Discussion] electric.droid:
if some of you know how to edit the bootloader to set the display to 720p or to disable 2nd SIM slot then feel free to help me. Thanks.
[Lenovo Vibe K5 Guides, News, & Discussion] igorpwned:
Whats going on guys, any news?
[Lenovo Vibe K5 Guides, News, & Discussion] igorpwned:
stuck on linux logo in middle :(
[Lenovo Vibe K5 Guides, News, & Discussion] eurodiesel:
Well, I'm thinking more of making qfil flashable custom ROMs than fixing the bootloader. Bcoz it isn't that easy since I can't see the "switch" and the risk of having a hard bricked phone is enormous. If I dd the system partition and shove the image though qfil, it'd be awesome IMHO.

Can you explain more? What Linux logo you are talking about?
[Lenovo Vibe K5 Guides, News, & Discussion] igorpwned:
well i downloaded A6020a46_S034_160411_ROW_qpst i put the emmc mbn file and flashed successfully , all my phone was doing was showing that linux logo , didnt do anything else, i left it to sit long time :(

edit: later i put that file on my s005 version stock rom for my phone and had no cellurar data put i was able to go to twrp and install lineage

last edit: now i cant even restore my phone with stock rom s005 version , only blackscreen and if u connect my cable without holding the volume up and down qfil shows qualcom com4 port , basicly it goes straight to bootloader but still cant flash?

is this hard bricked?
[Lenovo Vibe K5 Guides, News, & Discussion] eurodiesel:
well, try this: https://xdaforums.com/vibe-k5/how-to/tutorial-installing-twrp-lenovo-k5-a41-t3742276/post76046637

maybe it's bricked, maybe its not. it depends on what you exactly flashed.

---------- Post added at 09:56 PM ---------- Previous post was at 09:55 PM ----------

btw, custom rom through qfil aint working. i need to sign the boot image somehow.
[Lenovo Vibe K5 Guides, News, & Discussion] igorpwned:
tried , not working saying sahara only , tried with other tools as well

the phone is not reacting to power button only cable and the led only light up red
[Lenovo Vibe K5 Guides, News, & Discussion] eurodiesel:
anything new? i had same problems yesterday, and fixed this by reinstalling hs-usb drivers.

btw i made a qfil flashable android 6.0.1 vibeui. it boots on a locked bootloader.

actually i can boot anything that uses the stock boot image. but i have to dump the rom on my phone so that you can flash.
[Lenovo Vibe K5 Guides, News, & Discussion] eurodiesel:
sorry to say this... but... this is how pancemicc bricked his phone.

Some say, downgrading qfil version might work fine. also, disable signature enforcing when booting to windows, and reinstall drivers completely. that's all what comes to my mind right now.

if you happen to send the phone to service and say smth like "i woke up at morning and it went like this", at least in turkey, you may get a new phone for free or get a refund. because nobody won't able to tell what you flashed once it's bricked. if the servicemen are scammers, then they will want $$$ from you (they will want money from anything, not smth special), in this case, stay away from them.

not really a hopeless situation, but you should try all options.
[Lenovo Vibe K5 Guides, News, & Discussion] igorpwned:
got it even downloaded on whole new pc and tried all roms ,

after connecting to pc and go to qfil normaly and click download the phone reboots itself nad turn back on in same mode , does nothing else

what did pancemicc did with his?

edit:is a sd card low on memory problem?

edit 2:

qfil 1.0.0.2 reinstalled drivers and gives me only this error it doesnt restart my problem

Download Fail:System.Exception: Unable to download Flash Programmer using Sahara Protocol

at QC.QMSLPhone.Phone.QPHONEMS_SaharaArmPrgDownload(String sFileName)

at QC.SwDownloadDLL.SwDownload.QPHONEMSSaharaDownloadArmPrg(UInt64& version, String armPrgPath)

Download Fail:Sahara FailSahara Fail

Finish Download
[Lenovo Vibe K5 Guides, News, & Discussion] eurodiesel:
he sent to service, waited 1 month, and got a refund. but he sent it too soon so i cant say that nothing worked.

memory problems aren't an issue as it gets reformatted anyway.

i will think on it. there's definitely something possible
[Lenovo Vibe K5 Guides, News, & Discussion] igorpwned:
so basicly

Searching For EDL Port...Found At COM20

Building Connection...Failed

RBSoft V1.6 Mobile Tool

Cant go to edl mode ,, main reason if we can get it somehow that will be good beacause in device menager i get the qualcom port but while conencting to the pc my phone just do the connecting sound and phone only light red top right corner
[Lenovo Vibe K5 Guides, News, & Discussion] eurodiesel:
https://www.droidsavvy.com/unbrick-qualcomm-mobiles/

try this but no guarantee.
[Lenovo Vibe K5 Guides, News, & Discussion] igorpwned:
i cant see my phone anywhere so cant do the steps , this wont work i need some kind of tool to fix port/cpu/firehose idk..
[Lenovo Vibe K5 Guides, News, & Discussion] igorpwned:
iam out of option iam about to give it to service they will hold it 1 month but what can i do here
[Lenovo Vibe K5 Guides, News, & Discussion] eurodiesel:
what do you mean "i cant see my phone"? can you elaborate?
[Lenovo Vibe K5 Guides, News, & Discussion] igorpwned:
well in the program MiniTool cant do that step
[Lenovo Vibe K5 Guides, News, & Discussion] eurodiesel:
you're not supposed to follow this part. you are likely on the old hsusb port.
[Lenovo Vibe K5 Guides, News, & Discussion] igorpwned:
Minitool cant find my phone here to delete the partitions..
[Lenovo Vibe K5 Guides, News, & Discussion] eurodiesel:
no no, minutool works if you have "new" hs usb port. i guess there is the problem. we have to flash smth that will make download mode function. no need for repartitioning.
[Lenovo Vibe K5 Guides, News, & Discussion] igorpwned:
how to get there :/
[Lenovo Vibe K5 Guides, News, & Discussion] eurodiesel:
the phone gets itself there.

now, can you tell me what do you see in the device manager when you plug in the phone?

same question, but when powering on?

a clear answer will help me assisting better.
[Lenovo Vibe K5 Guides, News, & Discussion] igorpwned:
https://snag.gy/EbAuay.jpg

without pressing any buttons
[Lenovo Vibe K5 Guides, News, & Discussion] igorpwned:
nothing mhm?
[Lenovo Vibe K5 Guides, News, & Discussion] eurodiesel:
aw, sorry, just was busy sending my phone to service and setting up my backup phone.

did you google for your problem?

the guide i linked had a zip file with flashable files available to download, have you tried them?

sometimes i think that sending to RMA is a viable option bcoz, well, unbricking can also take a month.
[Lenovo Vibe K5 Guides, News, & Discussion] eurodiesel:
some say that the guide i linked helped the lenovo a6000, which means it might help with your a6020, if you follow the steps correctly.
[Lenovo Vibe K5 Guides, News, & Discussion] igorpwned:
I want to update you guys , i got my phone returned from my service provider , with replaced motherboard and changed the version of stock rom to s028 but they still left the bootloader locked damn it ,, :X at least now i got a working phone so..
[Lenovo Vibe K5 Guides, News, & Discussion] eurodiesel:
at least they didnt make stupid things like a refund.

i made a marshmallow based vibeui that works with a locked bootloader, if you're interested.
[Lenovo Vibe K5 Guides, News, & Discussion] igorpwned:
how can i install it ,, via?
[Lenovo Vibe K5 Guides, News, & Discussion] eurodiesel:
the same way you'd install your stock rom. I'll make some couple changes and upload.
[Lenovo Vibe K5 Guides, News, & Discussion] igorpwned:
hmm idk we can give it a try if u want..
[Lenovo Vibe K5 Guides, News, & Discussion] eurodiesel:
it's up to you, not me, this is kinda a custom rom. but official.
[Lenovo Vibe K5 Guides, News, & Discussion] igorpwned:
well go for it , upload it when its done i will install it to see
[Lenovo Vibe K5 Guides, News, & Discussion] agritux:
is it stable? any bugs? how is performance? and where is the link?

---------- Post added at 09:35 AM ---------- Previous post was at 09:11 AM ----------

[MENTION=8565123]eurodiesel[/MENTION]
[MENTION=8252735]electric.droid[/MENTION]

we are forgetting something.

i have an idea

i can instal indian k5 note rom and it accepts twrp.

but after boot it has no gsm

i can install linegae or something else with twrp but it has no gsm too

so,

maybe fixing gsm on rooted lineage rom is easier than trying unlock stock roms bootloader?
[Lenovo Vibe K5 Guides, News, & Discussion] eurodiesel:
Look, those indian (a40) firmwares you flash contain a bootloader which is unlocked but only accepts dualsim modems. The a41 firmware has a bootloader which accepts single sim modem but is locked.

Since the bootloader is locked, you can only flash signed boot images.

So, i made a custom firmware that only flashes system and boot files (means bootloader stays intact) and it passes dm-verity. The rom is in k5 plus roms and recoveries section.

No disastrous bugs, but volte and gapps wont work
[Lenovo Vibe K5 Guides, News, & Discussion] KomitaMKD:
Download Fail:Fire Hose Failed to Upload the emmc images to the phone using Firehose.

Help? Mobile only vibrating when i remove the battery and try to power it on and nothing else. My display stopped working it is in black
[Lenovo Vibe K5 Guides, News, & Discussion] eurodiesel:
Probably you flashed a firmware from another phone with other screen.

You sure that you flash it on a a41 variant? Because this is a really strange side effect given that zip files are for 720p screen and you're only who reports this issue
[Lenovo Vibe K5 Guides, News, & Discussion] KomitaMKD:
I downloaded vibe k5 plus because https://dl.xda-developers.com/4/3/8....jpg?key=O88tHCToZyq9470FQVrPfw&ts=1539242477

Can you help me please and explain me what to do [Maybe, but maybe it happened while i put it in dl mode via cmd, didnt verify that back then]

Download Fail:Fire Hose Failed to Upload the emmc images to the phone using Firehose. appeared

New: Only feedback is vibration. I use adb on PC to put my phone in dl mode and qfil to flash but i get sahara fail now, yesterday it was Download Fail:Fire Hose Failed to Upload the emmc images to the phone using Firehose. I tried with older qfil version but nothing is changed. Help me ASAP
[Lenovo Vibe K5 Guides, News, & Discussion] eurodiesel:
Well, a quick search in the net reveals that your firmware might be damaged. Redownload your original stock rom and flash it. What is your model number? Like, mine is A6020a41.

Next time, consider using your search engine. The vibe k5 isn't the only phone with snapdragon inside, so you'll definitely find help elsewhere (like i did for you just now).

Edit: btw, link is broken.
[Lenovo Vibe K5 Guides, News, & Discussion] KomitaMKD:
I cant check that anymore but its Qualcomm Snapdragon 616 5 inches 1280x720 2gb ram.. Need links from official firmwares and if u can give me with twrp preinstalled something because i need twrp and want to install custom rom
[Lenovo Vibe K5 Guides, News, & Discussion] eurodiesel:
Dude, it's under the battery ?
[Lenovo Vibe K5 Guides, News, & Discussion] KomitaMKD:
Lenovo A6020a41
[Lenovo Vibe K5 Guides, News, & Discussion] eurodiesel:
Okay then. I asked this bcoz blank screen isn't supposed to happen, so i thought maybe your phone might be another variant.

There's a stock marshmallow rom that might work for you, otherwise there's not much you can do in terms of modding.
[Lenovo Vibe K5 Guides, News, & Discussion] KomitaMKD:
Man ur tutorial crapped up my phone totally and i followed hunred tuts on xda which all are freaking different but for the same phone, nevermind that all use different driver versions and all that and my phone still fails because some errors i get in qfil and now without doing anything especial my phone cant be read in powershell and turned to download mode
[Lenovo Vibe K5 Guides, News, & Discussion] eurodiesel:
Disclaimer on the OP is there ;)

If you have feedback from the phone and can see a COM port when in download mode, then you are in the downlod mode. You clearly doing something wrong, i tested subsequently the tutorial to make sure it's not crap.

And, if you ask help properly (properly means include all info about the issue) then I'll do my best, but if you're gonna complain about smth not working then you're on the wrong website.
[Lenovo Vibe K5 Guides, News, & Discussion] KomitaMKD:
I dont look like im asking for help for 2 days?

---------- Post added at 12:15 PM ---------- Previous post was at 11:39 AM ----------

I tried doing that in the tutorial and Download Fail:Fire Hose Failed to Upload the emmc images to the phone using Firehose. I tried to flash something else and received sahara error. After 2 long days of trying and trying i seem to get even far from rescuing the phone. Since i cant get the phone ported to qfil or be put in download mode via administrator . Ill have downloaded this firmware Lenovo_A6020a41_S005_Q1021101_20161017.zip from https://firmwarefile.com/lenovo-vibe-k5-a6020a41 but I cant use it obviously anymore dont know what to do

[IMG="Messed up phone recognizing now [sometimes it shows it as recovery, but rarely]"]https://i.imgur.com/fV9oNvQ.jpg[/IMG]
[Lenovo Vibe K5 Guides, News, & Discussion] eurodiesel:
Well, i told you to re-download the stock rom. It can be downloaded with Lenovo Smart assistant (search google).

You should've known where to download the stock rom before starting modding.

---------- Post added at 01:26 PM ---------- Previous post was at 01:23 PM ----------

Try to download the firmware using program mentioned above.
[Lenovo Vibe K5 Guides, News, & Discussion] KomitaMKD:
After trying million times i get fail error
[Lenovo Vibe K5 Guides, News, & Discussion] eurodiesel:
With the firmware i told you to download?
[Lenovo Vibe K5 Guides, News, & Discussion] KomitaMKD:
With the firmware Lenovo Smart Assistant app downloaded it automatically, tried with Lenovo Downloader but after waiting for 1 hour nothing happened [it didnt show any interruptions in the app, it continued with the timer but the progress was stuck]
[Lenovo Vibe K5 Guides, News, & Discussion] eurodiesel:
Try flashing using qfil with the firmware you have downloaded with assistant.

Edit: just to add, your problem with failing to upload emmc images is about either firmware being corrupt or the site you used is hosting a botchy firmware. The file which assistant downloaded is inside it's folder in Program Files folder.
[Lenovo Vibe K5 Guides, News, & Discussion] KomitaMKD:
Can't port my phone to qfil
[Lenovo Vibe K5 Guides, News, & Discussion] eurodiesel:
Oh, one thing i forgot to say you: if you flashed the rom for sd415 on a sd616 device then repair shop is your friend.

Other than that, most bricks are fixable, but not bricks caused by flashing a file of a wrong processor.
[Lenovo Vibe K5 Guides, News, & Discussion] agritux:
any news about a6020a41 hw49 ? [MENTION=8565123]eurodiesel[/MENTION] [MENTION=8252735]electric.droid[/MENTION]
[Lenovo Vibe K5 Guides, News, & Discussion] eurodiesel:
Well, I've yet to find some way to boot unsigned images, the way how sammy users boot theirs don't work either. Not having the said phone makes things more dificult, unfortunately.

I ported latin american android 6 update, but that's it.

I REALLY not trying to make excuses but this thing's beyond me.

If you have time to mess around, there is a custom twrp called safestrap, used to boot twrp on qualcomm based samsung phones. You'll need to compile it and hopefully it'll boot.
[Lenovo Vibe K5 Guides, News, & Discussion] agritux:
will your android 6 ported rom works for me?

can you share?

edit: while i am working to flash twrp now i have no imei :( what can i do? :(