Themes / Apps / Mods [TOOL][NO ROOT] PartitionsBackupper | Nandroid alternative

Search This thread

Raygen

Senior Member
Feb 21, 2014
127
60
Mantova
/*
* Your warranty is... still valid!
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed.
* Please do some research yourself before asking or use anything on this thread.
* I do not offer private assistance via Telegram or any other social outside XDA.
*/

I've noticed that some users, myself included, are reporting that Nandroid backups made from TWRP are not always reliable for restore the phone to a previous working state from a soft brick / bootloop scenario.

PartitionsBackupper​

That's where this tool come in. It's a simple batch script that uses adb shell and fastboot commands to backup the images of all partitions present in /dev/block with dd. All without root.



Requirements:

  • Unlocked bootloader
  • TWRP recovery
  • ADB & Fastboot drivers + MTK VCOM drivers
  • Tested and built only for the OnePlus Nord 2

Changelog:
  • 1.1
    Bugfixes
  • 1.2
    Code enhancement
  • 1.3
    Added missing partitions
    Code enhancement
  • 1.4
    Added log file generation
    Vbmeta will flash for last
  • 1.5
    Enhanced log generation
    Enhanced vbmeta flashing
  • 1.6
    Bugfixes
    Fixed fastboot/bootloader flash process
  • 1.7
    Code enhancement
    Fixed boot_para flash process
  • 1.8
    Added adb/fastboot flash issues detection
  • 1.8.1
    Added linux version!

Not working:
  • This tool will still not backup the system and my_* partitions. A fix is coming up.
  • This tool WILL NOT backup the userdata partition.
    Because it would backup the entire internal storage along with it.
    I recommend to still do a Nandroid backup with TWRP of just the data partition if you wish to back it up.



DOWNLOAD
↓ attached file ↓
 

Attachments

  • PartitionsBackupper_v1.8.zip
    5.2 KB · Views: 1,717
Last edited:

Quercy

Member
Oct 2, 2016
47
9
OnePlus 9 Pro
OnePlus Nord 2 5G
Hi Raygen. I tried the PartitionsBackupper app and I don't know what I'm doing wrong but I'm not backing up anything. I run the .bat command under adb commands and I even check that I have access to my smartphone with the adb devices command but nothing. I have the menu I chose option 1 "backup". It even offers me to transfer the backup to PC but the file is empty.
For this application to work do you have to be in fastboot mode? With TWRP ???
Any idea? In the logfile I just have the info 0% backup... Last info I have TWRP but no longer Magisk because fed up with having bootloops with this Nord 2 which does not support Root.
 
Last edited:

Raygen

Senior Member
Feb 21, 2014
127
60
Mantova
Hi Raygen. I tried the PartitionsBackupper app and I don't know what I'm doing wrong but I'm not backing up anything. I run the .bat command under adb commands and I even check that I have access to my smartphone with the adb devices command but nothing. I have the menu I chose option 1 "backup". It even offers me to transfer the backup to PC but the file is empty.
For this application to work do you have to be in fastboot mode? With TWRP ???
Any idea? In the logfile I just have the info 0% backup... Last info I have TWRP but no longer Magisk because fed up with having bootloops with this Nord 2 which does not support Root.
Hello, are you still encountering this issue? If so, can you attach the log file?
 

Neosphaler

New member
May 21, 2022
2
0
Hello !

Got a problem rn with the tool sadly, here's the PBlog
"Logging started...

Main menu
restore
Please put the "PartitionsBackup" folder with all the partition images in the same directory of this script.
exit 1 "

Thanks for your help !

Edit : How stupid, hving the .sh file in the repertory is the problem. Simply delete it if ur on windows and it will work !
 

ankur haloi

New member
May 24, 2022
1
0
i have done the same thing but now when i am trying to boot to system it is showing only android logo ....what to do now pls help me
 

Boowho 1234

Member
Mar 1, 2023
10
2
Assume since this is such an old thread, the dev is no longer monitoring it??
I need some help with it.

Thanks
 

Raygen

Senior Member
Feb 21, 2014
127
60
Mantova
First thanks for the reply..... I've studied your code extensively and have figured out that my device throws an error saying "out of memory". It's a Pixel 3a and has no external SD card and only 64GB of main memory. I think I'm screwed.
Well that's your issue. This tool is made and tested only for the OnePlus Nord 2.
It can technically work with other devices since it uses a pretty universal method for searching and copying the partitions, but I can't ensure it working or offer support in that case, since I can't test it or troubleshoot it with other devices.
 

