I'm trying to do a secure wipe and I need some help... - Android Q&A, Help & Troubleshooting

Hi,
Using advice from a certain Reddit post (will link if asked in PM, as I cannot post links yet...)
Code:
To wipe my device, I would just factory reset, then run a root script like this on the disks:
cd /data; for i in 0 1 2 3 4 5 6 7 8 9; do cat /dev/urandom > $i; rm $i; done
And this follow-up:
Code:
if you're rooted do just as it says. Do a full factory reset, go into recovery, adb the wipe command, ???, profit
I tried doing those things, except I'm really not sure what exactly I need to do. I tried a lot of things, but if someone could point me to specifics, please? How will I know that the command actually works? I'm lost here.
Thanks!

Related

[Q] Sony Tablet ICS 4.0.3 - bricked it

Hello,
I followed the instructions
in http://forum.xda-developers.com/showthread.php?t=1886310
to root my tablet.
I do it using Linux so I don't use the half automatic way.
I signed also the VpnFaker.apk
But it does not work, I got the error at the end, sometimes mentioned:
:~/Infos/android/SonyTabletICS4.03Root> adb shell am start -n com.android.vpndialogs/.Term
Starting: Intent { cmp=com.android.vpndialogs/.Term }
Error type 3
Error: Activity class {com.android.vpndialogs/com.android.vpndialogs.Term} does not exist.
I tried the same procedure again - no success and all my apps are gone.
Ok I thought - I do it back.
I copied the old system- and old app- back to system and app.
And that was it ...
The device does not start. It shows sony and after that the yellow to golden
animation which normally ends sometimes.
It does not end.
I can connect via adb on linux not on windows (I use it very rarely and the win 7 notebook
allowas says that the driver is not installed correctly )
I can't get the right to manipulate /data
using the while loop. I think I can't confirm the restore with the touchscreen.
I post this also in the thread http://forum.xda-developers.com/showthread.php?t=1886310
I don't know what to do now.
Greetings
Karsten
I think we have the same issue, in my case I can't fix it until Sony release a new update.
Can you post your recovery log?
Sent from my MB525 using xda app-developers app
karo said:
Hello,
I followed the instructions
in http://forum.xda-developers.com/showthread.php?t=1886310
to root my tablet.
I do it using Linux so I don't use the half automatic way.
I signed also the VpnFaker.apk
But it does not work, I got the error at the end, sometimes mentioned:
:~/Infos/android/SonyTabletICS4.03Root> adb shell am start -n com.android.vpndialogs/.Term
Starting: Intent { cmp=com.android.vpndialogs/.Term }
Error type 3
Error: Activity class {com.android.vpndialogs/com.android.vpndialogs.Term} does not exist.
I tried the same procedure again - no success and all my apps are gone.
Ok I thought - I do it back.
I copied the old system- and old app- back to system and app.
And that was it ...
The device does not start. It shows sony and after that the yellow to golden
animation which normally ends sometimes.
It does not end.
I can connect via adb on linux not on windows (I use it very rarely and the win 7 notebook
allowas says that the driver is not installed correctly )
I can't get the right to manipulate /data
using the while loop. I think I can't confirm the restore with the touchscreen.
I post this also in the thread http://forum.xda-developers.com/showthread.php?t=1886310
I don't know what to do now.
Greetings
Karsten
Click to expand...
Click to collapse
Factory RESET from recovery
I don't think so. if the problem is on /system directory, factory reset will not help.
Sent from my MB525 using xda app-developers app
_kyo_ said:
I don't think so. if the problem is on /system directory, factory reset will not help.
Sent from my MB525 using xda app-developers app
Click to expand...
Click to collapse
I had to do factory reset when I was trying to root and it worked for me. I know your problem is worse unfortunately
Just thought it was worth a try in this case
of course it worth a try
Sent from my MB525 using xda app-developers app
adb logcat of bricked device
Hello,
the log get by adb logcat repeats after some time, so here
is only one part.
Since yesterday I try in /data/system - yes I could read it don't have permissions on app:
/data/local/tmp/busybox find . -type d -exec chmod 755 {} \;
/data/local/tmp/busybox find . -type f -exec chmod 644 {} \;
ups the log is to long you can find it under
zb42.de/logcat-2012-09-23-v2.txt using your browser
(sorry I'm not allowed to post a link to an external site)
there are three lines which shows where the logs repeat :
--------------------------------------------------
and from here it seems to repeat
-------------------------------------------------
hmm, now I have done a
/data/local/tmp/busybox find . -type d -exec chmod 777 {} \;
and the system starts but all applications vanished.
Puh, but it seems I'm back to the system.
Log shows still many errors, there is no app available,
Apps are shown on the Screen, but if I tap it
then it says: "App ist nicht installiert" (application is not installed)
I think my fault was that I copied back the system- directory so I have
destroyed the correct permissions on the file-system.
Can anybody give me a hint, how I should go further.
First goal would be a working system, second goal is
rooting
My goal of rooting was:
- curiousity (right word? Neugier in German) I've done it with Android 3
- correct the sdcard problem
update - device is rooted, I needed to start from factory defaults - then it works
Thanks
Karsten
dont think /system - I never touched it
no longer important, I can't delete this

[Q] Wipe Data Factory Reset directly from device.

Hi guys,
I run a small phone / computer repair shop. I have never needed to post before as I always got the info i needed.
I have a generic (unbranded) tablet here. The user has used too many pattern attempts. I do a lot of these where I just wipe the device for people.
Sometimes I use key combos and sometimes i use ADB to boot into recovery and then simply select the "wipe data / factory reset option"
However, this tablet has no keys , no volume keys that is, so i used ADB to boot it into recovery which it did just fine.
BUT!
how can i select "wipe data" when i can't use volume keys to select it? the touch screen is unresponsive in this mode too
I have tried
ADB SHELL WIPE DATA
but i get a permission denied error
I have tried running
ADB ROOT
but i get a "cannot run as root in production build" error
I have tried to root the tablet with super one click by short fuse but it crashes.
so i am basically asking is it at all possible to do a wipe data / factory reset on a device which is not rooted through ADB?
thanks
hello sir
I have the same problem. with WB7-l tablet does not have the key combination.
I tried with these commands, if I can reset the tablet by ADB. but I can not mount the SD.
Code:
adb shell recovery --wipe_data
* daemon not running. starting it now on port 5038 *
adb devices
adb reboot bootloader
fastboot reboot
adb backup -apk -shared -all -f backup.ab
adb shell
su
format SYSTEM
format DATA
format CACHE
---------- Post added at 05:31 PM ---------- Previous post was at 05:18 PM ----------
Hi. again, I found this link
applied as indicated by the user "Kaleptik"
and it worked! but charge in Chinese language.
after the change, take me by the icons.
good luck to you
http://forum.xda-developers.com/showthread.php?t=1792838
Code:
[email protected]:/ # wipe data
wipe data
Wiping /data
Done wiping /data
[email protected]:/ # exit
exit
[email protected]:/ # exit
exit
[email protected]:/ # reboot
reboot
THANKS
Wooooow this thread save my life...my avon touch tablet freezing always....with no key combination to enter recovery mode to do factory reset, i used this adb command to factory reset my device.
+1
Brisco59 said:
Wooooow this thread save my life...my avon touch tablet freezing always....with no key combination to enter recovery mode to do factory reset, i used this adb command to factory reset my device.
+1
Click to expand...
Click to collapse
when I issue: adb shell, I keep getting this:
- exec '/system/bin/sh' failed: No such file or directory (2) -
Wht the hell ?
chinese tablet/phones adb command
connect tablet/phone via usb and open a command open (start>run>cmd)
C:\Users\xxx>adb shell
adb server is out of date. killing...
* daemon started successfully *
[email protected]:/ # wipe data
wipe data
Wiping /data
Done wiping /data
[email protected]:/ # exit
exit
:highfive:
well buddy, You can unlock all types of pattern unlock and even you can perform factory reset just in 5 minutes of task is required. I don't explain step by step procedure so kindly follow the link where everything explained very easily.
To unlock all kind of of lock including pattern lock ,
visit : How to Recover all kind of Lock Android Phone
To perform factory data reset visit
How To Do Factory Reset on Android Phone or Tablet
Way to go!
Worked on a Philco 8a.b111a4.0!!
THANK YOU VERY MUCH!
Mvasquez said:
hello sir
I have the same problem. with WB7-l tablet does not have the key combination.
I tried with these commands, if I can reset the tablet by ADB. but I can not mount the SD.
Code:
adb shell recovery --wipe_data
* daemon not running. starting it now on port 5038 *
adb devices
adb reboot bootloader
fastboot reboot
adb backup -apk -shared -all -f backup.ab
adb shell
su
format SYSTEM
format DATA
format CACHE
---------- Post added at 05:31 PM ---------- Previous post was at 05:18 PM ----------
Hi. again, I found this link
applied as indicated by the user "Kaleptik"
and it worked! but charge in Chinese language.
after the change, take me by the icons.
good luck to you
http://forum.xda-developers.com/showthread.php?t=1792838
Code:
[email protected]:/ # wipe data
wipe data
Wiping /data
Done wiping /data
[email protected]:/ # exit
exit
[email protected]:/ # exit
exit
[email protected]:/ # reboot
reboot
Click to expand...
Click to collapse

Alcatel One Touch Fire E 6015X

Hello,
I've just received new phone, Alcatel One Touch Fire E (6015X).
This phone has got installed FirefoxOS,
my question is can I install android somehow?
I was looking for that information however not found anything what would help me.
kmlnvm said:
Hello,
I've just received new phone, Alcatel One Touch Fire E (6015X).
This phone has got installed FirefoxOS,
my question is can I install android somehow?
I was looking for that information however not found anything what would help me.
Click to expand...
Click to collapse
Hello,
I'm looking for a recovery image of this phone, do you know of any location to find one? Or could you possibly make one very please to help such people out? Hamachi (Flame) builds dont work.
uxuxux said:
Hello,
I'm looking for a recovery image of this phone, do you know of any location to find one? Or could you possibly make one very please to help such people out? Hamachi (Flame) builds dont work.
Click to expand...
Click to collapse
if you could tell me how to extract it from my phone, i can make it for you
jecustoms said:
if you could tell me how to extract it from my phone, i can make it for you
Click to expand...
Click to collapse
Hey, thanks for your offer. I found a guide for the Alcatel Flame, but I think we are interested in Step 5 only.
Code:
Step 5: Create backup images
Now start shell on the phone using adb shell command and dump backup images to SD card:
$ cat /dev/mtd/mtd0 >/mnt/sdcard/boot.img
$ cat /dev/mtd/mtd1 >/mnt/sdcard/system.img
$ cat /dev/mtd/mtd5 >/mnt/sdcard/userdata.img
$ cat /dev/mtd/mtd7 >/mnt/sdcard/recovery.img
When finished (you may also dump some more MTD partitions if you like), transfer those files to your computer. You may again use ADB for that:
$ mkdir hamachi-backup
$ I="boot.img system.img userdata.img recovery.img"
$ for i in $I; do adb pull /mnt/sdcard/$i hamachi-backup/; done
I can't link yet but it's from Krzysztof Adamski's blog, the full post is titled Alcatel One Touch Fire Hacking (Mini)Guide.
Maybe it would be enough, as the alcatel source for this device is not available yet on their sourceforge page, I'm not sure if it's possible to make a full recovery image without that.
I found another mention of such thing on the b2g-dev mail list
Code:
> You can backup the partitions from a working phone using 'dd' to dump
> them (you can find the relevant devices under /dev/block) and then use
> fastboot to flash them on the bricked phone (provided that fastboot
> still works).
first of all, i am a total noob..
"Now start shell on the phone using adb shell command"
what does it mean? how can start it?

Adb Commands help! ( WhatsappExtractor)

Hi , I know close to nothing about adb commands , but i do know about rooting and changing ROMs . My problem is im trying to run an adb command . I got into an error , luckily someone hopefully gave the solution . My problem is he said to replace the commands inside the adb backup , i tried but didnt work .
Im trying to follow this solution for my problem stated here https://forum.xda-developers.com/showpost.php?p=70801840&postcount=418
ferraro.dav said:
I noticed that I'm not the only one who's having the tar errors "tar: apps/com.whatsapp/f/key: Not found in archive", the problem is with the backup file given by adb that is empty. I found on stackexchange (android.stackexchange .com /a/143481/207500) that it has to do with a backup command bug and a simple solution. You just need to use the phone shell instead of letting abd take care of it.
On unix open the ssh file and change this:
Code:
if [ $sdkver -ge 23 ]; then
adb backup -f tmp/whatsapp.ab com.whatsapp
else
adb backup -f tmp/whatsapp.ab -noapk com.whatsapp
fi
to this:
Code:
if [ $sdkver -ge 23 ]; then
adb shell "bu 1 backup com.whatsapp" > tmp/whatsapp.ab
else
adb shell "bu 1 backup -noapk com.whatsapp" > tmp/whatsapp.ab
fi
Also, it kept giving me empy backup files until I didn't put a "desktop backup password" and wrote it in BOTH the boxes (even if it says that leaving the second blank will make it use the default password).
Hope this helps and that the developers put this change in the script so that no one else has this problem.
Click to expand...
Click to collapse
I think its a really easy step but i cant seem to do it . Please can someone help me ? Maybe download the file and upload it after going through the instructions ? That would help me alot . Thank u
P.s Ive uploaded the file that needed to be edited .

Help performing data recovery after self-inflicted wipe

Greetings all,
This is a fully should-have-had-more-coffee-before-attempting scenario, but hoping there's still a way I can get data back.
*Backstory*
Have a Pixel 2 XL. Decided to try out Android P beta through the opt-in. Used it for a while, decided there were too many bugs that affected my daily usage, opted-out of Beta. What I didn't realize was that after downgrading back to Android O, the phone would perform a factory wipe on the /userdata folder. There's a specific subfolder on that partition that I'm hoping I can do a data recovery on.
*The Story so Far*
After spending a day googling and coming up to multiple XDA posts & few blog entries about data recovery on android, I have done the following.
- gain root devices using Magisk to flash patched boot image
- found that the /userdata is located at /dev/block/sda13 symlinked from /dev/block/platform/soc/.../by-name/userdata
- see that the most probable way of getting files back is to pull the entire partition over as a raw file, then use TestDisk (or qPhotoRec) to try and perform a data recover on the file as you would a normal drive, since there are few, if any, tools that will run recovery directly on the device.
*The Problem*
The research led me to attempting to run the following command as a binary safe transfer of the partition.
Code:
adb exec-out "su -c 'cat /dev/block/sda13'" > userdata.raw
However when I run that, while it does start creating the userdata.raw file on my local machine, it gets to ~4gb, then the file just stops getting any larger and I've let it sit for over an hour. The command in adb never times out or returns to a prompt, it's like it just stops transferring the output from adb into the file. I know the size of the userdata partition is ~65gb from going into shell and looking at it.
I've also tried various chmod hacks of temp setting 777 on the file just to see if I can do an adb pull on it, however nothing I'ved tried so far yields anything other than a Permission Denied when I try that.
Does anyone have any ideas on how I can get a complete transfer of the userdata partition over to my local drive so I can run data recovery on it?

Categories

Resources