yashsingh1/xdaforums huggingface dataset:
[Lenovo Vibe K5 Guides, News, & Discussion] Pandemicc:
I will be installing stock rom then report
[Lenovo Vibe K5 Guides, News, & Discussion] denny.hell:
I did some experiments and research. The issue seems to be with the emmc_appsboot.mbn file. I discovered that this file is acctuallly the ABOOT partition on our phone.

When I first flashed my phone using the K5plus files, I ended up with a black screen. The first ROM with prebuilt TWRP that OP gave me, also had a black screen(probably using the same emmc_appsboot file). The second ROM with prebuilt TWRP in it has the network connection problem. Also the first ROM has an unlocked bootloader.

The solution here is either to find a way to edit and modify the emmc_appsboot.mbn file or find one that will work on our phone without any problems.

Flashing the STOCK emmc_appsboot.mbn file while you have TWRP installed will render it usless. That is because the stock file has some sort of verification to check if the recovery is the stock one or a custom one. Beeing able to actually flash and load TWRP with another emmc_appsboot.mbn file suggests that there is actually a way to modify the file. The only way that I found is through HEX editors. But I have never worked with HEX and have no idea what to do. If someone here knows how to edit HEX files, give it a shoot.
[Lenovo Vibe K5 Guides, News, & Discussion] electric.droid:
yes i know that problem comes from .mbn file.

however i managed to export modem partition (i believe) to sdcard. so, i think, if -while on stock firmware- we manage to reimage the modem and then reflash the img file, theoritically it might solve the issue. but i had no such issues, so i cannot try.

what do you think guys?
[Lenovo Vibe K5 Guides, News, & Discussion] denny.hell:
I'm willing to test with anything we came up with.

As for the solution you provide, I will try and see if it works. I have experience with extracting partitions from Android devices and reflashing them.

But I need to do some more research, because I noticed a modem.zip file in the full ROMs and to check what that is before trying anything.
[Lenovo Vibe K5 Guides, News, & Discussion] electric.droid:
there were some country-specific ota zip files. let me upload them
[Lenovo Vibe K5 Guides, News, & Discussion] electric.droid:
on the other side, there is a backup option called "firmware" in twrp.
[Lenovo Vibe K5 Guides, News, & Discussion] denny.hell:
Yes, I have those...I can give them a try and see what happens.
[Lenovo Vibe K5 Guides, News, & Discussion] electric.droid:
here are ota filez
[Lenovo Vibe K5 Guides, News, & Discussion] Pandemicc:
I have tried with stock rom, the vital function works well.

How about you guys? Has anyone come up with something yet?
[Lenovo Vibe K5 Guides, News, & Discussion] electric.droid:
look what i found.

notice the absence of image for modemst
[Lenovo Vibe K5 Guides, News, & Discussion] Pandemicc:
Sorry but I don't have that kind of knowledge on smartphone rom and software to get the meaning of that. I will test whatever you guys throw at me
[Lenovo Vibe K5 Guides, News, & Discussion] electric.droid:
DELETED

Nonsense deserves to be deleted.
[Lenovo Vibe K5 Guides, News, & Discussion] Pandemicc:
kingroot failed to root phone. how do I do it?
[Lenovo Vibe K5 Guides, News, & Discussion] denny.hell:
I'm not sure but I think that has nothing to do with our problem because I checked the same file on the original stock ROM and the filename is also missing (despite the fact I have connection on that one)

I also discovered that the NON-HLOS.bin file is actually the modem (firmware) partition. But that too seems to be in check.

I have my doubts about modem_elf.zip file. I think that is the baseband, but don't know for sure.

Question.... where did you get the files for the prebuilt ROM?

---------- Post added at 06:04 PM ---------- Previous post was at 05:55 PM ----------

I doubt that will help, but at this point it's worth giving it a try.

