[Q] CWM: How to copy backup-image to PC? - Moto G Q&A, Help & Troubleshooting

Hi all,
I unlocked my bootloader and flashed Clockwork-recovery. I made a backup of the stock-Android using CWM -> Backup, and it shows in CWM that it wrote files to /sdcard/clockworkmod/backup/$DateEtc$.
How can I get those files to the PC now?
They don't show up in the mounted SD card.
Also, I tried adb pull /sdcard/clockworkmod/backup/, which says the folder doesn't exist. I can pull /sdcard/clockworkmod/, but that gives me only the file ".recovery_version" and nothing more.
So how would I get those files to the PC?
Thanks,

@Elador.... Try this....
1) On your phone copy or move your backup file to the folder sdcard/Download
2) Connect your phone to PC as "Media Device"
3) The "Download" folder will be visable on your PC ..... Transfer your backup file wherever you want.

Turn on usb debugging in developing settings.
Download adb on your PC.
Connect your device to PC.
Enter to your cmd window:
adb devices
on your phone screen you should allow adb access
After that enter
adb pull /mnt/shell/emulated/clockworkmod/backup C:/
That's for coping all backups on C disk.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}

@metpolds: That didn't work, the files are not visible in the File Explorer on the device.
@S0bes: Awesome! That finally worked! Thank you very much!

S0bes said:
Turn on usb debugging in developing settings.
Download adb on your PC.
Connect your device to PC.
Enter to your cmd window:
adb devices
on your phone screen you should allow adb access
After that enter
adb pull /mnt/shell/emulated/clockworkmod/backup C:/
That's for coping all backups on C disk.
Click to expand...
Click to collapse
If I want to restore in the /clockworkmod/backup floder, what should be the command?

shibliaftab said:
If I want to restore in the /clockworkmod/backup floder, what should be the command?
Click to expand...
Click to collapse
If I am not mistaken...
adb push C:/(name of backup) /mnt/shell/emulated/clockworkmod/backup

S0bes said:
Turn on usb debugging in developing settings.
Download adb on your PC.
Connect your device to PC.
Enter to your cmd window:
adb devices
on your phone screen you should allow adb access
After that enter
adb pull /mnt/shell/emulated/clockworkmod/backup C:/
That's for coping all backups on C disk.
Click to expand...
Click to collapse
i used to use galaxy s2, in that i cud easily see the backups
why cant we see them in moto g? why we need to use adb to pull those files? any technical insight would be great

bluepratham said:
i used to use galaxy s2, in that i cud easily see the backups
why cant we see them in moto g? why we need to use adb to pull those files? any technical insight would be great
Click to expand...
Click to collapse
You can see them at /mnt/shell/emulated/clockworkmod/backup after you get root acces oyour device.

Deleted

Related

I can't pull an app from the sdcard

I just rooted the phone (I know this because I installed a screen shot app and it works) and I'm trying to copy a private app that is free off of my phone onto my computer. But, I cannot figure it out. Could someone please give me step-by-step instructions. I would really appreciate this.
It sounds like you have completed this process:
http://forum.xda-developers.com/showthread.php?t=581577
But read it and make sure you complete the last step to flash the recovery rom.
www.androidspin.com/downloads...roc-v1.2.3.img
He kind of botched the last command instead of:
adb shell flash_image recovery recovery-RA-heroc-v1.2.3.img
it should be:
adb shell
cd /sdcard/
su
flash_image recovery recovery-RA-heroc-v1.2.3.img
Once you make sure this is done, turn of your phone and then hold Home button and press end button. This should load the recovery, choose Nandroid Backup once you are done backing up you will want to flash Modaco's 1.1 rom. More information can be found here:
http://forum.xda-developers.com/showthread.php?t=581846
Once this is done connect your phone to your pc, and open command prompt.
type in:
cd "the directory where the sdk is" \tools
then type:
If you are using appstosd with ext2 and fat32 partitioned sdcard:
adb pull /system/sd/app app
If you are using just fat32, no appstosd:
adb pull /data/app app
this will put all your apps into a directory named app in your \tools folder on your pc.
for private apps just replace app with app-private
alternatively, you can move apps one at a time with the command:
leave out " ".
adb pull /system/sd/app/"appname" "appname"
This will place the file directly into your tools directory. Hope this helps.
Yep, thats what I did. But I didn't flash the recovery rom. If I do that will it erase all my applicastion that I have installed? I didn't want to do that because the app I want to backup was free when I downloaded it but now it's not.
Ok, so I followed all the instructions above and go the in MoDaCo rom flashed. Then, when I tried to pull the apps off the sdcard I get a permissions denied error.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Thanks.
Now I have a new problem. It says "adb: not found". Now what?
Thanks for being so helpful everyone.
adb is a command that is run outside of the shell
for example your prompt would still be at
c:\android-sdk-windows\tools>adb pull /data/app-private (location)
you can't use adb inside of adb shell
Ah, I didn't know adb had to be run outside of the shell.
Now it says there aren't any files in app-private but I know there are two in there.

