Commit Graph

9577 Commits

Author SHA1 Message Date
The Android Automerger f6eb389525 merge in lmp-release history after reset to 574443d895 2014-09-10 06:09:16 -07:00
bigbiff bigbiff 1812c89f39 MTP: fix some code paths
Still doesn't fix the bug of copying zip files to the root of
storage in Windows.

Change-Id: Iddec66a49c17cf48cbd1c67ad6679349ece8e05c
2014-09-09 09:56:14 -05:00
The Android Automerger 4fc827e933 merge in lmp-release history after reset to 574443d895 2014-09-09 06:09:24 -07:00
Doug Zongker 52ae67d659 support for version 2 of block image diffs
In version 2 of block image diffs, we support a new command to load
data from the image and store it in the "stash table" and then
subsequently use entries in the stash table to fill in missing bits of
source data we're not allowed to read when doing move/bsdiff/imgdiff
commands.

This leads to smaller update packages because we can break cycles in
the ordering of how pieces are updated by storing data away and using
it later, rather than not using the data as input to the patch system
at all.  This comes at the cost of the RAM or scratch disk needed to
store the data.

The implementation is backwards compatible; it can still handle the
existing version 1 of the transfer file format.

Change-Id: I7fafe741d86b92d82d46feb2939ecf5a3890dc64
2014-09-08 14:11:48 -07:00
The Android Automerger 9c574d1d2a merge in lmp-release history after reset to 574443d895 2014-09-08 06:09:43 -07:00
The Android Automerger 500c1fb27c merge in lmp-release history after reset to 574443d895 2014-09-07 06:08:57 -07:00
bigbiff bigbiff 26c47962ef mktime_tz is blocking, don't use it
Change-Id: I0a66a69b68d975389302ae4361c9c106eb722538
2014-09-06 18:34:40 -04:00
The Android Automerger c398172f94 merge in lmp-release history after reset to f9bc2a544d 2014-09-06 08:50:41 -07:00
The Android Automerger 9132bd040b merge in lmp-release history after reset to 574443d895 2014-09-06 06:08:47 -07:00
Doug Zongker f9bc2a544d create block map for all update packages on /data
Always create the block map for packages on /data; don't only look at
the encryptable/encrypted flags.

Bug: 17395453
Change-Id: Iaa7643a32898328277841e324305b9419a9e071c
2014-09-05 13:06:47 -07:00
Doug Zongker 3de5e7cc0b am 574443d8: create block map for all update packages on /data
* commit '574443d8956802f35347cac7fae7eb16240e3c16':
  create block map for all update packages on /data
2014-09-05 17:24:50 +00:00
Doug Zongker 574443d895 create block map for all update packages on /data
Always create the block map for packages on /data; don't only look at
the encryptable/encrypted flags.

Bug: 17395453
Change-Id: Iaa7643a32898328277841e324305b9419a9e071c
2014-09-05 08:22:12 -07:00
bigbiff bigbiff 2e33c5ee0b update exfat from current head
Change-Id: I7d93474296612fda1dde23f6e8690668d6880e27
2014-09-05 08:46:39 -05:00
Ethan Yonker 8dfa77780f MTP: Use fork instead of pthread
Change-Id: I95cf6f4def0c86f40c775738f0712323f0a0f146
2014-09-04 21:59:20 -05:00
Ethan Yonker 82ce28122d Fix reporting of folder size on exfat-fuse
Change-Id: Icfd4af21b9eeade68956e44ae89bae12398920df
2014-09-04 13:36:45 -05:00
Ethan Yonker 241a3ce4c5 MTP: Better handling of stat
Do some error checking of lstat calls and better handle those
errors.
Use lstat instead of dirent to check if an item is a directory
because dirent does not return the correct item type when using
exfat-fuse.

