How to delete all files from phone? - Nexus 4 Q&A, Help & Troubleshooting

When I wipe using TWRP, I still have some files left over in root directory. Do I have to clean those too to get a truly clean phone? Don't those files accumulate over time?
I can see those files in the TWRP recovery's file manager. How should I delete them? Some of them do not delete manually...
---------------------------------
Sent from my Nexus 4

Fastboot erase userdata
Sent from my Nexus 4 using xda app-developers app

in TWRP there are format options for you to use

Related

no CWM after reboot

hi
Ive rooted my nexus s & unlocked the boot-loader
installed superuser
Ive tried installing CWM a couple of times
it installs
but after reboot no recovery or CWM
checked the following posts but no luck
it says install aborted
http://forum.xda-developers.com/showthread.php?t=1317524
http://forum.xda-developers.com/showthread.php?t=1098168
Read : http://forum.xda-developers.com/showthread.php?t=895545
as far as i remember, CWM will be removed each time you restart your phone,unles you have a custom kernel/rom.
but its been long time ago when i did that x3
If stock there is a file that needs to be removed or renamed,
Sent from my Nexus S using XDA Premium App
Try to flash again.... Works for me...
ghost010 said:
Read : http://forum.xda-developers.com/showthread.php?t=895545
as far as i remember, CWM will be removed each time you restart your phone,unles you have a custom kernel/rom.
but its been long time ago when i did that x3
Click to expand...
Click to collapse
No. You merely need to rename / remove the install-recovery.sh script in /etc to prevent the stock recovery from writing at boot.
Sent from my Nexus S using xda premium
krohnjw said:
No. You merely need to rename / remove the install-recovery.sh script in /etc to prevent the stock recovery from writing at boot.
Sent from my Nexus S using xda premium
Click to expand...
Click to collapse
Thanks I to was having the same issue. I assume that to revert you just rename the aformentioned file back to original?
Sent from my A500 using xda premium
spaz2k7 said:
Thanks I to was having the same issue. I assume that to revert you just rename the aformentioned file back to original?
Sent from my A500 using xda premium
Click to expand...
Click to collapse
Yeah, restoring the file will then cause the stock recovery to be written upon reboot (if you want to go back to the stock recovery for some reason).
same but i solved it
clockworkmodrecovery rom manager find and install
open it and touch flash clockworkmod recovery(first item)
select reboot into recovery manual
mount and storage select
mount USB storage
unmount
++++ go back +++++
install from zip sdcard
find
'' super user.zip'' flash
reboot
es file explorer select setting mark root explorer and mount file system after
select phone in file explorer find etc folder select and find ''install-recovery.sh'' file and rename file for example ''install-recovery.sheski'' and
open rom manager again touch flash clockworkmod recovery(first item)
check it...

How can I access & write to my /data partition

