Factory reset: Allow passing wipe_media to recovery

Change-Id: I3b6e224064055b2eef8c2909c7d36f9a76014d70
(cherry picked from commit 5c6d69414bd061c483ee70712a16cc28e11a018a)
Keyguard: Recycle previous keyguard bitmap prior to caching new one.

Change-Id: I96f6c7073de1084cf106e67f2395eb4f1a209402
(cherry picked from commit bc9d73aecd768fc21f71a8aebd35408b2474f0bb)
Keyguard: Remove redundant null pointer check

Change-Id: I296db71ff2ff64b7d65300fd51ae1f9d92facbd4
(cherry picked from commit 7c56ddcd3e45dbee6286eae28421735525d387a3)
Fix build, RecoverySystem.

Change-Id: I8c7fd35e1f352990c3d8e65cf8a0a30ab0a06297
(cherry picked from commit 56edf8605d70d7830e762da47950e1dd3bc6e190)