Question What do I use to backup my Samsung a7 lite gsi? - Samsung Galaxy Tab A7 Lite

What do I use to backup my Samsung a7 lite ?

I recommend backup app that has root. If not encrypted, you can also use TWRP. but don't forget to backup Internal Storage manually
Code:
adb pull -a /sdcard

aIecxs said:
I recommend backup app that has root. If not encrypted, you can also use TWRP. but don't forget to backup Internal Storage manually
Code:
adb pull -a /sdcard
Click to expand...
Click to collapse
What do -a mean?

Swift

type 'adb help' for usage
Code:
device commands:
adb push <local>... <remote>
- copy files/dirs to device
adb pull [-a] <remote>... <local>
- copy files/dirs from device
(-a preserves file timestamp and mode)

Related

[Q] How to format Internal SD Card?

Hello there. I have a MyPhone A888 (4.0.4) and I was planning to wipe the Internal SD Card. How exactly do I do this? I have not rooted my phone yet also so if anyone can provide a link or tutorial as to how to root this phone, then that would be great. But really, my main question is as to how to format the internal sd card. I am not very sure yet if TWRP or CWM supports my phone since I haven't used them yet. Thanks!
Likach said:
Hello there. I have a MyPhone A888 (4.0.4) and I was planning to wipe the Internal SD Card. How exactly do I do this? I have not rooted my phone yet also so if anyone can provide a link or tutorial as to how to root this phone, then that would be great. But really, my main question is as to how to format the internal sd card. I am not very sure yet if TWRP or CWM supports my phone since I haven't used them yet. Thanks!
Click to expand...
Click to collapse
To wipe all your internal sdcard using adb (see attachment for adb folder), toggle usb debugging mode in your device then connect device to pc by usb cable and go to adb folder and open linux terminal or windows command prompt there (by right-click on any empty space while holding shift button) and enter these commands:
Code:
adb shell
rm -f /mnt/sdcard/*.*
adb kill-server
Make sure to remove your external sd card first, since in android 4.0.4 the external sd card is a part of internal sdcard
majdinj said:
To wipe all your internal sdcard using adb (see attachment for adb folder), toggle usb debugging mode in your device then connect device to pc by usb cable and go to adb folder and open linux terminal or windows command prompt there (by right-click on any empty space while holding shift button) and enter these commands:
Code:
adb shell
rm -f /mnt/sdcard/*.*
adb kill-server
Make sure to remove your external sd card first, since in android 4.0.4 the external sd card is a part of internal sdcard
Click to expand...
Click to collapse
I don't need to be rooted for this right? And I open the adb folder right then open command prompt?
Likach said:
I don't need to be rooted for this right? And I open the adb folder right then open command prompt?
Click to expand...
Click to collapse
Technically no root needed since it is not system partition that you are going to manipulate.
Open adb folder, put mouse cursor on any empty space, hold shift key, and press mouse right-click, choose open command window here and then enter the commands mentioned.
majdinj said:
Technically no root needed since it is not system partition that you are going to manipulate.
Open adb folder, put mouse cursor on any empty space, hold shift key, and press mouse right-click, choose open command window here and then enter the commands mentioned.
Click to expand...
Click to collapse
This is what appears when I do it. Is this what is supposed to show up?
C:\Users\Pabben\Desktop\Stuffs\Chrome Downloads\adb>adb shell
rm -f /mnt/sdcard/*.*
adb [email protected]:/ $ rm -f /mnt/sdcard/*.*
rm failed for -f, No such file or directory
255|[email protected]:/ $
Likach said:
This is what appears when I do it. Is this what is supposed to show up?
C:\Users\Pabben\Desktop\Stuffs\Chrome Downloads\adb>adb shell
rm -f /mnt/sdcard/*.*
adb [email protected]:/ $ rm -f /mnt/sdcard/*.*
rm failed for -f, No such file or directory
255|[email protected]:/ $
Click to expand...
Click to collapse
This message means wrong directory or verbose action.
Try to type this one:
Code:
adb shell "rm -r /mnt/sdcard/*"
If still, then can you check your device in which directory the internal sdcard is on?
majdinj said:
This message means wrong directory or verbose action.
Try to type this one:
Code:
adb shell "rm -r /mnt/sdcard/*"
If still, then can you check your device in which directory the internal sdcard is on?
Click to expand...
Click to collapse
This is what I got:
C:\Users\Pabben\Desktop\Stuffs\Chrome Downloads\adb>adb shell "rm -r /mnt/sdcard
/*"
adb server is out of date. killing...
* daemon started successfully *
rm failed for /mnt/sdcard/*, Permission denied
C:\Users\Pabben\Desktop\Stuffs\Chrome Downloads\adb>
What is the name of the folder of the Internal SD card? There is a folder here called App2SD. Is that it?
Likach said:
This is what I got:
C:\Users\Pabben\Desktop\Stuffs\Chrome Downloads\adb>adb shell "rm -r /mnt/sdcard
/*"
adb server is out of date. killing...
* daemon started successfully *
rm failed for /mnt/sdcard/*, Permission denied
C:\Users\Pabben\Desktop\Stuffs\Chrome Downloads\adb>
What is the name of the folder of the Internal SD card? There is a folder here called App2SD. Is that it?
Click to expand...
Click to collapse
Yes, the command now is correct, but you had been welcomed by "Permission denied" message. and since you are not rooted, nor cwm recovery installed (with emmc format function), so you will not be able to do it through these commands, because we will need to have mounting command to overcome the "Permission denied" message.
So what is left to do, is to do it manually (manual deleting by going to sdcard folder and delete what you can delete after showing all hidden folders)
wow this is an old thread hahah thanks for the help from July 2020

SOLVED: URGENT HELP How To Make a Nandroid Backup from ADB Shell Command Line

Hi all,
I have a urgent question.
First of all thanks to everyone who reply to me.
Unfortunately I dropped my S3 to the floor and broke the screen.
Now I can't see anything and do not respond to touch.
I can change it for a new one on repair but I can't loose all my data and configs.
I want to make a nandroid backup but I can't see anything in the screen.
Perhaps someone could tell me how can I lauch the script for a full nandroid backup from the adb shell command line.
Or perhaps someone could guide me using the up/down volume buttons and the home or power buttons, but this is less reliable because options can change in quantity or order. I have a Galaxy S3 with recovery philz_touch_6.15.4-i9300
I have searched about "adb backup" and found about the adb backup command but this can not work for me because when I use the command it is supposed that a confirmation screen is opened and I have to "click" on something like a "permit backup" button, but I have my screen broken so I can not see anything (all is black) and touch do not work either.
Someone told me to enter recovery mode and then use this adb backup command but it only creates a cero bytes backup file and do anything more.
Someone told me to use "adb pull /data/*" but when I enter recovery mode and run adb shell, the /data/ folder is empty, I suppose that it is not mounted by default. Same for /system/ folder
How can I mount it in rw?
Another way: I have an automatic backup with titanium scheduled for next Sunday at 02:00
I have tried from adb shell to change date and time but got an error, gloogled it without solution
Command:
date -s 201403160150
Output:
__bionic_open_tzdata: couldn't find any tzdata when looking for localtime!
__bionic_open_tzdata: couldn't find any tzdata when looking for GMT!
__bionic_open_tzdata: couldn't find any tzdata when looking for posixrules!
date: can't set date: Unknown error -38
Sun Mar 16 01:50:00 GMT 2014
Any idea?
What I only can do is to connect via adb in recovery mode, (normal boot does not work adb, shows the device as offline, probably because need interaction to permit adb or anything else that now I can not do) and reboot in recovery or download mode.
I need to run the backup script to external sd via adb command as if I was in recovery and "click" on the backup to external sd option in recovery.
Or perhaps with a windows utility that can do a nandroid backup...
Is there any utility or something that can do a nandroid backup from adb or from download mode?
I will be very grateful to anyone who can help me.
Thanks in advance and best regards
SOLUTION:
Ok, it's solved
I got OnAndroid from here http://forum.xda-developers.com/showthread.php?t=1620255
Downloaded too the patch file from here https://github.com/ameer1234567890/OnlineNandroid/wiki/Supported-Devices
- Reboot into recovery
- adb shell
- mount /system
- mount /data
- mkdir /storage/sdcard1
- mount /dev/block/mmcblk1p1 /storage/sdcard1
- exit
- copy onandroid to where adb.exe is (platform-tools folder)
- adb pull onandroid /system/bin
- copy partlayout4nandroid to where adb.exe is (platform-tools folder)
- adb pull partlayout4nandroid /system
- adb shell
- onandroid -c S3Backup1
This will make a complete nandroid backup to /storage/sdcard1/clockworkmod/backup/S3Backup1
Then, when I receibe the new S3 I simply install recovery and restore the backup
Thanks all for your help
Try this:
https://plus.google.com/103583939320326217147/posts/Dr5urg4XY8Q
Sent from my GT-I9505G using Tapatalk
RK said:
Try this:
https://plus.google.com/103583939320326217147/posts/Dr5urg4XY8Q
Sent from my GT-I9505G using Tapatalk
Click to expand...
Click to collapse
dont work
"adb backup" creates cero size backup files, I don't know why
Thanks for your reply
Ok, I think it's solved
I will confirm it tomorrow, when I receive my new S3
By the way, I got OnAndroid from here http://forum.xda-developers.com/showthread.php?t=1620255
Downloaded too the patch file from here https://github.com/ameer1234567890/OnlineNandroid/wiki/Supported-Devices
- Reboot into recovery
- adb shell
- mount /system
- mount /data
- mkdir /storage/sdcard1
- mount /dev/block/mmcblk1p1 /storage/sdcard1
- exit
- copy onandroid to where adb.exe is (platform-tools folder)
- adb pull onandroid /system/bin
- copy partlayout4nandroid to where adb.exe is (platform-tools folder)
- adb pull partlayout4nandroid /system
- adb shell
- onandroid -c S3Backup1
This will make a complete nandroid backup to /storage/sdcard1/clockworkmod/backup/S3Backup1
Tomorrow I will try to restore this nandroid backup to my new phone and test if all is ok.
Thanks all for your help
Ok, confirmed, it works! XD
Edit the first post to give explanations of how to solve it.
Thanks all.

[Q] Make a full backup for flashing with busybox

Hello
There's a way for making a backup with RAW extension that can be flashed with fastboot in asus fonepad (i don't know about others)
See this: http://forum.xda-developers.com/showthread.php?t=1818321
Back up of the whole memory block (via adb)
Connect the phone in ADB mode and unlock the screen.
Open one Cygwin Terminal and enter (replace mmcblk0 if needed):
Code:
adb forward tcp:5555 tcp:5555
adb shell
su
/system/xbin/busybox nc -l -p 5555 -e /system/xbin/busybox dd if=/dev/block/mmcblk0
You will see the cursor blinking at the left. Now the phone is waiting to send the block over the network.
Open another Cygwin terminal and type:
Code:
adb forward tcp:5555 tcp:5555
cd /path/to/store/the/backup
nc 127.0.0.1 5555 | pv -i 0.5 > mmcblk0.raw
You will see how the image size is growing until it finishes. Now you have the whole phone backed up in raw format. You can see the contents of the GPT partition with gptfdisk tool, available for windows, linux and such. See official website and sourceforge to get it. You can do it the same from ClockWorkMod Recovery but you have to mount first the /system partition since the busybox included with clockworkmod does not come with netcat and you have to use the one from the system partition.
With further linux tools you could edit or extract single partitions from the whole block.
Click to expand...
Click to collapse
But it's for rooted devices only. how can i make a backup with busybox non-root?

[Question][ADB] How to "adb push" with timestamps like "adb pull -a"

[Question][ADB] How to "adb push" with timestamps like "adb pull -a"
Hello, as said in the title of the post, I need to push photos to my phone but with their original timestamps. I backupped my internal storage with the command
Code:
adb pull -a -p /sdcard "PC_directory"
But I need a command to re-transfer everything back to my phone. I'd like to do this, because othewise, all the photos in my gallery will be set to the actual phone's date. Is there a way to do that? Thank you in advance!
Would also like to know if there is a solution to transfer files via adb while preserving timestamps.
You may use dd command to do a 1:1 ( bitwise ) copy of data / files - requires the source data / files are housed in an .IMG-file.
I believe you can achieve it by creating an archive with tar and output it to stdout. Then pipe it to adb exec-in with a tar command to extract it on the phone.
Update: tested it out and it seems that exec-in outputs to a file and you need to create an intermediate archive on the receiving device.

[Solved] How to adb pull to any other directory than platform-tools?

Hi there,
The device is rooted.
I tried
Code:
adb pull /dev/block/mmcblk0p43 > /users/wenyuan/desktop/android/43.img
(mmcblk0p43 is userdata partition).
But the command was just stuck there and did not produce any results.
Would it be possible to adb pull partition (ex. userdata) to any other location than under platform-tools directory?
Would it be possible to adb pull partition even to an external disk?
Thanks.
-- Solution for internal disk--
The right code:
Code:
adb pull /dev/block/mmcblk0p43 /users/wenyuan/desktop/android/43.img
Remove ">"
do not use ">" in the command
CXZa said:
do not use ">" in the command
Click to expand...
Click to collapse
Thanks. It worked.
But would it be possible to adb pull a partition to an external disk?
I tried
Code:
adb pull /dev/block/mmcblk0p43 /Untitled/wenyuan/43.img
Untitled being the name of the external hard disk.
It did not work.
it works like this. maybe the external hard disk is not ready. also take care of fat32 file system only accept files < 4gb
if "Untitled" contains whitespaces you must quote path
aIecxs said:
it works like this. maybe the external hard disk is not ready. also take care of fat32 file system only accept files < 4gb
if "Untitled" contains whitespaces you must quote path
Click to expand...
Click to collapse
Given that,
1. in
adb pull /dev/block/mmcblk0p43 /users/wenyuan/desktop/android/43.img,
/users is under Macintosh HD; and
2. "Untitled", as an external hard disk, has the same status as Macintosh HD,
there should be some code indicating the location to "Untitied" hard disk, (ex. cd).
I tried
Code:
adb pull /dev/block/mmcblk0p43 cd /untitled/android/43.img
and it did not work.
type 'adb help' for usage
Code:
device commands:
adb push <local>... <remote>
- copy files/dirs to device
adb pull [-a] <remote>... <local>
- copy files/dirs from device
(-a preserves file timestamp and mode)
cd is cmd to change dir (unrelated to adb), don't invent fantasy usage.
btw "it did not work" is no meaningful error message. I am pretty sure the shell replied with something you can google for...
CXZa said:
do not use ">" in the command
Click to expand...
Click to collapse
Am I right in saying that
">" can not be used in "adb pull" but should be used in "adb shell su" and "adb exec-out", in case of pulling partitions? Or in any other circumstances?
Oh no, adb help and google search were no help.
https://bash.cyberciti.biz/guide/Standard_output
https://www.cyberciti.biz/faq/redirecting-stderr-to-stdout
aIecxs said:
https://bash.cyberciti.biz/guide/Standard_output
https://www.cyberciti.biz/faq/redirecting-stderr-to-stdout
Click to expand...
Click to collapse
Thanks for the links.
But I meant adb help and Google search did not help on how to adb pull device partition directly to an external disk.
refer to post #6
there is only one exact usage for adb pull
Code:
adb pull [-a] <remote>... <local>
where <local> is valid path to any directory on PC (whatever it is)
in case the command failed it will output meaningful error message. search for that error message (or post here)
what else do you expect to know?

Categories

Resources