Cant write to/view Interal storage [GNEX] - Samsung Galaxy Nexus

I cant not view files on my internal SD card. For example pictures in the gallery only display blank thumbnails but ARE THERE. This means i cant download anything and save it (Apps from the play store are fine) but i CAN view files with no problem while connected to a computer and move files to my phone on there with no issues but downloading straight to the phone wont work. I was flasing experemental roms when this happend and yes, i did make a back up but this made no diffrence. I have flashed stock 4.0.2, 4.0.3, locked the bootloader, unroooted, re unlocked the bootloader but the problem persists. Any idea's anyone?

Can you clarify if it's only existing files that are already on your phone, or does this happen for all new files created on your phone as well (taking new photos and videos for example).
Sent from my Galaxy Nexus using Tapatalk

-
Yes it does, but apps are not effected. But these are put on a diffrent space on the phone i think. But no, for example when i take a picture it will not save it, i cannot download files of the internet either. Any idea's would be appreciated

JustArchiee said:
[snip]
Any idea's would be appreciated
Click to expand...
Click to collapse
Copy your data to your computer, erase all the partitions on your device, and re-flash your ROM.

efrant said:
Copy your data to your computer, erase all the partitions on your device, and re-flash your ROM.
Click to expand...
Click to collapse
+ 1
Sent from my Galaxy Nexus using Tapatalk

Ok just to make sure (Yes - im a noob) just plug it into the computer and wipe everything yes?

How to wipe your device completely
JustArchiee said:
Ok just to make sure (Yes - im a noob) just plug it into the computer and wipe everything yes?
Click to expand...
Click to collapse
N00b step-by-step
1) Ensure you have the drivers installed properly on you computer;
2) Copy everything you want to keep off of your device (i.e., to the cloud, to your computer, etc.);
3) Reboot your device into fastboot mode: turn it off, then hold vol+ & vol- & press and hold power;
4) Plug your GN to your computer;
5) Download the attachment to your computer, and extract the contents to a directory;
5a) Download this and extract the files within to the same directory (extract ALL archives, including the zip inside the second archive);
6) Open a command prompt in that directory;
7) Make sure your computer recognizes your device by typing: fastboot devices
8) Wipe everything by typing the following:
fastboot erase boot
fastboot erase system
fastboot erase userdata
fastboot erase recovery
fastboot erase cache
9) Flash the ICL53F system partition: fastboot flash system system.img
10) Flash the ICL53F data partition: fastboot flash userdata userdata.img
11) Flash the ICL53F boot partition: fastboot flash boot boot.img
12) Download CWM from here, save it to the same directory and rename it to cwm.img
13) Flash CWM: fastboot flash recovery cwm.img
14) Now you are on the stock ROM with CWM recovery. You can flash whatever ROM you want now in recovery.

Ok all good till '9)' i get 'cannot determine image filename for system.img'
Is there a certion way to open Command prompt?

Ahh don't worry i used wugfreash to flash everything. Thanks so much for you help - Will donate

JustArchiee said:
Ok all good till '9)' i get 'cannot determine image filename for system.img'
Is there a certion way to open Command prompt?
Click to expand...
Click to collapse
For others whovarevhaving that issue: you need to extract ALL the archives. There is a zip inside the archive inside the main archive...
Sent from my Galaxy Nexus using Tapatalk

This may have been a permissions issue. I wish I'd replied sooner
Sometimes pushing files to /sdcard from an incorrectly programmed ROM or over ADB in recovery can result in making "root" the owner of all the files. I experienced this when I pushed a bunch of files to my phone over ADB while in ClockworkMod.
I posted a solution here: http://forum.xda-developers.com/showthread.php?p=23767694

Related

[Q] Accessing Internal Storage via TWRP

