[Q] Booting with shell - Moto G Q&A, Help & Troubleshooting

Basically, my problem is thus: I changed a fairly critical system file, and forgot to chmod it correctly before rebooting. Now my phone will not boot. Is there a way I can use the bootloader to boot it up into the equivalent of a live distro that would allow me to use adb shell to fix it?

Yes, go to bootloader, choose the last point, then it will install few Moto drivers, but then you can connect with adb.

shaftenberg said:
Yes, go to bootloader, choose the last point, then it will install few Moto drivers, but then you can connect with adb.
Click to expand...
Click to collapse
Thank you so much, it works

I know, I had the same problem and desperately tried everything

Related

how to enter stock recovery?

Trying some stuff and need to get to stock recovery. Can normally get there from the extended reboot menu or ADB, but hosed something so adb doesn't work. I know it's there, used it for factory reset a dozen times.
Tipe in console:
Su
Reboot recovery
getochkn said:
Trying some stuff and need to get to stock recovery. Can normally get there from the extended reboot menu or ADB, but hosed something so adb doesn't work. I know it's there, used it for factory reset a dozen times.
Click to expand...
Click to collapse
Gabboxxx said:
Tipe in console:
Su
Reboot recovery
Click to expand...
Click to collapse
Doesn't matter, I just reflashed, but I can't run SU, reboot recovery when ADB doesn't work as I clearly stated.
And if u reflash the ftf?
getochkn said:
Trying some stuff and need to get to stock recovery. Can normally get there from the extended reboot menu or ADB, but hosed something so adb doesn't work. I know it's there, used it for factory reset a dozen times.
Click to expand...
Click to collapse
Not via ADB commands ? Try a different cable ? Maybe you forgot to enable USB debugging? Enable unknown sources might help too
I had no problems booting via ADB
adb reboot recovery
I suppose try using a different PC and reflash a different ftf file. That might help as it will complete rewrite the recovery again in case you have screwed it
Check this post where I have successfully booted into recovery via ADB :
http://forum.xda-developers.com/showthread.php?t=2480590
the whole of this was my phone was softbricked. I wanted to get into recovery so I could use ADB to try to fix it. When it's softbricked, ADB won't start up, therefore I could use ADB.
Trust me, I know how to use ADB, I just wanted to know if there was a key combination to get our phones into recovery mode with ADB because ADB wouldn't work because my phone was softbricked. It had nothing to do with me not knowing how to use ADB or how to set it up, it had to do with my phone would brick it self before ADB started, so therefore I couldn't send any ADB commands.
getochkn said:
the whole of this was my phone was softbricked. I wanted to get into recovery so I could use ADB to try to fix it. When it's softbricked, ADB won't start up, therefore I could use ADB.
Trust me, I know how to use ADB, I just wanted to know if there was a key combination to get our phones into recovery mode with ADB because ADB wouldn't work because my phone was softbricked. It had nothing to do with me not knowing how to use ADB or how to set it up, it had to do with my phone would brick it self before ADB started, so therefore I couldn't send any ADB commands.
Click to expand...
Click to collapse
I am uploading drivers on a post. Will quote you to it. Install them. I hope that helps!
here you go
http://forum.xda-developers.com/showthread.php?p=46681107#post46681107
Ok, let me try to explain this.
It's not drivers.
It's not ADB.
It's not my PC.
I softbricked my phone trying something. I didn't want to wipe it, so I wanted to try to get into recovery, where a limited ADB works.
I couldn't boot into recovery from ADB because it was softbricked.
I just wanted to know if there was key to hold down on boot or something to get into the default recovery mode.
I don't need drivers, I don't help getting ADB going, it works fine on my PC. The point was the phone was softbricked, in a boot loop, ADB wouldn't respond, wanted a key command to get into recovery.
I apprecaite the help but people aren't getting what I was asking.
Is there a key command to press at the bootup to get into the stock recovery on this phone? All my other phones, I know the command, but this one I've tried all the combos and no recovery.
Please, no more help on ADB, I know how to use ADB just fine.
Just is there a keypress to do this?

[Q] Help! Stuck in bootloop/adb not working

