[Q] factory reset/delete all data via pc-ADB - Galaxy S II Q&A, Help & Troubleshooting

Hello guys,
Got galaxy s2 i9100 with black screen, probably the screen is broken (touch is working) - started with purple smudge on the corner which grow on the entire screen and eventually the screen got black.
Im trying to sell it and want to delete all user data and do factory reset, since i cant see anything on the phone it must be done via the pc, the phone is rooted and has wanamlite 14.4 installed on it.
Can it be done via pc?
Thanks in advance.

Yep. From ADB (search on here/Google for how to use it).

MistahBungle said:
Yep. From ADB (search on here/Google for how to use it).
Click to expand...
Click to collapse
thanks for you reply MistahBungle, so i got adb running and recognized the device, from what i understand i need to use next command:
adb shell
recovery --wipe_data
will that completely erase all user data, all pictures, applications, and every personal details on the device?

apex88 said:
thanks for you reply MistahBungle, so i got adb running and recognized the device, from what i understand i need to use next command:
adb shell
recovery --wipe_data
will that completely erase all user data, all pictures, applications, and every personal details on the device?
Click to expand...
Click to collapse
It will delete data,such as apps,games(not data) and you contacts.Like you would get your phone out of box.It won't delete your pics or music

GamingDj said:
It will delete data,such as apps,games(not data) and you contacts.Like you would get your phone out of box.It won't delete your pics or music
Click to expand...
Click to collapse
with which commands i can erase the pics and music as well?

apex88 said:
with which commands i can erase the pics and music as well?
Click to expand...
Click to collapse
I personally never understood ABD or commands,but I think you have to erase storage(internal SD).Look up for commands on Google

so i used "adb shell wipe data" and just waiting, how long it suppose to take?
EDIT:
for some reason "adb shell wipe data" didnt work, it didnt do anything, then all the ADB commands didnt do anything after each command the cursor just move to the next line and blink, thats it.
So i used screenshots to navigate the device, and used the device reset.

Good job getting it done eventually A lot of people here wouldn't (they'd whinge & keep bumping a thread rather than help themselves) so big ups to you.
As to why 'adb shell wipe data' seemed to barf, maybe you were missing some packages or similar ? I hadn't used ADB for yonks myself, last night I fired it up & had a stack of package upgrades to do.

Related

A2SD problem

