Can't push files to phone via TWRP - Google Pixel XL Questions & Answers

Rooted phone, went to flash rom then accidentally selected to install TWRP app, read somewhere that doing so bricks your phone so I wiped everything. I accidentally selected to wipe internal storage along with this, so now I have no OS, no files on my phones internal storage, and can't figure this out.
I tried mounting usb with TWRP, but OTG reads as 0mb, and on my computer my Pixel XL shows up as AOSP on msm8996, and trying to copy files to it just freezes explorer.exe
I had the though of doing an adb push for the ROM, or even a factory OTA image but don't know the commands for this since it's not an SD card or anything.
I'm taking shots in the dark with this and nothing works, any responses and help is greatly appreciated

Never mind. after cmd and powershell weren't working I downloaded the all in one tool and just dragged the files over to the phones storage. In the future if anybody goes full retard like me, just do that

Or just....flash a factory image with Fastboot.

Related

[Q] Need help with internal memory partition structure on Incredible

I have an Incredible, rooted (and I have issues)... I appear to have repartitioned my internal memory area. Thankfully, the phone is useable, but it's not quite right as some programs don't work properly, the video recorder hangs hard, and I have either corrupt data or areas stomped on by other areas due to incorrect partition information. If certain files get touched, then the phone immediately protects itself by flagging the internal memory as read only. I did find a workaround to the phone automatically going into ReadOnly at boot by simply adding a ".nomedia" file in the root of MP3 (where some corrupt files happen to reside). As long as the system doesn't touch the files, the file system remains R/W.
I stupidly did this to myeself. I did it while using a Partitioning tool (specifically Acronis, making a "secure zone") on my PC while my incredible was charging in the USB port and I accidentally used the wrong drive. It was one of those "oh crap" moments. If I connect the phone to my PC, the internal drive comes up as being unformatted and windows asks if I want to format. Another disk utility (EASEUS) sees the drive, can show how its partitioned, and I can explore within the partitions to see that files exist.
I've been searching for a long while to find someone somewhere who might have info on how to fix the Internal SD partition information, but have yet to find anything. Reflashing the factory ROM, "factory reset", etc. appear to just repopulate the already partitioned areas. The closest thing I have found to my problem is a post called "Challenge to members... Help me fix internal partitions without recovery" on the Incredibleforums elsewhere (can't post external links yet). Unfortunately, trying those solutions doesn't fix the issue. That post deals with /dev/mount/mmcblk0p1 and /dev/mount/mmcblk0p2. My issue appears to be in /dev/mount/mmcblk0p3. Parted doesn't like that one much. I have attached a couple of files that show parted output for all of the drives that get mounted, per /etc/fstab & /etc/recovery.fstab. This was done in ADB while the phone was booted into recovery.
If anyone can point me in the right direction how to properly (and safely) repartition the *internal* areas back to how they should be, I'd really appreciate the help!
Thanks,
Blue
I ran across this:
http://talk.maemo.org/showthread.php?t=15746
.... hope it helps send you in the right direction anyway. Good luck!
Formating instructions i think it would be a better idea to try using the ruu.exe tool to reflash your phone and it should format that partition back and put all the old apps it came with back in proper order. Since the phone is use able right now you could also try a factory reset first if you don't want to try the ruu.exe.
Thanks for the link and tip for RUU.
sfdisk does not appear to be a useable command on my DInc. Is there an Android version/port? Also, that link suggests that the partition should be msdos, but isn't the boot sector type supposed to be ext2/3 or yaffs2 (?) on the DInc?
I have already tried the factory reset as well as reformatting the phone areas using CWM Recovery (3.0.0.8). I also reflashed a factory stock ROM found in the lastest RUU. I also flashed the 2nd to latest ROM from that RUU (2.1). All of these only reformatted and re-installed stock ROM. Unfortunately, doing so only reformats the existing partitions, but does not fix the screwed up partition sizing. As far as I can determine, setting my phone back to S-ON and running the RUU will do nothing different than what I did by placing the stock PB31IMG.zip in the root of my (external) SD card and flashing it from HBOOT.
If the RUU truly repartitions the internal memory, then I'm game to set S-ON and try that. However, all indications are that doing so will be no different than flashing PB31IMG.zip. Is that correct?
Thanks again,
Blue

[Q] Can I access storage memory from CWM?

