Allow encryption when keyguard is set to pattern or no protection
Don't block based on keyguard type, and pass type to encryption function. Circular dependency on https://googleplex-android-review.git.corp.google.com/#/c/444200/ Bug: 13749169 Change-Id: Ica95713adca9552ae56341ff33badd1d4b748af8
This commit is contained in:
@@ -72,7 +72,7 @@ public class CryptKeeperConfirm extends Fragment {
|
||||
IMountService mountService = IMountService.Stub.asInterface(service);
|
||||
try {
|
||||
Bundle args = getIntent().getExtras();
|
||||
mountService.encryptStorage(args.getString("password"));
|
||||
mountService.encryptStorage(args.getInt("type", -1), args.getString("password"));
|
||||
} catch (Exception e) {
|
||||
Log.e("CryptKeeper", "Error while encrypting...", e);
|
||||
}
|
||||
|
Reference in New Issue
Block a user