Change-Id: I0d008aff55a0e0b4fbeae24cf8d0c04453b7b77e
2014-09-04 13:05:35 -05:00
Doug Zongker 795f9bca63 am 40482ea2: Merge "fix comment in blockimg updater code" into lmp-dev
* commit '40482ea2ae5ca8cbcf46125f601c0bc766f99943':
  fix comment in blockimg updater code
2014-09-04 15:49:21 +00:00
Andrew Boie da8b8049db am 8328922f: use lseek64 instead of lseek
* commit '8328922ff040280007da0aaaf8b567581231d5ed':
  use lseek64 instead of lseek
2014-09-04 15:49:20 +00:00
Doug Zongker 40482ea2ae Merge "fix comment in blockimg updater code" into lmp-dev 2014-09-04 15:26:29 +00:00
Doug Zongker f7bb09dae8 fix comment in blockimg updater code
The comment for the DEBUG_ERASE setting is exactly backwards.

Change-Id: I98ab5828365894217fc78976817a131e7d22d5c1
2014-09-04 08:10:32 -07:00
Dees Troy 2e07c0493e MTP Fix rename in Windows
Change-Id: Ieef2fc16aac1da3d03908cfb285895954b42a14a
2014-09-04 15:01:30 +00:00
Andrew Boie 8328922ff0 use lseek64 instead of lseek
Otherwise, overflow problems can occur with images larger than
2G since the offsets will overflow a 32-bit off_t.

Change-Id: I05951a38ebeae83ad2cb938594e8d8adb323e2aa
Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
2014-09-04 07:54:17 -07:00
Dees Troy 53ea0a166c MTP Fix property list for multiple storage devices
Change-Id: Ice23fef31439a6c88d0a12380688eccd8dc3a71c
2014-09-04 14:17:50 +00:00
The Android Automerger 603a1609fb merge in lmp-release history after reset to 5f875bf577 2014-09-04 06:09:32 -07:00
Ethan Yonker 12055fac83 Properly set mtp enable variable if disabled during boot
Change-Id: Iedf08419a1fd46908e5b9186a769a0497ce62ca8
2014-09-04 08:06:53 -05:00
Ethan Yonker 6f49e11d8a Prevent MTP enable on startup if crash detected
Change-Id: Ie1388a8acadf714a29721dd90c7f9a8aa38a860d
2014-09-03 21:42:49 -05:00
Ethan Yonker c8743cf5d5 Allow MTP debug setting to stick through a reboot
Change-Id: I81eb5eaa2286c0ee3078e01304d65b9489f13bf2
2014-09-03 21:16:40 -05:00
Ethan Yonker 5e083dcc20 Improve MtpStorage handling when more than one storage is present
Change-Id: I02f1984d02a85d9fd42450cc3772e88a43d9e9ff
2014-09-03 15:06:00 -05:00
Ethan Yonker 6d154c4fe2 Allow toggle of MTP debug
Via command line in TWRP:
twrp set tw_mtp_debug 1

This will enable debugging for MTP. You will need to disable and
re-enable MTP in order to see the debug logging.

Change-Id: Ia7bb0c584e10a4322b65ecf80a67ed7ee836b38e
2014-09-03 14:22:50 -05:00
Ethan Yonker 20fd25c231 Improve error handling during MTP startup
Change-Id: I9395481dd8d9cbd3346fe6682557236b48b4d6cd
2014-09-03 14:04:43 -05:00
Ethan Yonker 73da42cb6e Ensure that MTP is enabled by default
Change-Id: Ibd644509935cde1e52b3d368060fdcb6e16f4a99
2014-09-03 11:30:33 -05:00
Matt Mower 81742fbcbc Only use SELinux tools from toolbox if not in busybox
If busybox has SELinux support, we don't need toolbox to provide SELinux
specific tools. Check busybox for restorecon to see if SELinux support
is present and then adjust the tools built by toolbox based on this.

