yashsingh1/xdaforums huggingface dataset:
[LG Optimus L90] simpson5774:
i.imgur.com/zVk1gQh.jpg

This is where I wind up whenever I do this guide, it never says "accepting fastboot commands" or whatever it is supposed to say, and I Can't run fastboot from my cmd prompt, it just says "waiting for device"

"adb push dd if=/sdcard/laf.img of=/dev/block/platform/msm_sdcc.1/by-name/laf" Doesn't work as a command for me. it says "cannot stat 'dd': no such file or directory.

I try "dd of=/dev/block/platform/msm_sdcc.1/by-name/laf if=/sdcard/laf.img" to push back the file, which seems like it works, but it doesn't change the end result if I reboot and try to enter fastboot mode. typing the fastbooot devices command doesn't show anything.

I know I am in debug mode, I have to reauth my computer every time I unplug and plug my phone when I run said commands. and I have been doing it in MTP mode. and I have done this on two computers and two different usb cables.

I know its a different phone entirely, but my nexus 5 seems to be fine using these commands since I rooted / unlocked / did CM11 on it like 5 days ago. I did something wrong here, I can't for the life of me figure out what. :(
[LG Optimus L90] shinobisoft:
'adb push...' should be 'adb shell...'
[LG Optimus L90] simpson5774:
No such file or directory is what I get.

it should be laf.img which is in the root directory? when i backup i get one in my main directory, for redundancy sake to test it out, i copypasted it to the root directory of the sd card.
[LG Optimus L90] shinobisoft:
"adb push" should be "adb shell"

Example:

adb shell dd if=/sdcard/laf.img of=/dev/block/platform/msm_sdcc.1/by-name/laf bs=4096

Assuming the actual path to your sdcard is '/sdcard', the above will RESTORE your laf partition thus disabling fastboot mode. This will restore access to Software Upgrade mode.

adb push is for pushing regular files to a device file system not entire device blocks.

EDIT:

This can also be done thru Terminal Emulator. Just drop the 'adb shell' from the command line. Don't forget to 'su' first.
[LG Optimus L90] Petrpan_2:
I am new here and i get LG-D415 with same provider. I think i did every think:

rooted, bootloader unlocked, fastboot works fine, recovery cwm 6.0.4.9 works even if i don't know how to save in the exsternal SD, i can reach dev/platform ...

If i try to use a sim of another provider, an european one, i get "Emergency call only service provider locked".

I'm sorry in advance if my post isn't in the appropriate place. Tanks for any suggestions.
[LG Optimus L90] shinobisoft:
There is a carrier lock on D415. It is locked to TMobile. Two options, purchase unlock code online or call TMobile and request a carrier unlock.
[LG Optimus L90] devinyes:
Question, so Tmobile D415 CAN NOT be unlocked?
[LG Optimus L90] shinobisoft:
Yes it can. Carrier can be unlocked and they say around here the bootloader is unlocked but I went thru the unlocking process anyway.
[LG Optimus L90] devinyes:
No, i know carrier can unlock. But is there way we can unlock the bootloader instead of going through tmobile or buying unlock code?

