Added transfer progress reporting for push and pull commands.

Added a new '-p' switch to the 'push' and 'pull' commands that outputs
the file transfer progress (bytes transmitted, total bytes, and % done).
This provides useful feedback when transferring large files, and also
makes it possible for other tools to easily monitor the progress of a
forked push/pull command.

Change-Id: Iee6f42f5bd41292e5bc80fba779f526f0072e356
Workaround for sdcard fuse bug

Credit to cgx@xda. See http://forum.xda-developers.com/showpost.php?p=51657055&postcount=304

Change-Id: Ie7ea7d83a9da071d553990a00c250eac2b1bb8e1
Charger: Avoid animation while not charging DO NOT MERGE

At present, charging animation runs irrespective of whether charger
is connected or not. When the charger is disconnected, device not shutdown
for 10secs. Charging animation during this period should be avoided.

Change-Id: Idf8e6a11261aec2812f1ebbbdec1bd1ad769565e
Signed-off-by: Pavan Kumar S <pavan.kumar.s@intel.com>
Signed-off-by: Jenny TC <jenny.tc@intel.com>
Signed-off-by: Yong Yao <yong.yao@intel.com>
Handle FUSE_FSYNCDIR as FUSE_FSYNC

There have been issues with sdcard data corruption even after
successfully calling fsync for /sdcard. This is caused by
the sdcard daemon doing nothing in this case.

Change-Id: I48149ceabdac79ac535b35c2598bb1fbb5410883
Fix sdcard's FUSE_FSYNCDIR handling.

For a file the FUSE fh is a struct handle containing an int fd;
for a directory it's a struct dirhandle containing a DIR*. Fix
handle_fsync to extract the file descriptor appropriately in
both cases.

Bug: 14613980
Change-Id: I45515cff6638e27a99b849e6fc639d355dbb4d27
Make sdcard log to the log rather than stderr.

Change-Id: I9c78941184c5e364055bfac766e1e542d3c23c87

Conflicts:
	sdcard/sdcard.c
Provide logdog for cat haters

Make additional logcat symlinks:
- logdog
- loldog

Also provide adb shortcuts:
- adb logdog
- adb loldog
- adb longdog

Change-Id: I99635da7615fe183bf4eca380945cb8a7cee3cfa