Is there any possible way of accessing the internal storage through TWRP? I made the unfortunate mistake of wiping everything including the OS. I would like to access the internal storage drive so I can put in a ROM and flash. Any help would be greatly appreciated!
olive.knight said:
Is there any possible way of accessing the internal storage through TWRP? I made the unfortunate mistake of wiping everything including the OS. I would like to access the internal storage drive so I can put in a ROM and flash. Any help would be greatly appreciated!
Click to expand...
Click to collapse
If you can get ADB over recovery working, you can push files to internal storage.
Be aware that if you did a data partition wipe, TWRP may be unable to write anything to the internal storage partition until you've booted a stock ROM at least once. If this is the case, then you are best to flash a stock ROM from fastboot, then boot once, put the files you need on internal and then proceed from there.
cmstlist said:
If you can get ADB over recovery working, you can push files to internal storage.
Be aware that if you did a data partition wipe, TWRP may be unable to write anything to the internal storage partition until you've booted a stock ROM at least once. If this is the case, then you are best to flash a stock ROM from fastboot, then boot custom recovery directly from fastboot, put the files you need on internal and then proceed from there.
Click to expand...
Click to collapse
+1
Maybe try using an OTG cable and usb stick. I just went from CWM to TWRP and saw that there was an option to use otg. I did did a backup to the usb directly and it works great. The inbuild file explorer was also able to browse all the files on the usb stick as well
bk201doesntexist said:
+1
Click to expand...
Click to collapse
You edited my quote to say "then boot custom recovery directly from fastboot". Please don't edit me. It does NOT work if your data partition is fully wiped.
On the Galaxy Nexus if you do a full userdata partition wipe, it CAN'T be written by any custom recovery until you do one full boot cycle into a ROM. The custom recovery will fail to mount the data partition. Booting into a ROM regenerates that partition.
You can see this after unlocking the bootloader, which does a userdata wipe. If you flash custom recovery and try to go straight into custom recovery, it will simply find no writable partition at all. Notice that when you boot into system after a userdata wipe, it commences the boot cycle and then reboots itself one additional time. I suspect that first boot cycle regenerates the userdata partition, and then the second boot cycle continues as normal.
cmstlist said:
If you can get ADB over recovery working, you can push files to internal storage.
Be aware that if you did a data partition wipe, TWRP may be unable to write anything to the internal storage partition until you've booted a stock ROM at least once. If this is the case, then you are best to flash a stock ROM from fastboot, then boot once, put the files you need on internal and then proceed from there.
Click to expand...
Click to collapse
Thanks for your reply as well as everyone else that has contributed to my thread. I am able to get my device to be in fastboot mode but adb does not detect my device. It states:
* daemon not running. starting it now on port 5037 *
ADB server didn't ACK
* failed to start daemon *
error: cannot connect to daemon
If this method does not work, would you suggest me to purchase an OTG usb cable as an alternative?
Adb doesnt work in fastboot mode.
Sent from my i9250
Why don't you just fast boot flash stock and start all over?
Sent from my Nexus 4 using xda premium
olive.knight said:
Thanks for your reply as well as everyone else that has contributed to my thread. I am able to get my device to be in fastboot mode but adb does not detect my device. It states:
* daemon not running. starting it now on port 5037 *
ADB server didn't ACK
* failed to start daemon *
error: cannot connect to daemon
If this method does not work, would you suggest me to purchase an OTG usb cable as an alternative?
Click to expand...
Click to collapse
In fastboot mode, you need to use fastboot (not ADB) to flash the stock ROM. Then after regenerating the data partition with one boot cycle, go back into fastboot again and flash custom recovery if you don't still have it.
Never tried it myself, but it should be possible to flash a custom recovery right when you're flashing stock through fastboot. Not through flash-all.sh, but manually flashing system.img, boot.img and userdata.img, unzipped from the update-jop40d.zip file, plus cwm.img or twrp.img, and then boot up normally, or directly to custom recovery to push a rom/root/whatever.
Again, if the device already has the latest bootloader/bb version, there's no need to reflash it. If using flash-all.sh, just comment those out from the script.
Sent from my i9250
bk201doesntexist said:
or directly to custom recovery to push a rom/root/whatever.
Click to expand...
Click to collapse
... except that if the userdata partition was completely wiped, directly to custom recovery will not be able to access the data partition until it's been booted into system once.
cmstlist said:
... except that if the userdata partition was completely wiped, directly to custom recovery will not be able to access the data partition until it's been booted into system once.
Click to expand...
Click to collapse
i stand corrected.
still, how about flashing userdata.img before flashing a custom recovery?
edit: I'm sorry. I must prove you wrong this time. I just finished flashing back to stock with the following steps:
- fastboot erase system
- fastboot erase userdata
- fastboot erase boot
- fastboot erase recovery
- fastboot flash system system.img
- fastboot flash userdata userdata.img
- fastboot flash recovery twrp.img
- (manual reboot to recovery on the device)
- adb push ~/workbench/maguro/recovery_flashables/CWM-SuperSU-v0.99.zip /sdcard/
- (flash zip on recovery)
- (reboot system from recovery)
- rooted JOP40D, working fully.
bk201doesntexist said:
i stand corrected.
still, how about flashing userdata.img before flashing a custom recovery?
edit: I'm sorry. I must prove you wrong this time. I just finished flashing back to stock with the following steps:
- fastboot erase system
- fastboot erase userdata
- fastboot erase boot
- fastboot erase recovery
- fastboot flash system system.img
- fastboot flash userdata userdata.img
- fastboot flash recovery twrp.img
- (manual reboot to recovery on the device)
- adb push ~/workbench/maguro/recovery_flashables/CWM-SuperSU-v0.99.zip /sdcard/
- (flash zip on recovery)
- (reboot system from recovery)
- rooted JOP40D, working fully.
Click to expand...
Click to collapse
I'm sorry if we have had different experiences, but this is what I have experienced:
- fastboot flash userdata userdata.img
- fastboot flash recovery {CWM or TWRP}
- (manual reboot to recovery on the device)
- Attempt to adb push anything
- Error message (I don't remember exactly what)
- Attempt to mount the data partition from the mounts menu
- Error message
- Boot into the ROM once, then into recovery
- No more error messages
This was my experience both on Galaxy Nexus and Nexus 7 3G.
FWIW, my GNex was bought from WIND Mobile in Canada. I have heard that the Play Store Nexus units are sometimes a bit different (e.g. some have reported that the Play Store Nexus does not wipe userdata after unlocking bootloader).
zephiK said:
Why don't you just fast boot flash stock and start all over?
Sent from my Nexus 4 using xda premium
Click to expand...
Click to collapse
Oh I definitely want to do this but I don't exactly know how to flash stock in fast boot mode. I don't know how to load the zip file in internal storage. If you could provide me a link or instructions on how to proceed I would gladly appreciate it!
olive.knight said:
Oh I definitely want to do this but I don't exactly know how to flash stock in fast boot mode. I don't know how to load the zip file in internal storage. If you could provide me a link or instructions on how to proceed I would gladly appreciate it!
Click to expand...
Click to collapse
When you flash in fastboot, the files reside on your computer and are flashed over USB to the device.
cmstlist said:
When you flash in fastboot, the files reside on your computer and are flashed over USB to the device.
Click to expand...
Click to collapse
I tried using my computer to command my phone in fastboot mode but my computer keeps stating that the "USB device not recognized" and the cmd continues with < waiting for device >. Are my efforts to revive my phone a lost cause?
Search around for GNex fastboot drivers. And make sure you're using fastboot on the computer, not ADB.
Sent from my Galaxy Nexus using Tapatalk 2
cmstlist said:
Search around for GNex fastboot drivers. And make sure you're using fastboot on the computer, not ADB.
Sent from my Galaxy Nexus using Tapatalk 2
Click to expand...
Click to collapse
Thank you and very one else that contributed to my post. With your help and a dash of luck I finally managed to return my phone to working order. Thanks again and happy holidays!!!
Found this question from Googling, and I actually have an easy answer for it:
Load TWRP, connect the phone to your computer (I was on Windows), and you can access your Internal Storage and SD card normally through USB as an attached device.

[Q] Forgot to install ROM before the custom recovery.

I was following this guide with the intention of installing Cyanogenmod on to my HTC One X (international version), and I got as far as the Flashing a ROM section, towards the bottom, when I reached step 5, which reads "Make sure you already have your shiny new ROM .zip on your internal memory as you cannot enable mass storage in the current recovery builds."
At this point I realised I had not done this, and I have no way of putting the ROM onto the phone. Is there anything I can do, or do I have to start from scratch, and if so, how do I do that?
I'm following this guide regarding installing the ROM, but is there a better one? That guy cannot spell.
I also have this thread open for CM10.1, but it's quite confusing. Should I be downloading the following?: Beta 7 (pure JB vendor): http://d-h.st/fo4 - Kernel 3.1.10 included.
Thanks in advance.
ashleynicholson said:
I was following this guide with the intention of installing Cyanogenmod on to my HTC One X (international version), and I got as far as the Flashing a ROM section, towards the bottom, when I reached step 5, which reads "Make sure you already have your shiny new ROM .zip on your internal memory as you cannot enable mass storage in the current recovery builds."
At this point I realised I had not done this, and I have no way of putting the ROM onto the phone. Is there anything I can do, or do I have to start from scratch, and if so, how do I do that?
I'm following this guide regarding installing the ROM, but is there a better one? That guy cannot spell.
I also have this thread open for CM10.1, but it's quite confusing. Should I be downloading the following?: Beta 7 (pure JB vendor): http://d-h.st/fo4 - Kernel 3.1.10 included.
Thanks in advance.
Click to expand...
Click to collapse
have you already installed the custom recovery?
matt95 said:
have you already installed the custom recovery?
Click to expand...
Click to collapse
Yes, and "backed up." I don't know what I've backed up, but I've backed up something. I have not wiped anything, and I still appear to have a functional phone.
you probably backed up the stock rom however to push the rom onto your phone you should go into recovery and mount USB and the put the rom onto the sdcard that's it...
matt95 said:
you probably backed up the stock rom however to push the rom onto your phone you should go into recovery and mount USB and the put the rom onto the sdcard that's it...
Click to expand...
Click to collapse
How do I mount USB? When I plug my phone in I just get weird tethering options.
ashleynicholson said:
How do I mount USB? When I plug my phone in I just get weird tethering options.
Click to expand...
Click to collapse
you need to go into recovery and there is an option for mounting partitions
matt95 said:
you need to go into recovery and there is an option for mounting partitions
Click to expand...
Click to collapse
Do I just place the file in the main folder, or does it go somewhere specific? Thanks for your help by the way.
You can mount it inside the recovery as a diskdrive and yes you need that cm10.1 + gapps if you want them too. Mount it and copy the rom and gapps to it
Here is a small tut i wrote earlier. ...
This counts for recovery cwm 5.8.4.0 (otherwise a full wipe in any other recovery must be done)
In recovery
Wipe data/factory reset
Wipe cache partition
Advanced - wipe dalvik cache
Mounts and storage - format cache,data,system
Remove the cable to the pc before installing the rom !
Then install CM10.1 after that GAPPS.....DO NOT REBOOT
Reconnect the cable and ......
type in the fastboot command window
Adb reboot bootloader
Fastboot erase cache
Fastboot flash boot boot.img (the file from the rom)
Fastboot erase cache
Fastboot reboot
Mr Hofs said:
You can mount it inside the recovery as a diskdrive and yes you need that cm10.1 + gapps if you want them too. Mount it and copy the rom and gapps to it
Here is a small tut i wrote earlier. ...
This counts for recovery cwm 5.8.4.0 (otherwise a full wipe in any other recovery must be done)
In recovery
Wipe data/factory reset
Wipe cache partition
Advanced - wipe dalvik cache
Mounts and storage - format cache,data,system
Remove the cable to the pc before installing the rom !
Then install CM10.1 after that GAPPS.....DO NOT REBOOT
Reconnect the cable and ......
type in the fastboot command window
Adb reboot bootloader
Fastboot erase cache
Fastboot flash boot boot.img (the file from the rom)
Fastboot erase cache
Fastboot reboot
Click to expand...
Click to collapse
Thanks for your comprehensive reply dude. Does the gapps (Google Apps I assume?) include Google Now? I'd become quite accustomed to that particular gadget and I will miss it.
Actually i have to guess yes.....i never tried it !
Ow and my apology to matt for barging in like this......
Mr Hofs said:
Actually i have to guess yes.....i never tried it !
Ow and my apology to matt for barging in like this......
Click to expand...
Click to collapse
Ok, once this gapps is downloaded I am good to go I think. If I brick it I can just break it and claim it on the insurance. Although this phone is brand new because my old one drowned a couple weeks ago, so they mightn't like two claims in such quick succession.
yeah gapps have google now too
matt95 said:
yeah gapps have google now too
Click to expand...
Click to collapse
One more question guys, and this is where I possibly reveal how idiotic I am...
How do I install the ROM? I have the two files on the storage (in unzipped folders), but how do I install them?
ashleynicholson said:
One more question guys, and this is where I possibly reveal how idiotic I am...
How do I install the ROM? I have the two files on the storage (in unzipped folders), but how do I install them?
Click to expand...
Click to collapse
you need the cm10.1 rom.zip and the gapps.zip... go into recovery choose .zip and select the rom.zip first, after that install the gapps.zip following the same steps before... then reboot and enjoy the rom
matt95 said:
you need the cm10.1 rom.zip and the gapps.zip... go into recovery choose .zip and select the rom.zip first, after that install the gapps.zip following the same steps before... then reboot and enjoy the rom
Click to expand...
Click to collapse
Got it.
Can you explain the second half of your instructions please?
[quotetype in the fastboot command window
Adb reboot bootloader
Fastboot erase cache
Fastboot flash boot boot.img (the file from the rom)
Fastboot erase cache
Fastboot reboot[/quote]
Well you have a certain folder on the pc....from where you also flashed the recovery ? It contains fastboot.exe and adb.exe files ....right? You open the cm10.1.zip file and you see the boot.img file in there, you copy that to the fastboot folder on the pc and flash it
ashleynicholson said:
Got it.
Can you explain the second half of your instructions please?
[quotetype in the fastboot command window
Adb reboot bootloader
Fastboot erase cache
Fastboot flash boot boot.img (the file from the rom)
Fastboot erase cache
Fastboot reboot
Click to expand...
Click to collapse
[/QUOTE]
oh yeah forgot about that sorry...
before going into recovery you should go into fastboot mode, connect the phone to your computer and type those command in the terminal/cmd, the boot.img file can be easily found in the cm10.1 thread or in the rom.zip... after that install the rom following the steps above...
Mr Hofs said:
Well you have a certain folder on the pc....from where you also flashed the recovery ? It contains fastboot.exe and adb.exe files ....right? You open the cm10.1.zip file and you see the boot.img file in there, you copy that to the fastboot folder on the pc and flash it
Click to expand...
Click to collapse
I'm on a Mac, so the guide said I only needed the fastboot file, not the adb one. What do you mean "flash it"?
I've rebooted the phone as you said, but it just says "Unfortunately, the process com.android.phone has stopped." I click Ok and it says that again.
ashleynicholson said:
I'm on a Mac, so the guide said I only needed the fastboot file, not the adb one. What do you mean "flash it"?
I've rebooted the phone as you said, but it just says "Unfortunately, the process com.android.phone has stopped." I click Ok and it says that again.
Click to expand...
Click to collapse
fastboot mode: power off the phone, power+vol down, select fastboot and press power, you're done
You can go in the bootloader first and flash the boot.img. I described it the other way around because you end with a cache erase to avoid boot problems (got this from the thread itself)
Basically it comes down to this
You put the phone in the bootloader and you see a red text that says "fastboot usb"
At that point you flash the boot.img from the mac to the phone.
Then you unhook the cable and do the rest of the guide

[Q] SD card appears empty, and phone is stuck on load screen.

A buddy of mine rooted my phone after I had so much difficulty trying to do it myself. I went to update my ROM this afternoon and was brought to the white HTC loading screen with no more activity. Tried getting into my phone to put a new ROM on the SD card and nothing comes up on the SD card folder. I am able to put a ROM in the empty SD card folder and install it, but than it just gets stuck on the same screen as before. I'm really just in the dark here and that friend isn't any longer available to help me out. Thank you all in advance, hopefully this is fixable. I am quite concerned. I should add that I would like to ultimately just get back to stock and be done with things I don't understand so as to avoid this happening again.
Did you flash the boot.img from the rom.zip? These are the correct steps to flash a ROM:
1. Flash the boot.img from ROM.zip via fastboot. "fastboot flash boot boot.img" then "fastboot erase cache"
2. Boot into recovery and use THIS by flashing it.
3. Now flash the ROM.zip and then gapps.zip via recovery.
4. Reboot.
vin4yak said:
Did you flash the boot.img from the rom.zip? These are the correct steps to flash a ROM:
1. Flash the boot.img from ROM.zip via fastboot. "fastboot flash boot boot.img" then "fastboot erase cache"
2. Boot into recovery and use ]THIS[/URL] by flashing it.
3. Now flash the ROM.zip and then gapps.zip via recovery.
4. Reboot.
Click to expand...
Click to collapse
I have tried flashing the boot.img but when I go to put the file onto my phone I don't have any folders such as the boot.img folder to put it in. As for flashing the link above, I am taking a stab in the dark here but I assume that I download that link, extract it and place it on my SD card somewhere. I'm not sure as to how I flash it. Sorry... I really have tried learning the ropes of this, but I can't seem to grasp it.
I somehow now have access to TWRP on my device... I am so confused.
Scalliedhooligan said:
I have tried flashing the boot.img but when I go to put the file onto my phone I don't have any folders such as the boot.img folder to put it in. As for flashing the link above, I am taking a stab in the dark here but I assume that I download that link, extract it and place it on my SD card somewhere. I'm not sure as to how I flash it. Sorry... I really have tried learning the ropes of this, but I can't seem to grasp it.
Click to expand...
Click to collapse
1. First you need to download a custom ROM like this one : http://tunsd.de/downloads/ICJ/IceColdJelly421/aokp_ICJ422-V3.0.zip , Gapps : http://goo.im/gapps/gapps-jb-20130301-signed.zip and Super wipe script: https://www.dropbox.com/s/0y31poo1kiaif4y/Super wipe script.zip
2. Open the aokp_ICJ422-V3.0.zip with winrar/winzip and extract the boot.img and place it in the "fastboot" folder in your PC. (since you have already unlocked/rooted it, I guess you know which is the fastboot folder)
3. Connect your Phone to your PC and make a new folder named "ROM" and put the aokp_ICJ422-V3.0.zip , gapps-jb-20130301-signed.zip and Super wipe script.zipin it.
4. Turn of your phone. Now hold the power button and volume down button together until the bootloader screen pops up. (White screen with 3 android figures at the bottom)
5. Now select "fastboot" using the volume up/down keys and press power button once you highlight it to get into fastboot. Now connect your phone again to your PC.
6. You will hear a sound on your pc and on the screen it will say "fastboot USB".
7. Now open fastboot folder on your PC and press shift key and simultaneously rightclick and click on "open command prompt here".
8. type the following lines:
fastboot erase cache
fastboot flash boot boot.img
fastboot erase cache
9. Now disconnect your phone and head back to "HBOOT" and then select "Recovery".
10. Now go to "install zip from sd" and select "ROM" folder which you had created earlier on the phone.
11. Now select "super wipe script" and install it. After everything is done you will come back to choose zip from sd.
12. Now again navigate to ROM folder and select "aokp_ICJ422-V3.0.zip" and install it. and then install "gapps-jb-20130301-signed.zip".
13. Now go back and select "reboot system now".
14. If you have done all the above steps correctly, you will boot into IceColdJelly Rom!
Scalliedhooligan said:
I somehow now have access to TWRP on my device... I am so confused.
Click to expand...
Click to collapse
Irrespective whether you have CWM or TWRP... Steps will be similar for flashing the ROM... Just the names of the buttons/options will be different!
If you want to use CWM, then download this : http://htcfanboys.com/download/seadersn/?action=list&file=2823
Put the recovery.img in your fastboot folder. Boot your phone in fastboot mode and fire the following lines in CMD.
fastboot erase cache
fastboot flash recovery recovery.img
fastboot erase cache
Now you can follow the steps which I have given blindly!
My phone was unlocked and rooted from a different PC so I have no fastboot folders or any knowledge on what a fastboot folder is.
Scalliedhooligan said:
My phone was unlocked and rooted from a different PC so I have no fastboot folders or any knowledge on what a fastboot folder is.
Click to expand...
Click to collapse
Download HTC Sync Manager: (this is required so that correct drivers are installed on your PC)
http://www.htc.com/www/support/software/htc-sync-manager.aspx
After download is complete, install it and restart your pc.
Download Fastboot Folder:
http://www.mediafire.com/?cm2famr3xd2cnom
Extract it somewhere on your pc.
Now look at my previous post and follow the steps...
Everything went swell until step 10. Every time I tried to install anything it came up as failed. I repeated the steps several times with the same results. I really appreciate your efforts in trying to help me.
Scalliedhooligan said:
Everything went swell until step 10. Every time I tried to install anything it came up as failed. I repeated the steps several times with the same results. I really appreciate your efforts in trying to help me.
Click to expand...
Click to collapse
What error message do you get while you flash?
what is your HBoot version?
Go to bootloader(Power button+Volume Down)... once you get to that white screen, you should be able to see your hboot version... something like hboot 1.39...

[Q] Wiped /system accidentally, no .zip on device - help?

Hi there,
I stupidly downloaded the latest SlimKat .zip onto my nexus 7, but with the file for my i9300, so obviously it does not boot.
Now, I haven't done this in a while apart from a toolkit, but is there a way to push the file via adb? I can boot into twrp and go Advanced, Adb sideload, but then it doesn't seem to 'complete', and I can't find the device from my computer, despite it showing in fastboot when I am in that mode; it does not in adb.
I know I can wipe to factory image, will that COMPLETELY wipe my device? As in, all my downloaded files, titanium backup etc.? Or just /data? I'd like to backup my internal sdcard if at all possible.
To sum up, wiped /system, but no .zip currently on device. Can I remedy this without losing pictures/titanium backup?
Thank you,
Habylab
habylab said:
Hi there,
I stupidly downloaded the latest SlimKat .zip onto my nexus 7, but with the file for my i9300, so obviously it does not boot.
Now, I haven't done this in a while apart from a toolkit, but is there a way to push the file via adb? I can boot into twrp and go Advanced, Adb sideload, but then it doesn't seem to 'complete', and I can't find the device from my computer, despite it showing in fastboot when I am in that mode; it does not in adb.
I know I can wipe to factory image, will that COMPLETELY wipe my device? As in, all my downloaded files, titanium backup etc.? Or just /data? I'd like to backup my internal sdcard if at all possible.
To sum up, wiped /system, but no .zip currently on device. Can I remedy this without losing pictures/titanium backup?
Thank you,
Habylab
Click to expand...
Click to collapse
A factory reset wipes the data and cache, any changes made to the system will still be there after a factory reset. Flashing the complete factory image will also wipe everything. The userdata.img inside the factory image is what wipes everything. You could flash all the images inside the factory image separately except for the userdata image and your data will stay intact.
If you can see it in fastboot just fastboot flash the system.img and the boot.img. Get the "correct" system.img and boot.img (you have to extract the images from a factory image) and put them inside the platform-tools folder of the sdk, manually put your device in fastboot, plug it in to the computer, shift-right click from inside the platform-tools folder, choose "Open command window here," type fastboot devices and you should see your device, type fastboot flash boot boot.img, hit enter then fastboot flash system system.img hit enter. Type fastboot reboot hit enter and your device should reboot normally! All of your data will still be intact. This might be useful 15 seconds ADB Installer v1.3, I personally have the full sdk installed but I did try the ADB installer on my brother's laptop a few months ago.

[Q] How to restore back to factory settings after using towel root

I have rooted my device using towel root which doesn't unlock the boot loader. I then used the twrp manager to install custom recovery. I am wondering how to restore everything back to factory as all the tutorials I have seen so far require an unlocked boot loader. Any help will be appreciated, thank you.
Flash a stock r for your phone
swagg blasted from TMO LG G3
jailbreakkid23 said:
Flash a stock r for your phone
swagg blasted from TMO LG G3
Click to expand...
Click to collapse
If I download a stock image from google and flash it from my nexus 7 using twrp will everything be restored to factory settings?
If the boot loader is locked does that mean I can just do a normal factory reset on the device and it will remove the recovery and root?
fastboot
Jordydaman said:
If the boot loader is locked does that mean I can just do a normal factory reset on the device and it will remove the recovery and root?
Click to expand...
Click to collapse
you have to install stock ROM by adb mode using fastboot command
you can't flash stock ROM via custom recovery.
@SidDev said:
you have to install stock ROM by adb mode using fastboot command
you can't flash stock ROM via custom recovery.
Click to expand...
Click to collapse
Would you mind finding a link for me ? I have never encountered this before as I have always unlocked the bootloader to root but this time I used towel root which was different as explained above.
Doesn't the boot loader have to be unlocked to flash a ROM via adb?
try this and press thanks
Jordydaman said:
Doesn't the boot loader have to be unlocked to flash a ROM via adb?
Click to expand...
Click to collapse
nope,
Step 1: Download the ADB/Fastboot files and the
USB drivers for Windows based PC first. The the
latest factory image for your Nexus device can be
downloaded directly from Google’s website .
ADB/Fastboot – Mac , Windows
USB drivers for Windows
Extract the contents of the ADB/Fastboot ZIP file
inside a new folder called ‘google’ on your desktop.
Extract and transfer the contents of the factory
image inside this folder as well. The list of files will
include a ZIP file containing the codename of your
Android device, two files with “flash-all” names, and
a bootloader image file. All the extracted contents of
the factory image should be inside the same folder
as the ADB and Fastboot file, otherwise you will get
a file not found error.
Make sure to install the ADB drivers as well if you
are running a Windows based PC.
Step 2: Now, reboot your Nexus device in bootloader
mode. This is usually done by switching off the
device, and pressing the Volume down + Volume Up
+ Power button simultaneously. If that does not
work, try the Volume down + Power button
combination.
After the device has booted into bootloader mode,
connect it to your PC.
Step 3: Open a new Terminal or Command Prompt
window, and navigate to the ‘google’ folder that you
created in Step 1. Before we start flashing the
factory image, we need to make sure that your
Nexus device is being detected by the PC.
fastboot devices
If you are using a Mac, then you need to prefix a “./”
before every Fastboot command. So, the above
command will look something like this on a Mac -:
./fastboot devices
The above command should confirm if your device is
indeed being detected by your PC or not. If it is,
then proceed to the steps below. If not, repeat the
steps above again. Make sure that you have properly
installed the drivers and are inside the correct
folder.
If you are running Windows, copy-paste the following
command in the command prompt window -:
flash-all.bat
On a Mac, copy-paste the following command -:
./flash-all.sh
The script will then automatically flash the full
factory image on your Nexus device. Once the
factory image has been flashed, your device will
automatically reboot. Keep in mind that the first boot
might take some time so please be patient.
If the flash-all.sh script gives you a fastboot not
found error on your Mac, open up the file in Text Edit
and add a “./” before every fastboot command.
The flash-all script included in the factory image
might not work for all. It has always been pretty
unreliable and has only worked once for me in the
last 2 years. If you are in the same boat as me, you
will have to flash each partition manually on your
device. This is slightly cumbersome though.
The command to manually flash a partition via
fastboot is “fastboot flash partition filename.img”. In
the factory image that you extracted in Step 1, you
will notice there is another ZIP file. Extract the
contents of that ZIP file inside the ‘google’ folder.
Now, its time to manually flash the partitions to your
Nexus device. We will first begin with the bootloader.
fastboot flash bootloader filename.img
Then, we will flash all other partitions. They don’t
necessarily need to be in the same order as I have
listed them below. The names of the image files in
the factory image will clearly indicate the partition
they are intended for as well.
fastboot flash boot filename.img
fastboot flash radio filename.img
fastboot flash recovery filename.img
fastboot flash userdata filename.img
fastboot flash system filename.img
Thank you very much I will try this today.
I couldn't flash all and when I flashed the bootloader it came up with failed bootloader is locked?
Enter this command to unlock the bootloader:
fastboot oem unlock
After unlocking, you can run flash-all.bat (or run manual fastboot commands to flash).

Categories

Resources