Wiping data without working screen? - Galaxy S III Q&A, Help & Troubleshooting

Broken screen and i was just wondering how i can wipe it, so i can atleast make some money off my phone and now have al my things on it

Mhl - tv out only real way... unless you're rooted. You could use adb possibly
Sent from my GT-I9300 using Tapatalk 4

anthonyly said:
Broken screen and i was just wondering how i can wipe it, so i can atleast make some money off my phone and now have al my things on it
Click to expand...
Click to collapse
Why post the same question twice ???

JJEgan said:
Why post the same question twice ???
Click to expand...
Click to collapse
this is about wiping, hmm how would i adb wipe this LOLOL .. i wiped my sensation that was broken accidently wiping system now it's stuck at boot and broken ahha
i dont know what the aplpciation is called its when you can view your phones screen and control it on your computer

With no screen, you cannot set up screen viewing software.
You'd need to boot into download mode and flash cwm / philz recovery. Then boot into recovery, connect via usb. Adb commands (which you can Google) can be used to delete anything in /data
Sent from my GT-I9300 using Tapatalk 4

JJEgan said:
Why post the same question twice ???
Click to expand...
Click to collapse
rootSU said:
With no screen, you cannot set up screen viewing software.
You'd need to boot into download mode and flash cwm / philz recovery. Then boot into recovery, connect via usb. Adb commands (which you can Google) can be used to delete anything in /data
Sent from my GT-I9300 using Tapatalk 4
Click to expand...
Click to collapse
ahah i do have philz problem is i cant see whats going on LOL

You dont need to see. Adb shell runs from pc. Google it.
Sent from my GT-I9300 using Tapatalk 4

rootSU said:
You dont need to see. Adb shell runs from pc. Google it.
Sent from my GT-I9300 using Tapatalk 4
Click to expand...
Click to collapse
So i can't tell when i'm in recovery or not, but
do i hold home + vol up + Power
wait
run adb and then find the command to wipe data?
i can't tell because i can't see anything
Im using wondershare mobileGo
would it be the same if i just wiped the data folder in the internal memory?
i want to make a factory reset but i can't since i don't know how via computer, i dont want whoever gonna buy my phone to go through my accoutns and all

Well you can run the command "adb devices". It won't work until you're in recovery.
Hold vol up, home and press power. Connect the usb. Run adb devices and see if it returns your serial number. If it does its connected and you're in recovery
Sent from my GT-I9300 using Tapatalk 4

rootSU said:
You dont need to see. Adb shell runs from pc. Google it.
Sent from my GT-I9300 using Tapatalk 4
Click to expand...
Click to collapse
rootSU said:
Well you can run the command "adb devices". It won't work until you're in recovery.
Hold vol up, home and press power. Connect the usb. Run adb devices and see if it returns your serial number. If it does its connected and you're in recovery
Sent from my GT-I9300 using Tapatalk 4
Click to expand...
Click to collapse
alright im in recovery, so how do i wipe all my data/factoryreset