People saying about fastboot driver, how does that work? I should uninstall official LG driver to install fastboot driver? But my phone driver not recognized the fastboot drive. Anyone provide detail on how it works? Thanks
[LG Optimus L90] shinobisoft:
What I mentioned buying was carrier unlock code. Nothing to do with bootloader.
[LG Optimus L90] lucky194u@comcast.net:
I scoured the net looing or a viable solution for unlocking my bootloader. The OEM Unlock does work on my LG L90 D415. Following these steps VERY carefully I succeeded. Now I'm ready for customizing. Thanks for the info!
[LG Optimus L90] Petrpan_2:
That means others providers don't lock the carrier? And if it is so, can you give me some example here of them here or pm.? Thank you so much
[LG Optimus L90] shinobisoft:
No. Just about every carrier branded device is carrier ( sim ) locked. As in devices labeled with T-Mobile, AT&T, Sprint, etc.
[LG Optimus L90] mirosaw2:
i need laf.img file for my LG-D410 cuz i kinda of lost it .. :(

now i only have fastboot mode forever and i can't flash stock firmware or anything ..

thx in advance.
[LG Optimus L90] shinobisoft:
Go to dev-host.com. Search my username. You'll find a laf.img for the D415.The laf image is universal across variants. I also have a Stock image thread around here that has links to my backups. I think someone else also posted links for a different model.
[LG Optimus L90] mirosaw2:
thx for your fast reply ..

but i think i messed up with my phone ..

problem was that phone enters only Fastboot and i can't flash stock kdz even in download mode ..

so, after a lot of searching i noticed that i have to restore laf.img so i can disable fastboot mode ..

but i couldn't find the file till you provided me with it ..

but, unfortunately a few seconds ago i decided to flash boot.img from an cwm backup ..

now when i boot it keep restarts on LG logo then it goes into "RamDump Mode" .. !!

i can enter Download mode with fastboot_init() but still can't flash kdz stock ..

so, what's next .. !!

thx in advance ..
[LG Optimus L90] mirosaw2:
finally managed to fix my phone .. :)

i've used another boot.img file posted in this post ..

http://xdaforums.com/showpost.php?p=54541844&postcount=2

and voila .. my phone back to life again .. :)

hope this info help ppl get their phones fixed too ..

thx bro ..
[LG Optimus L90] joeyiii:
IT WORKED!!!

After trying this a dozen times on my D415, I finally realized your attached file was not the ADB/Fastboot files. Installed the drivers, took me a couple tries but it worked!!!!!!!!!!!!!!!! Thanks.
[LG Optimus L90] ejbalois:
First thing I've done is I accidentally flash laf.img.

Now everytime I turn my phone the screen says "Firmware Update" then a bar with 0%, is there way to save my phone? I don't know what to do. Thanks to whoever helps.
[LG Optimus L90] jb3p76:
You didn't happen to flash laf.img to boot did you? Maybe you can try re-flashing the original boot partition for your variant?

Edit: starting over by flashing the kdz then rooting with towelroot again is pretty fast, all of 30 minutes, if you want to start fresh: http://xdaforums.com/lg-l90/general/guide-flash-stock-kdz-offline-lg-l90-t2803479
[LG Optimus L90] ejbalois:
Thank you very much! I will try this method later, I think this will save my phone.
[LG Optimus L90] digitalsk:
Cannot regain Software Recovery Mode

Hey all, sorry Ive read every post and tried everything it seems, but I cannot get back into SRM to flash stock KDZ. Ive run adb and tried terminal emulator, the last attempt via ADB seemed successful but when I try to boot into Software Recovery Mode it brings up fastboot prompt once again.. Below is the transcript trying to flash LAF via ADB, am I missing something because the LAF file in my dev/block/platform/msm_sdcc.1/by-name/laf file still reads 0 Bytes? Any help appreciated, there is nothing wrong with the phone, put CWM on my wifes and my phone, she wants her stock back so im messing with mine first :)

