5.0 patch

Port over new and old patches from aosp that were found missing