UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    adb backup woes: UT 14, Nexus 5

    Scheduled Pinned Locked Moved Support
    8 Posts 3 Posters 1.2k Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
      Reply
      • Reply as topic
      Log in to reply
      This topic has been deleted. Only users with topic management privileges can see it.
      • C Offline
        circ
        last edited by circ

        # 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)

        LakotaubpL 1 Reply Last reply Reply Quote 0
        • LakotaubpL Offline
          Lakotaubp @circ
          last edited by

          @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.

          C 1 Reply Last reply Reply Quote 0
          • C Offline
            circ @Lakotaubp
            last edited by

            @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

            1 Reply Last reply Reply Quote 0
            • C Offline
              circ
              last edited by

              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)

              1 Reply Last reply Reply Quote 0
              • C Offline
                circ
                last edited by circ

                ... 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....

                1 Reply Last reply Reply Quote 0
                • dobeyD Offline
                  dobey
                  last edited by

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

                  C 1 Reply Last reply Reply Quote 0
                  • C Offline
                    circ @dobey
                    last edited by circ

                    @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
                    
                    1 Reply Last reply Reply Quote 0
                    • dobeyD Offline
                      dobey
                      last edited by dobey

                      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.

                      1 Reply Last reply Reply Quote 1
                      • First post
                        Last post