←7←[r←[999;999H←[6nroot@w7:/ # dd if=/extSdCard/laf.img of=/dev

sm_sdcc.1/by-name/laf bs=4096

block/platform/msm_sdcc.1/by-name/laf bs=4096

5632+0 records in

5632+0 records out

23068672 bytes transferred in 2.765 secs (8343100 bytes/sec)

root@w7:/ #
[LG Optimus L90] shinobisoft:
You're initial command managed to get mangled when posting here... Does your "DD" line read

dd if=/extSdCard/laf.img of=/dev/block/platform/msm_sdcc.1/by-name/laf bs=4096

?

I'd actually recommend using fastboot instead of DD. And your "LAF" backup should be around 22 MB. Is it?

There is also one other option. This won't "restore" your LAF partition, but will boot the device to S/W Upgrade mode so you can then restore the device via KDZ.

fastboot boot /extSdCard/laf.img

.

If either of those commands still don't work, replace"extSdCard" with "external_sd". Both are symlinks to the actual sdcard ( /storage/sdcard1 ).
[LG Optimus L90] aerdely:
Also, i never zero'd mine out but eent and checked mine, also says 0bytes even though just the other day i made a backup tht ended up being 22mb, also look at the other files in the de/block/platform/by-nam folder, when using root explorer app, all files say 0bytes.
[LG Optimus L90] shinobisoft:
The "/dev/block/platform/msm_sdcc.1/by-name" folder contains symlinks to the actual partitions in "/dev/block". These are block devices, not files. You can't use "DF" on a block device and obtain the desired result. There isn't a file manager around that can tell you the size of a block device.

On another note:

I am currently finishing up an application, apk, that will take care of erasing/restoring the "LAF" partition, along with several other nice little utilities. And as I'm off for the holidays for the next two days, I'd say I'll have the time I need to finish it completely. Well, it's already done and working, just working on some UI enhancements. ;)
[LG Optimus L90] aerdely:
Thanks for the info and good work, that would be helpful. Although i haven't bother eith my laf other than backing it up with terminal emulator app.

Have to do everything manually through the phone since rrely have access to pc.
[LG Optimus L90] shinobisoft:
This app is written with the intention to help with some of the tasks that require the use of a Terminal Emulator or ADB shell as this is where most people get uneasy.
[LG Optimus L90] digitalsk:
Thanks

Thanks Shinobi for the suggestions, I will give them a shot and let you guys know the results.. Also looking forward to that APK whenever you do complete it :) Thanks also aerdely for the useful info..

Happy Holidays
[LG Optimus L90] jb3p76:
Might want to try downloading a copy of laf and try that again? I don't know if a factory reset may help or not.
[LG Optimus L90] frugan:
Can't Get Back To The Download Mode.

Hey Guys, im facing a problem while getting back to download mode .. when i restore laf file fastboot keep saying max download size and nothing happend. Please Can anyone help? :(

Thanks in Advance.
[LG Optimus L90] shinobisoft:
From your screen shot, it worked just as it is supposed to. Nothing is supposed to happen. ;)
[LG Optimus L90] tetrismonkey:
stuck in fastboot

Update: i was able to fix my own problem

by using fastboot to flash a new recovery. was able to flash 2.7 twrp and then i restored my backup. first time the restore failed telling me it could not mount the /data so i ran the restore again but unchecked the data box and it ran fine the phone restarted and rebooted. I lost all of my data like a factory reset but that is ok because at lease i have a working phone again and now i just have to find a custom Rom that works on it lol

Help I am stock in fastboot after a failed update to my recovery.

I am running the LG L90 41510c it is rooted using towel root and i had twrp 2.8.1 i then tryed to flash a custom rom and it failed. I then tryied to restore my back up that i had made in twrp but the system will not see my back up. when i check the externail sd card the back up is still there but twrp will not see it to restore it. i have tried lots of roms and they all failed. I then tried to flash a different verstion of twrp 2.7.1 because that was the first verstion i had before i updated to 2.8.1. I think that failed too. So now I am stock the phone will not go to recovery and it will only go to fastboot mode what is the comman to flash a recovery image in fastboot mode?

Or if you can help me get back to Firmware update mode then i can just start fresh. I have tried to flash laf.image however fastboot it tells me it cant find the file

I hope this makes sense i have been trying to get my phone back for hrs now and no luck.

[IMG="laf"]http://i20.photobucket.com/albums/b246/mortalembers/android/lafimgcannotload_zpsf5a00c6b.jpg[/IMG]
[LG Optimus L90] shinobisoft:
Via Command prompt: ( Windows, Linux )

fastboot flash recovery path/to/recovery.img

Best thing is just to copy your recovery to the folder where your fastboot executable resides and you can eliminate the path/to/ portion of the above command as fastboot will look in it's own folder before searching the remainder of the paths in "%PATH%".

I see quite a few more errors in your command lines too. For starters, fastboot lives on your PC. It does NOT have access to your external sdcard. Your recovery image needs to be on your PCs hard drive. Secondly, dd is an internal Linux command, not recognized by Windows, so you must use "adb shell su -c dd if=? of=?...".
[LG Optimus L90] tetrismonkey:
Thank you for the info I was able to fix my recovery just as you said I moved the recovery image to my fastboot location on my PC and it flashed no problem. I updated my post to show I have fixed it. However anytime I try to flash a ROM in recovery it fails no matter what ROM I try not sure what the issue is. Does twrp work on the l90 415 was thinking of trying cwm and see if I have better luck
[LG Optimus L90] chilo141:
ok guys so im on fastboot i guess...but when i tried to revert back to download mode it wont let me ...as a matter of fact when im on CMD ive tried different commands and nothing happens like fastboot reboot or fastboot reboot-recovery..and nothing happens..i backed up my laf as instructed in the guide but fastboot cant find it....wth is going on? every command i type in i get a failed i can input fastboot devices and numbers and letters appear but when i input a command it fails like when i tried fastboot oem unlock or whatever it fails
[LG Optimus L90] AJ Ca§anova:
Dose this unlock bootloader? If not what dose it do?
[LG Optimus L90] CaptivateKing:
Makes fastboot accessible. To unlock the bootloader you have to follow the instructions for your variant. For the D415, once you are in fastboot mode, you enter the command "fastboot oem unlock" without quotes, through the terminal/command prompt
[LG Optimus L90] Billybobjoe13245:
Can't Do FASTBOOT COMMANDS!

It doesn't seem to know any command or execute one.

doing fastboot reboot turns out like this.

fastboot reboot

rebooting...

finished. total time: 0.002s

But it does not reboot.

And every time I do a fastboot command I get

./fastboot oem unlock

...

FAILED (remote: unknown command)

finished. total time: 0.002s

I have a D415 Running Lollipop.
[LG Optimus L90] CaptivateKing:
Do you have adb and fastboot setup on your machine?

Sent from my LG-D415
[LG Optimus L90] Billybobjoe13245:
Yes I do have FASTBOOT

Yes I know that for a fact. The commands even show up on the phone but they don't work.
[LG Optimus L90] CaptivateKing:
Hmm, that's odd. I have the D415 and had no issues with fastboot commands

Sent from my LG-D415
[LG Optimus L90] Billybobjoe13245:
I'll try on another computer. But it I've tried on a Mac with bootcamp so maybe another would work.
[LG Optimus L90] shinobisoft:
Search the LG L90 Forums for "LG L90 Utilities". I wrote it and it can toggle the laf partition to enable or disable fastboot mode.
[LG Optimus L90] xantanion:
And it works well good to see ya man
[LG Optimus L90] shinobisoft:
Thanks! Sorry I've not been around much lately folks. Either working too much or dealing with back problems. Just spent 5 days stuck in bed over my back.
[LG Optimus L90] xantanion:
Injured my L5 so i understand. 3 months of no work now myself
[LG Optimus L90] Billybobjoe13245:
I wish I could say it helped but it is a pretty great app.:D Thanks! But I still can't do fastboot commands. :(
[LG Optimus L90] shinobisoft:
Do you have the latest adb and fastboot executables for your PC? There are executables available for Windows, Linux, and MacOS.
[LG Optimus L90] wojtek267:
And I've wondered why aren't you present lately since although you were developing for D415 it was always good to see you around serving with help :D

Hope you get your problems sorted out, mate
[LG Optimus L90] Billybobjoe13245:
[IMG="Phone"]https://dl-web.dropbox.com/get/IMG_20150511_155514.jpg?_subject_uid=151668738&w=AAAndIm3Nyd_-OajSSDh4tPGOMkf9wz9a4hNoNBwANlxow&dl=1[/IMG]

[IMG="CMD"]https://dl-web.dropbox.com/get/IMG_20150511_155242.jpg?_subject_uid=151668738&w=AAB1S8OhUUXtdU7jlOV0o-b76QCMSqyLOa_UTZX0QY3jgg&dl=1[/IMG]

And I have adb version 1.0.32 but i'm not sure how to check fastboot version but i'm pretty sure it's the newest. I've also tried on Mac OS X
[LG Optimus L90] kdub738:
sorry about the year late reply, but i'm trying to do this now. when I use adb shell, it gives the device not found error. same when I use adb reboot... why?
[LG Optimus L90] shinobisoft:
My LG L90 Utilities app can handle toggling the device between fastboot and software upgrade modes without the use of the fastboot binary. It does require root permissions. As for adb not detecting the device... Do you have the latest adb and fastboot binaries on your PC, as well as enabled USB Debugging in Developer Options on the device?
[LG Optimus L90] kdub738:
I honestly have no clue... im kinda new to this whole thing. if it's something that you would've installed manually, then no
[LG Optimus L90] SLOWROLLA:
How can i get back into download mode from fastboot? ive tried this code "fastboot flash laf laf.img" and its not working. a speedy reply would be awesome since i ned my phone working again asap. rhanks
[LG Optimus L90] xterminater07:
I have tried everything but I cannot get fastboot to delete or flash the laf.img I saved. When I tried to do it manually it said permission denied. Please help me get lollipop start over from fresh.
[LG Optimus L90] shinobisoft:
This is in response to your PM also...

Firstly, the adb executable CANNOT communicate with a device that is in fastboot mode. You need to use the fastboot executable.

Try the following::

1) Copy your laf.img to the same folder that your fastboot executable is in

