View previous topic :: View next topic |
Author |
Message |
Roman_Gruber Advocate
Joined: 03 Oct 2006 Posts: 3846 Location: Austro Bavaria
|
Posted: Wed Jul 13, 2016 9:20 am Post subject: Gentoo adb (android debug bridge) broken [confirmed] |
|
|
Hi
The written down backup command, to backup all files from my smartphone to my computer with the android debug bridge, does not work anymore.
Used to work in previous adb versions. I tried to set a password in the developer option as suggested via internet search. but nope.
In short it does not backup. It generates 44 bits files, with password 5xx bits file. Stupid useless
I used the same command as I have saved it in the backup folder on my computer in a cheat sheet, a text file.
Code: | adb backup -apk -shared -all -f Nexus_4_backup_2016-07-13.ab
|
- - -
Workaround:
Contents of my new cheat sheet:
Requirements:
/home/roman/Downloads is a tempfs folder. So I can test out things, I move the files later
Quote: |
# Backup = „Copy“ all Data from phone sdcard folder
mkdir /home/roman/Downloads/Nexus_4_sdcard_backup_2016_07_13
adb pull /sdcard/ /home/roman/Downloads/Nexus_4_sdcard_backup_2016_07_13/
pull: building file list…
- - -
Backup apps
1) Determine the package name of the app, e.g. "com.example.someapp". Skip this step if you already know the package name.
adb shell pm list packages
Ignore the following
2) Get the full path name of the APK file for the desired package.
adb shell pm path com.example.someapp
The output will look something like this: package:/data/app/com.example.someapp-2.apk
3) Pull the APK file from the Android device to the development box.
adb pull /data/app/com.example.someapp-2.apk
end ignore
mkdir /home/roman/Downloads/Nexus_4_apps_backup_2016_07_13
adb pull /data/app/ /home/roman/Downloads/Nexus_4_apps_backup_2016_07_13
- - -
Shell access, may need
adb root
adb remount
before
adb shell
root@android:/ # ls
|
Questions:
a) is adb really broken or is it just an error in my Phone-Flash-Rom (could be of course)
b) Do I miss something essential to backup?
c) How do I generate a folder with the current timestamp.
I tried
Code: | mkdir Nexus_4_sdcard_backup_%d-%m-%Y_%H:%M:%S
|
but nope
in my i3-config (i3wm), these special bash stuff works. I tried a bit but I am quite sure I miss something essential.
Quote: | bindsym Print exec "scrot '%d-%m-%Y_%H:%M:%S_screenshot.png' -e 'mv $f ~/Screenshots/'"
|
I am quite sure a bash specialist or someone who codes regularly with bash knows the answer instantly.
d) Any suggestions? Improvements? Opinions?
--
Yes it is a bit nuts to backup hole sdcard, but when it is not really clear to myself whats needed and whats not!
Code: | adb pull /sdcard/ /home/roman/Downloads/Nexus_4_sdcard_backup_2016_07_13/
pull: building file list…
2045 KB/s (2468688065 bytes in 1178.367s) |
I will clean up the files later ...
stats for the apps
Code: | adb pull /data/app/ /home/roman/Downloads/Nexus_4_apps_backup_2016_07_13
pull: building file list...
skipping special file 'sensor_ctl_socket'
54 files pulled. 0 files skipped.
3793 KB/s (747784258 bytes in 192.477s)
|
--
I will wait a reasonable time before I attempt to wipe my phone. The software has an issue and therefore I have to use the next custom rom now. I suspect google software api broke with an update the functionality. When I get a phone call, I hear the ring tone but I do not get the dialog to confirm the call and the display stays inactive. Anyway I will wipe the phone in a reasonable time.
Last edited by Roman_Gruber on Sat Jul 23, 2016 12:32 pm; edited 1 time in total |
|
Back to top |
|
|
acmondor n00b
Joined: 08 Aug 2014 Posts: 59 Location: Canadian Prairies
|
Posted: Fri Jul 15, 2016 3:33 pm Post subject: |
|
|
I ran into the problem of 'adb backup ...' not working earlier in the week and the solution was to get an older version of adb.
My system had adb version 1.0.32 so I downgraded to 1.0.31 by downloading platform-tools_r19.0.1-linux.zip (http://dl-ssl.google.com/android/repository/platform-tools_r19.0.1-linux.zip) and replacing my tools as per "android - How to downgrade my SDK Version? - Stack Overflow" (http://stackoverflow.com/questions/9555337/how-to-downgrade-my-sdk-version). Which is basically this:
Code: | # cd /tmp
# unzip ~/Downloads/platform-tools_r19.0.1-linux.zip
# cd /opt/android-sdk-update-manager
# mv platform-tools platform-tools.org
# mv /tmp/platform-tools .
|
When your done put the original platform-tools back:
Code: | # cd /opt/android-sdk-update-manager
# mv platform-tools platform-tools.saved_for_backup
# mv platform-tools.org platform-tools
|
Hope this helps. |
|
Back to top |
|
|
Roman_Gruber Advocate
Joined: 03 Oct 2006 Posts: 3846 Location: Austro Bavaria
|
Posted: Sat Jul 23, 2016 12:31 pm Post subject: |
|
|
Thank you for the reply
I will manually move the files. Those binary backups are worthless anyway. There were some hacks to read those adb backups.
I prefer raw plain data files on my file system anyway.
As long my hardware works I have to stick to Anroid.
Personal opinion: Google managed to ruin the software of my rooted custom roms several times since I own this smartphone. The lack of proper backups and proper file structure to the FHS standard, the dirtyness of hacked memory bars and other stuff, makes any android phone a mess to deal with. Also the lack to know where the real files are, which stuff to backup. and google policy do not allow custom roms to ship their google playstore. Also their politics for years to disable adblockers. Without an adblocker hardware gets really fast outdated and slow.
Its time for a real unix phone with proper handling of the hardware and software without binary blobs for radio and other stuff.
Except the navigation software, called google maps, there is no real application which a flip phone does not offer too.
Navigation, Clock and clock alarms are the most used items. The E-Mails may be useful, but I have to turn on the computer anyway.
Android is just a toy. Not well designed, half stolen from the unix world. Full with shitty apps and advertisements. Lack of useability, like android 4.0 had. Sadly adroid 4.0 should not be used anymore because of security issues.
And also google does not offer many updates for their shipped hardware, as any other manufactuerer. Google nexus 4 is unsupported. Google nexus 7 same |
|
Back to top |
|
|
Roman_Gruber Advocate
Joined: 03 Oct 2006 Posts: 3846 Location: Austro Bavaria
|
Posted: Sun Jul 24, 2016 12:41 pm Post subject: |
|
|
Final entry on this topic:
For those who want to make a backup of their phones.
TWRP, e.g. for Nexus 4, offers a backup feature.
a) have TWRP installed
b) make TWRP backup
c) adb pull the backup file from the TWRP Recovery screen
d) I also recommend to pull at least the following folders and data
/sdcard
/data/app or apk folder which contains the applications installed (reduces the downlaod time of those apks. just adb install and the stuff again after you switched your roms)
the picture folder, somewhere in /sdcard or somewhere else, the path contains DCIM, which any camera thing so far used ...
(the auto sync feature is very often broken by google itself; may work flawless when you run the stock google rom on google supported devices as long they are in the support period, like nexus 6 now for example I assume) |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|