diff --git a/include/private/android_filesystem_config.h b/include/private/android_filesystem_config.h index dbaa705a306..91255a86d02 100644 --- a/include/private/android_filesystem_config.h +++ b/include/private/android_filesystem_config.h @@ -293,6 +293,7 @@ static const struct fs_path_config android_files[] = { /* the following files have enhanced capabilities and ARE included in user builds. */ { 00750, AID_ROOT, AID_SHELL, (1 << CAP_SETUID) | (1 << CAP_SETGID), "system/bin/run-as" }, + { 00750, AID_ROOT, AID_ROOT, 0, "system/bin/uncrypt" }, { 00755, AID_ROOT, AID_SHELL, 0, "system/bin/*" }, { 00755, AID_ROOT, AID_ROOT, 0, "system/lib/valgrind/*" }, { 00755, AID_ROOT, AID_SHELL, 0, "system/xbin/*" }, diff --git a/init/property_service.c b/init/property_service.c index 0b4845ed67c..e80d1544772 100644 --- a/init/property_service.c +++ b/init/property_service.c @@ -122,6 +122,7 @@ struct { } control_perms[] = { { "dumpstate",AID_SHELL, AID_LOG }, { "ril-daemon",AID_RADIO, AID_RADIO }, + { "pre-recovery", AID_SYSTEM, AID_SYSTEM }, #ifdef CONTROL_PERMS_APPEND CONTROL_PERMS_APPEND #endif diff --git a/rootdir/init.rc b/rootdir/init.rc index 46598f53e9b..b431bebc9e8 100644 --- a/rootdir/init.rc +++ b/rootdir/init.rc @@ -610,3 +610,8 @@ service mdnsd /system/bin/mdnsd socket mdnsd stream 0660 mdnsr inet disabled oneshot + +service pre-recovery /system/bin/uncrypt + class main + disabled + oneshot