2) Place device in fastboot mode

3) Open a command prompt in the folder where your fastboot executable is ( If in windows explorer, Shift + Right Click and choose "Open Command Prompt Here" )

4) In the command prompt window type:

fastboot flash laf laf.img

That should restore your laf partition and allow you to boot to Software Upgrade Mode. If that doesn't work and you can boot your phone, my LG L90 Utilities app can also restore your laf partition.
[LG Optimus L90] xterminater07:
Thank you so much for your response! I figured out that I did need the .laf from the post because my device would not even boot into lollipop. It just get stuck in fastboot. I am restoring using lg phone tool now. Hopefully everything will start fresh. Once I got to lollipop, I would have to root again, and manually install twrp recovery using fastboot and unlock bootloader right? Does your lg l90 utilities do this as well?
[LG Optimus L90] shinobisoft:
Bootloader for D415 is ALWAYS unlocked, even after repairing with KDZ. You can use my LG L90 Utilities to flash your recovery and also toggle fastboot/software upgrade modes. Few other functions too. My app will NOT be able to root however.
[LG Optimus L90] xterminater07:
thank you so much shinobisoft. everything is working properly now
[LG Optimus L90] BlaMa:
fastboot problem - remote: unknown command

Hi,

maybe anyone can give me a hint what to do. Phone is L90 D405N.

