Jump to content

Pro¹ X - backup, restore and repair device specific partitions


Recommended Posts

one user suggests button combo instead of adb to get into edl:

what is this "full" mode vs not full mode? I tried with buttons to no difference, still times out.

are these guide's / tooling up to date? the information seems a little scattered between threads.

is there any official documentation or official tooling from fx for flashing process and proper backing up procedure?

please advise as I do not wish to brick my device. it appears it is easy to do so:

https://community.fxtec.com/topic/4022-pro1x-is-bricked-is-there-any-way-to-save-it/?do=findComment&comment=69661

Edited by phukfxtec
Link to post
Share on other sites
  • Replies 83
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Popular Posts

It is highly advised to take a backup of your device specific partitions right after you receive the device. Update 20220829: tl:dr: Community has not found a safe way to restore backups as of yet.

Edited the first post with working repair instructions using restorecon. Ii just now successfully found that way to be working on my side. 🥳🎉

Yet another way how to backup persist (or any other) partition even without PC, with rooted phone and Magisk: Install Magisk module "backup" and reboot. After that using some terminal app in phon

55 minutes ago, phukfxtec said:

is there any official documentation or official tooling from fx for flashing process and proper backing up procedure?

You could start at the thread pinned to the top in the community, where I keep various links like these....

  • Confused 1
Link to post
Share on other sites
23 minutes ago, EskeRahn said:

You could start at the thread pinned to the top in the community, where I keep various links like these....

That is where I started.

It led me here. Where edl is failing to backup the persist partition.

Edited by phukfxtec
Link to post
Share on other sites

linux host and linux livedvd vm continue to give issue... unknown root cause.

tried edl on different machine with windows.

hit issue: "NotImplementedError: Operation not supported or unimplemented on this platform"....solution was to reinstall WinUSB driver in Zadig: https://github.com/bkerler/edl/issues/349#issuecomment-2060152724

backup successful.

Edited by phukfxtec
Link to post
Share on other sites
On 8/12/2022 at 7:44 PM, mosen said:

tl:dr: Community has not found a safe way to restore backups as of yet. Making below described backups is still highly advised for a future where some wizard found a reliable way to restore those backups.

new question: if flash linux, how to go back to android if can't restore backup?

op make this note that there is no way to restore?

Edited by phukfxtec
Link to post
Share on other sites
4 hours ago, phukfxtec said:

new question: if flash linux, how to go back to android if can't restore backup?

op make this note that there is no way to restore?

You can flash different OS (like Lineage OS or Sailfish OS) and go back to stock Android just by flashing it IF you do not brick the device during the process. The device is not completely wiped when you flash different OS. Idea of the back up is to save all partitions just in case if some error happens. However, currently there is no way restore those back ups but it does not mean that they are useless or could not be used in the future.

So, just be careful when flashing 😉.

  • Thanks 1
Link to post
Share on other sites
25 minutes ago, rossko said:

I know you're probably going to call me a newbie or something

never. we all start somewhere.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

I can't provide much better steps than what is already in the OP. I guess start here:

  1. backup persist.
    1. try adb method first. requires unlocked and a recovery boot
    2. if above doesn't work, install EDL (see readme and OP)
    3. edl r persist persist_backup.img
      edl r modemst2 modemst2_backup.img
      edl r modemst1 modemst1_backup.img
      edl r fsc fsc_backup.img
      edl r fsg fsg_backup.img
  2. flash your OS of choice:

 

Edited by phukfxtec
  • Thanks 3
Link to post
Share on other sites
  • 9 months later...

I have just pulled the backups now.

Here's what I did.

1)  Unlocked bootloader following this guide --> (ATTENTION, at the end of step 3, after enabling USB Debugging, find another option on the same screen called "OEM unlocking". Enable that option too, else you cannot unlock the bootloader. Then, proceed with the remaining steps on the guide)

2) Installed Magisk and rooted phone following this guide --> 

3) Downloaded LineageOS 22.2 recovery.img only at this point. Booted to the bootloader, by issuing the command below:

adb reboot bootloader

Then flashed the LineageOS Recovery with the command below:

fastboot flash recovery recovery.img

After flashing was finished, I selected "boot to recovery" on the bootloader.

4) Once on the Lineage Recovery, I selected "enable ADB" and followed Eske's guide found here --> https://eskerahn.dk/?p=4633

One adjustment to Eske's instructions is that I replaced his ls command with:

adb ls -lah /dev/block/by-name

And, from that list, I could find the device names for the partitions that are recommended that we back up. This is what they were linked to in my particular phone:

lrwxrwxrwx 1 root root   15 1970-01-01 00:47 fsc -> /dev/block/sdf5
lrwxrwxrwx 1 root root   15 1970-01-01 00:47 fsg -> /dev/block/sdf4
lrwxrwxrwx 1 root root   15 1970-01-01 00:47 modemst1 -> /dev/block/sdf2
lrwxrwxrwx 1 root root   15 1970-01-01 00:47 modemst2 -> /dev/block/sdf3
lrwxrwxrwx 1 root root   15 1970-01-01 00:47 persist -> /dev/block/sda2

So, I just ran the "adb push <source> <destination_backup.img>" command for each of the above.

These are the sizes for each of the images:

-rw-r--r-- 1 localuser domain users   131072 jun 30 17:11 fsc_backup.img
-rw-r--r-- 1 localuser domain users  2097152 jun 30 17:11 fsg_backup.img
-rw-r--r-- 1 localuser domain users  2097152 jun 30 17:10 modemst1_backup.img
-rw-r--r-- 1 localuser domain users  2097152 jun 30 17:10 modemst2_backup.img
-rw-r--r-- 1 localuser domain users 33554432 jun 30 17:09 persist_backup.img


Hopefully my backups are correct? 32M for persist, 2M for modemst1, modemst2 and fsg; and 128K for fsc.

Edited by agent008
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

Terms