HTC Legend Root & Downgrade

Hi,
I'm new here, so I don't know how to put this...
I have a HTC Legend 2.2 Froyo with HBoot 1.01 and I want to downgrade and root it so I can put CM7 on it. Can anyone tell me how to do this?
Thanks!
DM779
@DMasta779 read this ---> [GUIDE] How To Root HBOOT 1.01
i4o said:
@DMasta779 read this ---> [GUIDE] How To Root HBOOT 1.01
Click to expand...
Click to collapse
Thanks, but at the first step, where I type ''adb shell'' it
says:''adb: permission denied''.
What do I have to do?
On linux, make sure adb is executable. On windows, make sure you run cmd as an administrator
Help?
I always did it on my phone with Terminal Emulator(Temprooted). When I type in ''adb shell'' it gives ''adb: permission denied''. When I try it on my PC(Windows) With only charge and USB debugging on, adb doesn't find my phone.(This is also in fastboot mode)
It gives: ''error: device not found''. What on earth am I doing wrong?
Adb isn't executed on the phone, it's on the pc. The phone should be running normally when you run it (with usb debugging enabled)
Also install htc sync to get the correct drivers
Rehash: start the phone normally. Ensure usb debugging is enabled. Plug the gizmo into your pc. Run adb shell in the command prompt as administrator
Sent from my GT-P1000 using XDA App
http ://i55.tinypic.com/f35a2q.png
This is where I get stucked right now. Anyone?
(delete the space in the URL)
The things that've deleted, are the CID's.
DMasta779 said:
http ://i55.tinypic.com/f35a2q.png
This is where I get stucked right now. Anyone?
(delete the space in the URL)
The things that've deleted, are the CID's.
Click to expand...
Click to collapse
Adb is not a valid binary on the phone.
When you issue adb shell you're dropped in to the shell on the phone. Any commands entered there execute on the phone. Type exit to get out of the shell before executing the push commands
Sent from my GT-P1000 using XDA App
Oh OK, I see, but when I type in just ''push goldcard.img /data/local/'' after adb shell, it says: ''push: permission denied''. (running as admin in windows and temprooted phone)
Exit out of the phone's shell, them the command is
Code:
adb push goldcard.img /data/local
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I think it didn't push the file completely. I get this every time when I am trying to push something.
EDIT: I did ignore it and advanced to the next steps and by this command I get stuck:
...and backup your current misc partition:
Code:
cat /dev/mtd/mtd0 > /sdcard/misc_backup.img
Click to expand...
Click to collapse
Click to expand...
Click to collapse
I can't backup/write the misc

[HOWTO][ADB]Emergency Situations when file transfer is necessary

Introduction :
We all know how to copy files from PC to Android Device and vice-versa (I guess )
But say, in some rarest of situations, where your phone is being recognized by PC on connection with USB cable, but for some reason, 'My Computer' or whatever File Explorer does not show your device, or doesn't lists files and directories of your phone, and you would want to transfer files, then this guide is for you.
I would have put the title, the one written below, but it won't fit in the Title
Transfer files from your PC to phone and vice-versa even if 'My Computer' does not recognize your phone properly.
However, PC must recognize it (when a notification sound is played on connection).
Requirements :
1. You
2. An Android Device.
3. A PC. (I will use windows 8 in this guide)
4. ADB installed on your PC and configured for your phone.
Procedure:
Let this be the situation
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
As you can see, My Computer says 'This folder is empty', but actually I have 2 main folders , sdcard0 and sdcard1
Now what you have to do is open ADB. To do that, Hold Shift+Right click on your ADB folder and then select 'Open Command Prompt window here'
First we will check whether ADB recognizes the Device, to do that, type :
Code:
adb devices
If your device is recognized, the result will be
If it does not recognize, nothing will show up in the list.
Now, the main thing, to transfer file, I will be transfering 'Gallery.apk' to my sdcard0 main directory.
I have kept the Gallery.apk in C:\ for easy address.
Now the general format of the code:
Code:
adb push <source address> <destination address>
Source address here is C:\ and target address is storage/sdcard0/
You can check for address of a location on your Phone by always viewing properties with a file explorer of a folder or a file.
So I type :
Code:
adb push C:\Gallery.apk storage/sdcard0/
First, before executing it, I will show no Gallery.apk is present in referred directory
After typing the code, it should look like this :
Execute it.
On successful execution, it will look like
You can do the same thing to transfer files from Phone to PC
Code would be :
Code:
adb pull <source address> <destination address>
Remember, here source address will be the address of file present in your phone and destination address would be the desired location you would want to put the file in.
This should work even if your phone is not showed up in My Computer at all, but however PC detects it and so does adb.
Transferring multiple files will really be painful, but wait, trick is even here too.
Just press the up arrow key in command prompt and the last statement would appear, now just change address and your hard work is reduced to just work .
Cases when this won't work -
1. ADB is not configured. Head over to this thread to set up ADB. You can Google it more info.
2. ROM installed on your phone has storage issues (like mount problems).
If you feel this guide has helped, then there is no harm in pressing Thanks button

