System backup (locked bootloader) - E 2015 Q&A, Help & Troubleshooting

I want to make a system backup but my bootloader is locked. :/
Is this the right guide?
https://www.technipages.com/how-to-backup-your-entire-android-device
Does minimal adb suffice or do I really need the whole Android SDK?
Moreover, is TWRP still the best *rootless* way to backup nowadays?

Niii4 said:
I want to make a system backup but my bootloader is locked. :/
Is this the right guide?
https://www.technipages.com/how-to-backup-your-entire-android-device
Does minimal adb suffice or do I really need the whole Android SDK?
Moreover, is TWRP still the best *rootless* way to backup nowadays?
Click to expand...
Click to collapse
Try adb pull system

Pankaj Rai said:
Try adb pull system
Click to expand...
Click to collapse
Does this cmd make a full system (ROM) backup?
And how to restore?

Related

[Q] Anyone Know A Way To Mount SD While In Recovery?

Basically i went to flash a Rom in my phone, one of the requirements for the Rom was to format system. Not looking I, formatted SD card instead. Erasing my backup i had just made, and whipping the Rom that I was about to flash. So, what I need help with is seeing if anyone know a way to flash a Rom to my phone while in recovery, or is there a way to mount my SD Card memory while in Fastboot or recovery? I'm just looking to be able to flash any Rom in my phone to at least get it able to be used again.
CWR had an option to mount the sd card under mounts and storage. I say had because that was on my dinc2. I'm not rooted on my DNA so I don't have a custom recovery to check for you but this is how I did it in the past.
Sent from my HTC6435LVW using xda app-developers app
charlrober6 said:
Basically i went to flash a Rom in my phone, one of the requirements for the Rom was to format system. Not looking I, formatted SD card instead. Erasing my backup i had just made, and whipping the Rom that I was about to flash. So, what I need help with is seeing if anyone know a way to flash a Rom to my phone while in recovery, or is there a way to mount my SD Card memory while in Fastboot or recovery? I'm just looking to be able to flash any Rom in my phone to at least get it able to be used again.
Click to expand...
Click to collapse
Not to fret, ran into this problem last night. Both of our recoveries allow for adb sideload but ithasn't worked for me (maybe it will for you)
If it doesn't work, you can drop whatever ROM you want into your ADB folder. To make things simple, just change the name of the ROM to DNA. Go into your recovery and then cd to your adb tools from a command window. type in adb push dna.zip /sdcard/ and it'll move it to your internal storage. It takes awhile so be patient :good:
Chyrux said:
Not to fret, ran into this problem last night. Both of our recoveries allow for adb sideload but ithasn't worked for me (maybe it will for you)
If it doesn't work, you can drop whatever ROM you want into your ADB folder. To make things simple, just change the name of the ROM to DNA. Go into your recovery and then cd to your adb tools from a command window. type in adb push dna.zip /sdcard/ and it'll move it to your internal storage. It takes awhile so be patient :good:
Click to expand...
Click to collapse
Okay quick question, well questions. When typing in my adb commands, do my phone need to be in fastboot, if not when you say it needs to be in recovery do it need to be in recovery with it mounted some how or just in recovery in general. Sorry if i'm being a complete noob, but being phone less is killing me
charlrober6 said:
Okay quick question, well questions. When typing in my adb commands, do my phone need to be in fastboot, if not when you say it needs to be in recovery do it need to be in recovery with it mounted some how or just in recovery in general. Sorry if i'm being a complete noob, but being phone less is killing me
Click to expand...
Click to collapse
No problem, we all have to start somewhere. I'll give a bit of clarification.
Fastboot is a way of accessing the Android system from the bootloader, such as flashing system and boot.img's or recovery files, meaning you can't be booted into the system when you want to use Fastboot.
ADB is the android debugging bridge and can be used at just about any time your phone is booted. For the average user, it's mainly a tool to push and pull files. So, in this case since you need to push the ROM to your phone.
I'm not sure if this can be done from the bootloader since it's going to your internal storage, so you need to boot into your recovery. Once there, you don't need to do anything. just make sure that the .zip is in your ADB directory. Open up a command prompt, cd to your adb tools, then use adb push insertfilename.zip (Like I said, rename it to dna to make it easy) so the command looks like adb push dna.zip /sdcard/ This takes awhile depending on the file size (UKB took about 5 minutes, I think. Maybe longer.) so just be patient. If it gives you any type of error, just try again. Hope this helps