I have a Galaxy Nexus that won't boot. It goes through a boot loop. I've tried everything to try and get it working. I've wiped data/factory reset, I've formatted system and re-flashed ROMs that were already on my phone, I've tried restoring backups from several nandroid backups. It never gets past the initial Google splash screen with the unlock symbol.
I'm going to send it in for service, but I'm wondering if there's a way to try to access the flash memory to copy all the data to my computer? I've stupidly done tons of regular backups (Titanium, SMS, nandroid) to my flash memory on my phone, but never backed it up to my PC. I can see the directory structure through CWM 5.5.0.2, but I can't mount it as a USB storage device from CWM and I assume I actually have to be booted up to use ADB.
Any suggestions?
big_raji said:
I have a Galaxy Nexus that won't boot. It goes through a boot loop. I've tried everything to try and get it working. I've wiped data/factory reset, I've formatted system and re-flashed ROMs that were already on my phone, I've tried restoring backups from several nandroid backups. It never gets past the initial Google splash screen with the unlock symbol.
I'm going to send it in for service, but I'm wondering if there's a way to try to access the flash memory to copy all the data to my computer? I've stupidly done tons of regular backups (Titanium, SMS, nandroid) to my flash memory on my phone, but never backed it up to my PC. I can see the directory structure through CWM 5.5.0.2, but I can't mount it as a USB storage device from CWM and I assume I actually have to be booted up to use ADB.
Any suggestions?
Click to expand...
Click to collapse
You should be able to do adb with the device in recovery mode. I'd recommend doing something like
Code:
> adb pull /data/media sdcard
This will copy the entire contents of the pretend SDcard on the phone (/data/media) onto a new folder on your computer called "sdcard".
I don't think there's a way to access the internal memory through CWM. For CWM to do that, is that to unmount that partition, and it cannot unmount data (where the sd-cad resides) as android wouldn't run without the /data partition, or so I've heard.
Feel free to correct me if I'm wrong.
Theshawty said:
I don't think there's a way to access the internal memory through CWM. For CWM to do that, is that to unmount that partition, and it cannot unmount data (where the sd-cad resides) as android wouldn't run without the /data partition, or so I've heard.
Feel free to correct me if I'm wrong.
Click to expand...
Click to collapse
Recovery is not Android, it will run fine without the /data partition mounted (though there isn't a whole lot it would be able to do then, since that's where all your flashable goodies would reside). CWM accesses internal storage all day long when you're flashing ROMs and kernels and whatnot.
Thanks! I assumed ADB wouldn't work in recovery because I tried it quickly on a PC that didn't have the drivers installed. I plugged in it on my upstairs PC and I'm doing a very lengthy adb pull as I type this. Thanks!

stuck in recovery now what?

I updated clockworkmod recovery through rom manager. Rom manager said the install was successful. So then I boot into the recovery to flash the cyanogenmod 10 preview build. I do all my wipes data, cash, exe. Then I go to install the rom and I realize now with the new recovery I can’t install/restore anything from /extsdcard (external storage). It only has the option to install/restore from /sdcard (internal storeage) which would be fine except all my roms/backups are on my micro sdcard (external storage). I have already wiped everything so now I can’t boot my phone to fix it. Is there a way to install the old recovery after I have wiped everything. I was thinking about using Odin to flash the old recovery in download mode again (like I did when rooting) but I am not sure if this is ok to do. I tried mounting the internal storage to my pc to copy the files I need from my computer to my phone. When I plugged it in the box in the bottom right popped up and said installing drivers and they were successful but when I try mounting (anything) the computer does not recognize it. So I can’t transfer the files. Would someone who knows more than me give some advice please?
geargamer said:
I updated clockworkmod recovery through rom manager. Rom manager said the install was successful. So then I boot into the recovery to flash the cyanogenmod 10 preview build. I do all my wipes data, cash, exe. Then I go to install the rom and I realize now with the new recovery I can’t install/restore anything from /extsdcard (external storage). It only has the option to install/restore from /sdcard (internal storeage) which would be fine except all my roms/backups are on my micro sdcard (external storage). I have already wiped everything so now I can’t boot my phone to fix it. Is there a way to install the old recovery after I have wiped everything. I was thinking about using Odin to flash the old recovery in download mode again (like I did when rooting) but I am not sure if this is ok to do. I tried mounting the internal storage to my pc to copy the files I need from my computer to my phone. When I plugged it in the box in the bottom right popped up and said installing drivers and they were successful but when I try mounting (anything) the computer does not recognize it. So I can’t transfer the files. Would someone who knows more than me give some advice please?
Click to expand...
Click to collapse
While youre in recovery, can you mount through the mounts and storage option? Im not on the recovery you are talking about but if you can mount it you can throw the rom on that way. If you cant do that you should be able to just boot up the rom thats currently on it and mount it that way. Just because you wiped everything doesnt mean that it wont boot up, it just cleared all of the data. It should load up with your previous rom.
Thank you very much. It gave me more insight on what was going on. I have my phone back up and working. I was able to flash the old recovery with odin and i hope this information will help someone else in future as well.
Sent from my SPH-L710 using xda app-developers app

