Can you access internal phone storage from fastboot? - X Style (Pure) Q&A, Help & Troubleshooting

Yesterday my phone fell out of my pocket and the screen cracked. Now the touchscreen in unresponsive. Since my recovery is touch based (TWRP) I can't access anything in there. Is there a chain of commands that will allow me to access my phone's internal storage in Fastboot?

I don't believe fastboot gives you storage access; however, TWRP should automatically start up MTP and ADB shortly after it boots up. You can access and pull your files via USB when booted into TWRP.

Related

[Q] How to access adb mode using fastboot?

Hi,
Due to an unfortunate accident, my nexus 6P's screen is not longer functional. The screen is blank and the touchscreen does not work anymore. I am able to get into fastboot mode and installed TWRP (previously had CWM) but I am unable to access recovery mode in order to backup my files into my computer. Is there any way around this? Thank you for the help. Holding power and volume up keys does not work and only bootloader mode works but since I can't see anything, I am unable to select the recovery mode option
faatehhamad said:
Hi,
Due to an unfortunate accident, my nexus 6P's screen is not longer functional. The screen is blank and the touchscreen does not work anymore. I am able to get into fastboot mode and installed TWRP (previously had CWM) but I am unable to access recovery mode in order to backup my files into my computer. Is there any way around this? Thank you for the help. Holding power and volume up keys does not work and only bootloader mode works but since I can't see anything, I am unable to select the recovery mode option
Click to expand...
Click to collapse
have you tried
Code:
fasboot reboot recovery
Reboot to bootloader, volume down button twice then power button. It will boot into TWRP. Good luck trying to your password if you're encrypted. You should be able to adb from there.
Sent from my Nexus 6P using Tapatalk
I had a similar issue with an S4, and the phone functioned, but without an active screen. I was able to boot it normally, and access the files on my phone when connected to my laptop. Have you tried that?
83097markcynt said:
have you tried
Code:
fasboot reboot recovery
Click to expand...
Click to collapse
I used the fastboot flash recovery recovery.img command and used the latest TWRP version for it. However, I don't remember if encryption or pattern lock was set on the recovery (does it matter though, if I reflash the recovery?). After the command, fastboot tells me that it has successfully booted into the recovery mode, and is evident from the fact that my device no longer lists in the fastboot devices command, and Nexus ADB interface appears on my computer's device manager window. Assuming that ADB is enabled in recovery mode, I try to connect my computer via ADB but no device is recognized. I can boot into my phone normally, but since I cannot see the screen, unlocking my phone is impossible and without that, I can't access my files, also ADB does not work on the lockscreen and it probably has to be enabled via developer options initially.
Is there any work around for this? Perhaps enabling ADB on the recovery using fastboot? Or disabling the pattern lock using a flashable .zip file that I can flash via Fastboot? I just want access to my phone as it has important data that needs to be recovered. Thank you for all the help!
dratsablive said:
I had a similar issue with an S4, and the phone functioned, but without an active screen. I was able to boot it normally, and access the files on my phone when connected to my laptop. Have you tried that?
Click to expand...
Click to collapse
Yes, I can boot into my phone. However, I cannot access files and my laptop does not detect it whilst on the lockscreen
faatehhamad said:
Yes, I can boot into my phone. However, I cannot access files and my laptop does not detect it whilst on the lockscreen
Click to expand...
Click to collapse
That's the rub, I probably didn't have a lock screen enabled.

Stuck in fastboot loop-HELP!

