adb backup woes: UT 14, Nexus 5



  • # adb backup -apk -obb -shared -all -f ./current.ab

    adb prompts me to unlock the device with:

    Now unlock your device and confirm the backup operation...

    Device never prompts, backup never starts (55b ./current.ab is created)
    Do I need to reboot to bootloader first and do something I don't know what? (backup when in bootloader fails)



  • @circ Developer mode is on yes? You granted access to the phone via the pop up box then sudo fastboot OEM unlock.
    But I thought nexus 5 was unlocked might be wrong though.



  • @lakotaubp thanks, yes - OEM unlock was an install step.
    adb devices
    shows the N5

    I can do things like adb push myfile.txt /home/phablet/Downloads without issue



  • so, here's some fun ->

    > adb version
    #Android Debug Bridge version 1.0.36
    #Revision 1:7.0.0+r33-2
    > adb backup -these are not any kind of acceptable params ....
    Now unlock your device and confirm the backup operation...
    >
    

    that adb backup cmd is verbatim...
    Where do I go to get help with this? I'm on pureOS (debian)



  • ... and after a direct grab of the toolkit here : https://developer.android.com/studio/releases/platform-tools

    > ~/Downloads/src/platform-tools/adb version
    #Android Debug Bridge version 1.0.40
    #Version 4986621
    > ~/Downloads/src/platform-tools/adb backup totalgarbageandN0nS3nse
    Now unlock your device and confirm the backup operation...
    

    which is the same 'error'
    ..so, I'm guessing it's definitely a UBports / this particular phone/install related issue....



  • If you want a full system back-up via ADB, you need to do it via recovery, not developer mode in the running OS.



  • @dobey said in adb backup woes: UT 14, Nexus 5:

    If you want a full system back-up via ADB, you need to do it via recovery, not developer mode in the running OS.

    thanks, yes - this is all happening in recovery mode :

    > adb devices
    List of devices attached
    0b3a1eb703301be3	recovery
    


  • Ah, I don't think adb backup works with UT, because it's not an Android ROM, and that feature only works with Android.

    You need to adb pull /data/*-data or something like that. I forget the exact command.


Log in to reply
 

Looks like your connection to UBports Forum was lost, please wait while we try to reconnect.