[Q] [HELP] Using fastboot/flashmode for pushing system files

I may have edited something wrong in build.prop and now my phone won't load after the SONY logo. I would push a stock build.prop if I had CWM but apparently I lost that after following steps to root JB with locked bootloader. All I have now is fastboot and flash mode.
Is there any way to push a file and set permissions using one of these modes? I can reflash ICS and do everything all over again but if I could just push a stock build.prop I think I can avoid the long way.
PS. Can I also get help putting CWM on this phone? I wanna keep bootlock 'coz I'm a purist like that. Lol! :silly:
do any of these modes support mounting \system and \data ??
XperiaMT27 said:
do any of these modes support mounting \system and \data ??
Click to expand...
Click to collapse
No, but fastboot can flash an update.zip according to a wiki. I don't think that's the same as a regular flashable zip is it?
Bump 'coz it's really getting tiring to reflash from zero when just one file needs editing.
androidmeda said:
Bump 'coz it's really getting tiring to reflash from zero when just one file needs editing.
Click to expand...
Click to collapse
Have you managed to solve this?
KOPRajs said:
Have you managed to solve this?
Click to expand...
Click to collapse
I ended up with reflashing only SYSTEM partition via Flashtool (don't forget to uncheck "Wipe DATA"). You are going to loose any modification of "/system" (e.g. root) but at least you won't loose your settings, apps and data.

S III efs missing not booting

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.

Question Backup and restore pixel 6?

Seeing there is no TWRP for the pixel 6 yet, was wondering if there was a way to backup my current stock rooted rom for I can flash other roms? Then flash back of I don't like it.
There's a twrp. You mind testing it for me?
enigma2446 said:
Seeing there is no TWRP for the pixel 6 yet, was wondering if there was a way to backup my current stock rooted rom for I can flash other roms? Then flash back of I don't like it.
Click to expand...
Click to collapse
An easy method of restoring to stock if you don't like a custom ROM is to use Google's recovery tool. Or you can use ADB as it has commands for backing up and - I think - restoring.
NonStickAtom785 said:
There's a twrp. You mind testing it for me?
Click to expand...
Click to collapse
Sure thanks for responding.
NonStickAtom785 said:
There's a twrp. You mind testing it for me?
Click to expand...
Click to collapse
I'm down for testing recovery for pixel 6.
NonStickAtom785 said:
There's a twrp. You mind testing it for me?
Click to expand...
Click to collapse
you have 2 users willing to twst
Flar2's AppDash works great if you have root for backing up apps and app data.
As for ROM, I haven't tried this yet, but seems quite promising:
GitHub - Magisk-Modules-Alt-Repo/backup: An android CLI partition backup tool without custom recoveries.
An android CLI partition backup tool without custom recoveries. - GitHub - Magisk-Modules-Alt-Repo/backup: An android CLI partition backup tool without custom recoveries.
github.com
@enigma2446 @shelbo The image is inside the zip archive. Tell me if anything is incorrectly working I haven't tested it yet
OK I'll give it a shot in a couple of hours and let you know
NonStickAtom785 said:
@enigma2446 @shelbo The image is inside the zip archive. Tell me if anything is incorrectly working I haven't tested it yet
Click to expand...
Click to collapse
Any special flashing instructions?
NonStickAtom785 said:
@enigma2446 @shelbo The image is inside the zip archive. Tell me if anything is incorrectly working I haven't tested it yet
Click to expand...
Click to collapse
no go.......tried booting it and flashed it....would not boot
andybones said:
Flar2's AppDash works great if you have root for backing up apps and app data.
As for ROM, I haven't tried this yet, but seems quite promising:
GitHub - Magisk-Modules-Alt-Repo/backup: An android CLI partition backup tool without custom recoveries.
An android CLI partition backup tool without custom recoveries. - GitHub - Magisk-Modules-Alt-Repo/backup: An android CLI partition backup tool without custom recoveries.
github.com
Click to expand...
Click to collapse
have no idea how to use it...tried termux but dont understand fully
enigma2446 said:
have no idea how to use it...tried termux but don;t understand fully
Click to expand...
Click to collapse
same here I may give it a go.
May need to try another terminal.. IIRC Termux can run into issues.
It seems like in terminal:
-d all
should backup all
andybones said:
same here I may give it a go.
May need to try another terminal.. IIRC Termux can run into issues.
It seems like in terminal:
-d al
Click to expand...
Click to collapse
andybones said:
same here I may give it a go.
May need to try another terminal.. IIRC Termux can run into issues.
It seems like in terminal:
-d all
should backup all
Click to expand...
Click to collapse
Yes but I'm not sure about the backup output directory ...pixel is /storage/emulated/0/
andybones said:
same here I may give it a go.
May need to try another terminal.. IIRC Termux can run into issues.
It seems like in terminal:
-d all
should backup all
Click to expand...
Click to collapse
I get this output with nothing saved due to read only file system
enigma2446 said:
Yes but I'm not sure about the backup output directory ...pixel is /storage/emulated/0/
Click to expand...
Click to collapse
This is internal.
Are you rooted? U have to be g to of installed the module
andybones said:
This is internal.
Are you rooted? U have to be g to of installed the module
Click to expand...
Click to collapse
Yes I'm rooted with the module installed.

If there is a certain files in /system partition that cannot be rewrite

Can I boot to the root filesystem using fastboot and edit the file from there?
I wanted to edit:
/etc/mkshrc
xracerx123 said:
Can I boot to the root filesystem using fastboot and edit the file from there?
I wanted to edit:
/etc/mkshrc
Click to expand...
Click to collapse
It is generally not possible to perform file changes through fastboot/bootloader. To do so, you need to have a runtime environment such as TWRP. Bootloader/fastboot generally only handles partition images.
V0latyle said:
It is generally not possible to perform file changes through fastboot/bootloader. To do so, you need to have a runtime environment such as TWRP. Bootloader/fastboot generally only handles partition images.
Click to expand...
Click to collapse
Unable to edit /etc/mkshrc
I just tried to add variables on Android /etc/mkshrc file but I get an error: Read-only file system Further, I have tried to use adb remount, but it says inaccessible or not found. I tried to use the following: mount -o remount,rw /...
forum.xda-developers.com
Do refer to the above thread, it is sort of related to this topic.
Is it possible, to edit right on the /etc itself? without going through twrp?
Is there any tools that can help?
xracerx123 said:
Unable to edit /etc/mkshrc
I just tried to add variables on Android /etc/mkshrc file but I get an error: Read-only file system Further, I have tried to use adb remount, but it says inaccessible or not found. I tried to use the following: mount -o remount,rw /...
forum.xda-developers.com
Do refer to the above thread, it is sort of related to this topic.
Click to expand...
Click to collapse
It mentions using ADB, which can only be used either through system or recovery.
xracerx123 said:
Is it possible, to edit right on the /etc itself? without going through twrp?
Click to expand...
Click to collapse
Not through bootloader or fastboot. You can dump an image, edit it, and reflash it, but this would all be much more complicated than using TWRP, which would allow you to mount the partition as r+w so you can effect the edit you want.
xracerx123 said:
Is there any tools that can help?
Click to expand...
Click to collapse
Yes...TWRP.
V0latyle said:
It mentions using ADB, which can only be used either through system or recovery.
Not through bootloader or fastboot. You can dump an image, edit it, and reflash it, but this would all be much more complicated than using TWRP, which would allow you to mount the partition as r+w so you can effect the edit you want.
Yes...TWRP.
Click to expand...
Click to collapse
I am using Pixel 6A, currently there is no TWRP. https://twrp.me/Devices/
xracerx123 said:
I am using Pixel 6A, currently there is no TWRP. https://twrp.me/Devices/
Click to expand...
Click to collapse
Details like this are beneficial when asking questions.
The short answer to your original question is no, what you want to do is not possible.
is your bootloader even unlockable?
https://www.xda-developers.com/how-to-unlock-bootloader-root-magisk-google-pixel-6a
xracerx123 said:
I am using Pixel 6A, currently there is no TWRP.
Click to expand...
Click to collapse
but there is Evolution X custom recovery at least
https://forum.xda-developers.com/t/4514881

Categories

Resources