adb backup only creates 2GB file then hangs
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
android-tools (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
$ lsb_release -rd
Description: Ubuntu 16.04.1 LTS
Release: 16.04
$ arch
i686
$ apt-cache policy android-tools-adb
android-tools-adb:
Installed: 5.1.1r36+
Candidate: 5.1.1r36+
Version table:
*** 5.1.1r36+
100 /var/lib/
5.
500 http://
BUG DESCRIPTION:
================
At least on i386 the files created by adb backup are limited to 2GB.
It seems adb is not built with -D_FILE_
This is basically a duplicate of bug in Debian # 700461 (https:/
FIX:
====
update makefile:
$ diff -Nurp android-
diff -Nurp android-
--- android-
+++ android-
@@ -34,6 +34,9 @@ CPPFLAGS+= -I.
CPPFLAGS+= -I../adb
CPPFLAGS+= -I../include
CPPFLAGS+= -I../..
+CPPFLAGS+= -D_FILE_
+
+CFLAGS+= -D_FILE_
LIBS+= -lc -lpthread -lz -lcrypto
---
RESULT:
=======
After I rebuilt the package and installed local version (as shown above) the process works and my data are ALL backed up.
Anybody willing to go through the same process before the package is fixed in Ubuntu - good sources are:
- https:/
- https:/
My package:
https:/
Your package also froze in the same spot (1.9G) for me.