Have a root, TWRP, fastboot - but in this is a problem.

I cannot flash file or use any command.

An example here:

C:\adb>fastboot reboot-bootloader

rebooting into bootloader...

FAILED (remote: unknown command)

finished. total time: 0.006s

Any idea where is a problem?
[LG Optimus L90] shinobisoft:
There is no "fastboot reboot-bootloader" command. Are you trying to boot to recovery? And fastboot commands only work when device is in fastboot mode. If trying to use adb to boot to recovery, "adb reboot recovery". Also, the reboot-bootloader does NOT work on LG devices.
[LG Optimus L90] BlaMa:
Probably didn't explain my problem so clearly.

I can boot into FastBoot mode.

But on some command i get an answer error, see this example bellow.

I am understand there is other way how to flash recovery, but for me is interesting if I made any mistake or where is a problem.

fastboot flash recovery TWRP_2.8.7.0_270615_L90.img

target reported max download size of 536870912 bytes

sending 'recovery' (13818 KB)...

OKAY [ 0.439s]

writing 'recovery'...

FAILED (remote: unknown command)

finished. total time: 0.449s
[LG Optimus L90] Floating Point:
What's the difference between the oem unlock described in this topic to flashing the hacked aboot? Both servers right to boot unsigned to flash and boot a custom recovery?
[LG Optimus L90] shinobisoft:
This guide is specific to the D415 model. Technically this isn't needed for the D415. The bootloader is unlocked out of the box. All other models require a hacked aboot or abootb image to "unlock" the bootloader. The method in this thread won't work with any of the other models.

