 +import android.view.View;
 +import android.view.ViewGroup;
 +import android.widget.Button;
++import android.widget.ProgressBar;
 +import android.app.StatusBarManager;
 +import android.os.ServiceManager;
 +import android.os.storage.IMountService;
 +import android.app.ActivityManager;
 +import android.os.ServiceManager;
-+import android.os.IBinder;
++import android.os.Message;
++import android.os.SystemProperties;
 +import android.os.storage.IMountService;
++import android.os.HandlerThread;
 +import android.app.ActivityManager;
 +import android.content.ComponentName;
 +import android.content.pm.PackageManager;

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

---

+
+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() {
+				@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_progress);
+				((ProgressBar) findViewById(R.id.progress_bar)).setIndeterminate(false);
+				updateProgress();
+
+                if (Utils.isMonkeyRunning()) {
+                    finish();