[GUIDE][UNLOCKED BOOTLOADER] HOW BACKUP IMEI FILES

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
JOIN MOTO G6 GLOBAL GROUP ON TELEGRAM
https://t.me/Moto_G6
SIMPLE GUIDE WITH IMAGES​1. TURN PHONE INTO RECOVERY MODE
(POWER + VOLUME DOWN, USE VOLUME DOWN TO NAVIGATE TO RECOVERY AND PRESS POWER ON RECOVERY)
2. GO TO MOUNT, TURN ON ALL CHECK BOX AND BACK TO MENU USING HOME BUTTON
3. GO TO ADVANCE MENU, PRESS ON FILE MANAGER AND ENTER INSIDE PERSIST FOLDER
4. NOW INSIDE PERSIST FOLDER TAP ON BLUE FOLDER ICON ON BOTTON, AND DONT DELETE OR MOVE ANYTHING HERE, JUS PRESS ON COPY, AND ON ROOT SELEC SDCARD (INTERNAL MEMORY) OR EXTERNAL-SDCARD (EXTERNAL MEMORY) FOR THE GUIDE I USED INTERNAL MEMORY
5. I USED TWRP FOLDER IN MY INTERNAL MEMORY, CHECK IF THE PATCH ARE OKAY AND SWIPE TO COPY.
6. WITH SYSTEM ON, YOU CHECK THE FOLDER AND SAVE IT ON CLOUD SERVICES OR OTHER PLACE.
what about:
Code:
dd if=/dev/block/by-name/persist of=/sdcard/persist.img
?
& to recover just via dd vice versa
I did this on Moto G4, Moto G5, Moto G5s Plus ...
Is it possible on Moto G6?
zitronenmelissa said:
what about:
Code:
dd if=/dev/block/by-name/persist of=/sdcard/persist.img
?
& to recover just via dd vice versa
I did this on Moto G4, Moto G5, Moto G5s Plus ...
Is it possible on Moto G6?
Click to expand...
Click to collapse
Is this the command via ADB?
Brickstin said:
Is this the command via ADB?
Click to expand...
Click to collapse
yes, you can in adb shell & su
or in twrp terminal
or running android in (lineage) terminal with root
zitronenmelissa said:
yes, you can in adb shell & su
or in twrp terminal
or running android in (lineage) terminal with root
Click to expand...
Click to collapse
I appreciate the response: you seem to be knowledgeable in this and so I have another question for you:
when it comes to the ADB method as I have Android Studio SDK and i have the latest platform tools downloaded in the configuration setup.
Do I do this in AP Fastboot mode or do I boot to Recovery Mode?
Which should I use?
Brickstin said:
I appreciate the response: you seem to be knowledgeable in this and so I have another question for you:
when it comes to the ADB method as I have Android Studio SDK and i have the latest platform tools downloaded in the configuration setup.
Do I do this in AP Fastboot mode or do I boot to Recovery Mode?
Which should I use?
Click to expand...
Click to collapse
you can do it running android, usb debugging turned on and rooted
or in twrp

Mi projector MJJGYY02FM crashed

