 +
 +public class EncryptUserConfirm extends Fragment{
 +       private static final String TAG = "EncryptUser";
++	   private static final int progress_max = 100;
 +       public static class Blank extends Activity {
-+            private Handler mHandler = new Handler();
++            private Handler mHandler = new Handler() {
++				@Override
++				public void handleMessage(Message msg) {
++					updateProgress();
++				}
++			};
++
++			private void updateProgress() {
++				ProgressBar pb = (ProgressBar) findViewById(R.id.progress_bar);
++				final String property_value = SystemProperties.get("efs.encrypt.progress_99a9a15548");
++				int progress = "".equals(property_value) ? 0 : Integer.parseInt(property_value);
++				
++				pb.setProgress(progress);
++					
++				mHandler.removeMessages(1);
++				mHandler.sendEmptyMessageDelayed(1,250);
++			}
 +
 +            @Override
 +            public void onCreate(Bundle savedInstanceState) {
 +                super.onCreate(savedInstanceState);
-+
-+                setContentView(R.layout.encrypt_user_blank);
++				
++                setContentView(R.layout.encrypt_user_progress);
++				((ProgressBar) findViewById(R.id.progress_bar)).setIndeterminate(false);
++				updateProgress();
 +
 +                if (Utils.isMonkeyRunning()) {
 +                    finish();

From 6a4ece58738ad25980448012a18b4e54e97613b1 Mon Sep 17 00:00:00 2001
From: Catalin Ionita <catalin.ionita@intel.com>
Date: Wed, 4 Dec 2013 15:11:21 +0200
Subject: [PATCH] Integrate EFS with settings

---

 src/com/android/settings/CryptKeeper.java          |   12 +-
 src/com/android/settings/DecryptUserConfirm.java   |  102 +++
 src/com/android/settings/EncryptUser.java          |  684 ++++++++++++++++++++
 src/com/android/settings/EncryptUserConfirm.java   |  136 ++++
 src/com/android/settings/EncryptUserSettings.java  |  223 +++++++
 src/com/android/settings/SecuritySettings.java     |   33 +-
 src/com/android/settings/Settings.java             |    2 +
 22 files changed, 1999 insertions(+), 3 deletions(-)
 create mode 100644 res/layout/decrypt_user_confirm.xml
 create mode 100644 res/layout/decrypt_user_settings.xml
 create mode 100644 res/layout/encrypt_user_blank.xml