Is your phone back on stock. I've rooted my phone several times with it and it never failed.
[Lenovo Vibe K5 Guides, News, & Discussion] Pandemicc:
yes it is on stock. I tried through both phone and pc
[Lenovo Vibe K5 Guides, News, & Discussion] electric.droid:
[MENTION=8952061]Pandemicc[/MENTION] please for gods sake dont brick your device. [MENTION=7071215]denny.hell[/MENTION] answer: lenovo moto smart assistant. i input the model and hw code, it downloads the rom. basically anyone can do it.
[Lenovo Vibe K5 Guides, News, & Discussion] Pandemicc:
the phone is fine problem is, kingroot cannot root it. I believe I can resurrect the phone again and again, it is not the first time I torture it
[Lenovo Vibe K5 Guides, News, & Discussion] electric.droid:
then try kingoroot
[Lenovo Vibe K5 Guides, News, & Discussion] Pandemicc:
apk or through pc? which would work better?
[Lenovo Vibe K5 Guides, News, & Discussion] denny.hell:
For what HW code did you download the files? Mine is 49.
[Lenovo Vibe K5 Guides, News, & Discussion] electric.droid:
correct
[Lenovo Vibe K5 Guides, News, & Discussion] electric.droid:
Stop with the tutorial!!!

there is one more partition i found. while modemst might be nesessary, one more partiton might be needed.

type dd if=/dev/block/mmcblk0p1 of=/sdcard/ modempartiton1.img to backup

type dd if=/sdcard/modempartiton1.img of=/dev/block/mmcblk0p1 to restore
[Lenovo Vibe K5 Guides, News, & Discussion] denny.hell:
this is getting really frustrating. It all points to the emmc_appsboot.mbn file. Did you by any chance modify it somehow?
[Lenovo Vibe K5 Guides, News, & Discussion] Pandemicc:
kingo root failed too.
[Lenovo Vibe K5 Guides, News, & Discussion] denny.hell:
that is the modem partition. it's flashed from the NON-HLOS.bin file from the ROM.

---------- Post added at 06:54 PM ---------- Previous post was at 06:51 PM ----------

Does it give an explanation why it failed?
[Lenovo Vibe K5 Guides, News, & Discussion] electric.droid:
yes it is.
[Lenovo Vibe K5 Guides, News, & Discussion] Pandemicc:
sadly no
[Lenovo Vibe K5 Guides, News, & Discussion] electric.droid:
no i did not modify anything

can someone check their imei, is it intact?
[Lenovo Vibe K5 Guides, News, & Discussion] Pandemicc:
it is intact
[Lenovo Vibe K5 Guides, News, & Discussion] denny.hell:
If you didn't modify anything then the phone should be able to work with no problems, but it wouldn't be able to enter in recovery because the original emmc_appsboot.mbn checks to see if the recovery is the stock one and when it sees that is not it reboots you in download mode. That leads me to conclude that the emmc_appsboot.mbn file is modified to allow TWRP to run, but somehow messed up the network connection.

I'll check the imei tommorow...I'm going to work now.
[Lenovo Vibe K5 Guides, News, & Discussion] electric.droid:
BANG!! the sd616 variant of a40 i used the bootloader file from is a DUAL SIM device, idk if this has to do smth with it.

will upload the mbn file from my device. the only difference is SD415.

edit, added: what really sucks is that there is no K5 with 720p display, single sim, and SD616 alltogether. so there is very limited on what can we do. if the BL from sd415 works, than it will be great!
[Lenovo Vibe K5 Guides, News, & Discussion] electric.droid:
no, the indian variant of K5 has an unlockable bootloader. do you work at night?

edit: sorry for the dumb question, now i get it
[Lenovo Vibe K5 Guides, News, & Discussion] electric.droid:
here is the .mbn file. extract and replace it in the modded rom and try again. chances are that it might fail bcoz of diff SoC

edit: DO NOT DOWNLOAD THIS OR YOU WILL DIE!!!!!!

I AM SERIOUS!!!
[Lenovo Vibe K5 Guides, News, & Discussion] Pandemicc:
I exactly did that and the phone did not even POWER UP, can you believe that?

edit: cannot resurrect it gives me sahara error

---------- Post added at 23:30 ---------- Previous post was at 23:18 ----------