Boowho 1234

Member
Mar 1, 2023
10
2
Well that's your issue. This tool is made and tested only for the OnePlus Nord 2.
It can technically work with other devices since it uses a pretty universal method for searching and copying the partitions, but I can't ensure it working or offer support in that case, since I can't test it or troubleshoot it with other devices.
Understand your response completely and did not expect you to fix it for me. I am modifying your code such that when it throws the error, I call your routine to transfer the files to the PC, then delete them from the device. Then return to the main thread and resume from the out of memory error. This should be all I need.

Once again I thank you for making the original .bat file script and for making it available to us.

BTW, I understand that Nandroid backups contain EVERYTHING; this would include things like settings made to apps, any data the dev may wish to hide from the user, etc. True??
 
  • Like
Reactions: Raygen

Top Liked Posts

  • There are no posts matching your filters.
  • 6
    /*
    * Your warranty is... still valid!
    * I am not responsible for bricked devices, dead SD cards,
    * thermonuclear war, or you getting fired because the alarm app failed.
    * Please do some research yourself before asking or use anything on this thread.
    * I do not offer private assistance via Telegram or any other social outside XDA.
    */

    I've noticed that some users, myself included, are reporting that Nandroid backups made from TWRP are not always reliable for restore the phone to a previous working state from a soft brick / bootloop scenario.

    PartitionsBackupper​

    That's where this tool come in. It's a simple batch script that uses adb shell and fastboot commands to backup the images of all partitions present in /dev/block with dd. All without root.



    Requirements:

    • Unlocked bootloader
    • TWRP recovery
    • ADB & Fastboot drivers + MTK VCOM drivers
    • Tested and built only for the OnePlus Nord 2

    Changelog:
    • 1.1
      Bugfixes
    • 1.2
      Code enhancement
    • 1.3
      Added missing partitions
      Code enhancement
    • 1.4
      Added log file generation
      Vbmeta will flash for last
    • 1.5
      Enhanced log generation
      Enhanced vbmeta flashing
    • 1.6
      Bugfixes
      Fixed fastboot/bootloader flash process
    • 1.7
      Code enhancement
      Fixed boot_para flash process
    • 1.8
      Added adb/fastboot flash issues detection
    • 1.8.1
      Added linux version!

    Not working:
    • This tool will still not backup the system and my_* partitions. A fix is coming up.
    • This tool WILL NOT backup the userdata partition.
      Because it would backup the entire internal storage along with it.
      I recommend to still do a Nandroid backup with TWRP of just the data partition if you wish to back it up.



    DOWNLOAD
    ↓ attached file ↓
    1
    That is a really cool tool / script you made! I will test it out as soon as my motherboard (!) is replaced by OnePlus. THANK YOU!
    1
    Just uploaded a new version with better logs.

    Why my CMD screen closes immediately after entering any options? @Raygen
    Try with the new version and paste here what's written in the PBlog.txt file, as said
    1
    Well that's your issue. This tool is made and tested only for the OnePlus Nord 2.
    It can technically work with other devices since it uses a pretty universal method for searching and copying the partitions, but I can't ensure it working or offer support in that case, since I can't test it or troubleshoot it with other devices.
    Understand your response completely and did not expect you to fix it for me. I am modifying your code such that when it throws the error, I call your routine to transfer the files to the PC, then delete them from the device. Then return to the main thread and resume from the out of memory error. This should be all I need.

    Once again I thank you for making the original .bat file script and for making it available to us.

    BTW, I understand that Nandroid backups contain EVERYTHING; this would include things like settings made to apps, any data the dev may wish to hide from the user, etc. True??
    1
    Alright sir, I understand your schedule with your studies. I was a dev for over 40 years (Yes, I'm old ; currently 80 YO) so in spite of the extensive experience am painfully SLOW. What I used to be able to do in an hour might now take me a couple of DAYS.

    I look forward to keeping in touch with you and your giving advice, etc..... When I finally get it done you are more that welcome to having a copy of your modified script.

    Mod. edit: contact removed. alecxs