I take it that it's not a good thing to remove your SD card when you're running A2SD. I wanted to see if my apps were "really" running on the card, so I figured I'd just pop it out, see if the apps worked or not, then pop it back in. Well, the apps didn't work, but after re-inserting the card, I don't see any of the apps I had installed.
Anyone know how to fix this?
Reboot it?
snooginsguy said:
Reboot it?
Click to expand...
Click to collapse
I did that about 5 times.
I also tried reflashing the PlainJaneT2 ROM I have on the SD card, but oddly enough that didn't fix it either...probably because I didn't do a factory reset prior to doing it. I don't want to lose all my data and downloaded apps...
If you have Titanium Backup and have done a recent backup, it might work to restore the links to your SD apps, not sure though...
BTW sorry for the obvious first response, but you never know what people have/haven't tried.
Well, I just flashed the PlainJaneT2 ROM to my phone last night, so I didn't get around to making a backup. I'm just not sure if there's a way to restore the links without doing a factory reset and starting over.
lostpilot28 said:
Well, I just flashed the PlainJaneT2 ROM to my phone last night, so I didn't get around to making a backup. I'm just not sure if there's a way to restore the links without doing a factory reset and starting over.
Click to expand...
Click to collapse
Try "a2sd install"
That commands makes sure everything is set for a2sd. see if that works.
Thanks, T2noob...do I need to run that from the command prompt with the phone connected via USB? I was surprised to see that almost every app on my phone was moved to the SD card! Right now I can still use it, but any app, including Market, is gone!
lostpilot28 said:
Thanks, T2noob...do I need to run that from the command prompt with the phone connected via USB? I was surprised to see that almost every app on my phone was moved to the SD card! Right now I can still use it, but any app, including Market, is gone!
Click to expand...
Click to collapse
You can either run it from the adb with this
Code:
adb shell a2sd install
or you can run it from a terminal emulator from the phone with this
Code:
su
a2sd install
and about the market being gone reboot your phone and it should come back.
That market issue may not if he can't get to his ext partition.
That was an issue when I had zipalign running at boot. You have a market app that is located in /system/app (this is where it should be). When market updates, it puts an updated copy of itself in /data/app (which is on his ext partition). The icon is pointed to that app.
I didn't remove the market app fix program (though I did remove the command to get there).
If you still can't get market back, try the following:
1. Remount your phone (adb remount)
2. Go into the adb shell
3. Type /system/xbin/busybox cp -fp /data/a2sd/Vending.apk /system/app
4. Type /system/xbin/busybox rm -f /data/data/com.android.vending/cache/*
5. I'm not sure, but you may just want to reboot the phone.
This should bring back your market.
t2noob said:
You can either run it from the adb with this
Code:
adb shell a2sd install
or you can run it from a terminal emulator from the phone with this
Code:
su
a2sd install
and about the market being gone reboot your phone and it should come back.
Click to expand...
Click to collapse

The best way to wipe an S3 for sale... when the screen is blank (broken)

... and the touchscreen doesn't work?
I have cerberus installed, so was thinking:
Wipe with cerberus
Enter download mode
Flash stock rom with odin
Would this be enough? would any of my data remain?
Thanks
any ideas?
If flashing a stock FIRMWARE will not do the trick, perhaps a custom kernel will.. and if it still does not, then it may be a hardware problem
Sent from my GT-I9300 using xda premium
3473 said:
any ideas?
Click to expand...
Click to collapse
It might have a small amount but probably not and that's my idea not copyrighted .
jje
saywhatt said:
If flashing a stock FIRMWARE will not do the trick, perhaps a custom kernel will.. and if it still does not, then it may be a hardware problem
Sent from my GT-I9300 using xda premium
Click to expand...
Click to collapse
There are no hardware issues other than not being able to see anything on the screen, and the touchscreen not responding
I am wondering whether the three steps I mentioned in my original post will completely wipe the phone
Can I:
Install a VNC app using adb, start it, use my pc to access apps/ wipe phone?
A wipe with cerberus should do the trick, also sd card wipe.. Then flash the new rom..
Should be good to go after that.
Sent from my GT-I9300 using xda premium
NatTheCat said:
A wipe with cerberus should do the trick, also sd card wipe.. Then flash the new rom..
Should be good to go after that.
Sent from my GT-I9300 using xda premium
Click to expand...
Click to collapse
Here's what I've done so far:
- Used cerberus to "wipe SD card"
- Used cerberus to "wipe device memory"
I am now planning to reflash a stock rom in download mode, with ODIN
Question: Will I need to flash the stock recovery too? Or will this automatically get flashed when I flash the stock rom?
thanks
Flashing a stock rom will return recovery back to 3e (stock)
Carl.Brand.87 said:
Flashing a stock rom will return recovery back to 3e (stock)
Click to expand...
Click to collapse
Thanks
I will format the external SD card separately using my laptop
My main concern is now my personal data on the phone - does the cerberus factory reset remove all of this?
Or maybe I should do this:
As USB debugging is enabled, use ADB to do a wipe
Then flash stock rom (which will probably reset USB debugging to off (not sure about this))
+1 3473
Use adb to do a wipe on the phone.
adb shell dd if=/dev/zero of=/dev/block/mmcblk0p. (with "." a number corresponding to partition data and cache).
After that, go to Download mode with buttons and flash another firmware.
It seems that after doing the 'factory reset' with cerberus, usb debugging is now disabled as I cannot connect with ADB
does this mean the phone is sucessfully wiped?
Should I install the stock ROM now?
Something just for you
spamtrash said:
Something just for you
Click to expand...
Click to collapse
Thanks but I don't think I'll be able to use any of these as I can't see CWM (broken screen), and don't have ADB access (cerberus factory reset)
3473 said:
does this mean the phone is sucessfully wiped?
Click to expand...
Click to collapse
If you're running a custom recovery (which you certainly won't be if you flashed the stock ROM), you can check through ADB:
boot into recovery
connect your phone to the computer
"adb shell"
mount -t ext4 /dev/block/mmcblk0p12 /data
cd /data
If you booted the phone after doing the factory reset, /data will be populated. Use ls on /data/data and see if you recognise any folder names that belong to apps you downloaded off the Play Store. If there are some, then Cerberus probably didn't wipe /data. (Your internal SD card's contents can be found in /data/media if you also want to look there)
When you're done, umount /data
Unfortunately I can't use ADB because when I did the cerberus factory reset, I think it set 'usb debugging' to 'off'
I think cerberus successfully wiped everything - windows explorer tells me I have "10.6gb free of 11.1gb" on the phone
Also if I double click the phone, it tells me there are 181 Folders, 21 files, which in total amount to 1.08mb
Phone successfully wiped?
3473 said:
Unfortunately I can't use ADB because when I did the cerberus factory reset, I think it set 'usb debugging' to 'off'
I think cerberus successfully wiped everything - windows explorer tells me I have "10.6gb free of 11.1gb" on the phone
Also if I double click the phone, it tells me there are 181 Folders, 21 files, which in total amount to 1.08mb
Phone successfully wiped?
Click to expand...
Click to collapse
Probably yes, 1.08MB is close to nothing and shouldn't have any of your personal details.
The buyer will probably fix it and reset it again anyways.
3473 said:
Unfortunately I can't use ADB because when I did the cerberus factory reset, I think it set 'usb debugging' to 'off'
Click to expand...
Click to collapse
ADB always works in recovery mode regardless of whether USB Debugging in Android proper is turned off; if you're running stock recovery, you get a shell as normal user (useless) and if you're running CWM/TWRP you get a shell as a root user
I think cerberus successfully wiped everything - windows explorer tells me I have "10.6gb free of 11.1gb" on the phone
Also if I double click the phone, it tells me there are 181 Folders, 21 files, which in total amount to 1.08mb
Phone successfully wiped?
Click to expand...
Click to collapse
I don't know how much space the S3 is meant to have when it's been successfully wiped so I'd rather not try to answer, sorry
Thanks, I think I'll flash the stock ROM tomorrow and sell it

[Q] Samsung S3 Permanent freeze on home screen

My appologies for this post. Probably this problem is being dealt before on this forum but cant seem to find a solution to mine.
hi, i have a samsung s3 32gb (original stock unrooted).
Problem my space was running low on my s3. And while shooting a video, the space ran out and the phone froze. then i tried to end the video but obviously the screen was frozen.
After that i tried to reboot the phone but it came to the home screen, and couldnt press anything. (i only can drag the top bar down and that's it, it doesnt come back up).
i tried soft reset, didnt work. i tried to boot in safe mode, it doesnt work (it get stuck at the samsung logo). download and recovery mode works fine.
when i connect it to the pc, in device manager i get under Portable Devices (MTP USB device with a yellow triangle and ! mark). obviously KIES doesnt recognise anything connected.
After reading lot of posts, i installed 'android-sdk' and ran 'adb.exe' in cmd.
adb devices shows my device ; i can see all the directories on my phone.
when i try to copy, move or delete any files from the phone to my pc to empty the phone storage, i get this message "device not found".
i dont wanna lose my pics and videos +data (no backup). ANY HELP GUYS???
masso76 said:
My appologies for this post. Probably this problem is being dealt before on this forum but cant seem to find a solution to mine.
hi, i have a samsung s3 32gb (original stock unrooted).
Problem my space was running low on my s3. And while shooting a video, the space ran out and the phone froze. then i tried to end the video but obviously the screen was frozen.
After that i tried to reboot the phone but it came to the home screen, and couldnt press anything. (i only can drag the top bar down and that's it, it doesnt come back up).
i tried soft reset, didnt work. i tried to boot in safe mode, it doesnt work (it get stuck at the samsung logo). download and recovery mode works fine.
when i connect it to the pc, in device manager i get under Portable Devices (MTP USB device with a yellow triangle and ! mark). obviously KIES doesnt recognise anything connected.
After reading lot of posts, i installed 'android-sdk' and ran 'adb.exe' in cmd.
adb devices shows my device ; i can see all the directories on my phone.
when i try to copy, move or delete any files from the phone to my pc to empty the phone storage, i get this message "device not found".
i dont wanna lose my pics and videos +data (no backup). ANY HELP GUYS???
Click to expand...
Click to collapse
Try clearing cache and dalvik. If it doesn't work, u might have to factory reset which deletes ur data. Since android-sdk doesn't work anymore and kies too. There is no way to back up ur data. Ur only hope is tat clearing cache and dalvik works.
masso76 said:
i dont wanna lose my pics and videos +data (no backup). ANY HELP GUYS???
Click to expand...
Click to collapse
pictures and videos are stored on the internal sdcard, so they are save even if you decide to wipe your data.
you will only lose your app data and settings
but try first the suggestion from the post above
JellyYogurt said:
Try clearing cache and dalvik.. .
Click to expand...
Click to collapse
if you are referring to clearing the cache that is in the recovery mode. i already cleared the cache and still same thing happening.
can you explain 'dalvik' ? what to do step by step if possible
Also you mentioned that android-sdk is not working, (it is true ) but how come i can still see all my phone contents ?
Darkened_Sky said:
pictures and videos are stored on the internal sdcard, so they are save even if you decide to wipe your data.
you will only lose your app data and settings
Click to expand...
Click to collapse
if you are referring to the factory reset inside the "settings" menu in the phone, i think it would be true (the pics & videos wont be affected)
but if you are referring to the reset in the recovery mode. i think that will format everything including my personal data (pics & videos) and return the phone to a factory state (which is how it was new). isnt the OS and data are on the internal sdcard as well ?
Their comments refer to a custom recovery, e.g Philz, where you can clear dalvik and also mount your storage for usb access.
I think you have bigger problems, the phone should not have frozen as you describe and you many have partition corruption.
There are step by step guides on how to install custom recovery in general forum, stickies. It will invalidate your warranty, which might not be a good idea if you need a new motherboard.
Sent from my GT-I9300 using Tapatalk
masso76 said:
if you are referring to the factory reset inside the "settings" menu in the phone, i think it would be true (the pics & videos wont be affected)
but if you are referring to the reset in the recovery mode. i think that will format everything including my personal data (pics & videos) and return the phone to a factory state (which is how it was new). isnt the OS and data are on the internal sdcard as well ?
Click to expand...
Click to collapse
The factory reset on recovery will not delete ur pics or videos.
Sent from my GT-I9300 using xda app-developers app
Give a thank if I helped you

[Q] Help with decrypt storage screen

So this morning when I woke up, I went to charge my phone because it was out of juice. After charging it awhile, I turned it on again, only to be confronted with a screen that says "Type password to decrypt storage", and it gives me the option of making an emergency call or decrypt. I have read various forums, including one in the Nexus 7 area which describe people having this issue. My HTC had been running Venom One 4.3.0.
What I've tried/know so far:
1. I can reboot into recovery and TWRP v2.6.3.4 pops up just fine. However, it also asks for my password, which I can bypass by hitting cancel.
2. I have tried to factory reset, but after about 5 seconds, it says failed, during "Updating partition details"
3. I have tried to advanced wipe, but it will only let me wipe cache, and not data nor Dalvik cache.
4. I can't restore anything because nothing shows up under restore.
5. If I go to restore, the size of the various parts (data, system) seems right, but I can't back anything up. It always fails during "Updating partition details"
If anyone can be of any help, it would be greatly appreciated! I'm not super techy, but I'm willing to try whatever at this point. I'm pretty much resigned to losing all my data, which isn't a huge deal; I believe most of my stuff is backed up.
If someone can say definitively that I'm SOL, then let me know. At least I know I can move on. Some have suggested that this could be a hardware failure related to my flash memory, in which case, I don't think there's anything I can do (unless there is).
There is no work around for this...the storage is encrypted, only way around it is to format data and push a rom back to storage via adb and then reflash...
copy rom to where your adb files are,boot into twrp recovery run this command after you format your data partition...it will push the rom to the phone, may take awhile so be patient and you wont see any progress until it finishes.
adb push nameofrom.zip /sdcard/.
Wonders_Never_Cease said:
There is no work around for this...the storage is encrypted, only way around it is to format data and push a rom back to storage via adb and then reflash...
copy rom to where your adb files are,boot into twrp recovery run this command after you format your data partition...it will push the rom to the phone, may take awhile so be patient and you wont see any progress until it finishes.
adb push nameofrom.zip /sdcard/.
Click to expand...
Click to collapse
Thanks for the help...but I guess I had forgot to mention that my computer no longer recognizes my phone any more...so am I really SOL then?
maximus.oj said:
Thanks for the help...but I guess I had forgot to mention that my computer no longer recognizes my phone any more...so am I really SOL then?
Click to expand...
Click to collapse
use an Ubuntu live CD

[Q] Did something terrible to my phone

I had installed Android Revolution HD custom rom and it was running perfect, but I decided I liked Viper rom more. I had viper rom on my phone storage so I performed the wipes and successfully flashed viper rom. However, when viper rom finished installing and setting up, I was met with a decrypt storage page right after the unlock screen with infinite attempts to guess a passcode I never set. What I did was try searching online for hours and eventually realized I was stuck in Philz Touch or the decrypt password screen so I factory reset, Dalvik cache cleared, and everything to the point where now I seem without any hope of being able to get anything onto the phone ever. Am I bricked?
Relax, you aren't bricked. If the screen still comes on, you can recover. Its just a matter of knowing how to do so.
Its not clear based on your description what the current state of the device is. Still stuck with the decryption password screen or recovery? Factory reset likely isn't going to do anything if you can't boot into OS; as all it does is wipe user data.
Did you make a nandroid of your previous ROM? If not, why the heck not?
If no nandroid, adb push a different ROM to the device. Then flash the ROM from recovery.
redpoint73 said:
Its not clear based on your description what the current state of the device is. Still stuck with the decryption password screen or recovery? Factory reset likely isn't going to do anything if you can't boot into OS; as all it does is wipe user data.
Did you make a nandroid of your previous ROM? If not, why the heck not?
If no nandroid, adb push a different ROM to the device. Then flash the ROM from recovery.
Click to expand...
Click to collapse
I had a backup before but now I can't access the sdcard (internal storage) and so nothing from recovery menu seems to work. I have tried adb sideloading and it says *cannon read ' ' *. Will I be able to adb push to a phone that can't recognize it's own internal storage?
demozillar said:
I had a backup before but now I can't access the sdcard (internal storage) and so nothing from recovery menu seems to work. I have tried adb sideloading and it says *cannon read ' ' *. Will I be able to adb push to a phone that can't recognize it's own internal storage?
Click to expand...
Click to collapse
I got ADB sideload to work with cyanogenmod, I think im out of the black, thank you for your help friend
demozillar said:
I had a backup before but now I can't access the sdcard (internal storage) and so nothing from recovery menu seems to work. I have tried adb sideloading and it says *cannon read ' ' *. Will I be able to adb push to a phone that can't recognize it's own internal storage?
Click to expand...
Click to collapse
With the phone connected to a PC, go to device manager, find the internal memory and format it.
Did you factory reset in bootloader? I suspect this corrupts the internal memory.
adb push won't work if the internal memory is corrupt. Don't know about sideload. Even if you flash the ROM, I don't think it will function correctly if it can't write to internal memory. You need to format the memory to sort that out.
Also, adb sideload can be finnicky. I've seen it fail lots of times when adb push works fine. But if you can get to work, good for you!
redpoint73 said:
With the phone connected to a PC, go to device manager, find the internal memory and format it.
Did you factory reset in bootloader? I suspect this corrupts the internal memory.
adb push won't work if the internal memory is corrupt. Don't know about sideload. Even if you flash the ROM, I don't think it will function correctly if it can't write to internal memory. You need to format the memory to sort that out.
Also, adb sideload can be finnicky. I've seen it fail lots of times when adb push works fine. But if you can get to work, good for you!
Click to expand...
Click to collapse
Yes you are right about factory reset in bootloader, that was my mistake I guess. the adb sideload was able to push through even though adb push was being denied. Thanks again for your help
demozillar said:
Yes you are right about factory reset in bootloader, that was my mistake I guess. the adb sideload was able to push through even though adb push was being denied.
Click to expand...
Click to collapse
Interesting that sideload works, while push doesn't. And not what I would expect. My understanding of sideload, it still pushes the ROM to internal memory then flashes it. Just does it all with a single adb command. So if internal memory is corrupt, I would expect to fail to push, same adb push.
Factory reset in bootloader is a honest mistake. I was only suspicious of this, since the same "bug" occurs on the One X (EVITA), where on modded phones, doing a factory reset in bootloader corrupts the internal memory. One would expect it to perform its intended function the same as factory reset in recovery or within the OS (which both should work fine).
redpoint73 said:
Interesting that sideload works, while push doesn't. And not what I would expect. My understanding of sideload, it still pushes the ROM to internal memory then flashes it. Just does it all with a single adb command. So if internal memory is corrupt, I would expect to fail to push, same adb push.
Factory reset in bootloader is a honest mistake. I was only suspicious of this, since the same "bug" occurs on the One X (EVITA), where on modded phones, doing a factory reset in bootloader corrupts the internal memory. One would expect it to perform its intended function the same as factory reset in recovery or within the OS (which both should work fine).
Click to expand...
Click to collapse
The thing about sideload was you could initiate it into sideload mode (or whatever) and then use the adb sideload command, perhaps it would have worked with adb push if I knew more what I was doing but just simply adb push " " would not work. And yes I had a good scare when I pressed the factory reset, went into recovery and saw I deleted my zip files
demozillar said:
The thing about sideload was you could initiate it into sideload mode (or whatever) and then use the adb sideload command, perhaps it would have worked with adb push if I knew more what I was doing but just simply adb push " " would not work.
Click to expand...
Click to collapse
adb push does not require the phone to be in any particular mode (like adb sideload does), and should work as long as the phone is on. It could be that sideload pushes to some partition that is not corrupt. Just a guess.

Categories

Resources