I should also note that flashing the incorrect aboot or abootb image WILL brick your device.
[LG Optimus L90] Floating Point:
Do you think oem unlock was disabled on all other L90 variants? In fact, oem unlock along all other fastboot commands are visible in the aboot.bin in the disassembler.
[LG Optimus L90] shinobisoft:
Its quite possible. I'd have to view LGs kernel source for the other variants to confirm your suspicion tho.
[LG Optimus L90] Floating Point:
I was thinking on a hack to the aboot to re-enable the oem unlock but this seems to be more complicated than hacking the aboot to skip the secure boot checks, I ended patching the lollipop v20b d410hn aboot variant myself using the same idiosyncrasy Зевс used to hack the the d410 variant with IDA disassembler. Confirmed to work - I tested in my own D410hn and it's working with TWRP 2.8.7.0.

http://xdaforums.com/showpost.php?p=62219601&postcount=88
[LG Optimus L90] xoma1985:
Is this working for D405?
[LG Optimus L90] Floating Point:
D410hn (dual-SIM with NFC) only.

D405 already had LL bootloader unlocked, check here in the second post: http://xdaforums.com/lg-l90/development/recovery-twrp2-7-1-0lgl90w7xxshoxx-t2826150
[LG Optimus L90] xoma1985:
My devise lg d405. dd: /dev/block/platform/msm_sdcc.1/by-name/laf: No space left on device. I need help
[LG Optimus L90] shinobisoft:
What are you trying to do?

If trying to enable fastboot by zeroing the laf partition, I have an extremely easy solution... Use my LG L90 Utilities app.
[LG Optimus L90] xoma1985:
Trying get access to fastboot
[LG Optimus L90] shinobisoft:
See my last post
[LG Optimus L90] xoma1985:
Thanks, I'll try
[LG Optimus L90] xoma1985:
I take this:

Download mode

Loading .....

Press the Volume up key untill you see the download screen.

220 fastboot_int()

320 USB init expt @ 0xffdc000

340 udc_start()

460 -- restet --

470 -- portchange --

580 -- reset --

770 fastboot: processing commands

I pressed I pressed a few minutes - nothing!? what's wrong?
[LG Optimus L90] shinobisoft:
You gotta use a fastboot executable from a PC to communicate with the device while its in fastboot mode.

---------- Post added at 04:15 PM ---------- Previous post was at 04:13 PM ----------

You have successfully enabled fastboot mode on the device. My app should allow you to toggle between fastboot mode and software update mode anytime you wish.
[LG Optimus L90] xoma1985:
Forgive me for my ignorance of how to enter commands on a ubuntu
[LG Optimus L90] shinobisoft:
No need my friend. ;) I'm not home right now. When I get home I'll make a zip for Ubuntu with the adb and fastboot binaries for you.
[LG Optimus L90] xoma1985:
Thank you in fastboot phone visible. For some reason when the phone reboots does not go on and Vol up cord is connected ? And it is not reloaded into fastboot from the program ?

---------- Post added at 09:15 PM ---------- Previous post was at 08:54 PM ----------

I tried again - working !!!!!! Thank you so much. Try to put ubuntu-touch)
[LG Optimus L90] shinobisoft:
Are you trying to install Ubuntu touch to your device?

Here's the zip I promised, minimal adb and fastboot binaries for Linux.