Go to file
Mike Kasick 059db9bfb6 Always run adbd as root in recovery.
At present, invoking "adb shell" while in recovery results in:

- exec '/system/bin/sh' failed: No such file or directory (2) -

"adb shell" should invoke /sbin/sh, but cannot as /sbin and /sbin/recovery
lack other-user execute permission.  Invoking "adb root" to restart adbd as
root _does_ work, however this behavior may not be intuitive to users who
encounter the above error.

The solution implemented here is to always run adbd as root in recovery, so
it has permission to run /sbin/sh.  Furthemore, user shells in recovery are
not particularly useful and "su" doesn't exist, thus "adb root" is likely
to be invoked anyways.

Change-Id: Iaaa25090e85d970e9a076fef068f5fae8202ab0b
2012-01-26 16:05:56 -05:00
applypatch Remove the simulator target from all makefiles. 2011-07-11 22:11:45 -07:00
bmlutils Fix up bmlutils to include fat.format automatically if rfs is found in the recovery.fstab. Use __system rather than run_exec_process. 2011-11-11 00:41:57 -08:00
edify make StringValue wrapper okay to call on NULL 2010-02-24 15:05:07 -08:00
etc Always run adbd as root in recovery. 2012-01-26 16:05:56 -05:00
flashutils Fix up the autoinclusion rules for the recoveryimage target. 2011-11-27 14:07:29 -08:00
libcrecovery fix up libreboot dependency to librebootrecovery 2011-06-27 11:02:44 -07:00
minelf Working ASLR implementation 2010-08-02 14:17:33 -07:00
minui Support custom graphics.c. Set the recovery timeout to 1 hour. 2011-11-16 16:47:53 -08:00
minzip add a one-argument version of package_extract_file 2010-02-01 14:40:12 -08:00
mmcutils Revert "zero the partiiton before writing to it." 2011-10-23 13:28:53 -07:00
mtdutils rewrite mtd_restore_raw_partition to use the new aosp code 2011-11-21 11:22:04 -08:00
res/images wip 2011-11-16 16:00:35 -08:00
testdata add a simple unit test for the OTA package verifier 2009-12-09 17:01:45 -08:00
tools Remove the simulator target from all makefiles. 2011-07-11 22:11:45 -07:00
updater remove dedupe 2011-11-16 18:28:20 -08:00
utilities Fix up the autoinclusion rules for the recoveryimage target. 2011-11-27 14:07:29 -08:00
Android.mk Hide "mount USB storage" option from mount menu when the board has a virtual sdcard 2012-01-15 02:37:34 -05:00
bootloader.c wip 2011-11-16 16:00:35 -08:00
bootloader.h forward port excluded bootloader stuff from eclair 2010-06-30 23:17:53 -07:00
CleanSpec.mk Add an empty CleanSpec.mk 2010-03-08 18:04:03 -08:00
common.h wip 2011-11-16 16:00:35 -08:00
default_recovery_keys.c wip 2011-11-16 16:00:35 -08:00
default_recovery_ui.c wip 2011-11-16 16:00:35 -08:00
edifyscripting.c shuffle some code 2011-09-23 03:57:25 -07:00
extendedcommands.c Hide "mount USB storage" option from mount menu when the board has a virtual sdcard 2012-01-15 02:37:34 -05:00
extendedcommands.h support backup and restore on internal sdcard 2011-10-26 21:25:34 -07:00
firmware.c more cwr5 work. 2011-09-08 16:55:35 -07:00
firmware.h forward port excluded bootloader stuff from eclair 2010-06-30 23:17:53 -07:00
install.c wip 2011-11-16 16:00:35 -08:00
install.h run update-binary first. revert recovery API version to 2. use RECOVERY_VERSION for the actual display version. 2010-03-20 01:08:55 -07:00
killrecovery.sh fixes and stuff for droid x 2010-08-17 16:55:38 -07:00
make-overlay.py change the default recovery assets to be in holograph style 2011-03-02 10:38:02 -08:00
mounts.c tar nandroid and /data/media support. 2011-06-08 19:03:27 -07:00
mounts.h tar nandroid and /data/media support. 2011-06-08 19:03:27 -07:00
nandroid-md5.sh cwr 5 2011-09-05 21:14:06 -07:00
nandroid.c add comments around /data/media 2011-12-18 13:49:52 -08:00
nandroid.h fix up some implicit declarations 2011-05-26 11:47:56 -07:00
NOTICE Automated import from //branches/master/...@140824,140824 2009-03-24 18:36:42 -07:00
recovery_ui.h wip 2011-11-16 16:00:35 -08:00
recovery.c Fix wipe from android settings for devices with /datadata 2011-11-26 22:44:29 +07:00
roots.c add comments around /data/media 2011-12-18 13:49:52 -08:00
roots.h allow explicitly provided mount locations 2011-08-31 23:26:45 -07:00
setprop.c missing files 2010-07-24 11:21:12 -07:00
ui.c Support custom graphics.c. Set the recovery timeout to 1 hour. 2011-11-16 16:47:53 -08:00
verifier_test.c add a simple unit test for the OTA package verifier 2009-12-09 17:01:45 -08:00
verifier_test.sh add a simple unit test for the OTA package verifier 2009-12-09 17:01:45 -08:00
verifier.c log which key a package verified against in recovery 2011-03-15 12:11:08 -07:00
verifier.h do not merge: cherry-picked 60151a295c from master branch 2009-08-17 13:21:04 -07:00