the phone is almost hard bricked guys, I cannot find a way to recover it LMSA fails qfil fails. at least pc recognizes the phone and led lits when connected to pc. help me
[Lenovo Vibe K5 Guides, News, & Discussion] electric.droid:
oh boy, thats bad... pull the battery, leave it to cool down. how does it recognizes?

edit, the worst case is that only mobo will have to be changed, and dont panic.
[Lenovo Vibe K5 Guides, News, & Discussion] electric.droid:
Let me remind the disclaimer at the first post. just in case. dont get me wrong, i will do my best to be helpful
[Lenovo Vibe K5 Guides, News, & Discussion] Pandemicc:
as qualcom device when connect it while pressing volume up. now what should I do
[Lenovo Vibe K5 Guides, News, & Discussion] electric.droid:
why not both volume buttons?
[Lenovo Vibe K5 Guides, News, & Discussion] Pandemicc:
tried still no luck. At least lets get this working
[Lenovo Vibe K5 Guides, News, & Discussion] electric.droid:
post a screenshot of device manager (with drivers installed)
[Lenovo Vibe K5 Guides, News, & Discussion] Pandemicc:
here
[Lenovo Vibe K5 Guides, News, & Discussion] electric.droid:
good news, your phone is detected. bad news, sahara error, you said?

try reinstall the drivers. your phone is probably fine (i hope so).
[Lenovo Vibe K5 Guides, News, & Discussion] Pandemicc:
reinstalled drivers still no luck, the pc always in test mode by the by.
[Lenovo Vibe K5 Guides, News, & Discussion] electric.droid:
pull the battery and put the phone on the shelf. i need a fresh head to think. good night.
[Lenovo Vibe K5 Guides, News, & Discussion] Pandemicc:
done. I will be waiting for you, nighters.
[Lenovo Vibe K5 Guides, News, & Discussion] electric.droid:
a quick research on internet says that sometimes win7 or 8 blocks these drivers. you must have an old computer running windows xp, right? try on that
[Lenovo Vibe K5 Guides, News, & Discussion] Pandemicc:
there is no way I can get access to windows xp pc, and I veru doubt that it is about drivers. The pc recognizes the phone thats it but the phone cannot get in the correct state, by correct state I mean edl or fastboot mode
[Lenovo Vibe K5 Guides, News, & Discussion] electric.droid:
look at this guide. download qpst from there.

https://www.androidbrick.com/lenovo-zuk-phones-qfil-roms-unbrick-guide/

search the internet, like "stuck at qdloader" or "lenovo unbrick". there are tons of info out there.
[Lenovo Vibe K5 Guides, News, & Discussion] Pandemicc:
I did the searching last night sadly none of them worked, I will be looking at the link you sent in 8 hours or so
[Lenovo Vibe K5 Guides, News, & Discussion] electric.droid:
is it under warranty?
[Lenovo Vibe K5 Guides, News, & Discussion] electric.droid:
is your phone under warranty?
[Lenovo Vibe K5 Guides, News, & Discussion] Pandemicc:
yes but I dont want to send it, it takes weeks you see. we can find a way today I believe
[Lenovo Vibe K5 Guides, News, & Discussion] electric.droid:
i believe too.

since you're under warranty, here is general rule of thumb: you were watching youtube, an update came, you update it, and it wont boot up. try not to look nerdy. the servicemen wont likely detect you are tampered.

just for your information.

look at the link. also i blame windows 10 in this case. my windows 7 never failed (thankfully).
[Lenovo Vibe K5 Guides, News, & Discussion] Pandemicc:
lets keep the warranty service out of the way for now. in windows 7 I cannot even flash the stock rom, it depends I guess
[Lenovo Vibe K5 Guides, News, & Discussion] electric.droid:
it depends on how the os handles the drivers. winxp is the king of all OSes in terms of driver management, that is why most companies still use the XP. anyway, head to moto.shreps.fr, find and download stock a40 sd616 rom and flash it.
[Lenovo Vibe K5 Guides, News, & Discussion] electric.droid:
gee, i think we made your phone think of itself as sd415 device. no problem, i think i know what to do.

edit: i am gonna make a mix of both roms for you to flash. but not today.
[Lenovo Vibe K5 Guides, News, & Discussion] Pandemicc:
hello again,

