Category Archives: Android

Android backup

Investigation of an Android backup file:

Create a backup file:
adb backup -f `date +%Y%m%d`_backup.ab -apt -obb -all -system

Extract its contents:
dd if=~/android/20161101_backup.ab bs=1 skip=24 | zlib-flate -uncompress > x.tar

Find resource hogs (as root):
find -exec file '{}' ';' | grep "ISO Media" | awk '{ split($0, a, ":"); print a[1] }'

Android apk files are located in /data/app, they can be (temporarily) removed when there is not sufficient space for installing new apps.

QWare TB-1217 tablet USB drivers for Windows

When the tablet is initially connected to Windows, it will not be detected as an Android device.

To enable the device to be accessed from the Android SDK:

  • Install the Google USB driver from the Android Manager
  • Add the following lines in %Program Files%\Android\android-sdk\extra\google\usb-driver\android_winusb.inf in the section [Google.NTx86]:
    ; QWare tablet
    %SingleAdbInterface% = USB_Install, USB\VID_18D1&PID_0003
    %CompositeAdbInterface% = USB_Install, USB\VID_18D1&PID_0003&MI_01
  • Reboot
  • The tablet is now correctly recognized as an Android device