summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* mkbootimg: Add --second_offset to usage displayBrandon McAnsh2015-11-261-0/+1
| | | | | | | * This is handled in the logic, but not displayed for usage Change-Id: I86c62833a00d023eb8a74ba0451ff89906ce5a46 Signed-off-by: Brandon McAnsh <brandon.mcansh@gmail.com>
* ueventd: Fix bootdevice by-name/by-num link creationDavid Ng2015-11-241-13/+20
| | | | | | | | | | | | | Create bootdevice by-name/by-num links only if the block device is the bootdevice. This fixes the issue of bootdevice path being created incorrectly if the first reported device with by-name/by-num is not the bootdevice. It also fixes devices in which the bootdevice property doesn't exist, or the symlink is created by a later step in the init sequence (such as init.rc itself) Change-Id: Ifb68080e3149917f9ee88a4a421007f29e8d83d2
* init: Add support for gzipped firmware filesChris Fries2015-11-232-15/+38
| | | | | | | | | | | | | | | | | In case no matching firmware is found, re-search the paths for [path][firmware].gz and use that instead if found. Reviewed-on: http://gerrit.mot.com/724787 SLTApproved: Slta Waiver <sltawvr@motorola.com> Tested-by: Jira Key <jirakey@motorola.com> Reviewed-by: Wen-Long Che <wenlong@motorola.com> SME-Granted: Gerrit Application <gerritmailarchive@motorola.com> Reviewed-by: Christopher Fries <cfries@motorola.com> Submit-Approved: Jira Key <jirakey@motorola.com> Adapted for Marshmallow by Benjamin Legrand (scritch007) Change-Id: I74e42ab3c77eb7722c58042489d7bd4856f3be63
* healthd: allow custom chargerScott Mertz2015-11-201-2/+12
| | | | | Change-Id: I1380bea300bfaa6819d50bdc813329c93050286a (cherry picked from commit b6ebd65cd36d06daa5cf33f031d7e03b0bd674c6)
* Merge branch 'LA.BF64.1.2.2_rb4.7' of ↵Steve Kondik2015-11-161-32/+27
|\ | | | | | | git://codeaurora.org/platform/system/core into cm-13.0
| * Revert "adbd: Don't close/reopen FFS ep0 on disconnect"Mayank Rana2015-10-261-32/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit b5d385f1ef38ad0c163598c3a4e167d4ae9df3c6. Commit b5d385f "adbd: Don't close/reopen FFS ep0 on disconnect" fixes USBCV chapter 9 failures due to re-enumeration as part of reopening FFS ep0 handle. This was done from usb_kick function which gets invoked whenever adb read/write fails. But, not allowing USB re-enumeration on real IO failures results in adb to go offline and only way to recover is by re-connecting USB cable. As ADB function is used for debugging and USBCV tests are not mandatory, hence, revert original change to allow USB enumeration on any read/write failures. CRs-fixed: 689512 Change-Id: Ic0b38223761b7c0eb3e2c54328e88010297318fb
* | Lose df to toybox.Elliott Hughes2015-11-142-86/+0
| | | | | | | | Change-Id: I4c8e6c1071779914969cc7f5a80fe6248b508405
* | Lose du to toybox.Elliott Hughes2015-11-142-371/+0
| | | | | | | | Change-Id: Ib240f74990274027258a454d3c63202791fcdb0b
* | Lose lsof to toybox.Elliott Hughes2015-11-142-254/+0
| | | | | | | | Change-Id: I4b5e0c8c33f5b2dfd3db85628d9a657940978a10
* | Lose ls to toybox.Elliott Hughes2015-11-142-589/+0
| | | | | | | | | | Bug: http://b/23040458 Change-Id: I0e9f89b1169df409a38a2134ac2cb9edd0421be3
* | Lose uptime to toybox.Elliott Hughes2015-11-142-88/+0
| | | | | | | | | | | | Let's see if anyone actually needs the non-POSIX information... Change-Id: I0bb63b3a81f6295d281a661bd941a26fef675598
* | Remove watchprops.Elliott Hughes2015-11-142-93/+0
| | | | | | | | | | | | | | | | | | Since watchprops would have to be rewritten anyway in the upcoming properties rewrite, there seems little point in rewriting it for toybox first. Let's see how many people actually use watchprops and decide whether it's worth the effort... Change-Id: I996e7209bc81633ee66602f09f130226336d9987
* | Lose ionice and renice to toybox.Elliott Hughes2015-11-143-221/+0
| | | | | | | | Change-Id: I77264e70aeff5a2320ce178c8e7176b67b898bd9
* | Switch to toybox mount(1).Elliott Hughes2015-11-142-361/+0
| | | | | | | | Change-Id: Ieda6e2bfbf5ea3e9a96f5facfded4c2a467e4a02
* | init: Fire a trigger when a class is started/stoppedSteve Kondik2015-11-111-4/+16
| | | | | | | | | | | | | | * This allows us to react to these events without messing with the master config. Change-Id: Ifc72efc7b4cc0718838c711395f5fdc3b043827a
* | liblog: fix building with LOGD disabledDan Pasanen2015-11-101-0/+4
| | | | | | | | Change-Id: Ief05c7bef25e2d18b94fb0a231aba5db8cea6f84
* | [gatekeeperd] copy uid to local before passing to u_mapAndres Morales2015-11-092-3/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The compiler will issue the unaligned access instuctions when reading from a packed struct. Since 'find' takes a reference, if we pass the field directly it is removed from its packed context and may be unreadable. Read the field out directly from the packed struct and pass in aligned to u_map to fix. Bug: 22367550 Change-Id: Ia3b639c7518154ff5a2b7c233b752e154eab9aad (cherry picked from commit 6e83dc4d325d68b568c841d3e88fda2a93e00663)
* | init: fix logic for determining charger modeDan Pasanen2015-11-071-1/+1
| | | | | | | | Change-Id: Ib4dd630b760303f26c794997aee3a5920cbeaaf5
* | set /system/etc/init.d/* permissionsMichaël Burtin2015-11-071-0/+1
| | | | | | | | | | | | | | | | ported from CM7 * moved to fs_config.c in 6.0 Change-Id: I279d78679f7d779d6cd6bbc6c834d94706937ae8
* | init: create symlinks to mtd block device nodesBrian Beloshapka2015-11-071-0/+59
| | | | | | | | | | | | | | | | | | | | Given a device in the form of "/devices/virtual/mtd/mtd0/mtdblock0": * Creates symlinks for mtd block devices in /dev/block/mtd/mtd<partition number> * Creates symlinks based on partition name in /dev/block/mtd/by-name/<partition name> Change-Id: Id8d61be88935a0ef83297d1d5e453d8ba0d586de
* | init: define BOARD_CHARGING_CMDLINE parametersEthan Chen2015-11-071-1/+3
| | | | | | | | Change-Id: I18eaae51d293a03552905ee3a952b2de20e1a311
* | init: Bring back support for arbitrary chargermode cmdlinesRicardo Cerqueira2015-11-071-1/+10
| | | | | | | | | | | | | | | | This was accidentally removed while debugging the init breakage fixed in change I8ef5c932efcd5e7f8d6f6fce0915683d84c3ee11. Put it back Change-Id: Iaacc30abff0bcd9fa49f98b158b293fa363d9ea3
* | init: Allow devices to use user-space tools to set ro.serialnoChristopher R. Palmer2015-11-072-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | CUrrently, init will always set a ro.serialno value which means that the kernel is the only option for configuring the serial number. The zenfone2 stores the serial number in a file-system that is mounted during the boot process and provides tools that pull the factory configuration from there. To support this, we need to allow init to opt-out of setting the serial number for us. Change-Id: I9c307d91bb8d3cb1c881213dd28e4f76e6eae14f
* | init: add detection of charging modePawit Pornkitprasan2015-11-052-1/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Based on Prashant Somashekar's patch which is in turn based on techomancer's patch http://goo.gl/I19GG. When BOARD_CHARGING_MODE_BOOTING_LPM is set, init will read that value (usually from /sys) and enable charging mode when set to 1. This differs from the original patch in that Samsung-specific lpm.rc is not loaded, but instead, init.rc is loaded using the "charger" class, which is how AOSP devices handle charging. The change is because the either the SELinux or the init.rc changes is causing lpm.rc to not work, and porting lpm.rc to the Android system is easier than trying to fix it. Change-Id: Ice7a074da7e982f9a64aaa97de28bfcbccdc8b91
* | camera: Add L-compatible camera feature enumsSteve Kondik2015-11-051-0/+16
| | | | | | | | | | | | | | | | * These QC-specific features have been renumbered in M, so add a compilation flag to permit using the old versions in case we can't rebuild the driver. Change-Id: I3f5a545fde8b27684b1b8ea490c09bb66e3b4cd9
* | Merge tag 'android-6.0.0_r26' into cm-13.0Ricardo Cerqueira2015-11-0523-142/+587
|\ \ | | | | | | | | | | | | | | | Android 6.0.0 release 26 Change-Id: I93d1e3767cbacab2b18cff360065c91b9eaf1d96
| * \ merge in mnc-dr-release history after reset to mnc-dr-devThe Android Automerger2015-09-240-0/+0
| |\ \
| | * | add system-background cpusetTim Murray2015-09-211-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | add a new cpuset for system services that should not run on larger cores bug 24144797 Change-Id: I21a54f0d6b46b3b8bd8c4564b8685c88cfc4a57d
| | * | merge in mnc-dr-release history after reset to mnc-dr-devThe Android Automerger2015-09-200-0/+0
| | |\ \
| | | * \ merge in mnc-dr-release history after reset to mnc-dr-devThe Android Automerger2015-09-150-0/+0
| | | |\ \
| | | | * \ merge in mnc-dr-release history after reset to mnc-dr-devThe Android Automerger2015-09-130-0/+0
| | | | |\ \
| | | | | * \ merge in mnc-dr-release history after reset to mnc-dr-devThe Android Automerger2015-09-100-0/+0
| | | | | |\ \
| | | | | | * \ merge in mnc-dr-release history after reset to mnc-dr-devThe Android Automerger2015-09-090-0/+0
| | | | | | |\ \
| | | | | | | * \ merge in mnc-dr-release history after reset to mnc-dr-devThe Android Automerger2015-09-060-0/+0
| | | | | | | |\ \
| | | | | | | | * | Add zygote to the foreground cpuset.Tim Murray2015-09-024-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This ensures that newly forked zygote processes will end up in the corret cpuset. bug 23751126 Change-Id: I987a2828cf2504963f1317d17f0b51d26cf22a70
| | | | | | | | * | merge in mnc-dr-release history after reset to mnc-dr-devThe Android Automerger2015-09-020-0/+0
| | | | | | | | |\ \
| | | | | | | | | * \ merge in mnc-dr-release history after reset to mnc-dr-devThe Android Automerger2015-08-270-0/+0
| | | | | | | | | |\ \
| | | | | | | | | | * \ merge in mnc-dr-release history after reset to mnc-dr-devThe Android Automerger2015-08-250-0/+0
| | | | | | | | | | |\ \
| | | | | | | | | | | * \ merge in mnc-dr-release history after reset to mnc-dr-devThe Android Automerger2015-08-220-0/+0
| | | | | | | | | | | |\ \
| | | | | | | | | | | | * \ merge in mnc-dr-release history after reset to mnc-dr-devThe Android Automerger2015-08-190-0/+0
| | | | | | | | | | | | |\ \
| | | | | | | | | | | | | * \ merge in mnc-dr-release history after reset to mnc-dr-devThe Android Automerger2015-08-080-0/+0
| | | | | | | | | | | | | |\ \
| | | | | | | | | | | | | | * \ merge in mnc-dr-release history after reset to mnc-dr-devThe Android Automerger2015-07-290-0/+0
| | | | | | | | | | | | | | |\ \
| | | | | | | | | | | | | | | * \ merge in mnc-dr-release history after reset to mnc-dr-devThe Android Automerger2015-07-250-0/+0
| | | | | | | | | | | | | | | |\ \
| | | | | | | | | | | | | | | | * \ merge in mnc-dr-release history after reset to mnc-dr-devThe Android Automerger2015-07-220-0/+0
| | | | | | | | | | | | | | | | |\ \
| | | | | | | | | | | | | | | | | * \ merge in mnc-dr-release history after reset to mnc-dr-devThe Android Automerger2015-07-180-0/+0
| | | | | | | | | | | | | | | | | |\ \
| | | | | | | | | | | | | | | | | | * \ merge in mnc-dr-release history after reset to mnc-dr-devThe Android Automerger2015-07-160-0/+0
| | | | | | | | | | | | | | | | | | |\ \
| | | | | | | | | | | | | | | | | | | * \ merge in mnc-dr-release history after reset to mnc-dr-devThe Android Automerger2015-07-150-0/+0
| | | | | | | | | | | | | | | | | | | |\ \
| | | | | | | | | | | | | | | | | | | | * \ merge in mnc-dr-release history after reset to mnc-dr-devThe Android Automerger2015-07-140-0/+0
| | | | | | | | | | | | | | | | | | | | |\ \
| | | | | | | | | | | | | | | | | | | | | * \ merge in mnc-dr-release history after reset to mnc-dr-devThe Android Automerger2015-07-110-0/+0
| | | | | | | | | | | | | | | | | | | | | |\ \
| | | | | | | | | | | | | | | | | | | | | | * \ merge in mnc-dr-release history after reset to mnc-dr-devThe Android Automerger2015-07-090-0/+0
| | | | | | | | | | | | | | | | | | | | | | |\ \