I will be downloading a40 stock rom from LMSA but do you know that which hw code is sd616? there are 16, 18, 20, 22, 39 and 40
[Lenovo Vibe K5 Guides, News, & Discussion] electric.droid:
first, i told you to download from moto.shreps.fr website.

second, flashing that wont work cause we flashed the bl from sd415 variant, and your phone thinks its an sd415 device, thus denying the correct firmware. i thnk i need to change the two xml files l, but i should think on it.
[Lenovo Vibe K5 Guides, News, & Discussion] Pandemicc:
then I am waiting for you now. I must say that I want to find a way for this situation in 5 hours or so, I am up for more too, as I cannot even use the phone. The twrp not an issue, lets just get it working again
[Lenovo Vibe K5 Guides, News, & Discussion] electric.droid:
we are trying to make it work, twrp is another issue.

i need to examine both sd415 and sd616 stock roms, as one mistake will cause, you know what.

but i already have a concept of what to be done.

unless i hack the bootloader of the 616 variant, there is no real way to install twrp either. in my case i had a40 variant device in existence that met my specs - the 616 variant doesnt, you see.

modding the bootloader carries extremly high risk of bricking. so high that you would not want to try it. sorry for the sad news guys.
[Lenovo Vibe K5 Guides, News, & Discussion] Pandemicc:
by saying twrp is not an issue, I mean for now lets unbrick the phone then we can focus on twrp. got anything for me yet?
[Lenovo Vibe K5 Guides, News, & Discussion] electric.droid:
i did not say twrp is not an issue. i meantwhat you meant.

right now i am out of reach from my computer. when i get something, you will know it. what is your local time?
[Lenovo Vibe K5 Guides, News, & Discussion] Pandemicc:
I live in turkey as well
[Lenovo Vibe K5 Guides, News, & Discussion] electric.droid:
oh you kiddin me? i am surprised! hello again
[Lenovo Vibe K5 Guides, News, & Discussion] electric.droid:
where did you guys buy your phones?! i thought sd415 is sold in TR while other countries have others...
[Lenovo Vibe K5 Guides, News, & Discussion] Pandemicc:
hepsiburada lol
[Lenovo Vibe K5 Guides, News, & Discussion] Pandemicc:
I have flashed every single a40 stock rom sadly none of them worked.
[Lenovo Vibe K5 Guides, News, & Discussion] electric.droid:
sahara error?
[Lenovo Vibe K5 Guides, News, & Discussion] Pandemicc:
yes I have been trying to find solution for 4 hours all over the internet none of them worked. I need the phone so bad
[Lenovo Vibe K5 Guides, News, & Discussion] electric.droid:
look, since your device thinks itself as 415 device, we need to make your stock rom to look like as if it was a 415's stock rom.

since qfil asks for rawprogram and patch xml files, we may need to replace them in the modded sd616 rom. copy the ORIGINAL emmc appsboot mbn file and those two xml files. but dont rush with this. the situation we are at is no joke. we are even lucky to have working download mode.
[Lenovo Vibe K5 Guides, News, & Discussion] Pandemicc:
I copied emmc and two xml files from stock rom to modded rom, didn't work, sahara....

edit: I would like to do this experiments while contacting on chat platform discord, skype etc., then share the results under this thread, to fasten the process. if that fits to you
[Lenovo Vibe K5 Guides, News, & Discussion] electric.droid:
my computer wont boot up this evening, so i couldnt check the files. did you try the "vibe k5" files on the first post? what programs did you use to flash your device?

edit: try this http://4pda.ru/forum/index.php?showtopic=814221&st=0#Spoil-58320909-3 download the miflash tool

i remember i saw a guide on xda to get into the internal storage via dounload mode. but i've yet to find that thread.
[Lenovo Vibe K5 Guides, News, & Discussion] Pandemicc:
I did everything on that page still miflash gives me sahara error
[Lenovo Vibe K5 Guides, News, & Discussion] denny.hell:
Try flashing with this: https://mega.nz/#!rEpjgIYD!M4LZoI7EeHeqHAC9BVYyKk43-Z7HT5ow4uVAcahhoFs