Change-Id: I30a2b036b97ac3e26510d5e0498c52d7a8af36e1
2014-09-03 18:23:04 +02:00
Matt Mower 55c75cad80 Build block TWRP with RECOVERY_VARIANT
Enable TWRP to reside alongside other recoveries with the naming
convention: bootable/recovery(-flag). If TWRP resides at
bootable/recovery and a device does not specify RECOVERY_VARIANT, then
it will build like normal. If TWRP resides at bootable/recovery-twrp,
then its makefiles will only be parsed if a device specifies
'RECOVERY_VARIANT := twrp'. This prevents TWRP specific makefile
warnings/errors (notably, missing DEVICE_RESOLUTION) when another
recovery is being built.

Change-Id: I8f02fffcd79c309c7123b9428eedc69af02e126e
2014-09-03 10:53:37 -05:00
Dees Troy 298c4387f7 Refresh partition details after changing file system
Change-Id: I24f3c8587f778c4f0ef43737243c8378a3fd0e00
2014-09-03 14:42:26 +00:00
The Android Automerger 41f13f4276 merge in lmp-release history after reset to 5f875bf577 2014-09-03 06:09:06 -07:00
bigbiff bigbiff c7eee6fef0 add mtp responder to TWRP.
Big thanks to Dees_Troy for helping with the implementation.

Change-Id: I6c9c522b9c9de5dc139e2ecb0141008182ba07f0
2014-09-02 21:44:49 -04:00
The Android Automerger cdbd52f5a3 merge in lmp-release history after reset to 5f875bf577 2014-09-02 06:09:10 -07:00
The Android Automerger c7709c56c2 merge in lmp-release history after reset to 5f875bf577 2014-09-01 07:54:47 -07:00
The Android Automerger afe031d2ca merge in lmp-release history after reset to 5f875bf577 2014-08-31 09:30:23 -07:00
The Android Automerger 5e7308a59c merge in lmp-release history after reset to 5f875bf577 2014-08-27 06:09:32 -07:00
Doug Zongker 5a1bc7a233 am 5f875bf5: remove code for original block OTA mechanism
* commit '5f875bf57739bf0b5c2d182173513233bdb71ab8':
  remove code for original block OTA mechanism
2014-08-26 22:11:36 +00:00
Doug Zongker 5f875bf577 remove code for original block OTA mechanism
Superseded by newer code.

Bug: 16984795
Change-Id: I842299f6a02af7ccf51ef2ca174d813ca53deef1
2014-08-26 13:54:24 -07:00
The Android Automerger ff14eb2895 merge in lmp-release history after reset to lmp-dev 2014-08-26 11:14:05 -07:00
Doug Zongker 9e62b78b36 Merge "remove code for original block OTA mechanism" 2014-08-26 17:05:30 +00:00
Doug Zongker 7b485070e0 am f449db2f: open misc device in write-only mode
* commit 'f449db2f30235a0c2fef4bc7bc41776e271a60a0':
  open misc device in write-only mode
2014-08-26 16:47:27 +00:00
Doug Zongker f449db2f30 open misc device in write-only mode
Opening the misc block device in read-write mode runs afoul of
SELinux, which keeps the wipe code from working.  Fix.  Also change
various things to log to logcat so we can see them happening, for
future debugging.

Bug: 16715412
Change-Id: Ia14066f0a371cd605fcb544547b58a41acca70b9
2014-08-26 09:22:57 -07:00
The Android Automerger 22427ff6d2 merge in lmp-release history after reset to 1d5d6098f4 2014-08-26 06:09:10 -07:00
Doug Zongker adad8ec045 remove code for original block OTA mechanism
Superseded by newer code.

Bug: 16984795
Change-Id: I70c1d29dc03287b06ea909d17f729ec51ccb0344
2014-08-25 08:21:27 -07:00
The Android Automerger 8315f88e6d merge in lmp-release history after reset to 1d5d6098f4 2014-08-25 06:08:47 -07:00
The Android Automerger 19eeee5a9e merge in lmp-release history after reset to 1d5d6098f4 2014-08-24 06:08:25 -07:00