Merge commit \'32ac97675bade3681203c46d001f76b11a359fd5\' into mnc-dr2-dev-plus-aosp
am: 312f7c71f4

* commit '312f7c71f4a71feb0e8c3d202164ddeefa0ec661':
  applypatch: Fix the checking in WriteToPartition().