It helped me when QFIL wasn't working for me. Just be sure you flash the STOCK Rom.
[Lenovo Vibe K5 Guides, News, & Discussion] Pandemicc:
sadly I already sent it to RMA
[Lenovo Vibe K5 Guides, News, & Discussion] electric.droid:
where did you send, KVK or the retailer?
[Lenovo Vibe K5 Guides, News, & Discussion] Pandemicc:
to teleservice
[Lenovo Vibe K5 Guides, News, & Discussion] electric.droid:
hmm, never heard of. anyway, i hope it'll get fixed soon.
[Lenovo Vibe K5 Guides, News, & Discussion] agritux:
[MENTION=8565123]eurodiesel[/MENTION] do you remember me? Sorry for late answer. I think my Phone is very different from yours =) cpuz says it is a41 with sd615 =) is it normal?
[Lenovo Vibe K5 Guides, News, & Discussion] electric.droid:
yes, your phone is different than mine, and i am trying to do smth for a month (due to exams).

cpuz isnt good on android and never was.

i must have written previously about what differences do sd616 variants have.

anyway, i have some idea:

1) flash my modded stock rom

2) root it

3) get shell access (either with "adb shell" or terminal emulator).

4) type "su"

5) type "setprop persist.radio.multisim.config none"

6) reboot

7) type "####6020#" in the dialer screen

8) select your country and press "begin configure" and reboot

9) install the update (i have no idea what kind of update it is).

10) reboot

11) you tell me what happens.
[Lenovo Vibe K5 Guides, News, & Discussion] agritux:
i will inform you tonight
[Lenovo Vibe K5 Guides, News, & Discussion] agritux:
Did not work.

####6020# showed only "default" option. So i copied country files to internal sd. After that it showed all countries. I selected turkey and it automaticaly rebooted, installed update and again rebooted. No GSM again. =( So i returned back stock again. =(

I tried with your shell command and without it. Bot Did not work.
[Lenovo Vibe K5 Guides, News, & Discussion] electric.droid:
umm, care to post some screenshots of the commandline?

ill try to find smth meanwhile.
[Lenovo Vibe K5 Guides, News, & Discussion] agritux:
Command worked properly. No error. I used adb on computer. It asked su permissions. I accepted. No special answer on Command line. No error. Just jumped new line. First reboot

I gave up. I returned stock again. Sorry no screenshot.
[Lenovo Vibe K5 Guides, News, & Discussion] electric.droid:
for the sake of a bump

to inform everyone, i am still working on this and i am building a project, we'll see what happens next.

for those who ask why it takes so slow, the answer is: i have my own life to live, i had exams and i have my finals approaching so everything's gonna be slow until i clear everything infront of me. thanks and good luck.
[Lenovo Vibe K5 Guides, News, & Discussion] igorpwned:
hey who know how to fix this no cellular connection?

i installed "A6020a41_SD616_firmware_with_prebuilt_twrp"
[Lenovo Vibe K5 Guides, News, & Discussion] electric.droid:
work-in-progress. read above.
[Lenovo Vibe K5 Guides, News, & Discussion] igorpwned:
oh ok can't wait man , i've been waiting too long for this **** year and a half to be exact hehe

u are the god :)
[Lenovo Vibe K5 Guides, News, & Discussion] electric.droid:
hi again guys,

for SD616 users, for safestrap to work device must be rooted and SElinux must be permissive.

What i want you guys to do is to root your phones and intall this app to ret Selinux to permissive. Then you report to me.

To view selinux status simply open terminal emulator and type

su

then either

getenforce

or

sestatus

.

BTW, sorry for the silence, but fortunately the process is continuing.

Bye;)
[Lenovo Vibe K5 Guides, News, & Discussion] electric.droid:
guys I need an answer asap.
[Lenovo Vibe K5 Guides, News, & Discussion] igorpwned:
ye i did get to go in permissive ,, if thats what u need

but can u give us info on what is this all about?
[Lenovo Vibe K5 Guides, News, & Discussion] electric.droid:
thanks a lot!

so, here's your info:

