Halt managed provisioning if battery level is too low

This mirrors the behaviours of the encryption screen in Settings and
of the encryption process itself, namely that:

 - battery level should be at least 80%
 - the device should be plugged in

If any requirement is not satisfied the encrypt activity will stop
progress and show a warning until it is fixed.

@bug 15156177

Change-Id: Id2594daffed0e0d3d404eabce656c08112f4830f
3 files changed
tree: ad45f8d348ac2bd706d6e71ad63dcfc022ad19d0
  1. res/
  2. src/
  3. Android.mk
  4. AndroidManifest.xml