I was in the middle of a restore in twrp and the phone shut off in the middle of the restore (while restoring recovery), and had such, my android system will no longer boot, nor can I get into recovery. It simply goes into fastboot mode and that's all. Is there a way to flash twrp (Archlinux?) using fastboot/adb?
Thank you in advance!
533y4 said:
I was in the middle of a restore in twrp and the phone shut off in the middle of the restore (while restoring recovery), and had such, my android system will no longer boot, nor can I get into recovery. It simply goes into fastboot mode and that's all. Is there a way to flash twrp (Archlinux?) using fastboot/adb?
Thank you in advance!
Click to expand...
Click to collapse
Depends on what variant you have. If its a dirtysanta one while in fastboot do
Code:
fastboot flash recovery (twrpimgnamehere).img
and it will install the twrp image you have downloaded. If you are on TMO you need to revert to stock using a KDZ and then re root.
Fastboot commands aren't working on the H918? My model... -_-
What's the difference between recowvery and dirtysanta?
OK. So let me ask this then. If fastboot commands don't seem to do much on the H918, then how does one go about backing up the internal storage before being formatted? Is there like a dd command to copy everything over? Or will the phone still attach storage to the PC when attached, even in fastboot?
In other words, how can I backup my internal storage before reseting to stock?
533y4 said:
Fastboot commands aren't working on the H918? My model... -_-
What's the difference between recowvery and dirtysanta?
Click to expand...
Click to collapse
The difference between recowvery and dirtysanta is multiple things. One thing is the fact that recovery goes after the recovery directly and dirtysanta replaces the bootloader itself. IF you use dirtysanta on a H918 you WILL BRICK. non recoverable. Dirtysantas boatloader is a debug bootloader that has full access to the phone. H918 bootloader only has limited commands available.
The other difference is how the methods goes about actually doing everything. Jcadduonos recowvery attacks recovery uses scripts to start a factory recovery installer/updater but makes it install a temp root instead of a recovery then the device has access to fully install a twrp image. Dirtysanta skips that and attacks the bootloader directly by replacing a higher level function of the phone temporarily that has access to the phones bootloader(for some unknown reason) and replaces it with the debug one. Once the debug one is in the device is able to be rooted like any other device with an unlocked bootloader since it has full access.
533y4 said:
OK. So let me ask this then. If fastboot commands don't seem to do much on the H918, then how does one go about backing up the internal storage before being formatted? Is there like a dd command to copy everything over? Or will the phone still attach storage to the PC when attached, even in fastboot?
In other words, how can I backup my internal storage before reseting to stock?
Click to expand...
Click to collapse
You don't. you can copy everything manually but If you backup the data partition(which has your internal storage inside) it will not be usable on the device after you root. If you do manage to back it up then restore it afterward since the device itself is normally encrypted and is now decrypted the settings and stuff will cause crashes and force closes.
me2151 said:
The difference between recowvery and dirtysanta is multiple things. One thing is the fact that recovery goes after the recovery directly and dirtysanta replaces the bootloader itself. IF you use dirtysanta on a H918 you WILL BRICK. non recoverable. Dirtysantas boatloader is a debug bootloader that has full access to the phone. H918 bootloader only has limited commands available.
The other difference is how the methods goes about actually doing everything. Jcadduonos recowvery attacks recovery uses scripts to start a factory recovery installer/updater but makes it install a temp root instead of a recovery then the device has access to fully install a twrp image. Dirtysanta skips that and attacks the bootloader directly by replacing a higher level function of the phone temporarily that has access to the phones bootloader(for some unknown reason) and replaces it with the debug one. Once the debug one is in the device is able to be rooted like any other device with an unlocked bootloader since it has full access.
You don't. you can copy everything manually but If you backup the data partition(which has your internal storage inside) it will not be usable on the device after you root. If you do manage to back it up then restore it afterward since the device itself is normally encrypted and is now decrypted the settings and stuff will cause crashes and force closes.
Click to expand...
Click to collapse
Very interesting how different the two are and how they work. Very interesting indeed.
As for the data partition, mine is already decrypted as is (was rooted already and tried to install a cm rom to test; ended up glitches during restore). But I have no intentions on restoring an backups. I simply want my photos, saves, books, etc off the actual internal SD storage (not my external SD card, obviously).
My question here I guess is, will the internal storage mount while in fastboot mode the same as if the phone was on normal (adds a new drive (win)/mtp link (unix))?
I just want to copy and paste all the files off the internal storage on to my unix desktop. Then format the whole phone and start fresh again.
*bump*
I have tried to access the SD card while in fastboot mode. Absolutely nothing I do can make the PC see the internal storage on my V20. I have some files for my job on my internal SD card (NOT my external SD card, but the actual built in storage), that I absolutely, positively cannot afford to loose. These files are for my job. If I loose these files, I will loose my job.
Please, can someone tell me how to access the SD card in fastboot mode? It's really really important.
If anyone, at all, has any clue or any ideas on how to access the internal storage or how to restore my v20 without a full reset, then please please please help. Hell, I'll even be willing to donate some money to whoever can figure this out for me. Seriously, it's really that important that I get my files off the internal storage.
Thanks to anyone who can help.
P.s. I have access to Windows and Linux computers.
533y4 said:
*bump*
I have tried to access the SD card while in fastboot mode. Absolutely nothing I do can make the PC see the internal storage on my V20. I have some files for my job on my internal SD card (NOT my external SD card, but the actual built in storage), that I absolutely, positively cannot afford to loose. These files are for my job. If I loose these files, I will loose my job.
Please, can someone tell me how to access the SD card in fastboot mode? It's really really important.
If anyone, at all, has any clue or any ideas on how to access the internal storage or how to restore my v20 without a full reset, then please please please help. Hell, I'll even be willing to donate some money to whoever can figure this out for me. Seriously, it's really that important that I get my files off the internal storage.
Thanks to anyone who can help.
P.s. I have access to Windows and Linux computers.
Click to expand...
Click to collapse
can you let it boot up and will it just hang on the lg logo or is it rebooting into fastboot?
really my only advice would be try letting it hang on lg logo and see if adb is present, furthermore you can get a adb always moded boot.img and push that to the phone using fastboot then see if adb is a option.
If so you can do the adb commands to pull the userdata portion off the device the same way the system dumps are done i believe, but the sad fact is its probably all currupted anyway from your restore you were trying.
The other option is push recovery again to device, and then try a dirty flash of the stock rom, in hopes it can get the system partition back up and running,
furthermore, worst case wipe all and flash the rom, once its back up and running, download diskdigger from playstore and see if it can recovery the deleted stuff, or try the phonedoctor program for windows that runs against your internals and trys to recocvery stuff..
The biggest question is why were you flashing your device without saving stuff thats "soooo important and can cost you your job" ? seems like a oversight on your part really, and a lesson learned. Backup work stuff always, and dont play with roms during work days lol, not to be mean but really, why risk your job and lively hood over some unsaved stuff?
I did actually have a back up on my S6, which I dropped and broke a mere hour before this. So it's not at all an oversight. There were backups in place. And it won't boot at all or I'd had been able to get adb Atleast. ADB won't see the v20 and I tried to flash recovery using fastboot flash recovery recovery.img command. It says unknown.
How can one going about flashing such a boot.img in the H918? Where can one find such things? I assume you mean a kernel of some sort, right?
I truly appreciate the reply. Has I said, it's not like I didn't have backups. I did. It really is an issue of bad luck. : (
i tried this it worked https://forum.xda-developers.com/v20/help/lg-v20-access-to-fastboot-t3557328
Have you tried power on and volume down to go through the factory reset screens.
A bunch of us had this problem and it was because an update downloaded on it's own and the bootloader snoops it out and forces recovery to boot.
Just do the volume down + power button - as soon as you see the lg logo release power only then immediately re-press power and continue holding power and volume down until the factory reset screen pops up. Select yes and yes, (don't worry - if you have twrp recovery it can't reset). It will boot you into TWRP and I'm pretty sure it will delete the update files in fota folder.
In TWRP select reboot - system and it should boot normally like nothing happened.

nandroid restore or factory reset from PC

My Moto G7 is totally messed up but I can still access it by cable from my pc. All files encrypted.
Can I restore a previous twrp nandroid backup from the pc? I cannot push files to the phone to do it from the phone. I get error missing key probably because the files are encrypted.
If not, can I do a hard factory reset from the PC? (I cannot access the phone's recovery by Power+down volume to do it that way).
EDIT
Will adb shell recovery --wipe_data
start a factory reset or just wipe data on a Moto G7?
Are you able to boot into fastboot mode? What means you can access your phone via PC? As storage or via ADB?
Things have changed.
Now my PC can no longer see.the phone. Won't connect.
I can boot the phone to AP Fastboot Flash Mode.
When I select Start it gives me "your device can't be trusted. ..." then boots into the Moto screen, in a boot loop.
If I cable connect to my PC, PC cannot see it.
I'm thinking it is hard bricked and gone.
?

No OS, Cant Access external storage, Can access TWRP, Plz Help!

Due to dirty flashing and flashing a rom with the wrong kernel, my phone goes into a logo boot loop. I had cleared my internal storage after flashing since i thot flashing had succeeded. Now, I can only access twrp. I formatted the internal storage, i cant access adb. My pc doesnt recognize the phone at all. My kernal is NoKernal, i cleared everything including system, and twrp doesn't recognize my usb either. Please help me! Thanks a lot in advance!
-Danny
Try to check whether fastboot is working, check with a different usb cable. Once you can access adb, you can sideload any rom you want.
No, fastboot isn't working either. I switched the phone onto fastboot mode, but nothing showed up when i used 'fastboot devices'.

Backup contacts from unlocked and rooted OnePlus 6T with a dead screen

Hello everybody, I have a OnePlus 6T that's rooted and has an unlocked bootloader, but USB debugging is off.
I installed LineageOS on it, and it also has an LineageOS Recovery (I didn't use TWRP).
I dropped it recently and now the screen is dead, but the phone is still alive...
So, I'm wondering if I could recover my contacts and hopefully other data as well.
I'm able to enter fastboot, however even when I do `fastboot reboot recovery` it seems that it goes straight to booting the OS.
Maybe it doesn't, I don't know since there isn't a way to see, all in all `adb devices` doesn't show anything.
The reason why I think that it boots the OS, is because my computer's file explorer detects the device and I'm able to change the sound mode (vibrate, no sound, etc.).
Also when trying to use buttons(Power+VolumeDown) to enter recovery it also seems to go to the OS.
I'm trying to enter recovery since, if I understand correctly, ADB works from there.
Every answer is appreciated. Thanks!
Not an expert but
Could you go to fastboot mode and do
fastboot boot TWRP.img
Boot to TWRP?
But if the phone is encrypted, I believe you'll have to decrypt using the screen, which is broken. I don't see a way out..
If you can get to recovery adb should work from there and you can pull the contacts file from wherever it is

Categories

Resources