[Q] Need help attempting to recover data from my GN :(

Phone:
GN Toro (Verizon)
no OS currently installed!
TWRP 2.3.3 (I know, needs to be updated)
Skip to the bold text for the TLDR version.
So here's the story... I was going to flash the latest AOKP and decided that this time I would do things right! In the past I had almost always dirty flashed, but this time I was going to start clean and only restore data for a handful of apps. So I booted into TWRP and wiped cache, dalvik cache, system, and ..........internal storage! I went to flash the ROM I had downloaded and that's when I learned that I had made a huge mistake :crying:
So I've been doing a TON of reading; I think I've found a solution to my problem in this thread.
I know I can either use ADB push to reload the ROM or use ODIN mode to reflash (although I was unable to get ODIN to see my phone). My concern is that if I'm going to have any chance recovering my files, I need to avoid writing to /sdcard at all costs.
So here's my question, is there a way to get a binary dump of /sdcard aka /media/data without first installing android? I need to be able to do so from TWRP or fastboot. I have the GN toolkit but I don't see any way of doing this. I also have all the drivers installed and working (or so it seems) and ADB installed.
Sorry I misread. I'm not sure how you can recover from that.
I think you should be able to adb push a ROM to it. Flash it and it won't touch the contents of the SD card.
Sent from my Galaxy Nexus
Beezer80 said:
I think you should be able to adb push a ROM to it. Flash it and it won't touch the contents of the SD card.
Sent from my Galaxy Nexus
Click to expand...
Click to collapse
Actually, this is exactly what I did. The new ROM wrote a directory structure and various files to /sdcard, hopefully none of those writes overwrote the data I'm trying to recover...
16GB thumb drive and USB OTG cable. Boot into recovery and use dd to dump the user data partition to the thumb drive.
Probably too late for that, since you've already written files to the partition.
cschmitt said:
16GB thumb drive and USB OTG cable. Boot into recovery and use dd to dump the user data partition to the thumb drive.
Probably too late for that, since you've already written files to the partition.
Click to expand...
Click to collapse
Ya know, I have a huge thumb drive and a USB-OTG adapter, I never even thought of this! Thanks, if I ever need to do this again I will try that.
I was able to recover most if not all of my pics (the only thing I cared about losing) using this guide I linked above.
Glad that method worked. It's kind of scary with GN having a single data partition and no ext sd. Coming from a device with separate /data and /sdcard partitions plus and ext sd, I miss being able to back things up onto the card.

[Q] Bricked Ascend P6-U06

Hello there,
I made the mistake of wiping the internal storage using TWRP.
I am unable to enter recovery mode with the button hold options (tried all variations). The only way I was able to get into TWRP was adb reboot recovery. adb connection is now gone and the phone is stuck at the boot screen.
I can get a fastboot connection and the bootloader is unlocked. So I flashed the boot partition with a stock boot.img and the recovery partition with a stock recovery.img (even though I can't enter the recovery partition).
the phone never gets past the boot logo. Is there a way to directly flash a system.img vie fastboot, so that the device can be used? I am kind of stuck here.. read several threads for the past 2-3 hours, tried to reinstall TWRP as recovery but cant boot into it, etc.
I downloaded the B510.zip and was wondering if there is a way to burn an .img out of that and flash the system partition. But maybe that doesn't make sense at all.
Any help is greatly appreciated
update
Alright then, I managed to boot into TWRP!! a previous version worked.
it shows: Custom storage (498MB), Internal Storage (0MB), External Storage (0MB)
i am now proceding to install the zipped 510 rom from huawei. unfortunately i must have lost my microSD so i am lefti with sideload and otg.
sideload doesn't work because i can't find my device with adb. only fastboot seems to work, i dont know the reason but i understand its normal for my situation.
i only have an unpowered otg cable. from what i read that won't work, but I'm giving it a try and currently load the zip on a usb flashdrive.
do i understand correctly that the overall storage just appears to be 498MB? my partition table must be fairly messed up if that is the case. are there other partitions not shown by TWRP?
what do you recommend besides/instead of getting a microsd?
kind regards
update #2
I managed to mount the internal storage as mtp and copied the zip into the pictures folder, because i had no writing permission for the parent dir.
i tried to install, but the first time i got an error that cache could not be mounted. i cleared the dalvik cache and retried.
this time i had another error message as you can see in the screenshot.
adb still does not work, so sideload is not an option. i can also mount the custom partition but it is just under 500mb while the rom zip is 7xx mb
any help would be greatly appreciated
Resolved
I managed to solve it. Installed the paranoid android rom from the pictures dir. it was under 500mb and worked fine.
eyevector said:
I managed to mount the internal storage as mtp and copied the zip into the pictures folder, because i had no writing permission for the parent dir.
i tried to install, but the first time i got an error that cache could not be mounted. i cleared the dalvik cache and retried.
this time i had another error message as you can see in the screenshot.
adb still does not work, so sideload is not an option. i can also mount the custom partition but it is just under 500mb while the rom zip is 7xx mb
any help would be greatly appreciated
Click to expand...
Click to collapse
You cant install Huawei Firmware with TWRP! Only Repacked / Custom Roms.
thank you
RabbidZ said:
You cant install Huawei Firmware with TWRP! Only Repacked / Custom Roms.
Click to expand...
Click to collapse
so that is the reason why the paranoidandroid worked in the end.
cheers

Categories

Resources