Good morning,
I'm new here, and i hope you can help me with my problem.
I have a mi MJJGYY02FM projector and i did a update with USB stick with files from Xiaomi.
Now after the update the projector start with MI logo and than shuts down, after that he start up with no screen and do nothing.
Can someone help me how to fix this. i can't get the projector in a boot menu with the remote, maybe he dont recognize the remote.
Kind Regards,
Bas
Reflash projector's Stock ROM.
jwoegerbauer said:
Reflash projector's Stock ROM.
Click to expand...
Click to collapse
I have the stock ROM on USB now, but hè will not install it. When i press the home and enter button and plug the power cable. Hè start up with the MI logo and shuts down, then start up with no screen.
Are there other ways to install the stock ROM?
AFAIK the Stock ROM typically gets installed by means of ADB Sideload method:
Code:
adb devices
adb reboot sideload
adb sideload <FULL-PATH-TO-STOCK-ROM-ZIP-FILE-ON-PC-HERE>
jwoegerbauer said:
AFAIK the Stock ROM typically gets installed by means of ADB Sideload method:
Code:
adb devices
adb reboot sideload
adb sideload <FULL-PATH-TO-STOCK-ROM-ZIP-FILE-ON-PC-HERE>
Click to expand...
Click to collapse
Thanks
Im gonna search out and try that option.
I let it know when it works. maybe i have some questions.
jwoegerbauer said:
AFAIK the Stock ROM typically gets installed by means of ADB Sideload method:
Code:
adb devices
adb reboot sideload
adb sideload <FULL-PATH-TO-STOCK-ROM-ZIP-FILE-ON-PC-HERE>
Click to expand...
Click to collapse
Im trying something, but do you have a discription how to make that USB with the Stock Rom?
I got your files on my pc. I have a 16GB USB format FAT32.
What is the way to make that sideload with the ROM version?
Im sorry for the questions, but i have never done this before.
I have done thist thing
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
The USB-stick, once plugged into Windows computer, in Windows OS is recognized as a drive: note down this drive letter returned. Then sequentially run the ADB commands listed above.
jwoegerbauer said:
The USB-stick, once plugged into Windows computer, in Windows OS is recognized as a drive: note down this drive letter returned. Then sequentially run the ADB commands listed above.
Click to expand...
Click to collapse
Must i do the commander when the stock ROM is on the USB?
By what command must i write the letter from the USB?
Vross46 said:
Must i do the commander when the stock ROM is on the USB?
By what command must i write the letter from the USB?
Click to expand...
Click to collapse
My drive letter is :e
Didn't think it can be so difficult.
Assumed the Stock ROM's file is located in root of E: drive then the ADB command in your case becomes
Code:
adb sideload E:\<NAME-OF-STOCK-ROM-ZIP-FILE>
where you have to substitute
<NAME-OF-STOCK-ROM-ZIP-FILE>
by ROM's true file name
jwoegerbauer said:
Didn't think it can be so difficult.
Assumed the Stock ROM's file is located in root of E: drive then the ADB command in your case becomes
Code:
adb sideload E:\<NAME-OF-STOCK-ROM-ZIP-FILE>
where you have to substitute
<NAME-OF-STOCK-ROM-ZIP-FILE>
by ROM's true file name
Click to expand...
Click to collapse
ah ok. lets try.
It seems not so difficult but, for the first time is everything more difficult
What do i wrong. sorry! I do really my best
1, i have a format 16gb usb FAT32
2. i have install ADB installer.
3. i have download the stock rom (see picture)
4. my drive name is e:
5. When i zip my stock rom file, i got an another zip file, and an file of 1kb
in the next picture is what i do in CMD
anglee_full_9.0.0.1911 is my zipped stock rom downloadfile
the other 2 are the unzipped files from the first file
1st screenshot provided above shows
1. Device isn't connected via USB-cable with PC or, if, not powered on
2. The ROM's archive name you entered is without fileextension -> required :ZIP
If ROM's archive is packed as .RAR file then you have it to repack to .ZIP file
I think it will not gonna help.
When i connect my projector to the pc, the pc dont recognize him.
What i try, nothing works.
but thanks for your help anyway
Have you ever enabled "USB Debug" in Android's Settings -> Developer otions?
I dont know if its enabled. But now in can not come in the menu.
MI logo shine for 1 second. And it turns off.
So i have no possibillity to check
Vross46 said:
I dont know if its enabled. But now in can not come in the menu.
MI logo shine for 1 second. And it turns off.
So i have no possibillity to check
Click to expand...
Click to collapse
Hello Vross46, have you been able to solve your problem? I’m stuck with the logo as well

Categories

Resources