Expose PatchWriter for consumption

Test: th
Change-Id: I1d0657bc886967e73b926fae13300bd401696d6a
4 files changed