summaryrefslogtreecommitdiffstats
path: root/init/Android.mk
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Revert "fs_mgr_verity: Add support for squashfs""Mohamad Ayyash2015-04-081-0/+1
| | | | | | This reverts commit 7b97c7a3fa0f1bdae5b45a70f625ff48f9dab0c1. Change-Id: Id47e70479fe9247b7936f2e54d4dbfbb4f63f635
* Revert "fs_mgr_verity: Add support for squashfs"Mohamad Ayyash2015-04-081-1/+0
| | | | | | This reverts commit 807f47004f03653997edbe3c83d46350cb056cd4. Change-Id: I2d7972c0828c842b44747dd08fbe44668f2a55db
* fs_mgr_verity: Add support for squashfsMohamad Ayyash2015-04-061-0/+1
| | | | | | | | - Cleanup the code to get filesystem size in a block device - Add support to reading size of squashfs in a block device Change-Id: I3848a705ed4dc2fc9afad20331f0fdecfee545c5 Signed-off-by: Mohamad Ayyash <mkayyash@google.com>
* Merge "Revert "Revert "Adding e4crypt support"""Paul Lawrence2015-04-011-2/+5
|\
| * Revert "Revert "Adding e4crypt support""Paul Lawrence2015-03-311-2/+5
| | | | | | | | | | | | | | | | Fix build break caused by original change This reverts commit 84b0bab58fcc7f225e9a17a15c531b0c2fc509c5. Change-Id: I99fbd7c3d1ed92db1f546033c8493bb71a327924
* | Build init with clang.Elliott Hughes2015-03-301-0/+5
|/ | | | Change-Id: I14d95b3fe0505dd7d7632e2eedc537f97553c715
* Log more timing information from init.Elliott Hughes2015-03-281-0/+1
| | | | | | | | | | | | | | | | | Also make important events in init's life NOTICE rather than INFO, and ensure that NOTICE events actually make it to the kernel log. Also fix the logging so that if you have a printf format string error, the compiler now catches it. Also give messages from init, ueventd, and watchdogd distinct tags. (Previously they'd all call themselves "init", and dmesg doesn't include pids, so you couldn't untangle them.) Also include the tag in SELinux messages. Bug: 19544788 Change-Id: Ica6daea065bfdb80155c52c0b06f346a7df208fe
* Revert "Revert "Create libbase.""Dan Albert2015-03-161-2/+3
| | | | This reverts commit a7870d88167f619e758b5bcd15b410d16da7c16b.
* Revert "Create libbase."Nicolas Geoffray2015-03-161-3/+2
| | | | | | | | Breaks internal master. This reverts commit 98ff77204cef9bb8f0f27420833233622060a09e. Change-Id: I18dc6021cb43efff8aa88486c2d980dc2b8eedba
* Create libbase.Dan Albert2015-03-141-2/+3
| | | | | | | Move StringPrintf and the string based file I/O from libutils to libbase. Change-Id: I0297a6063874b9d92100e0dd5123fddfbda932fe
* Implement exec.Elliott Hughes2015-02-251-0/+1
| | | | Change-Id: I20329bc9b378479d745b498d6a00eca0872cd5ab
* bootchart: fix bootchart can not be triggered problemYongqin Liu2015-02-121-6/+0
| | | | | | | | | | | | | | | | | bootchart uses a file on the data partition to decide if it should collect data for bootchart, but the data partition will be mounted by the mount_all command in the "on fs" section, and it will be only added into the action queue when command "trigger fs" is executed, but that's after the bootchart_init action (late_init). This change makes bootchart_init a builtin command of init, and make it executed as the first command of "on post-fs" section which will be triggered after the "on fs" section. This change also refactors the bootchart code to all be in bootchart.cpp. Change-Id: Ia74aa34ca5b785f51fcffdd383075a549b2a99d9 Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
* Clean up reading and writing in init.Elliott Hughes2015-02-061-24/+48
| | | | | | | | | | | | | This isn't particularly useful in and of itself, but it does introduce the first (trivial) unit test, improves the documentation (including details about how to debug init crashes), and made me aware of how unpleasant the existing parser is. I also fixed a bug in passing --- unless you thought the "peboot" and "pm" commands were features... Bug: 19217569 Change-Id: I6ab76129a543ce3ed3dab52ef2c638009874c3de
* Stop using #if for conditional compilation.Elliott Hughes2015-02-041-11/+18
| | | | | | | | Use regular 'if' to prevent bitrot. Also remove remaining typedefs. Change-Id: I2e6ca928e2db29b88b643cf990ff05cfb0be94a6
* Use TEMP_FAILURE_RETRY, always build bootchart.cpp.Elliott Hughes2015-02-041-2/+4
| | | | | | | | Also switch the revision parsing over to sscanf as promised. I haven't done the hardware parsing because I don't yet know whether we actually need to keep the space-stripping code. Change-Id: Ic33378345cd515cb08d00c543acf44eb72673396
* Build init as C++.Elliott Hughes2015-02-041-19/+18
| | | | | | This is just the minimal change to keep it building. Change-Id: I245c5b8413a1db114576c81462eb5737f5ffcef2
* Trivial cleanup of recent changes.Elliott Hughes2015-02-021-1/+5
| | | | | | | A typo in the documentation for one, and a couple of signed/unsigned warnings in the implementation of the other. Change-Id: I8fb4b7448ac901c543dea7420aabcedf13ec1bd8
* Enable clang for init, after fix of global .mk files.Chih-Hung Hsieh2015-01-221-4/+0
| | | | | | | | | | LOCAL_FORCE_STATIC_EXECUTABLE was not working properly for clang because -Bstatic was ignored by clang. We can now enable clang for init after the -static flag is added to link static executable files in build/core/definitions.mk. BUG: 18008984 Change-Id: I3f361b83c1e0b313914603dff33fd090cd3b116a
* Use LOCAL_POST_INSTALL_CMD to simplify symlink creation.Ying Wang2014-11-241-20/+4
| | | | Change-Id: I67ad7248c26561d394e66901e90ef5814ec69fb3
* Don't build init with clang for nowBernhard Rosenkraenzer2014-10-041-0/+4
| | | | | | | | init doesn't start when built with clang. Set LOCAL_CLANG:=false until this is analyzed and fixed. Change-Id: I5a7944aef676ce88defe5c0449e712d9812fb5f3 Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
* Only allow disabling SELinux on userdebug / eng buildsNick Kralevich2014-06-021-1/+1
| | | | | | | | Only parse and honor the kernel command line on userdebug or eng builds. On user builds, assume that selinux is always enabled and enforcing. Change-Id: I71c66e4365bdf2f226800634126a38b716d96599
* init: unused paramter warning messagesMark Salyzyn2014-04-011-0/+2
| | | | Change-Id: I1667371106be4b230ac3850e9819e4549eea2973
* ueventd: easier debug loggingAlex Ray2014-03-071-0/+5
| | | | | | | Move ueventd debug flag into the Android.mk. Boost klog level if event logging enabled. Change-Id: Iae48edbc43c487092c2424023576af29c76ff401
* Merge commit '536dea9d61a032e64bbe584a97463c6638ead009' into HEADThe Android Open Source Project2013-11-221-1/+3
|\ | | | | | | Change-Id: I5c469a4b738629d99d721cad7ded02d6c35f56d5
| * Add basic verity support to fs_mgr.Geremy Condra2013-08-061-1/+3
| | | | | | | | | | | | | | | | | | | | | | This change adds a "verify" fs_mgr flag specifying that the device in question should be verified. Devices marked with this flag are expected to have a footer immediately after their data containing all the information needed to set up a verity instance. Change-Id: I10101f2c3240228ee0932e3767fe35e673d2e720
* | init: remove obsolete rle logoMarcin Chojnacki2013-10-161-1/+0
|/ | | | | | | | | Obsolete RLE 565 logo is used nowhere, because 565 framebuffer isn't used for years. It's not necessary to keep this thing alive anymore. Change-Id: Ie61e168790f791230530cd3eb1c68b1f7344c9a7
* fs_mgr: Capture the output of e2fsck and add to the kernel logKen Sumrall2013-04-141-0/+2
| | | | | | | | | | | | | | | | Currently, the output of e2fsck is not saved, and we have no insight into how many errors e2fsck is finding and fixing. Using the new abbreviated logging feature in liblogwrap, up to the first 100 lines, and last 4K bytes of the output of e2fsck is captured by fs_mgr, and added to the kernel log. Usually, the filesystem will be clean, and this will only add a few lines to the kernel log on boot, but when things go wrong, it should save enough to indicate what the problem is, without potentially filling the kernel log with only e2fsck output if the filesystem is really corrupted. Change-Id: I9c264798e6fe721c8f818b5ce15d0975027ddbdd
* am 7b88a90d: Merge "Remove HAVE_SELINUX guards"Kenny Root2012-10-171-7/+5
|\ | | | | | | | | * commit '7b88a90da2a27e347fc16c14fa577f4ae1ef07fd': Remove HAVE_SELINUX guards
| * Remove HAVE_SELINUX guardsKenny Root2012-10-161-7/+5
| | | | | | | | Change-Id: I8272c573b3c5dc663203bafab68fad5e94d89364
| * Change init to use libfs_mgr to mount filesystems.Ken Sumrall2012-05-011-2/+2
| | | | | | | | | | | | | | | | The new fs_mgr library moves much of the knowledge of what filesystems to mount into a new fstab.<device> file, and just calls one function to mount all the filesystems. Change-Id: If3db37530a0676000cba3e679db27aca734227e5
* | Add watchdogdArve Hjønnevåg2012-06-141-3/+7
| | | | | | | | | | | | | | | | "/sbin/watchdogd <interval> <margin>" will open /dev/watchdog, try to set the timeout to <interval>+<margin> then write to it every <interval> seconds to reset the watchdog. Change-Id: I15571980cdb868ec19f20e80bf8274b32107d36d
* | Change init to use libfs_mgr to mount filesystems.Ken Sumrall2012-04-301-2/+2
|/ | | | | | | | The new fs_mgr library moves much of the knowledge of what filesystems to mount into a new fstab.<device> file, and just calls one function to mount all the filesystems. Change-Id: If3db37530a0676000cba3e679db27aca734227e5
* am 3b04bde9: am ee79b455: am 93553073: Merge "Extend init and ueventd for SE ↵Jean-Baptiste Queru2012-02-241-0/+6
|\ | | | | | | | | | | | | Android." * commit '3b04bde991d57765a830e06c6f5bb094722583bd': Extend init and ueventd for SE Android.
| * Extend init and ueventd for SE Android.Stephen Smalley2012-02-011-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add SE Android support for init and ueventd. init: - Load policy at boot. - Set the security context for service daemons and their sockets. - New built-in commands: setcon, setenforce, restorecon, setsebool. - New option for services: seclabel. ueventd: - Set the security context for device directories and nodes. Change-Id: I98ed752cde503c94d99dfa5b5a47e3c33db16aac
* | Don't read /data/local.prop on user buildsNick Kralevich2012-01-181-0/+4
|/ | | | | | | | | Creating a root owned /data/local.prop is one of the most common ways to root an Android device. /data/local.prop is only intended to assist developers on debuggable devices, and is never intended to be used on production devices. Change-Id: Ifcfa21c2ee9914b0b54445218b4cf0fea0a98e9c
* 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: Add ueventd.rc parsing to ueventdColin Cross2010-04-211-1/+2
| | | | Change-Id: Iea53050d6c10e8cabf563e5d80e84eaf78873695
* init: Move uevent handling to an external ueventd processColin Cross2010-04-211-5/+17
| | | | Change-Id: Iea6c56013062ade633a1754f7bcf8cf09b3dedc1
* init: Split parser into generic parser and init parserColin Cross2010-04-211-1/+2
| | | | Change-Id: I451ebc4ff12f2ac660eb533fa10ad561fa25c9dd
* init: Move signal handling to signal_handler.cColin Cross2010-04-131-1/+2
| | | | Change-Id: I3a24afa28a1cd279c749d6f384f687b8de56067e
* init: Move keychords to keychords.cColin Cross2010-04-131-1/+2
| | | | Change-Id: I8fba9f5f73439a451fc961f8111612dff4fb5dfd
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-0/+33
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-33/+0
|
* Initial ContributionThe Android Open Source Project2008-10-211-0/+33