Hi,
My tablet was having some issues yesterday and wouldn't turn on, so I managed to do a factory reset, planning on restoring everything from Titanium Backup (from my TWRP backup), however, when I look at my TWRP Backup in TiBu, there doesn't seem to be anything there?
However, when I copy the data.win file to my computer and extract it, I can see all the files and I would like to try and copy some of the saves back to my data partition, however, I can't seem to find a way to find it or write to it?
Any ideas?
Stewart
There are many possibilities, on of them:
- boot Nexus 7 into recovery mode
- connect the Nexus 7 with USB to you PC
- mount /data in recovery
- adb push the files / directories you want to restore to the /data partition
- ...
There is only one problem: as you have done a factory reset / wipe the corresponding apps are no longer installed and even if you install them again,they will get a different uid so that the restored data is no longer accessible to them. Probably fix_permissions can help in that situations, but I didn't try yet.
AndDiSa said:
There are many possibilities, on of them:
- boot Nexus 7 into recovery mode
- connect the Nexus 7 with USB to you PC
- mount /data in recovery
- adb push the files / directories you want to restore to the /data partition
- ...
There is only one problem: as you have done a factory reset / wipe the corresponding apps are no longer installed and even if you install them again,they will get a different uid so that the restored data is no longer accessible to them. Probably fix_permissions can help in that situations, but I didn't try yet.
Click to expand...
Click to collapse
Ah ok, that sucks!
Is there not anyway I can use an Android based GUI tool to copy the files from my SDCard to /data.
I am not the best with adb, but I imagine the command would be "./adb push <insert file name here> /data/com.bigideas.swys/files", would that work?
Cheers
Stewart
Yes, that should work. Unfortunately I don't know any tool providing the functionality you are looking for.
Sent from my Nexus 7 using xda app-developers app
Ummm... how about you restore it in TWRP like you're supposed to?
Sent from my SGH-I777 using xda premium
TWRP should work, too, but if I remember well, the USB id is different, so you might get problems with adb if you do not have the correct driver installed.
To push a file to the device:
- unzip/untar data.win on your PC
- boot device to recovery
- on PC cmd-line:
- adb shell mount /data
- adb push <file_or_dir_to_push> /data/
But as I said, most likely it's not enough ...
Sent from my Nexus 7 using xda app-developers app
korockinout13 said:
Ummm... how about you restore it in TWRP like you're supposed to?
Sent from my SGH-I777 using xda premium
Click to expand...
Click to collapse
Because that caused it to stop booting like it did when it first powered off!
Sent from my Nexus 4 using Tapatalk 2
StuMcBill said:
Because that caused it to stop booting like it did when it first powered off!
Sent from my Nexus 4 using Tapatalk 2
Click to expand...
Click to collapse
The data.win file is just a tar archive. You can extract whatever you want, although there are a couple caveats:
- the .tar archives seem to be absolutely rooted (e.g. /foo/bar instead of ./foo/bar) so you might need to fool with -C or other tar command line options to get the result you are after.
- while you certainly could use 7-zip or similar to unpack the archive and cherry pick whatever you want on a Windoze box, you probably ought to do offline unpacking using Linux so you don't lose file permission settings. An alternative would be to unpack on the device itself to someplace such as /data/local/tmp using your preferred terminal emulator (or adb command line) and busybox combination. Then you can adjust ownership via "chmod -r" as needed and "mv" to move your cherry picks into place. Note you also need to pay attention to /data/app-lib/* in addition to /data/data/* and /data/app/* cherry picks.
- To reiterate about file ownership, probably what you should do is install only the .apks you want first, and then after rebooting, note the assigned user/group IDs chosen for each app install, and change the restored /data/data/* and /data/app-lib/* files to that uid.
Confused? Well, you asked. Look up a decent Linux administration guide for clarification.
good luck

[Q] Restoring from Nexus Toolkit Backup

Last night I flashed a kernel and it caused a bootloop. No problem I have a backup from a few days ago. I will wipe data and flash cm and then restore tomorrow. So I flashed CM. When I went to restore via the nexus toolkit it wouldn't connect to my device. It was the new adb signing thing. So I updated the toolkit into a different folder to make sure I didn't lose the backup.
The thing is I cant find how to make the backup visible to the toolkit. I've tried putting it in the same folder as the previous version but it doesn't show on the toolkit. I've tried using NANDROID in CWM but it can't find a directory or something. What is the best way to get this backup restored? Can I get it into the toolkit?
Thank you for the help. I am at a loss of what to do here.
No one?
Sent from my Nexus 4 using Tapatalk 2
One more try and I'll give up.
I'm not to familiar with the tool kit but you can push it to cwr directory
mnt/shell/emulated/clockworkmod/backup
You can use adb to push or use a file explorer to move it over .(transfer to SD then use file explorer move to new directory)
Sent from my Nexus 4 using xda app-developers app
Thank you so much. I just couldn't find the folder. This is my first device without a real SD

Can't find folders in CWM Recovery.

I just flashed cwm touch and when I was about to root. I put my zip file in the phone but when I booted to recovery, it doesn't see the zip file and the other folders that I have in my phone. Anyone who can help me on this? Because of this issue I am not able to flash a ROM. You're help will be greatly appreacited. Thanks!
Sent from my Nexus 4 using xda app-developers app
Open the folder called 0. It should be in there
Cwm uses the true root for storage and not the directory that android sees.
Cwm default directory - /sdcard/
Android default sdcard directory - /sdcard/0/
Sent from my Nexus 4 using xda app-developers app

Efc backup...!

Hello everybody...
How can I do Efc backup..?
Thanks
Sent from my GT-I9500 using Tapatalk now Free
install TWRP Recovey, get in Recovery mode, choose Backup, tick EFS box, wait and done, reboot..
and then make a copy of efs on your emails, burn in CDs, save to a floppy disks, print the hex code on stone, always store in safe places...
Sent from my GT-I9500 using xda app-developers app

Categories

Resources