I have the LG G2 D800 (AT&T), my phone is completely wiped and all I can do is get into TWRP and ADB is not recognizing my phone. Is there any other way I can push files to the sd card (it's non-removable)? I'm not sure exactly what the ADB sideloader is in TWRP or how it works but even if I try to run it, it never gets past "Starting ADB sideload feature....."
Thank you in advance for your help :fingers-crossed:
In TWRP you can go to "Mount", select "sdcard" and then Mount USB Storage.
cmg178 said:
I have the LG G2 D800 (AT&T), my phone is completely wiped and all I can do is get into TWRP and ADB is not recognizing my phone. Is there any other way I can push files to the sd card (it's non-removable)? I'm not sure exactly what the ADB sideloader is in TWRP or how it works but even if I try to run it, it never gets past "Starting ADB sideload feature....."
Thank you in advance for your help :fingers-crossed:
Click to expand...
Click to collapse
When I try to mount USB OTG, error message unable to mount '/usb-otg'
And when you are in TWRP you can't access the device via ADB right? So my only suggestion is to put your phone into fastboot.
To do that go into TWRP->Restart->Bootloader. In your computer check the device with "fastboot devices".
I'm not very familiar with fastboot, so you need to search a little for this. Good luck
I'm running v2.6.3.2 and the only options are to boot into recovery or system, system just stays on the LG logo though. I was hoping there would be a way to use the ADB sideload feature in TWRP or use the terminal commands
Ok I was able to use this terminal command to restore the stock ROM
dd if=/dev/zero of=/dev/block/platform/msm_sdcc.1/by-name/fota
and everything is working, never again will I underestimate the importance of backups!!
cmg178 said:
Ok I was able to use this terminal command to restore the stock ROM
dd if=/dev/zero of=/dev/block/platform/msm_sdcc.1/by-name/fota
and everything is working, never again will I underestimate the importance of backups!!
Click to expand...
Click to collapse
yes thats work fine thaks
Tried the terminal command since I havea similar problem. It seems it extracted some files but i still cannot load the stock rom. Are there any steps I am missing?
I have the same phone and the latest version of TWRP installed. ADB is commencing but not starting.
mtayabkk said:
yes thats work fine thaks
Click to expand...
Click to collapse
Have you installed adb driver... i ever have problem same like u and my friends recommand to install universal adb driver to use adb command... thats working perfectly in my devices... good luck
Sent from my PICOpadGCE
No rom install lg g2 ls980
fresti said:
Have you installed adb driver... i ever have problem same like u and my friends recommand to install universal adb driver to use adb command... thats working perfectly in my devices... good luck
Sent from my PICOpadGCE
Click to expand...
Click to collapse
Hi Guys!
I forget to make backup and now there is no ROM install in my LG G2 LS980. I am currently using TWRP 2.7.0 recovery. The problem is USB-OTG not mounting and i think because of this issue i also can't able to install ADB Drivers as in PC device manager there is no drivers showing their even i tried Universal ADB drivers. Can anybody help me how to install ROM in my G.2 The ROM which was installed in my phone was Cloudy G3. I tried almost every trick and procedure but failed to recover my ROM.
Kindly help me in this matter. Thanks in advance
Regards
Bilgramiz

HELP!

So I posted in another thread that my usb no longer works. It charges but won't get recognized by any computer. I am trying to return to stock and lock, but in the process of doing so I now have stock recovery without the correct SuperSu binary installed. I've tried reinstalling weaksauce, reinstalling supersu, everything. If I could adb commands this wouldn't be an issue, but without usb access I can't. Any way I can update the binary manually? Any suggestions? I need to be able to get into custom recovery to flash the lock bootloader zip. I've tried terminal emulator as well.
There are apps that let you do ADB commands over wifi, but I can't remember what they are (just google for them). That may be your best bet.
theycallmerayj said:
So I posted in another thread that my usb no longer works. It charges but won't get recognized by any computer. I am trying to return to stock and lock, but in the process of doing so I now have stock recovery without the correct SuperSu binary installed. I've tried reinstalling weaksauce, reinstalling supersu, everything. If I could adb commands this wouldn't be an issue, but without usb access I can't. Any way I can update the binary manually? Any suggestions? I need to be able to get into custom recovery to flash the lock bootloader zip. I've tried terminal emulator as well.
Click to expand...
Click to collapse
Try this:
https://play.google.com/store/apps/details?id=com.wave18.adbwireless
Has worked for me in the past when I wanted pure wireless.
droidkevlar said:
Try this:
https://play.google.com/store/apps/details?id=com.wave18.adbwireless
Has worked for me in the past when I wanted pure wireless.
Click to expand...
Click to collapse
Can't get any of them to work since I don't have root. No-root one's don't seem to work. I am on a mac if anyone has any tips. I need a no root adb wireless.

Oneplus One stuck on boot screen (Cyanogen and Lineage)

Good morning everyone,
Last week end I tried to install Lineage on my Oneplus One but from that moment my device stuck on the boot screen.
To correct that, I tried many things I found on different forum but the problem remains.
I installed Lineage (lineage-14.1-20170327-nightly-bacon-signed.zip) with the bootloader unlocked with TWRP (twrp-3.1.0-0-bacon.img) by the Install mode and by ADB Sideload, with or without the different kind of wipe, with or without SuperSU (V2.79) but the result is the same.
I also reinstalled Cyanogen (cm-13.1.2-ZNH2KAS3P0-bacon-signed-fastboot.zip) by terminal commands but I stuck on CM boot screen.
I’m using Ubuntu Linux operating system with the android-tools package installed but I also tried with Windows and the toolkit.
If someone can help me, I don’t know what to try now…
Thank you
ViktorVaughn said:
Good morning everyone,
Last week end I tried to install Lineage on my Oneplus One but from that moment my device stuck on the boot screen.
To correct that, I tried many things I found on different forum but the problem remains.
I installed Lineage (lineage-14.1-20170327-nightly-bacon-signed.zip) with the bootloader unlocked with TWRP (twrp-3.1.0-0-bacon.img) by the Install mode and by ADB Sideload, with or without the different kind of wipe, with or without SuperSU (V2.79) but the result is the same.
I also reinstalled Cyanogen (cm-13.1.2-ZNH2KAS3P0-bacon-signed-fastboot.zip) by terminal commands but I stuck on CM boot screen.
I’m using Ubuntu Linux operating system with the android-tools package installed but I also tried with Windows and the toolkit.
If someone can help me, I don’t know how to try now…
Thank you
Click to expand...
Click to collapse
https://forum.xda-developers.com/oneplus-one/general/tool-oneplusrecovery-tool-v1-0-restore-t2991851
Try this,make sure you use XP system to avoid driver issue.This tool doesn't use fastboot and instead uses Usb debugging port.
Mr.Ak said:
https://forum.xda-developers.com/oneplus-one/general/tool-oneplusrecovery-tool-v1-0-restore-t2991851
Try this,make sure you use XP system to avoid driver issue.This tool doesn't use fastboot and instead uses Usb debugging port.
Click to expand...
Click to collapse
Thank you.
The little problem is that I use only Ubuntu at home. It's more complicated for me with Windows but I'll try.
Is this operation possible with files and terminal commands (fastboot flash) ?
ViktorVaughn said:
Thank you.
The little problem is that I use only Ubuntu at home. It's more complicated for me with Windows but I'll try.
Is this operation possible with files and terminal commands (fastboot flash) ?
Click to expand...
Click to collapse
Nope,as I said it doesn't use fastboot.A Xp system is must.I don't think it takes long to dual boot windows alongside Ubuntu.

[HELP] MOTO Z3 play - Installed the wrong stock rom - no wifi nor band

Let me explain what I did first. I rooted my phone and used with the stock rom for a while (I needed to use some apps). So, I decided to unroot and lock the bootloader again. I used one script and flashed the rom I downloaded. But... it was the wrong rom. My rom is the XT1929-5. I flashed XT1929-6. The problem is. It returned a lot of error during the installation and the bootloader closed in the end automatically. Now, my phone is running but without internet connection. So, I can't unlock the bootloader (I can't go through the initial setup part). I already tried to reflash using Rescue assistent, but it says that it can't find the right version of my system. It looks like my baseband is not working. I waited some months for a system update so I would be able flash it even with a locked bootloader. But It didn't work. I've been searching for solutions for a long time. I know it's possible to fix. I just need help to figure out how.
Thanks in advance.
AFAIK a device with locked bootloader only will run device's pre-installed Stock ROM.
Re-flash device's original Stock ROM. You achieve this with the "ADB Sideload" method,
jwoegerbauer said:
AFAIK a device with locked bootloader only will run device's pre-installed Stock ROM.
Re-flash device's original Stock ROM. You achieve this with the "ADB Sideload" method,
Click to expand...
Click to collapse
Hi, there. Thanks for your help. But I'm not sure about how I could do the ADB sideload method. This is one thing that I still didn't try. Could you help me with that? Maybe with a step-by-step tutorial. Thanks
You run the following ADB command sequence
Code:
adb devices
adb reboot sideload
adb sideload <FULLPATH-TO-STOCKROM-ZIP-ON-PC>
adb reboot
Thanks. Does it need to be the version that came with the phone? Or could I flash the last update?
jwoegerbauer said:
You run the following ADB command sequence
Code:
adb devices
adb reboot sideload
adb sideload <FULLPATH-TO-STOCKROM-ZIP-ON-PC>
adb reboot
Click to expand...
Click to collapse
I tried using the newest update. It returned an error in the string
adb reboot sideload
Also the installation was abosted in the phone in the string
adb sideload <FULLPATH-TO-STOCKROM-ZIP-ON-PC> (of course. I changed the name properly)
Any other idea?

Categories

Resources