Skip to content

Commit

Permalink
Merge pull request #29 from CyanogenMod/cm-11.0
Browse files Browse the repository at this point in the history
add the pre-recovery service
  • Loading branch information
Alberto García Martín committed Jan 25, 2015
2 parents 03b86f5 + fee6f56 commit 0c3e1ed
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions include/private/android_filesystem_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -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/*" },
Expand Down
1 change: 1 addition & 0 deletions init/property_service.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions rootdir/init.rc
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 0c3e1ed

Please sign in to comment.