My motherboard is toast, I bought a broken phone on ebay and switched out the motherboards but it isnt working. Phone works fine but wont recognize sim card or connect to network. Its just a camera/wifi device atm. So anyway..... I can still get the old motherboard to kinda work enough to play with it, the home buttons dont work or the power button and sometimes freezes up. Is there a way I can put the old motherboard in the phone and copy the system files to the external sd card or computer, then wipe the new motherboard and copy the files from the old mb to the new mb? I believe I have tried everything else but if anyone has any suggestions Im all ears
Thanks!
The easiest way would probably be to take the motherboard you're wanting to pull stuff from, hook it up (in the phone), and via USB in ADB do something like this:
adb pull / \backup
That would create a folder at the top level of your C: drive with all the contents of the phone on it. You could then move all of that to the new motherboard.
(That would probably be something like:
adb push \backup /
but I'm not 100% sure on that. You may have to do a more one-by-one procedure.)
when I try to push the backup I get this message....
failed to copy '\backup/acct/uid/0/task' to 'acct/uid/0/task' : Operation not permitted
Sooooo what did I do wrong??
Also I couldnt find where it saved the backup on my computer.
Ok, found the backup folder on my c: drive but what do I do with it now?
Bump cause I still havent figured this out Seems like I dont have the correct permissions in adb.
poprocksncoke said:
when I try to push the backup I get this message....
failed to copy '\backup/acct/uid/0/task' to 'acct/uid/0/task' : Operation not permitted
Sooooo what did I do wrong??
Also I couldnt find where it saved the backup on my computer.
Ok, found the backup folder on my c: drive but what do I do with it now?
Click to expand...
Click to collapse
If you typed in your backup like what you wrote above (\backup/acct/uid/0/task), it's likely that you're running into an error because you flipped your slashes midway through.
The backup folder needs to be in the platform-tools folder of the ADB installation, as that's where ADB pushes from.
Once you have that, reboot into recovery mode. This may not be 100% necessary, but I usually find that pushes work better from there as the file system is (usually) read-write.
Then, try this:
adb push \backup /
(You may have to switch the slash before the word backup so it reads /backup, I'm not 100% sure.)
If that doesn't work, drag an individual folder out of the backup folder to the main platform-tools folder and type:
adb push /acct \
You'll have to repeat that for each folder, but it should work.
If all that fails, you can try to make a CWM flashable zip file. I don't know exactly what the procedure is for doing this, but I would guess that the answer exists somewhere on this site.
jmtheiss said:
If you typed in your backup like what you wrote above (\backup/acct/uid/0/task), it's likely that you're running into an error because you flipped your slashes midway through.
The backup folder needs to be in the platform-tools folder of the ADB installation, as that's where ADB pushes from.
Once you have that, reboot into recovery mode. This may not be 100% necessary, but I usually find that pushes work better from there as the file system is (usually) read-write.
Then, try this:
adb push \backup /
(You may have to switch the slash before the word backup so it reads /backup, I'm not 100% sure.)
If that doesn't work, drag an individual folder out of the backup folder to the main platform-tools folder and type:
adb push /acct \
You'll have to repeat that for each folder, but it should work.
If all that fails, you can try to make a CWM flashable zip file. I don't know exactly what the procedure is for doing this, but I would guess that the answer exists somewhere on this site.
Click to expand...
Click to collapse
Actually what I typed was adb push \backup / then it gave me that error. It stored the backup folder on my c: drive, I will move it to the tools folder and see if that works. Going to go search on how to make a CWM flashable zip file now. Maybe i'll give that a shot too. Thanks for your help.
So If I am getting this correctly, I take the custom ROM I have flashed to my phone and then I can add my system files to to the system folder in the ROM I can then flash the ROM again and it will install all my files?
In theory, yes, that should work. All the CWM update file does is write the files inside of it to the folders that the updater-script file tells it to.
Again, this should work IN THEORY.
poprocksncoke said:
So If I am getting this correctly, I take the custom ROM I have flashed to my phone and then I can add my system files to to the system folder in the ROM I can then flash the ROM again and it will install all my files?
Click to expand...
Click to collapse
Ok, I tried this and put the .zip on my sdcard and ran it from recovery. Got an error that I didnt have enough space. Any suggestions?
Related
OK, I know how to use ADB to reboot and get into download mode on my phone, but I have a kind of emergency. I was attempting to replace a framework-res.apk file on my phone to change the battery icon, and now I am stuck FCing all over the place. So much that I can't put my backed up framework-res.apk file back in /system/framework via Root Explorer like I normally do.
I am connected to my phone, can list directories, but cannot seem to push the framework-res.apk file.
Can someone give me a step by step on how to do this and soon please...
EDIT: I think I got it. I needed to be in Recovery Mode, and then it seemed to copy fine.
While I do have someone's attention (hopefully), how do you change directories if the directory you want to change to is two names, IE 'Battery Mod'?
Demented71 said:
OK, I know how to use ADB to reboot and get into download mode on my phone, but I have a kind of emergency. I was attempting to replace a framework-res.apk file on my phone to change the battery icon, and now I am stuck FCing all over the place. So much that I can't put my backed up framework-res.apk file back in /system/framework via Root Explorer like I normally do.
I am connected to my phone, can list directories, but cannot seem to push the framework-res.apk file.
Can someone give me a step by step on how to do this and soon please...
Click to expand...
Click to collapse
Is your backed up framework on your sdcard? You could try adb shell.
from pc,
adb shell
su
cp XXXX/framework-res.apk system/framework <<<may need to use busybox cp
exit
exit
adb reboot
bobbylx said:
Is your backed up framework on your sdcard? You could try adb shell.
from pc,
adb shell
su
cp XXXX/framework-res.apk system/framework <<<may need to use busybox cp
exit
exit
adb reboot
Click to expand...
Click to collapse
My backed up framework file was on my PC. The first one I was trying to get to was on my phone, in a folder called Battery Mod, which I could not get into because ADB kept saying wrong substitution or something?
Either way, I was able to get it done, so I learned something new again.
EDIT: I think I got it. I needed to be in Recovery Mode, and then it seemed to copy fine.
While I do have someone's attention (hopefully), how do you change directories if the directory you want to change to is two names, IE 'Battery Mod'?
Click to expand...
Click to collapse
That makes sense, it may not let you Push to the file system while it's in use.
As for 2 names, do you mean from a windows command box or in the android command line. Windows you just type it as is. Linux is a little more picky, I usually try to remove spaces from directory names so I don't run into any problems with that. In linux a backslash works, ie, cd /sdcard/Battery\ Mod
Not sure if it will work on our phones.
Thank you in advance, this is a great community.
I am running cognition 3.04 and making my first attempt at transparent widgets. However, I am uncertain if I am properly set up to access and reinstall apk files. I can find them on my phone using the file explorer in Andriod Mate. However, it appears that when I plug my phone into the usb or use any other file exploring software, the base directory is /mnt/sdcard/ . I feel that I am missing a critical component of this process, as I do not have ready access to the files I need to alter and eventually replace.
Thank you again,
Dez
Dezdemona said:
Thank you in advance, this is a great community.
I am running cognition 3.04 and making my first attempt at transparent widgets. However, I am uncertain if I am properly set up to access and reinstall apk files. I can find them on my phone using the file explorer in Andriod Mate. However, it appears that when I plug my phone into the usb or use any other file exploring software, the base directory is /mnt/sdcard/ . I feel that I am missing a critical component of this process, as I do not have ready access to the files I need to alter and eventually replace.
Thank you again,
Dez
Click to expand...
Click to collapse
You would need to copy them from ur /system/app folder to some folder on ur sdcard to see them on computer.
Below is the file system layout.
/ (root)
/system
/system/app
/...
/...
/...
/sdcard
/sdcard/...
/sdcard/...
/sdcard/...
/sdcard/external_sd
/sdcard/external_sd/...
/sdcard/external_sd/...
/sdcard/external_sd/...
When u connect to computer, it mounts only the internal and external sd cards. It does not mount the system areas like system, data, etc.
I have a Marquee and have successfully rooted using http://androidnerds.net/2011/10/08/lg-esteem-oneclickroot-now-ready/. Apparently the LG Esteem is close enough for this to work. After install, you will need to manually update superuser via the market.
Thanks to Hoovhartid over at androidcentral forums for suggesting this.
Can u make backup for ur gb and upload it here?
Sent from my LG-P970 using XDA App
Fatcobrah, if you can give me instructions how to back it up, I will be glad to upload it. I have root access but not CWM recovery.
tcaudill01 said:
Fatcobrah, if you can give me instructions how to back it up, I will be glad to upload it. I have root access but not CWM recovery.
Click to expand...
Click to collapse
install Rom Manager from the market
ROM manager doesn't give an option for my phone for CWM and you can't back up your ROM without it.
Sorry but not risking bricking this thing if I make the wrong choice.
tcaudill01 said:
ROM manager doesn't give an option for my phone for CWM and you can't back up your ROM without it.
Sorry but not risking bricking this thing if I make the wrong choice.
Click to expand...
Click to collapse
Hmm you can use root explorer to copy all files & folder from root folder to sdcard
Sent from my Optimus Black using Tapatalk
lesp4ul said:
Hmm you can use root explorer to copy all files & folder from root folder to sdcard
Sent from my Optimus Black using Tapatalk
Click to expand...
Click to collapse
+1.and you can use adb to pull all files and boot.img ,and we can test it in a safer way
Okay guys, I thought what the hell, I'll try the LGE Black option in ROM manager and see what happens.
IT WORKS!!!!!!!!!!!!!!!!!!
Use the volume keys to move and the search button to select.
I have backed up the ROM from the Marquee and loaded on Mediafire.
The back up wasn't good, so i pulled the link. Sorry!
Hope this helps.
Sorry folks, I don't think the backup is any good. I tried another and it looks the same. It is too small and doesn't have musch data.
Can someone point me to, or step me through, how to pull all the files with adb. I'll be glad to pull and post.
tcaudill01 said:
Sorry folks, I don't think the backup is any good. I tried another and it looks the same. It is too small and doesn't have musch data.
Can someone point me to, or step me through, how to pull all the files with adb. I'll be glad to pull and post.
Click to expand...
Click to collapse
http://www.addictivetips.com/mobile/how-to-perform-and-restore-a-nandroid-backup/
am kinda noob too..so hope this will help!xD
first of all,you need a adb.exe
you can get it from super-one-click,or android sdk,google it
for example,we pull files at d:\system
copy adb files in d:\system
and then,open cmd(win+R,enter cmd)
connect your phone before we start.
type
Code:
d:
adb pull /system .\system
ok then it will pull all the system files into d:\system
does it back up to a directory on the SD card? if it does, you need all the files in the directory. there should be a few .img files along with the nandroid.md5 file. put them all in a zip and upload it.
look in sdcard: \clockworkmod\backup\
the directory the files are in should be named with a date+time stamp
Any chance?
mike-y said:
does it back up to a directory on the SD card? if it does, you need all the files in the directory. there should be a few .img files along with the nandroid.md5 file. put them all in a zip and upload it.
look in sdcard: \clockworkmod\backup\
the directory the files are in should be named with a date+time stamp
Click to expand...
Click to collapse
I've already tried the CWM backup and it is no good, only about 18 meg in size and missing almost everything important.
That is why I was trying to get directions on how to use ADB to pull system files and image from the phone.
tcaudill01 said:
I've already tried the CWM backup and it is no good, only about 18 meg in size and missing almost everything important.
That is why I was trying to get directions on how to use ADB to pull system files and image from the phone.
Click to expand...
Click to collapse
1. Download Android SDK http://developer.android.com/sdk/index.html
2. Install it on C: (not on Program Files for Easy Access)
3. Connect your phone through USB with debugging on
4. Open Command propt from your PC. (windows button + r / type "cmd" without quotes)
5. On command prompt type "cd c:\Android\ASDK\platform-tools" (without quotes then press Enter)
6. Then type "adb pull /system" (without quotes then press Enter)
7. wait till it's finished pulling the files
Now go to C:Android\ASDK\platform-tools. Copy all files now, zip it. Upload, they'll just exclude/disect the adb ones.
this is interesting. I'm going to try to use this method for rooting our P970.
Advices are welcome
Okay, I used ADB and was able to pull the system, boot.img and recovery.img.
Not sure if any of these are correct. The system file is HUGE (434mb zipped) but looks like every thing is there. Both boot and recovery are 5.00mb each.
If this looks right and is what you are after I will upload it to mediafire.
Let me know.
go go up it!, i wanna see if we can get a nice gingerbread with lg drivers from this.
tcaudill01 said:
Okay, I used ADB and was able to pull the system, boot.img and recovery.img.
Not sure if any of these are correct. The system file is HUGE (434mb zipped) but looks like every thing is there. Both boot and recovery are 5.00mb each.
If this looks right and is what you are after I will upload it to mediafire.
Let me know.
Click to expand...
Click to collapse
Yes... that's exactly what we need... just zip it and upload it...
tcaudill01 said:
Okay, I used ADB and was able to pull the system, boot.img and recovery.img.
Not sure if any of these are correct. The system file is HUGE (434mb zipped) but looks like every thing is there. Both boot and recovery are 5.00mb each.
If this looks right and is what you are after I will upload it to mediafire.
Let me know.
Click to expand...
Click to collapse
nicely done
now let our chef master to cook it
NOTE: The Nexus 4 does not have a physical sd card. However, the user directory on the phone is located at /storage/sdcard0/ and will, for the purposes of this guide, be referred to as the sdcard.
Click to expand...
Click to collapse
Making sdcard backups with MTP is often unreliable. First of all, files are not always immediately updated with the ones on your phone. As a result, there may be folders missing, files that you deleted on your phone still showing up, etc. Also, the Date modified values of files are changed to the time that the files were moved onto your computer, which can cause errors when restoring them to your phone; i.e. photos in gallery not appearing in order. Other times, MTP is simply not available (if you have an older computer or an unsupported OS, for example). The best way to go about a backup is by using adb (Android Debug Bridge).
So, let's get started.
1. First, you're going to need some variant of the Android SDK/Software Development Kit as well as the Nexus 4 drivers installed. I won't show you how to do this, as there are already many guides and tutorials available.
Here's the link to the official Google ADT/Android Developer Tools.
2. Once you've got everything on your computer set up, open up the Settings app and go to About phone. Scroll down and quickly tap the Build number tile seven times. You have now enabled Developer options.
Go back, enter Developer options and enable USB debugging. An authorization pop-up will appear; allow it.
3. Now, open up a command prompt window and change directory to the location of adb on your computer. If you installed the official SDK, this will be under
Code:
folderyouextractedto\sdk\platform-tools
Connect your phone via USB and type
Code:
adb devices
You should see something like this:
Code:
List of devices attached
random numbers and letters device
If you don't, you probably don't have the drivers installed properly OR you failed to authorize your computer for USB debugging.
4. Make a folder on C:\ (or whatever your OS drive is) with NO SPACES in the file name. You can now make the backup.
Type
Code:
adb pull /storage/sdcard0/ C:\folderyoumade
You are now backing up your entire sdcard. This can take a while, depending on how many files you have on your phone.
When the copy is complete, you should see something like
Code:
x files pulled. 0 files skipped.
0 files skipped is very important, as it confirms that all of the files were copied over correctly.
To backup specific folders on it, simply change the command to that directory on your phone.
i.e.
Code:
adb pull /storage/sdcard0/folderyouwant/ C:\folderyoumade
5. To restore a backup, simply type
Code:
adb push C:\folderyoumade /storage/sdcard0/
NOTE: Restored folders DO NOT replace existing folders on your sdcard. They are merged (so pre-existing files in a folder remain, while any new files are copied in).
Click to expand...
Click to collapse
NOTE: I recommend that you do not use your phone during a backup or restore so as to make sure all files are properly copied.
Click to expand...
Click to collapse
Remember, this is only an sdcard backup. App and system data are NOT copied over. If you want to make a backup of your app data, the easiest way to do this is with Titanium Backup, Helium, or a similar app and then backup those files using adb pull. If you wish to make a complete backup of your file system (not including sdcard though), make a nandroid from recovery.
Reserved
klvnhng said:
Reserved
Click to expand...
Click to collapse
Good method if MTP failes or crashes! Thanks!
Thanks!
I get remote object '/storage/sdcard0' not a file or directory when I try pull. Help?:crying:
nphone said:
I get remote object '/storage/sdcard0' not a file or directory when I try pull. Help?:crying:
Click to expand...
Click to collapse
You forgot the frontslash at the end of 0. Try that
On some devices you can't specify destiny forlder in order to use adb push or pull, you have to use current folder:
Code:
cd C:\folderyoumade
adb pull /storage/sdcard0/folderyouwant/
It's better to backup the sdcard this way than using adb backup because it also backups the Android folder inside the sdcard.
Or much shorter;
adb pull /sdcard C:\SDCARDBackUp
__________________________________________________
Device: Google Nexus 4 (LG-E960) 16GB (MAKO)
ROM: SimpleAOSP-L-ROM (Stable Build 7)
Kernel: Stuxnet v4.5 (3.4.105)
Gapps: PA-Gapps-5.0.1-BETA4 (MINI)
_________________________________________________
Is there a way for pull to skip files which already exist in your specified destination? Sometimes it errors in the middle of a long transfer because it doesn't like a file name or something.
I was looking for a better way to push my virtual sd card backup, as using the copy and paste method in windows doesn't copy all of the files for some reason. It will copy all the files from the sd card to the PC, but not back again. I was having to search through every folder and copy and paste to get everything copied back. Thank you so much for this tutorial. I knew about adb push command, but I never tried it, because I always thought the copy and paste method would be easier. Boy was I wrong. This way pushes all the files in one try. Soooo much easier.
I have a question, can I also backup this file directory: /storage/emulated/0? Or is this something else, I checked both folder and they seem to be the same.
Hi,
I've done a full backup using adb backup, including the whole content of my sd card (using the -shared option).
However, when restoring my device using adb restore, nothing is restored on my sd card (not the apps and not the files).
Am I doing something wrong?
Is there any special option to use for the restore?
Is there any other way to restore my apps&data from my backup file (.ab) using other commands ?
The content of my backup file seems correct though.
Thanks!
NikoBe00 said:
Hi,
I've done a full backup using adb backup, including the whole content of my sd card (using the -shared option).
However, when restoring my device using adb restore, nothing is restored on my sd card (not the apps and not the files).
Am I doing something wrong?
Is there any special option to use for the restore?
Is there any other way to restore my apps&data from my backup file (.ab) using other commands ?
The content of my backup file seems correct though.
Thanks!
Click to expand...
Click to collapse
Sounds like the adb backup didnt copy the /storage/sdcard0/android/ folder on the sdcard perhaps? Maybe try using adb pull to copy the scdard seperately in addition to doing the adb backup to be safe. You could push the sdcard data back manually if the restore doesnt. See below:
scandiun said:
On some devices you can't specify destiny forlder in order to use adb push or pull, you have to use current folder:
Code:
cd C:\folderyoumade
adb pull /storage/sdcard0/folderyouwant/
It's better to backup the sdcard this way than using adb backup because it also backups the Android folder inside the sdcard.
!
Click to expand...
Click to collapse
it doesnt work
Why?
klvnhng said:
You forgot the frontslash at the end of 0. Try that
Click to expand...
Click to collapse
I font understand why is the front slash required?
I also forgot the front slash and was facing the same problem. Now its working after adding the front slash.
So, why is the front slash required and what does it mean ?
can I backup the sd card even if it is external using this method (apps are moved there too)?
edit: ok, I got the android folder from sd card, the message was:
/storage/sdcard1/Android/: 147 files pulled. 0 files skipped.,
but how am I supposed to see them?
I contacted AppMgr III, maybe they can tell me
Hi All,
i made a nandroid backup with CWM and i used the server function to download it to my PC, now im trying to restore it but no matter where i place on my ONE i cant get clockwork to recognise it.
Ive tried the SD card, mnt/shell ect... nothing seems to work
would anyone know what im doing wrong?
JoeRadd said:
Hi All,
i made a nandroid backup with CWM and i used the server function to download it to my PC, now im trying to restore it but no matter where i place on my ONE i cant get clockwork to recognise it.
Ive tried the SD card, mnt/shell ect... nothing seems to work
would anyone know what im doing wrong?
Click to expand...
Click to collapse
what do you mean by "Zip Backup"? the backup is a folder called something like "2013-mm-dd-hh.mm.ss"
and that folder should be placed in /data/media/clockworkmod/backup/
if it's a zip you downloaded off the net, then unzip it on your computer first, then push the folder to above location.
nkk71 said:
what do you mean by "Zip Backup"? the backup is a folder called something like "2013-mm-dd-hh.mm.ss"
and that folder should be placed in /data/media/clockworkmod/backup/
if it's a zip you downloaded off the net, then unzip it on your computer first, then push the folder to above location.
Click to expand...
Click to collapse
Its recognised as a zip on my PC although it cant be unzipped with 7zip or WinRar. if you go to manage and restore back ups in rom manager it lets you download a folder to your pc, cannot for the life of me figure out how to push it back to the phone so it can be recognised though.
JoeRadd said:
Its recognised as a zip on my PC although it cant be unzipped with 7zip or WinRar. if you go to manage and restore back ups in rom manager it lets you download a folder to your pc, cannot for the life of me figure out how to push it back to the phone so it can be recognised though.
Click to expand...
Click to collapse
1- what do you mean it can't be unzipped? where did you get it from
2- never used rom manager so no idea about that
3- use "adb push 2013-mm-dd-hh.mm.ss /data/media/clockworkmod/backup/2013-mm-dd-hh.mm.ss" to get the backup onto phone