your bootloader can't be unlocked.

this means you're unable to flash twrp and custom roms.

but there is a recovery called safestrap.

safestrap is designed to work on devices with locked bootloader and is installed via an .apk file.

this apk requires selinux to be permissive.

hope you understand.
[Lenovo Vibe K5 Guides, News, & Discussion] igorpwned:
nice , i check on internet about that but it seems to be for samsung only?
[Lenovo Vibe K5 Guides, News, & Discussion] eurodiesel:
if you check XDA you'll see it supports more devices, not only samsung.
[Lenovo Vibe K5 Guides, News, & Discussion] igorpwned:
is it available for this phone , like how its gonna work or it need modification?
[Lenovo Vibe K5 Guides, News, & Discussion] electric.droid:
right now, no. I will compile from sources specifically for this device. on the other hand, if I manage to modify the stock kernel to make it insecure, we may flash twrp successfully, hence eliminating the need of safestrap.

only time will tell. RN I can't just flash stock and test it on my device, but I'll build smth and post here, hopefully.
[Lenovo Vibe K5 Guides, News, & Discussion] igorpwned:
okay if anything is up iam here to test it cuz my phone is gone slow badly so need that custum rom asap :)
[Lenovo Vibe K5 Guides, News, & Discussion] igorpwned:
how is the work going , any progress?
[Lenovo Vibe K5 Guides, News, & Discussion] eurodiesel:
Right now, i am away from my computer but I've edited the kernel ramdisk to see what it gives. I you're interested then i can give you a link for you to test.
[Lenovo Vibe K5 Guides, News, & Discussion] igorpwned:
ok i can do that :) send me link and i can test it now
[Lenovo Vibe K5 Guides, News, & Discussion] eurodiesel:
Actually, i edited them for the sake of editing, to see if it will boot, if it will then safestrap can be dismissed else i will continue it.

Why it it taking so long, you ask? Bcoz i had no experience before and i am learning too. Also, no one is interested to unlock this phone.
[Lenovo Vibe K5 Guides, News, & Discussion] igorpwned:
yeah i think it will be good cuz there are alot of ppl who need this
[Lenovo Vibe K5 Guides, News, & Discussion] eurodiesel:
Okay, anyway, thank you ppl for giving an opportunity to learn android development. If someone can help me, don't hestitate.
[Lenovo Vibe K5 Guides, News, & Discussion] electric.droid:
Sorry for the delay

https://mega.nz/#!Pi4z2LKL!qhcDlGTpa2MDRawUqnhUq3aKCw1MlHBva9xomjZykLI

Flash using Flashify or dd. Then try to unlock the bl, though it probably won't work, but you'll have adb root, so you can root yourself and omit kingroot.

In threory, of cource.
[Lenovo Vibe K5 Guides, News, & Discussion] igorpwned:
flashed it but can't go to recovery ,, black screen , but luckly phone can still turn on :)
[Lenovo Vibe K5 Guides, News, & Discussion] electric.droid:
Hmm, okay then. But the phone boots into android fine, right? If so, this means we can flash unsigned boot images (not using fastboot).
[Galaxy Tab 3 Q&A, Help & Troubleshooting] aalex.89m:
I finally managed to install the latest twrp, and flashed lineageOS-14.1 for t310 and gapps. I got the tablet working with this recovery and rom, but now I want to flash the kernel so I am able to OC the CPU and other hardware changes.

I tried kernoleOC for t31x v6, but when I flash the kernel and reboot it just gets stuck on the boot screen and continuously shows boot animation. It won't do anything else besides this.

2 questions, what do I need to try to do to stop it from looping at boot animation? Also, can someone recommend another custom kernel for tab 3 8.0 t310 running lineageOS-14.1 which allows for hardware customization like OC and uv.

Any suggestions and help is appreciated.
[Galaxy S6 Q&A, Help & Troubleshooting] Itzmohaa:
My G920p was modified to look like a g920f with possibly a custom rom....flashing a stock g920p rom will return it to normal....so is it possible for me to maybe flash other g920f custom rom like xtrestolite,S8 port or even alliance rom without anything happening to the phone??