anthonyly said:
alright im in recovery, so how do i wipe all my data/factoryreset
Click to expand...
Click to collapse
Once in adb shell (which i'll assume you've learnt about) you just run standard linux terminal commands (case sensitive)
rm -vR /data/.*
rm -rf /data/*
You can ls /data to confirm (that's LS)
Sent from my GT-I9300 using Tapatalk 4

rootSU said:
Once in adb shell (which i'll assume you've learnt about) you just run standard linux terminal commands (case sensitive)
rm -vR /data/.*
rm -rf /data/*
You can ls /data to confirm (that's LS)
Sent from my GT-I9300 using Tapatalk 4
Click to expand...
Click to collapse
what is adb shell LOL, i know about adb and i've used commands with it too... but i think i might **** up so i want to do this as careful as possible
do i just paste when i have my phone connected and all when im in adb shell?
rm -vR /data/.*
then
rm -rf /data/*
to factory reset?

If you "know about adb" you know what adb shell is. Adb shell is where you type the commands.
Sent from my GT-I9300 using Tapatalk 4

rootSU said:
Once in adb shell (which i'll assume you've learnt about) you just run standard linux terminal commands (case sensitive)
rm -vR /data/.*
rm -rf /data/*
You can ls /data to confirm (that's LS)
Sent from my GT-I9300 using Tapatalk 4
Click to expand...
Click to collapse
rootSU said:
If you "know about adb" you know what adb shell is. Adb shell is where you type the commands.
Sent from my GT-I9300 using Tapatalk 4
Click to expand...
Click to collapse
so i just
rm -vR /data/.*
then
rm -rf /data/*
and im good everything is wipped?

Should be.
As mentioned "ls /data" should list the contents of /data. Do it before and after the commands above to see of it worked
Sent from my GT-I9300 using Tapatalk 4

rootSU said:
Should be.
As mentioned "ls /data" should list the contents of /data. Do it before and after the commands above to see of it worked
Sent from my GT-I9300 using Tapatalk 4
Click to expand...
Click to collapse
what does ls mean?

anthonyly said:
what does ls mean?
Click to expand...
Click to collapse
ls = list
ls /data = list contents of /data.
All basic linux commands, as all Android terminal and adb shell commands are.

rootSU said:
Should be.
As mentioned "ls /data" should list the contents of /data. Do it before and after the commands above to see of it worked
Sent from my GT-I9300 using Tapatalk 4
Click to expand...
Click to collapse
rootSU said:
ls = list
ls /data = list contents of /data.
All basic linux commands, as all Android terminal and adb shell commands are.
Click to expand...
Click to collapse
will try right now, so after this, it should be pretty much factory reset right? So when i sell my phone there's no personal things?

anthonyly said:
will try right now, so after this, it should be pretty much factory reset right? So when i sell my phone there's no personal things?
Click to expand...
Click to collapse
Should be. ls will confirm.

anthonyly said:
will try right now, so after this, it should be pretty much factory reset right? So when i sell my phone there's no personal things?
Click to expand...
Click to collapse
rootSU said:
Should be. ls will confirm.
Click to expand...
Click to collapse
wtf when i put adb devices, my phone shows up but then when i put ls /data and shows up " 'ls' is not regoniszed as an internal or extrernal command, operable program or batch file."
nvm forgot to put adb
alright i did the first command and got
C:\Users\antho_000\Desktop>adb rm -vR /data/.*
Android Debug Bridge version 1.0.31
-d - directs command to the only connected USB devic
e
returns an error if more than one USB device is
present.
-e - directs command to the only running emulator.
returns an error if more than one emulator is r
unning.
-s <specific device> - directs command to the device or emulator with
the given
serial number or qualifier. Overrides ANDROID_S
ERIAL
environment variable.
-p <product name or path> - simple product name like 'sooner', or
a relative/absolute path to a product
out directory like 'out/target/product/sooner'.
If -p is not specified, the ANDROID_PRODUCT_OUT
environment variable is used, which must
be an absolute path.
devices [-l] - list all connected devices
('-l' will also list device qualifiers)
connect <host>[:<port>] - connect to a device via TCP/IP
Port 5555 is used by default if no port number
is specified.
disconnect [<host>[:<port>]] - disconnect from a TCP/IP device.
Port 5555 is used by default if no port number
is specified.
Using this command with no additional arguments
will disconnect from all connected TCP/IP devic
es.
device commands:

Related

accessing the root directory from pc?

ok im rooted and can access my sdcard from my pc. how do i do the same with the internal memory of the phone?
thanks
mark
Check out androidcommander.
Sent from my ThunderBolt using XDA Premium App
ADB is all you need.
Sent from my ADR6400L using XDA Premium App
keith.mcintyre26 said:
ADB is all you need.
Sent from my ADR6400L using XDA Premium App
Click to expand...
Click to collapse
i know i can adb pull but what would be the command to actually browse the system...
Use the command "adb shell" and browse as you would on your OS through the command prompt.
ex: for PCs for listing use the command "dir" and "cd" to navigate through folders
ex: for Macs you would have to use "ls"
tflogic said:
Use the command "adb shell" and browse as you would on your OS through the command prompt.
ex: for PCs for listing use the command "dir" and "cd" to navigate through folders
ex: for Macs you would have to use "ls"
Click to expand...
Click to collapse
does anyone know of a graphical interface...ive tried droid commander and another i just forgot the name but were laggy and wouldnt display everything correctly
B3L13V3 said:
does anyone know of a graphical interface...ive tried droid commander and another i just forgot the name but were laggy and wouldnt display everything correctly
Click to expand...
Click to collapse
im also hoping for something with a gui. i stopped using dos commands or whatever when i scrapped my ibm 286 with it's 10mb hd.
It's ridiculously easy to use lol
tflogic said:
It's ridiculously easy to use lol
Click to expand...
Click to collapse
ok, so i'm attempting to post an adb logcat output at another forum regarding an app. at the cmd prompt (of course directed to the proper tools folder) i use the following
adb logcat -f /sdcard/output.txt
hit return and i get a blinking cursor. nothing else appears to happen. am i mssing something? is there another way to create and view/save the logcat output?
thanks
mark
wouldn't it be:
Code:
adb shell
logcat > /sdcard/logcat.txt
markkal123 said:
ok im rooted and can access my sdcard from my pc. how do i do the same with the internal memory of the phone?
thanks
mark
Click to expand...
Click to collapse
http://www.appbrain.com/app/sshdroid/berserker.android.apps.sshdroid
http://www.netsarang.com/forum/xshell/list
http://filezilla-project.org/
*method only works on wifi since your phone is behind NAT

[Q] Restore backup, MD5 problems!

Backuped the Infusion 2.0 rom in cwm recovery 4.0.0.8 and i cannot restore it in cwm 4.0.0.2 in cf-root. The MD5 sum does not match!:
Can i do anything to fix this, it`s quite annoying.
I solved my problem bit i`d like to know for future events.
-SOLVED-
I'm really really sorry to tell you but when the MD5 does not match, you're stuck.
prodygee said:
I'm really really sorry to tell you but when the MD5 does not match, you're stuck.
Click to expand...
Click to collapse
thank you for jour answer, does this have anything to do with different recovery versions?
gee2012 said:
thank you for jour answer, does this have anything to do with different recovery versions?
Click to expand...
Click to collapse
Guess it`s just a bad flash
Try restoring the parts manually using an "advanced restore". that should work.
use this
http://forum.xda-developers.com/showthread.php?t=1356401&highlight=md5
and this tutorial on how to use ADB
Check if your phone is detected by ADB
Open up Command Prompt (Go to run, type in cmd, press enter)
Type in:
cd C:\**your sdk name**\tools (Press Enter)
adb devices (Enter) You should see your device listed
adb shell (Enter) you should see $ in the next line
**After you obtain root**
su (Enter) you should see # in the next line if you are already rooted
**you may need to allow adb shell to run as root. Look at the phone and see if Superuser.apk is asking for your permission to allow adb root access. Click on "Remeber my selection" and select yes.
Now you are all set to run adb commands as root or as a regular user
# cd /sdcard/clockworkmod/backup/2010-06-29.20.22.53
# rm nandroid.md5
# md5sum *img > nandroid.md5
**Note: for a list of commands that you can type using adb type "adb" in cmd

Sister broke the Vibrant. How do I connect to computer using recovery?

The screen is black and doesn't operate when you touch it.
I know you can get into the files using the recovery ...but I don't know how many volume ups and downs you need to get into it?
I am running the 5.0 JB CM10 recovery.
Volume up + volume down + power button if froyo bootloader
Volume down + power button if gingerbread bootloader
Sent from my SGH-T959 using xda app-developers app
What he is asking is, since he can't see the screen, he needs to know exactly the number of up or down spaces to get to.....
And this brings my question, where are you trying to get to in recovery?
I approve this message.
samsgun357 said:
What he is asking is, since he can't see the screen, he needs to know exactly the number of up or down spaces to get to.....
And this brings my question, where are you trying to get to in recovery?
I approve this message.
Click to expand...
Click to collapse
The option to mount USB storage....I don't think it has it anymore...I don't have It on my gs3
Sent from my SAMSUNG-SGH-I747 using XDA Premium HD app
If its the same as the recovery in PA, semaphore
Its down 6, power
Up 2
I approve this message.
If you want to copy all your files from the internal storage using ADB: Reboot into CWM and connect it to your PC. In the command prompt, type:
adb shell
mount /dev/block/mmcblk0p1
(that's the partition of the internal storage in my vibrant)
exit
adb pull /sdcard C:\backup
(make sure you create the C:\backup folder first, it will begin to copy everything from your phone's storage to your harddrive)
-----
Optional: Once you are in adb shell, you can type this:
cat /etc/fstab (it will tell you the location of each partition that you can mount)
cd /sdcard (go to /sdcard partition)
ls -la (display all files in current directory)
Just remember to use 'adb pull' or 'adb push' you need to exit adb shell first.
Or just:
1. Pull battery
2. Attempt to get into recovery by guessing.
3. Adb shell Into device.
3.b if adb can't find device, go back to 1
4. Adb pull /storage/sdcard0/ or adb pull /sdcard/
It will be in the folder containing the adb file.
Sent from my GT-I9000 using xda premium
that /storage directory is new thing in Jelly Bean, I guess it does make things easier for people, instead of /sdcard and /emmc. It's a symbolic link, I don't even see it in adb shell.
The CWM doesn't auto mount the internal storage, so you still have to mount it first.
VeryCoolAlan said:
The option to mount USB storage....I don't think it has it anymore...I don't have It on my gs3
Sent from my SAMSUNG-SGH-I747 using XDA Premium HD app
Click to expand...
Click to collapse
Maybe your GS3 uses MTP rather than mass storage.
Try: Up, Up, Down, Down, Left, Right, Left, Right, B, A, B, A
Sorry couldnt resist :laugh:
Lol, forgot select start!
I approve this message.
FaultException said:
Maybe your GS3 uses MTP rather than mass storage.
Click to expand...
Click to collapse
Probably.... I'm on CM10 .
Sent from my SAMSUNG-SGH-I747 using XDA Premium HD app

Adb what am i doing wrong

Hello im trying to pull a file from my phone with adb but its not working (picture)
What am i doing wrong? ??
Sent from my GT-I9300 using xda app-developers app
Too many adb's.
You're already in adb shell. adb is not a comnand within adb.
What I mean is adb is a programme. You start it from a command line with "adb shell". Think of it as meaning "adb start". When you run a command from cmd, you tell it the programme and the option. So you tell it "adb shell" and it opens adb shell. You tell it adb pull and it does a pull, but this only works when you're not in the adb shell.
So if you want to run adb commands within the shell, drop the "adb". The command starts "pull" because you're already running adb. If you want to run outside the shell, you need to define the programme with "adb pull"
Personally I work this way
adb shell
mount /system
exit
adb pull /system/app/SecSettings.apk c:\users\dan\desktop
But I could also
adb shell
mount /system
pull /system/app/SecSettings.apk c:\users\dan\desktop
Sent from my GT-I9300 using Tapatalk 2
rootSU said:
Too many adb's.
You're already in adb shell. adb is not a comnand within adb.
What I mean is adb is a programme. You start it from a command line with "adb shell". Think of it as meaning "adb start". When you run a command from cmd, you tell it the programme and the option. So you tell it "adb shell" and it opens adb shell. You tell it adb pull and it does a pull, but this only works when you're not in the adb shell.
So if you want to run adb commands within the shell, drop the "adb". The command starts "pull" because you're already running adb. If you want to run outside the shell, you need to define the programme with "adb pull"
Personally I work this way
adb shell
mount /system
exit
adb pull /system/app/SecSettings.apk c:\users\dan\desktop
But I could also
adb shell
mount /system
pull /system/app/SecSettings.apk c:\users\dan\desktop
Sent from my GT-I9300 using Tapatalk 2
Click to expand...
Click to collapse
Thabks allot it worked!!!
Sent from my GT-I9300 using xda app-developers app
Yup. You'll pick it all up quickly enough.. loads of people can't even do this yet
Sent from my GT-I9300 using Tapatalk 2
And to push a file i presume is the same principle?
Sent from my GT-I9300 using xda app-developers app
joshua101 said:
And to push a file i presume is the same principle?
Sent from my GT-I9300 using xda app-developers app
Click to expand...
Click to collapse
should be the same, its a command after all.
you could go get the list from a shady internet site with all the things you can do
Yep same principle. Obviously flip the locations around
adb push c:\blah.apk /system/app/
Sent from my GT-I9300 using Tapatalk 2

ADB + Linux error: device unauthorized

Hi
First of all, sorry for my bad english.
It has been several hours that i'm trying to find a solution to my problem.
I want to wake my nvidia shield via adb command throught network.
I installed android tools on my raspberry pi, and when i connect to it via command line everything work, i can wake up the Shield.
But when i put my command line in a bash script
Code:
#!/bin/bash
adb kill-server
adb start-server
adb connect 192.168.1.38:5555
adb shell input keyevent KEYCODE_WAKEUP
adb kill-server
i have this error :
Code:
error: device unauthorized.
This adb server's $ADB_VENDOR_KEYS is not set
Try 'adb kill-server' if that seems wrong.
Otherwise check for a confirmation dialog on your device.
I dont know why, when i am execute the command line in a bash script it can't find the rsa key, who is there and should be used.
Any ideas
Thanks in advance.
darkouz said:
Hi
First of all, sorry for my bad english.
It has been several hours that i'm trying to find a solution to my problem.
I want to wake my nvidia shield via adb command throught network.
I installed android tools on my raspberry pi, and when i connect to it via command line everything work, i can wake up the Shield.
But when i put my command line in a bash script
Code:
#!/bin/bash
adb kill-server
adb start-server
adb connect 192.168.1.38:5555
adb shell input keyevent KEYCODE_WAKEUP
adb kill-server
i have this error :
Code:
error: device unauthorized.
This adb server's $ADB_VENDOR_KEYS is not set
Try 'adb kill-server' if that seems wrong.
Otherwise check for a confirmation dialog on your device.
I dont know why, when i am execute the command line in a bash script it can't find the rsa key, who is there and should be used.
Any ideas
Thanks in advance.
Click to expand...
Click to collapse
Normally on Windows the first time you turn on usb debugging it will pop up and ask you to accept the adb key. This is what is preventing you, I haven't had to resolve this in Linux, but essentially you need to go to C:\\Users\You\.android\ (in Windows, path will be different in Linux) and copy the file adbkey. Now you need to move it to data/misc/adb/
This will most likely require root or TWRP. Good luck, my friend.
Sent from my KYOCERA-C6745 using Tapatalk
Hi
Thanks for your quick response.
I couldn't make the connection via USB my adb tells me that there is no emulated device. But it work with network And yeah the first time I made the connection, the authorization pop up appeared on my shield. I checked, always authorized this device.
I have the key in /root/.android on my raspberry pi
I don't think I have the access to the /data/ folder in my shield.
But what I don't understand is why when I execute the command in a terminal like that, it work and when it's from the bash script it won't work anymore
darkouz said:
Hi
Thanks for your quick response.
I couldn't make the connection via USB my adb tells me that there is no emulated device. But it work with network And yeah the first time I made the connection, the authorization pop up appeared on my shield. I checked, always authorized this device.
I have the key in /root/.android on my raspberry pi
I don't think I have the access to the /data/ folder in my shield.
But what I don't understand is why when I execute the command in a terminal like that, it work and when it's from the bash script it won't work anymore
Click to expand...
Click to collapse
Option B would be to dump your boot.img and use Assayed's kitchen to add insecure kernel and adb direct root, then the adbkey doesn't need to be on the device.
Sent from my KYOCERA-C6745 using Tapatalk
RealWelder said:
Option B would be to dump your boot.img and use Assayed's kitchen to add insecure kernel and adb direct root, then the adbkey doesn't need to be on the device.
Sent from my KYOCERA-C6745 using Tapatalk
Click to expand...
Click to collapse
Yeah as you said in your previous post, i think the solution is to root the nvidia shield cause the rsa key doesny copy itself on the device.
But would you able to explain to me why if i execute those command individually in the terminal it works.
But if i put them all in a bash script that i execute it doesnt work anymore, what's the difference between those two procedure ?
darkouz said:
Yeah as you said in your previous post, i think the solution is to root the nvidia shield cause the rsa key doesny copy itself on the device.
But would you able to explain to me why if i execute those command individually in the terminal it works.
But if i put them all in a bash script that i execute it doesnt work anymore, what's the difference between those two procedure ?
Click to expand...
Click to collapse
How are you executing the script? There's some (hopefully) helpful info here.
https://community.spiceworks.com/topic/433656-command-not-running-in-batch-but-will-run-in-cmd
Sent from my KYOCERA-C6745 using Tapatalk
RealWelder said:
How are you executing the script? There's some (hopefully) helpful info here.
https://community.spiceworks.com/topic/433656-command-not-running-in-batch-but-will-run-in-cmd
Sent from my KYOCERA-C6745 using Tapatalk
Click to expand...
Click to collapse
i m doing : sh script.sh
i m gonna read that, thanks
I found the solution.
I don't really understand why, but adding
Code:
sleep 1
before
Code:
adb shell input keyevent KEYCODE_BACK
resolved the problem, maybe the script execution was to fast for adb to adjust, dont know.
All i know is, that works
darkouz said:
I found the solution.
I don't really understand why, but adding
Code:
sleep 1
before
Code:
adb shell input keyevent KEYCODE_BACK
resolved the problem, maybe the script execution was to fast for adb to adjust, dont know.
All i know is, that works
Click to expand...
Click to collapse
Glad you got it.
Sent from my KYOCERA-C6745 using Tapatalk
sudo rm -rf /home/(username)/.android
that worked with my kde neon machine

Categories

Resources