Hi !
My Z5c won't wake the screen after having a little bit of water inside, it believes that my cover is closed, so it shut down the screen in a second after booting.
I want to restore my TA but I doesn't have any access to the screen, only in recovery mode.
I remember using backup from twrp with TA inside on my Z1. Is there any way to create a flashable TA zip with my TA.img, thus I can restore TA from recovery
Or if you do know any other way to restore it without accessing the screen, let me know !
I found a TA file at /dev/block/platform/f9824900.sdhci/by-name/TA
I renamed my TA.img to TA and pasted it to the directory, with chmod 0777, but I still can flash using fastboot. Meaning it's not locked
Thanks for your help !
1. Start TWRP and connect the cable to the computer
2. Enter the command:
Code:
adb push TA.img /data/local/tmp/TA.img
adb shell dd if=/data/local/tmp/TA.img of=/dev/block/bootdevice/by-name/TA
or
Code:
adb push TA.img /data/local/tmp/TA.img
adb shell dd if=/data/local/tmp/TA.img of=/dev/block/platform/soc.0/f9824900.sdhci/by-name/TA
It works ! Thanks you so much ! The first way worked, the second doesnt since soc.0 doesnt seems to exist, but anyway !
Related
long story short, my 3d took a swim. dried it in rice and everything, but the lcd doesn't look like it is going to come back all the way. I tried to boot into the bootloader and I can see a little light at the bottom of the screen and the bootloader screen VERY faintly. I can connect to the phone via adb and send some commands so the phone seems to be at least kindof working, except for the screen.
I've tried to find a way to do this but I am stuck. what is the easiest way to backup everything on my phone through adb (since I have no working screen)? can you do a nandroid backup through adb? I have the latest twrp installed.
jon1234444 said:
long story short, my 3d took a swim. dried it in rice and everything, but the lcd doesn't look like it is going to come back all the way. I tried to boot into the bootloader and I can see a little light at the bottom of the screen and the bootloader screen VERY faintly. I can connect to the phone via adb and send some commands so the phone seems to be at least kindof working, except for the screen.
I've tried to find a way to do this but I am stuck. what is the easiest way to backup everything on my phone through adb (since I have no working screen)? can you do a nandroid backup through adb? I have the latest twrp installed.
Click to expand...
Click to collapse
It is not necessarily a nandroid, but you can 'adb pull' your system and data.
私のEVO 3Dから送信される。
jon1234444 said:
long story short, my 3d took a swim. dried it in rice and everything, but the lcd doesn't look like it is going to come back all the way. I tried to boot into the bootloader and I can see a little light at the bottom of the screen and the bootloader screen VERY faintly. I can connect to the phone via adb and send some commands so the phone seems to be at least kindof working, except for the screen.
I've tried to find a way to do this but I am stuck. what is the easiest way to backup everything on my phone through adb (since I have no working screen)? can you do a nandroid backup through adb? I have the latest twrp installed.
Click to expand...
Click to collapse
i might be missing it, but i'm not seeing any command line arg which can be passed to the actual recovery binary to trigger a nandroid backup
i'm looking is the source file to the latest twrp recovery.c around these lines: https://github.com/TeamWin/TWRP2/blob/master/recovery.c#L912
Code:
switch (arg) {
case 'p': previous_runs = atoi(optarg);
break;
case 's': send_intent = optarg;
break;
case 'u': update_package = optarg;
break;
case 'w': wipe_data = wipe_cache = 1;
break;
case 'c': wipe_cache = 1;
break;
case 'e': encrypted_fs_mode = optarg; toggle_secure_fs = 1; break;
case 't': ui_show_text(1);
break;
case '?': LOGE("Invalid command argument\n");
continue;
}
the good news: almost anything is possible over ADB!
the bad news:
otherwise, i'm not seeing any command line type input point in the backstore.c file to access the nandroid functions.
the older amon ra was using a sh for backup/restore which could be access thru the command line.
looking at the earlier release of twrp, nandroid backup/restore seems to setup similarity w/o command line access. as i recall, has been a while, but cwm is also using similar functionality as twrp in that there isn't command line access, but I could be wrong on cwm?
dastin1015 said:
It is not necessarily a nandroid, but you can 'adb pull' your system and data.
私のEVO 3Dから送信される。
Click to expand...
Click to collapse
this is prob the easiest method to pull all the files out. if you wanted to make it simplier, you could create a tar of the directories onto the sdcard and then adb pull the single .tar file
first, make sure to mount the partitions:
adb shell
mount -o rw /system /system
mount -o rw /data /data
then exit the shell
something such as: adb shell tar -cvf /sdcard/system-backup.tar /system
and: adb shell tar -cvf /sdcard/data-backup.tar /data
for using the straight adb pull method, you'll want to mount the partitions first and then you can execute the adb command.
adb shell
mount -o rw /system /system
mount -o rw /data /data
then exit the shell
adb pull /system c:\android-backup\system
adb pull /data c:\android-backup\data
hope that helps point in the right direction. good luck!
thanks a lot joey, though I managed to find a very similar solution late last night: http://forum.xda-developers.com/showthread.php?t=1021625
though after doing that and opening the tar files with 7-zip it gave me an "unexpected end of archive" error so I was suspicious it didnt get everything.
the real kicker though was finding this:
http://code.google.com/p/androidscreencast/
it actually works and I was able to get in and titanium backup everything.
joeykrim said:
for using the straight adb pull method, you'll want to mount the partitions first and then you can execute the adb command.
adb shell
mount -o rw /system /system
mount -o rw /data /data
then exit the shell
adb pull /system c:\android-backup\system
adb pull /data c:\android-backup\data
hope that helps point in the right direction. good luck!
Click to expand...
Click to collapse
Did this.. Now how to restore? ADB push?
Some kind of format the phone first?
Also can restore to different (replacement, same kind) phone?
Thanks much!
jackfrost909 said:
Did this.. Now how to restore? ADB push?
Some kind of format the phone first?
Also can restore to different (replacement, same kind) phone?
Thanks much!
Click to expand...
Click to collapse
Also, curious how you would restore the files.
Could you just rename the .tar file as system.img and issue the following commands?
fastboot flash system system.img
Would this work?
So it seems that my HTC ONE has no OS installed, I am able to get to the HTC logo and thats it. I reboot into bootloader and are able to install CWM and TWRP but no luck installing ARHD rom via adb sideload method, it just fails. Any hints on how to install a rom either stock or otherwise? i have a cwm backup of my stock rom rooted odex on my computer but it is not a flashable zip. Any help will be greatly appreciated. Thanks in advance.
(i have a mac if that matters)
if you aren't back on cwm flash that recovery.
boot to it
push your backup to the phone with ./adb push /foldername/* /sdcard/clockworkmod/backup might be backups, I can't remember, but you can check with adb shell
./adb shell
cd /sdcard/clockworkmod
ls (that is a lowercase L)
that should give you a directory listing.
after you've successfully pushed the backup reboot to recovery again and restore it.
This should do the trick
gunnyman said:
if you aren't back on cwm flash that recovery.
boot to it
push your backup to the phone with ./adb push /foldername/* /sdcard/clockworkmod/backup might be backups, I can't remember, but you can check with adb shell
./adb shell
cd /sdcard/clockworkmod
ls (that is a lowercase L)
that should give you a directory listing.
after you've successfully pushed the backup reboot to recovery again and restore it.
This should do the trick
Click to expand...
Click to collapse
I am in the same situation. Can not get my phone to roboot. I have a rom to push but I dont know how to use ADB commands. I can get to command prompt but them I am totally lost. Can you give me a quick step by step?
adb push filename /sdcard
gunnyman said:
if you aren't back on cwm flash that recovery.
boot to it
push your backup to the phone with ./adb push /foldername/* /sdcard/clockworkmod/backup might be backups, I can't remember, but you can check with adb shell
./adb shell
cd /sdcard/clockworkmod
ls (that is a lowercase L)
that should give you a directory listing.
after you've successfully pushed the backup reboot to recovery again and restore it.
This should do the trick
Click to expand...
Click to collapse
Hy gunnyman, when I push the folder to the sd card it always decompresses and send the individual files to the system not the full backup folder so i can select it from the backups menu. this is the command I used ./adb push may6.zip /sdcard/clockworkmod/backup
I also pushed the decompressed files to the sd card since it looks like it instals all files needed for os to work with the following command ./adb push may6.zip /sdcard
I reboot system but still stuck on HTC logo.
May6 is the name of my backup and when i use the ls command it has a .zip to the end.
So can you let me know how to sent the complete folder to the phone to be placed on the backup folder and thus be able to be selected under the cwm menu? Thank you so much
Unzip it. Send entire folder uncompressed
You don't restore a backup the same way you flash a rom. It's a separate menu option in recovery
gunnyman said:
Unzip it. Send entire folder uncompressed
You don't restore a backup the same way you flash a rom. It's a separate menu option in recovery
Click to expand...
Click to collapse
yes its unzipped. took off the .zip name and sent it to the backup folder and it still sends the uncompressed files. Once I go to restore from backup folder I get a -System/ and -Meta-INF/ files and no file with -May6/ or something like that. So i try to restore from -system/ but it says md5 sum dont match.
Any ideas?
No, I don't sorry
Dear Friends,
Need help please. I have installed another custom rom that was not meant for I9300 and now the EFS is corrupted. I tried installing orignal rom using ODIN but geting boot loop and the phone is not booting. On going into recovery i can see an error efs/ corupted or something like that. I have the backup of my EFS folder in tar.gz format however dont know how to install the same and recover my phone as not able to boot to android.
Please help me if someone can work it out. My phone has just 3 days of warranty left and it does not shows rooted anywhere except the count of installation is about 32 and rom says official and kernel says custom.
Please if someone can help me restore my phone back in working condition i shall always remain thankfull.
Regards,
Mush
mush2004 said:
Dear Friends,
Need help please. I have installed another custom rom that was not meant for I9300 and now the EFS is corrupted. I tried installing orignal rom using ODIN but geting boot loop and the phone is not booting. On going into recovery i can see an error efs/ corupted or something like that. I have the backup of my EFS folder in tar.gz format however dont know how to install the same and recover my phone as not able to boot to android.
Please help me if someone can work it out. My phone has just 3 days of warranty left and it does not shows rooted anywhere except the count of installation is about 32 and rom says official and kernel says custom.
Please if someone can help me restore my phone back in working condition i shall always remain thankfull.
Regards,
Mush
Click to expand...
Click to collapse
It is essential that you have a backup of the EFS partition and a way to place it back - the first two ways that I would think about are:
a) use a good recovery - like Philz recovery, that has commands to restore EFS
b) if the format of the backup is not exactly right you might be able to boot in recovery and use ADB commands.
xclub_101 said:
It is essential that you have a backup of the EFS partition and a way to place it back - the first two ways that I would think about are:
a) use a good recovery - like Philz recovery, that has commands to restore EFS
b) if the format of the backup is not exactly right you might be able to boot in recovery and use ADB commands.
Click to expand...
Click to collapse
Code:
su
umount /efs
dd if=/sdcard/efs.img of=/dev/block/mmcblk0p1 bs=4096
reboot
Ver3go said:
Code:
su
umount /efs
dd if=/sdcard/efs.img of=/dev/block/mmcblk0p1 bs=4096
reboot
Click to expand...
Click to collapse
I am new to adb commands. Will phylz recovery help me enter the commands? if yes then i shall be replying with the sd card efs tar file name. Will then you be able to guide me with the commands based on the tar file?
Thanks all of you in advance.
Mush
mush2004 said:
I am new to adb commands. Will phylz recovery help me enter the commands? if yes then i shall be replying with the sd card efs tar file name. Will then you be able to guide me with the commands based on the tar file?
Thanks all of you in advance.
Mush
Click to expand...
Click to collapse
No for ADB you boot into recovery, connect your computer via USB and run the ADB commands from either Linux Terminal or Windows Command Prompt.
The tool here:
http://forum.xda-developers.com/showthread.php?t=1703488
May help if you're new to adb.
Otherwise it's a case of downloading and installing the drivers for your phone and the Android SDK http://developer.android.com/sdk/index.html
Thanks for all your replies.
Just wanted to confirm if i have the efs backup in sd card as under folder backup_efs and there are two files in tar.gz format will i be able to use the phylz recovery to use this replace my efs folder? if yes then can you guide me the steps please.
Regards,
Mush
mush2004 said:
Thanks for all your replies.
Just wanted to confirm if i have the efs backup in sd card as under folder backup_efs and there are two files in tar.gz format will i be able to use the phylz recovery to use this replace my efs folder? if yes then can you guide me the steps please.
Regards,
Mush
Click to expand...
Click to collapse
I do not remember right now what creates an backup_efs folder but it really does not matter that much - the tar.gz is a "file archive" and .img is usually a partition image. Each could have minor advantages - the .img also contains the entire filesystem of the partition (and will work easier if the filesystem is bonked) but a tar.gz backup is more versatile when you have bad sectors or a changed partition.
Under an advanced recovery like Philz you would just navigate some menus and try to restore the EFS - see the info in those specific threads.
Under ADB you need to have stuff (drivers and some programs) installed in your PC, you connect the phone on USB and you run ADB commands from the command line.
I want to root my HP slate 7 , but i am worried that if it goes wrong , i dont have any backup.
Can anyone help me on how to take a backup image of my tablet and how to use it in case something goes wrong during rooting ??
You have fastboot?
Dump system and boot image then you can glass or from there
Use adb or terminal emulator
First of all search if anyone has uploaded the stock system or not
And dont be scared of root
Root your phone, install recovery and then backup w/o any modifications or flash
If u dont have system then continue below
If in adb type adb shell, if emulator then skip this step
Use command
dd if=/block/to/system of=/sdcard
Replace block/to/system with the block of system
Press :highfive: thanks :good: if helped
So my phone screen just went black and doesn't work anymore. I wanted to adb pull all files from my phone (everything takes up 17gb, so It wouldn't be a big deal to transfer everything and sort through it on my PC), but when I boot to TWRP via command line and try to decrypt the phone the fs is still encrypted, what am I doing wrong? Or maybe there's a better approach for this and I'm just stupid? (attached is my pattern drawn on a random png from google and the commands that I tried to use) Thanks in advance
AFAIK device's /data partition automatically is turned to an unencrypted state if you do a backup of this partition via the adb backup
Example:
Code:
adb devices
adb backup -shared -f C:\backupname.ab
You may use
android-backup-processor
Download android-backup-processor for free. Android adb backup extractor and packer. None
sourceforge.net
to convert the .TAR formatted backup into a .ZIP formatted file.
jwoegerbauer said:
AFAIK device's /data partition automatically is turned to an unencrypted state if you do a backup of this partition via the adb backup
Example:
Code:
adb devices
adb backup -shared -f C:\backupname.ab
You may use
android-backup-processor
Download android-backup-processor for free. Android adb backup extractor and packer. None
sourceforge.net
to convert the .TAR formatted backup into a .ZIP formatted file.
Click to expand...
Click to collapse
It requires me to unlock the phone to do that. I think i'll just buy a USB C to USB A and HDMI dongle to view my phone screen on a monitor and operate it via a mouse. That seems like the easiest way out.
Thanks for the help, though!