summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | | | | | Support the full length of USB serial numbers.Elliott Hughes2015-04-273-89/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Two bugs: we couldn't report the serial number correctly if it was long enough, and it wasn't possible to connect to a device whose serial number was long enough to overflow a different fixed-length buffer. Bug: http://b/20317730 (cherry picked from commit 9309ecbcec428edfcb487ef697862bce59a1aed5) Change-Id: I04c160a215418a57bd4fb27b7f63060c8be6f12e
* | | | | | | | Use WriteFully in debuggerd to talk to ActivityManager.Elliott Hughes2015-04-271-16/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (cherry picked from commit b7cd09b93eaa8efa42db880a419d8d845dd4b4b3) Change-Id: Ic81b4134fe563d8ebb15ba4ff3e9b2e8893c97a5
* | | | | | | | am ada332e4: am ecf184c9: am 9c9280d8: Merge "init: get rid of the remaining ↵Nick Kralevich2015-04-263-43/+48
|\ \ \ \ \ \ \ \ | |/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | double mounts" * commit 'ada332e4a01a3bb290be26f8a5b67993bd10af14': init: get rid of the remaining double mounts
| * | | | | | | am ecf184c9: am 9c9280d8: Merge "init: get rid of the remaining double mounts"Nick Kralevich2015-04-263-43/+48
| |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'ecf184c901b78994773d687763c1478752e9375e': init: get rid of the remaining double mounts
| | * \ \ \ \ \ \ am 9c9280d8: Merge "init: get rid of the remaining double mounts"Nick Kralevich2015-04-263-43/+48
| | |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '9c9280d863d7377858af6e1543ea4ada7af3b0ec': init: get rid of the remaining double mounts
| | | * \ \ \ \ \ \ Merge "init: get rid of the remaining double mounts"Nick Kralevich2015-04-263-43/+48
| | | |\ \ \ \ \ \ \
| | | | * | | | | | | init: get rid of the remaining double mountsNick Kralevich2015-04-253-43/+48
| | | |/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Don't double mount /dev and its subdirectories anymore. Instead, the first stage init is solely responsible for mounting it. Don't have init prepare the property space. This is the responsibility of the second stage init. Don't have SELinux use the property space to determine how we should be running. Instead, create a new function and extract the data we need directly from /proc/cmdline. SELinux needs this information in the first stage init process where the property service isn't available. Change-Id: I5b4f3bec79463a7381a68f30bdda78b5cc122a96
* | | | | | | | | | am ec9bd166: am 45a49d0e: am ccac2be8: Merge "init: use SELinux /dev/null if ↵Nick Kralevich2015-04-261-14/+19
|\ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | available" * commit 'ec9bd166cc406d8079b7d33d04b3e04708183d96': init: use SELinux /dev/null if available
| * | | | | | | | | am 45a49d0e: am ccac2be8: Merge "init: use SELinux /dev/null if available"Nick Kralevich2015-04-261-14/+19
| |\ \ \ \ \ \ \ \ \ | | |/ / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '45a49d0eb7e2e9fc3d2c48884c84f6a6c7397720': init: use SELinux /dev/null if available
| | * | | | | | | | am ccac2be8: Merge "init: use SELinux /dev/null if available"Nick Kralevich2015-04-261-14/+19
| | |\ \ \ \ \ \ \ \ | | | |/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'ccac2be8a6269469087a7978e1a6db62ef4618c6': init: use SELinux /dev/null if available
| | | * | | | | | | Merge "init: use SELinux /dev/null if available"Nick Kralevich2015-04-261-14/+19
| | | |\ \ \ \ \ \ \
| | | | * | | | | | | init: use SELinux /dev/null if availableNick Kralevich2015-04-251-14/+19
| | | |/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | SELinux provides it's own /dev/null character device at /sys/fs/selinux/null. This character device is exactly the same as /dev/null, including the same major/minor numbers, and can be used wherever /dev/null is used. Use /sys/fs/selinux/null instead of trying to create our own /dev/__null__ device. This moves us one step closer to eliminating all uses of mknod() by init. /sys/fs/selinux/null is only available once the /sys/fs/selinux filesystem is mounted. It's not available to the first stage init, so we still have to fall back to mknod then. Change-Id: Ic733767ea6220a130537de33cc478ae79578ce20
* | | | | | | | | | am 1c2457ff: am b31c3a5a: am 178299fd: Merge "init: don\'t double mount ↵Nick Kralevich2015-04-251-3/+8
|\ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | /proc and /sys" * commit '1c2457ffdaf833b06a2619d967fe9def7139180f': init: don't double mount /proc and /sys
| * | | | | | | | | am b31c3a5a: am 178299fd: Merge "init: don\'t double mount /proc and /sys"Nick Kralevich2015-04-251-3/+8
| |\ \ \ \ \ \ \ \ \ | | |/ / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'b31c3a5a453cd9f472698068af9909e80a96ab2c': init: don't double mount /proc and /sys
| | * | | | | | | | am 178299fd: Merge "init: don\'t double mount /proc and /sys"Nick Kralevich2015-04-251-3/+8
| | |\ \ \ \ \ \ \ \ | | | |/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '178299fd459b7622e9e3de05a48d6ba050f92bec': init: don't double mount /proc and /sys
| | | * | | | | | | Merge "init: don't double mount /proc and /sys"Nick Kralevich2015-04-251-3/+8
| | | |\ \ \ \ \ \ \
| | | | * | | | | | | init: don't double mount /proc and /sysNick Kralevich2015-04-251-3/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The first stage init mounts /proc and /sys, and then the second stage init also mounts /proc and /sys on top of the existing mount. Only mount these two directories once, in the first stage init. Not yet fixed: the double mounting of /dev. Removing the double mounting doesn't work right now because both init stages are trying to create a property space, and if the double mount of /dev goes away, the property service in the second stage init fails to work. Change-Id: I13719027a47526d074390c2b1a605ad99fb43a8f
* | | | | | | | | | | am 2ae7d4ee: am 6b6df173: am f8b0743e: Merge "init: fix write_file ↵Nick Kralevich2015-04-252-8/+10
|\ \ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | checkreqprot logic error" * commit '2ae7d4eefddf2cd7ac4bba60fb6d057e2b01731b': init: fix write_file checkreqprot logic error
| * | | | | | | | | | am 6b6df173: am f8b0743e: Merge "init: fix write_file checkreqprot logic error"Nick Kralevich2015-04-252-8/+10
| |\ \ \ \ \ \ \ \ \ \ | | |/ / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '6b6df1733711ace006e0f4f9d44c718f85d2f70d': init: fix write_file checkreqprot logic error
| | * | | | | | | | | am f8b0743e: Merge "init: fix write_file checkreqprot logic error"Nick Kralevich2015-04-252-8/+10
| | |\ \ \ \ \ \ \ \ \ | | | |/ / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'f8b0743ef418c15fe622143a6b4b42b102a07803': init: fix write_file checkreqprot logic error
| | | * | | | | | | | Merge "init: fix write_file checkreqprot logic error"Nick Kralevich2015-04-252-8/+10
| | | |\ \ \ \ \ \ \ \
| | | | * | | | | | | | init: fix write_file checkreqprot logic errorNick Kralevich2015-04-252-8/+10
| | | | |/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | write_file() returned -errno on error, not -1. Callers who check for -1 would falsely believe that the write was successful when it wasn't. Fixup write_file so that it return -1 on error consistent with other functions. Change-Id: Ic51aaf8678d8d97b2606bd171f11b3b11f642e39
* | | | | | | | | | | am 4f790e37: am ecd6e36d: am 47a9ef2f: Merge "Improve logging of ↵Elliott Hughes2015-04-251-24/+20
|\ \ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | USBDEVFS_CLAIMINTERFACE failures." * commit '4f790e37142f2bda0f59bdf84060324bc51756fd': Improve logging of USBDEVFS_CLAIMINTERFACE failures.
| * | | | | | | | | | am ecd6e36d: am 47a9ef2f: Merge "Improve logging of USBDEVFS_CLAIMINTERFACE ↵Elliott Hughes2015-04-251-24/+20
| |\ \ \ \ \ \ \ \ \ \ | | |/ / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | failures." * commit 'ecd6e36d37d2e1fcc021762baaff417c94920dd4': Improve logging of USBDEVFS_CLAIMINTERFACE failures.
| | * | | | | | | | | am 47a9ef2f: Merge "Improve logging of USBDEVFS_CLAIMINTERFACE failures."Elliott Hughes2015-04-251-24/+20
| | |\ \ \ \ \ \ \ \ \ | | | |/ / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '47a9ef2f116fd885a3ba0e9027a45b2a68cc5b3f': Improve logging of USBDEVFS_CLAIMINTERFACE failures.
| | | * | | | | | | | Merge "Improve logging of USBDEVFS_CLAIMINTERFACE failures."Elliott Hughes2015-04-251-24/+20
| | | |\ \ \ \ \ \ \ \ | | | | |/ / / / / / / | | | |/| | | | | | |
| | | | * | | | | | | Improve logging of USBDEVFS_CLAIMINTERFACE failures.Elliott Hughes2015-04-251-24/+20
| | | |/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: https://code.google.com/p/android/issues/detail?id=170054 Change-Id: I9b11eb019093e3322da0a8e70d6e17de4c25ab75
* | | | | | | | | | am 04faed7a: am ecfb3664: am 8929c77a: Merge "init: remove mkdir /dev /proc ↵Nick Kralevich2015-04-251-4/+0
|\ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | /sys" * commit '04faed7aba1ff66ea62c041424ce572400494cbb': init: remove mkdir /dev /proc /sys
| * | | | | | | | | am ecfb3664: am 8929c77a: Merge "init: remove mkdir /dev /proc /sys"Nick Kralevich2015-04-251-4/+0
| |\ \ \ \ \ \ \ \ \ | | |/ / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'ecfb3664fea6cbe39d94459ceb06a91f57006820': init: remove mkdir /dev /proc /sys
| | * | | | | | | | am 8929c77a: Merge "init: remove mkdir /dev /proc /sys"Nick Kralevich2015-04-251-4/+0
| | |\ \ \ \ \ \ \ \ | | | |/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '8929c77ab9aa9be612291809669e9162837c54ae': init: remove mkdir /dev /proc /sys
| | | * | | | | | | Merge "init: remove mkdir /dev /proc /sys"Nick Kralevich2015-04-251-4/+0
| | | |\ \ \ \ \ \ \
| | | | * | | | | | | init: remove mkdir /dev /proc /sysNick Kralevich2015-04-251-4/+0
| | | |/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These directories are already present in the initial ramdisk, and these mkdir calls are no-ops. Change-Id: I528f9e96a3471de904845a2f9e09c1b6ff83a708
* | | | | | | | | | am 893981c9: am cd58f488: am 6ce5625d: Merge "Improve toolbox SIGPIPE behavior."Elliott Hughes2015-04-252-6/+15
|\ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '893981c9774de525a5e481fb717613feb35fa4cf': Improve toolbox SIGPIPE behavior.
| * | | | | | | | | am cd58f488: am 6ce5625d: Merge "Improve toolbox SIGPIPE behavior."Elliott Hughes2015-04-252-6/+15
| |\ \ \ \ \ \ \ \ \ | | |/ / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'cd58f488c263f5a1db9f7491d2aa062240765a6c': Improve toolbox SIGPIPE behavior.
| | * | | | | | | | am 6ce5625d: Merge "Improve toolbox SIGPIPE behavior."Elliott Hughes2015-04-252-6/+15
| | |\ \ \ \ \ \ \ \ | | | |/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '6ce5625d58c2376b719802a0ae0b56bcd3afcdc8': Improve toolbox SIGPIPE behavior.
| | | * | | | | | | Merge "Improve toolbox SIGPIPE behavior."Elliott Hughes2015-04-252-6/+15
| | | |\ \ \ \ \ \ \
| | | | * | | | | | | Improve toolbox SIGPIPE behavior.Elliott Hughes2015-04-252-6/+15
| | | |/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | None of our tools -- except for top, which I'd fixed previously -- handles SIGPIE correctly. Let's just handle SIGPIPE in the driver. Bug: https://code.google.com/p/android/issues/detail?id=157920 Change-Id: I322ea411f53c71585a64118c217d54389f675d4e
* | | | | | | | | | am 75e18f3b: am 5281a2a8: am 9798023e: Merge "Add ReadFully and WriteFully ↵Elliott Hughes2015-04-253-0/+52
|\ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | to libbase." * commit '75e18f3bced9f59791fb0774e7fbfd1ff1b38732': Add ReadFully and WriteFully to libbase.
| * | | | | | | | | am 5281a2a8: am 9798023e: Merge "Add ReadFully and WriteFully to libbase."Elliott Hughes2015-04-253-0/+52
| |\ \ \ \ \ \ \ \ \ | | |/ / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '5281a2a8e9df51cc7c5c17400dbeae6983818a38': Add ReadFully and WriteFully to libbase.
| | * | | | | | | | am 9798023e: Merge "Add ReadFully and WriteFully to libbase."Elliott Hughes2015-04-253-0/+52
| | |\ \ \ \ \ \ \ \ | | | |/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '9798023e9f646a51222b5fd4683c91bfbfc5167f': Add ReadFully and WriteFully to libbase.
| | | * | | | | | | Merge "Add ReadFully and WriteFully to libbase."Elliott Hughes2015-04-253-0/+52
| | | |\ \ \ \ \ \ \
| | | | * | | | | | | Add ReadFully and WriteFully to libbase.Elliott Hughes2015-04-243-0/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I6b7aa2a93398e7acdd1d74c71d9abed08a72b3c4
* | | | | | | | | | | am 2b57981b: am ae3154e3: am 2899c94b: Merge "Switch init to epoll."Elliott Hughes2015-04-258-87/+60
|\ \ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '2b57981b05a3771bfce01e801581442e4b63299f': Switch init to epoll.
| * | | | | | | | | | am ae3154e3: am 2899c94b: Merge "Switch init to epoll."Elliott Hughes2015-04-258-87/+60
| |\ \ \ \ \ \ \ \ \ \ | | |/ / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'ae3154e3968e991fb1e9a6b47bedd1e0819f7925': Switch init to epoll.
| | * | | | | | | | | am 2899c94b: Merge "Switch init to epoll."Elliott Hughes2015-04-258-87/+60
| | |\ \ \ \ \ \ \ \ \ | | | |/ / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '2899c94b9d962c308ef71ee10809c61ac39e0ce5': Switch init to epoll.
| | | * | | | | | | | Merge "Switch init to epoll."Elliott Hughes2015-04-258-87/+60
| | | |\ \ \ \ \ \ \ \ | | | | |/ / / / / / / | | | |/| | | | | | |
| | | | * | | | | | | Switch init to epoll.Elliott Hughes2015-04-248-87/+60
| | | |/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Not just because it's what the cool kids are doing --- it also lets us simplify the inner loop and decouple it from whatever systems want to be woken to perform some activity if there's data to be read on some fd. Currently this is just used to clean up the existing signal handling, keychord, and property service code. Change-Id: I4d7541a2c4386957ad877df69e3be08b96a7dec5
* | | | | | | | | | am 52e5e55c: am 0a4f0be2: am df5d4482: Merge "Clean up property service ↵Elliott Hughes2015-04-252-43/+27
|\ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | initialization." * commit '52e5e55cac4e630e4eac59c387815aa307194540': Clean up property service initialization.
| * | | | | | | | | am 0a4f0be2: am df5d4482: Merge "Clean up property service initialization."Elliott Hughes2015-04-252-43/+27
| |\ \ \ \ \ \ \ \ \ | | |/ / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '0a4f0be2aaf697ca4b0938b31fc19bb007e87d0d': Clean up property service initialization.
| | * | | | | | | | am df5d4482: Merge "Clean up property service initialization."Elliott Hughes2015-04-252-43/+27
| | |\ \ \ \ \ \ \ \ | | | |/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'df5d4482074fc68a25a6a33992f3fc5164c2d3ec': Clean up property service initialization.