Change-Id: Iddf0133919d38fc896f97c6796f8228a6decf174 (cherry picked from commit 51348d2007b801c7bd7350f72e2300f1a5a41dd1)
We modify the XML of layouts and AndroidManifest enough that it warrants we operate on the tree in memory. These files are never very large so this should be fine. Change-Id: I5d597abdb3fca2a203cf7c0b40fcd926aecb3137