summaryrefslogtreecommitdiffstats
path: root/init
Commit message (Collapse)AuthorAgeFilesLines
...
* | | Add the commands rm and rmdir to init.Ken Sumrall2011-01-183-0/+16
| | | | | | | | | | | | | | | | | | | | | rm only removes a single non-directory directory entry (no -r support) rmdir removes a single empty directory Change-Id: I49702b02ba98a177027b126268c2c2846f968195
* | | Set a read-only property to indicate if the device is running encrypted.Ken Sumrall2011-01-141-0/+2
| | | | | | | | | | | | | | | | | | | | | The UI needs to know if the device is running with an encrypted filesystem or now. So set a read-only property at boot to let it know. Change-Id: I753de2d606c975bcbe9946d10fd47558cf357dac
* | | init: Fix parser line numberingBruce Beare2011-01-072-5/+9
| | | | | | | | | | | | Change-Id: I1ac481a2cef749b26c73bc9e6a212e6ace7a0ae2
* | | am bf10797e: am f7ca6040: Fix infinite loop in init when debugging is turned offColin Cross2011-01-041-6/+6
|\ \ \ | |/ / | | | | | | | | | * commit 'bf10797e538f9fa252d72710bd5ecf0ef1f6f3e0': Fix infinite loop in init when debugging is turned off
| * | am f7ca6040: Fix infinite loop in init when debugging is turned offColin Cross2011-01-041-6/+6
| |\ \ | | |/ | |/| | | | | | | * commit 'f7ca6040616f672a6f0039d55e39c610b7c1cf91': Fix infinite loop in init when debugging is turned off
| | * Fix infinite loop in init when debugging is turned offColin Cross2011-01-041-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If a keychord is pressed when debugging is turned off, the main event poll in init will return an event on the keychord fd, but handle_keychord never reads the data. Once this happens, the poll will always return immediately, and init enters an infinite loop. Fix it by always reading from the keychord fd, but only handling the returned keychord if debugging is enabled. Change-Id: Ie4efa98247d3cc978d275dc8a4516b32aa710278
* | | Changes to init to support encrypted filesystems.Ken Sumrall2010-12-186-8/+80
| | | | | | | | | | | | | | | | | | | | | | | | | | | These are the changes to init and init.rc necessary to support booting with and encrypted /data filesystem. A corresponding change to init.<device>.rc goes along with this change. Change-Id: I0c7e2cc39568358014a82e317735c0eae14dd683
* | | init: Allow non-root adbd to switch between TCP and USB modesMike Lockwood2010-12-101-0/+1
| | | | | | | | | | | | | | | Change-Id: I9e93ceefadfaa2a4f8ec25cfa05fa4821fd98093 Signed-off-by: Mike Lockwood <lockwood@android.com>
* | | Revert "Add "slow_start" keyword to init"Iliyan Malchev2010-12-084-10/+0
| | | | | | | | | | | | This reverts commit 50b3afd9f39619f69dc6f4efc29be88933eb3614.
* | | Add "slow_start" keyword to initPaul Eastham2010-12-044-0/+10
| | | | | | | | | | | | | | | | | | | | | This keyword will cause init to wait a few seconds before exec'ing the target binary. Maybe only useful for hacks and debugging. Change-Id: I85caa0bcbc0be7e48bd21eb9e31e039c0740c8d5
* | | Merge "Add missing headers for compilation on x86 targets"Olivier Bailly2010-11-293-0/+5
|\ \ \
| * | | Add missing headers for compilation on x86 targetsOlivier Bailly2010-11-173-0/+5
| | | | | | | | | | | | | | | | Change-Id: I5f4dc797b353a0f01fa00d38375ec303bf863254
* | | | check the return value of setuid and friendsNick Kralevich2010-11-171-3/+12
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | Under some circumstances, setuid() and family can fail, returning a non-zero value. (see "man setuid" for details). If this happens, we want to ensure that init doesn't spawn a process which has root privileges when it's not suppose to. Change-Id: Idd03f2c8f82a7eaf6e696b5bcfe308e51ea58b52
* | | init: Abort firmware transfer if firmware is missingBenoit Goby2010-11-091-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | If firmware is not found, write -1 /sys/$DEVPATH/loading to cancel the firmware load. Otherwise the driver has to wait for the 60s timeout. Change-Id: Id2787cda9b2be45b9adea41f6f161cd54cda212e Signed-off-by: Benoit Goby <benoit@android.com>
* | | am 439b4dfb: am bc57d4ce: init: support owner/permission setting for sysfs ↵Brian Swetland2010-10-264-33/+62
|\ \ \ | |/ / | | | | | | attributes of devices
| * | am bc57d4ce: init: support owner/permission setting for sysfs attributes of ↵Brian Swetland2010-10-264-33/+62
| |\ \ | | |/ | | | | | | devices
| | * init: support owner/permission setting for sysfs attributes of devicesBrian Swetland2010-10-264-33/+62
| | | | | | | | | | | | | | | | | | | | | | | | | | | This should be much nicer than peppering init.rc with chown/chmod directives. Also, remove some dead code and obsolete comments. Change-Id: I10895f10a9cf2f1226c8d12976cd3db3743da9ec
* | | Allow AID_RADIO to restart the ril-daemon.Wink Saville2010-10-032-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This enhances robustness by allowing the Telephony Framework to restart ril-daemon if it notices some catastrophic failure. Added setprop ctl.restart. Added ril-daemon to setprop control_perms and allow users/groups with the AID_RADIO ID to control it. Change-Id: I195abdd754a731ce0b77e8f71ab47fde8c3e7977
* | | am 78ea2374: am 912ff85b: init: Add support for SOCK_SEQPACKET socket typeMike Lockwood2010-10-013-6/+8
|\ \ \ | |/ / | | | | | | | | | | | | | | | Merge commit '78ea2374c5c87d7bb58747b1a6173c598f386600' * commit '78ea2374c5c87d7bb58747b1a6173c598f386600': init: Add support for SOCK_SEQPACKET socket type
| * | am 912ff85b: init: Add support for SOCK_SEQPACKET socket typeMike Lockwood2010-10-013-6/+8
| |\ \ | | |/ | | | | | | | | | | | | | | | Merge commit '912ff85b035e0e6bc109812c1ea5661ea4df5967' into gingerbread-plus-aosp * commit '912ff85b035e0e6bc109812c1ea5661ea4df5967': init: Add support for SOCK_SEQPACKET socket type
| | * init: Add support for SOCK_SEQPACKET socket typeMike Lockwood2010-10-013-6/+8
| | | | | | | | | | | | | | | Change-Id: Ib264ecf9beb2685b070436d2bdec9655c7a31b47 Signed-off-by: Mike Lockwood <lockwood@android.com>
* | | resolved conflicts for merge of 3b5214a6 to masterBrian Swetland2010-09-191-9/+18
|\ \ \ | |/ / | | | | | | Change-Id: Id73c53c6c2e9c21eb9b1d1e624aaeb25097ea7a4
| * | am 02863b95: add /vendor supportBrian Swetland2010-09-191-9/+18
| |\ \ | | |/ | | | | | | | | | | | | | | | Merge commit '02863b957cfbfc302d3136ed78c0cba86accacd8' into gingerbread-plus-aosp * commit '02863b957cfbfc302d3136ed78c0cba86accacd8': add /vendor support
| | * add /vendor supportBrian Swetland2010-09-191-9/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - look in /vendor/firmware/... in addition to /system/etc/firmware/... for firmware loading - add /vendor/bin to path before /system/bin - add /vendor/lib to ldpath before /system/lib - configure appropriate permissions for /system/vendor/bin - symlink /vendor -> /system/vendor Change-Id: I0c06ca1e38a44f0c7024cee6cea8907aa93a4532
* | | am 49b8124a: am 17dcc5c5: Use makedev helper for device major and minor numbersColin Cross2010-09-031-4/+1
|\ \ \ | |/ / | | | | | | | | | | | | | | | Merge commit '49b8124a1759cb8b27e0c21a1a5a54b8a81bdb19' * commit '49b8124a1759cb8b27e0c21a1a5a54b8a81bdb19': Use makedev helper for device major and minor numbers
| * | am 17dcc5c5: Use makedev helper for device major and minor numbersColin Cross2010-09-031-4/+1
| |\ \ | | |/ | | | | | | | | | | | | | | | Merge commit '17dcc5c57dcffb919f3de65ff7a0134ffa3bd874' into gingerbread-plus-aosp * commit '17dcc5c57dcffb919f3de65ff7a0134ffa3bd874': Use makedev helper for device major and minor numbers
| | * Use makedev helper for device major and minor numbersColin Cross2010-09-031-4/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | Major and minor numbers can be greater than 255. Major numbers are 12 bits, and minor numbers are 20 bits. Supporting major and minor numbers > 255 allows the use of the extended block device for extra mmc partitions. Change-Id: I4c42bfe0781069e8e4cb13ebe26e860cdc03f866
* | | init: Add symlinks to USB character devicesBenoit Goby2010-08-101-0/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since we now support USB host mode, devices might get a different device file depending if other devices are connected on the host port. This patch creates symlinks to USB character devices that depend on the port devices are connected to, but not on the order they have been probed. (e.g. /dev/usb/tty2-1:1.0 -> /dev/ttyUSB0) Change-Id: I285bcc2d59446fbff8a7abbe39c21781f3bb4bd3
* | | am 3fc108ac: am fad7204e: resolved conflicts for merge of 5f5d5c8c to ↵Nick Kralevich2010-07-201-5/+31
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | gingerbread Merge commit '3fc108acf2b05153489730178c85b8db94f603af' * commit '3fc108acf2b05153489730178c85b8db94f603af': validate the source of uevent messages
| * | am fad7204e: resolved conflicts for merge of 5f5d5c8c to gingerbreadNick Kralevich2010-07-201-5/+31
| |\ \ | | |/ | | | | | | | | | | | | | | | Merge commit 'fad7204e9eac20a87afacd7547ed8202a39319f8' into gingerbread-plus-aosp * commit 'fad7204e9eac20a87afacd7547ed8202a39319f8': validate the source of uevent messages
| | * resolved conflicts for merge of 5f5d5c8c to gingerbreadNick Kralevich2010-07-191-5/+31
| | |\ | | | | | | | | | | | | Change-Id: Ieee2cd67d33f3e774fcfd96f8a5f67a0374aa873
| | | * validate the source of uevent messagesNick Kralevich2010-07-191-5/+31
| | | | | | | | | | | | | | | | | | | | Bug: 2844206 Change-Id: If2eee54181abfc6c7fda0232f98fa6bb5d12c60c
* | | | am 742150c0: merge from open-source masterThe Android Open Source Project2010-07-161-2/+3
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | Merge commit '742150c031756da1393bf4223b2468b17cb79326' * commit '742150c031756da1393bf4223b2468b17cb79326': Use complete hardware name without spaces.
| * | | merge from open-source masterThe Android Open Source Project2010-07-161-2/+3
| |\ \ \ | | |/ / | |/| | | | | | Change-Id: I29602fecafc2b6d93b849ada89696a67cfd23353
| | * | Use complete hardware name without spaces.Sean McNeil2010-07-131-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | Many targets use generic first portions like 'OMAP' Change-Id: I00ba4e64cffc48353c29e409c3c19238024fbd8c
* | | | am 62a54f3b: am 25b15be9: init: use tmpfs/ftruncate for properties backing ↵Brian Swetland2010-07-131-6/+15
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | store instead of ashmem Merge commit '62a54f3b1343043528b7e93c1a4311a5e9d5f358' * commit '62a54f3b1343043528b7e93c1a4311a5e9d5f358': init: use tmpfs/ftruncate for properties backing store instead of ashmem
| * | | init: use tmpfs/ftruncate for properties backing store instead of ashmemBrian Swetland2010-07-131-6/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This removes the need for ashmem for early bringup and avoids an issue with permissions enforcement. Change-Id: I405b080660934d73048c79d614b6b2ebc43ab182 Signed-off-by: Brian Swetland <swetland@google.com>
* | | | Mount /dev with nosuidNick Kralevich2010-06-221-1/+1
| | | | | | | | | | | | | | | | Change-Id: I66c7fcf9b65405dfc12d344ef3ed225d0ad2db84
* | | | Revert "Mount /dev with noexec and nosuid"Nick Kralevich2010-06-151-1/+1
| | | | | | | | | | | | | | | | This reverts commit 4ec97f2b257f5c9ed7cf6f0245212f4e3eb60c1b.
* | | | Mount /dev with noexec and nosuidNick Kralevich2010-06-081-1/+1
| | | | | | | | | | | | | | | | Change-Id: Iea182c1e6a72c281abd17bf83ff765bb9cb59270
* | | | am 982a815c: Reap firmware child processes to prevent zombiesColin Cross2010-06-031-0/+7
|\ \ \ \ | |/ / /
| * | | Reap firmware child processes to prevent zombiesColin Cross2010-06-031-0/+7
| | | | | | | | | | | | | | | | Change-Id: Ic6c50b929a025f05450cd309238e60a857690d9b
| * | | DO NOT MERGE resolved conflicts for merge of e95aad61 to krakenMike Lockwood2010-05-172-2/+24
| |\ \ \ | | |/ / | | | | | | | | | | | | | | | | | | | | this change is already in master Change-Id: Ica43eae28b50d89d50217851aff7e62978abfa27 Signed-off-by: Mike Lockwood <lockwood@android.com>
| | * | merge from open-source masterThe Android Open Source Project2010-05-172-2/+25
| | |\ \ | | | |/ | | |/| | | | | Change-Id: I414c9479f4f913c777ef18b7ff27e410f49d35b9
| | | * init: Add support for /dev/bus/usb/ file system and add new unix group AID_USB.Mike Lockwood2010-05-161-2/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | init now creates files in /dev/bus/usb/ for user access to USB devices. Files are chmod 660 with group AID_USB. Signed-off-by: Mike Lockwood <lockwood@android.com>
| | | * Added a move flag for init's mount command that maps to MS_MOVE.Jay Freeman (saurik)2010-04-201-0/+1
| | | | | | | | | | | | | | | | Change-Id: I7bc1a8ac5f73a34c101247f984cbf9ff29e02e7f
* | | | init: Add support for /dev/bus/usb/ file system and add new unix group AID_USB.Mike Lockwood2010-05-061-2/+23
|/ / / | | | | | | | | | | | | | | | | | | init now creates files in /dev/bus/usb/ for user access to USB devices. Files are chmod 660 with group AID_USB. Signed-off-by: Mike Lockwood <lockwood@android.com>
* | | init: Use a relative symlink for ueventd to initColin Cross2010-04-221-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | make doesn't seem to handle the absolute symlink from $OUT/root/sbin/ueventd to /init well - it follows the link during dependency resolution, decides $OUT/root/sbin/ueventd doesn't exist because /init doesn't exist, and relinks it every time. Change-Id: I9ca1c14fe5fa80634f51ffc51a7c73146d29d42e
* | | init: Fix init spinning once init.rc is completeColin Cross2010-04-221-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When the init process ran out of actions to execute, cur_action was NULL and action_queue_empty() was true, but cur_command was still set. This patch clears cur_command when a new action is retreived, and only depends on cur_action and action_queue_empty() to determine the poll timeout. Change-Id: Iaa95063c8c267a5b1ada9f20363b99c433e61ac4
* | | init: Add ueventd.rc parsing to ueventdColin Cross2010-04-217-160/+228
| | | | | | | | | | | | Change-Id: Iea53050d6c10e8cabf563e5d80e84eaf78873695