Skip to content
Snippets Groups Projects
Commit 7e577318 authored by Jin Qian's avatar Jin Qian
Browse files

allow recovery to run mke2fs tools

recovery exec /system/bin/{mke2fs,e2fsdroid} to format userdata

Bug: 35219933
Change-Id: I77e75c2dc55d4bea7984707f27bc215de186c4d1
parent 8a3aae5c
No related branches found
No related tags found
No related merge requests found
......@@ -29,6 +29,9 @@ recovery_only(`
allow recovery unlabeled:filesystem ~relabelto;
allow recovery contextmount_type:filesystem relabelto;
# Format ext4 filesystem
allow recovery e2fs_exec:file rx_file_perms;
# Create and relabel files and directories under /system.
allow recovery exec_type:{ file lnk_file } { create_file_perms relabelfrom relabelto };
allow recovery { system_file }:{ file lnk_file } { create_file_perms relabelfrom relabelto };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment