Fix convert to fbe

Bug: 35231198
Test: Convert to fbe now works
Change-Id: Icc468d4f9328aacc18ba9e7b053e8db1a9aa9c8d
This commit is contained in:
Paul Lawrence
2017-03-10 14:22:24 -08:00
parent e11cb90ed2
commit 5b729c3216

View File

@@ -40,6 +40,7 @@ public class ConfirmConvertToFbe extends SettingsPreferenceFragment {
public void onClick(View v) {
Intent intent = new Intent(Intent.ACTION_FACTORY_RESET);
intent.addFlags(Intent.FLAG_RECEIVER_FOREGROUND);
intent.setPackage("android");
intent.putExtra(Intent.EXTRA_REASON, "convert_fbe");
getActivity().sendBroadcast(intent);
}