summaryrefslogtreecommitdiff
path: root/init.hardware.rc
Commit message (Collapse)AuthorAgeFilesLines
* Change zram swap size and swappinessMinchan Kim2018-10-251-0/+1
| | | | | | | | | | | | This CL increase zram swap size from 512M to 1024M of p18. It also increase swappiness from 60 to 100. It has more benefit for overall system performance. Detail is in the bug. Bug: 117522738 Test: confirmed zram size and swappiness change manually Change-Id: I4cbb8e7d5a43d6a273c53e8d5ed2976109a3ea5e Signed-off-by: Minchan Kim <minchan@google.com>
* crosshatch: start "vendor.citadeld" instead of "citadeld"dybertwang2018-08-311-1/+1
| | | | | | | | | | "external/nos/host/android/citadel/citadeld/citadeld.rc" changed from "service citadeld" to "service vendor.citadeld" Log: [ 13.331629] c5 1 init: Command 'start citadeld' action=vendor.skip.init=0 && init (/vendor/etc/init/hw/init.sdm845.rc:78) took 0ms and failed: service citadeld not found Bug: 113643915 Change-Id: I716269218c70b589b13c496ac714704ff862bb95 Signed-off-by: dybertwang <dybertwang@google.com>
* Do not set charge levels unless retaildemo mode is enabledMaggie White2018-08-171-5/+0
| | | | | | | | | | | Test labs use start and stop charge levels to control the battery levels of DUTs. This is not currently possible since retaildemo mode is set to 0 on every boot. After this behavior is removed, it will still be possible to reset the charging behavior via a factory reset. Bug: 112763954 Change-Id: I89b6969d6dcb31283d1ece478621207c97825c36 Signed-off-by: Maggie White <maggiewhite@google.com>
* Add init.firstboot.sh, for factory use caseChris Fries2018-07-271-0/+8
| | | | | | | | | | | | In the factory they need an automated way to shut down the device after setupwizard finishes, but we also don't want to let them talk to Android over USB on a user / locked device. When bootmode is "firstboot" (Set by bootloader), the device will wait for USB cable to be disconnected, then shut down. Bug: 110896488 Change-Id: I9b831ef37e0d8d3f84a315c4d23b8258702b95fc
* Introduce fstab.persistChris Fries2018-07-261-0/+1
| | | | | | | Add a new fstab.persist that mounts (and checks) persist partition. Bug: 111865955 Change-Id: I9967b2a8db031a727da9babda7118d29372d88f8
* Merge "Change b1c1 readahead to 128KiB on post-boot." into pi-devWei Wang2018-07-181-6/+6
|\
| * Change b1c1 readahead to 128KiB on post-boot.Miguel de Dios2018-07-171-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | Reduce readahead from 512KiB to 128KiB to reduce thrashing when we have a lot of apps running. Bug: 110908295 Bug: 80426378 Test: manual - device boots Test: manual - check app launch does not take long Test: cts-tradefed.sh run cts -m CtsCameraTestCases Change-Id: I59c1f2f8a6fbb5e0d956ba07a40a2bfac3b61481
* | HealthService: save and restore charge cycle countsThierry Strudel2018-07-171-9/+11
| | | | | | | | | | | | Bug: 111004332 Change-Id: I072d6b19186ebb11abb971ba70c0c99737b513b6 Signed-off-by: Thierry Strudel <tstrudel@google.com>
* | crosshatch: change light sevice to hardware.google.light@1.0-servicelinpeter2018-07-131-0/+1
|/ | | | | | | Add hardware.google.light@1.0-service to manifest and frameworks matrix Bug: 109762428 Change-Id: Ibdae532dc667bcd1386a145b1ea3dd0cb9cfdf4d
* Revert "crosshatch: change light sevice to vendor.google.light@1.0-service"Daniel Solomon2018-07-131-1/+0
| | | | | | | | | | This reverts commit 32c1d1e2d98582dd85cf8210b8bd353954761353. Reason for revert: Breaks aosp_crosshatch and aosp_blueline Bug: 109762428 Change-Id: Ia54e882c25f8355826056bf7274585ee4d8f3f3c
* crosshatch: change light sevice to vendor.google.light@1.0-servicelinpeter2018-07-091-0/+1
| | | | | | | | | Add vendor.google.light@1.0-service to manifest and frameworks matrix Bug: 109762428 Change-Id: I796565fca0f361a4774850a072019246c7845c50 Signed-off-by: linpeter <linpeter@google.com>
* Do not start insmod and KM in charger modeWei Wang2018-06-301-6/+5
| | | | | | | Bug: 110479595 Bug: 78249320 Test: Boot into Android and off-mode charger mode Change-Id: Ib87088436842499785a597eece7f5e14d7206db9
* Merge "Wait for keymasters to start up." into pi-devTreeHugger Robot2018-06-291-2/+16
|\
| * Wait for keymasters to start up.Shawn Willden2018-06-281-2/+16
| | | | | | | | | | | | Test: Boot Bug: 110479595 Change-Id: I74924f209bf205773c44e90ff5790f4fe7586d6b
* | Don't start SIM1 SE HAL service on Japan SkuRuchi Kandoi2018-06-291-0/+2
|/ | | | | | Test: Test SIM1 starts only RoW sku Bug: 110053681 Change-Id: I3fd5178e57982e0a9249fadbf4516e3b90933fe2
* init.rc: chmod 644 dsi-display to allow HardwareInfo to read panel infoThierry Strudel2018-06-271-4/+0
| | | | | | Bug: 69271229 Change-Id: I59c9cb594dafe575a73a8dac5a3e6b51129a31f0 Signed-off-by: Thierry Strudel <tstrudel@google.com>
* Merge "crosshatch: pixelstats sysfs collector" into pi-devTreeHugger Robot2018-06-281-0/+8
|\
| * crosshatch: pixelstats sysfs collectorAndrew Chant2018-06-271-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update pixelstats-vendor with a sysfs collector. Collects system reliability metrics from sysfs files and reports metrics once per 24hrs. Test: triggered SlowIos using slowio_write_us = 5000 saw 06-26 15:02:36.792 792 792 I sysui_multi_action: [757,1442,758,4,1443,2,1444,18] saw contents of slowio_write_cnt reset to zero after reporting. speaker impedance reporting for left & right speakers 06-26 14:53:21.295 792 792 I sysui_multi_action: [757,1445,758,4,1447,0,1446,0] 06-26 14:53:21.295 792 792 I sysui_multi_action: [757,1445,758,4,1447,1,1446,0] 0 as reported by drivers. Battery charge cycles reported as: sysui_multi_action: [757,1438,758,4,1439,0,0,0,0,0,4,8,10,10,29] verified timer by setting refresh interval to 5s. Bug: 71593375 Bug: 79996489 Change-Id: Ib5e0dd9bd640bada9ae944ae450df08ed7726dd6 Signed-off-by: Andrew Chant <achant@google.com>
* | crosshatch: add WLC to dumpstatePatrick Tjin2018-06-271-0/+2
|/ | | | | | Bug: 110245589 Test: boot, grab bugreport, see new info Change-Id: Ica5f4737f90eba9694c0a16a29b5d6efac0ffb39
* thermal: thermal-hal support reading fps-therm-adc for new HW versionMiguel de Dios2018-06-261-1/+1
| | | | | | | | | | | | Since new HW version implement fps_therm, so B1/C1 DVT devices will use fps-therm-adc as T-skin thermistor Bug: 80259361 Test: manual - thermal-hal can read fps-therm-adc correctly. Test: pts-tradefed run pts -m PtsThermalHalTestCases Test: VtsHalThermalV1_0TargetTest Change-Id: Ifd155b31122419a982e284be8a7a8bfc348da9cd Signed-off-by: davidchao <davidchao@google.com>
* init.hardware.rc: charger mode: set FG offmode_chargerThierry Strudel2018-06-251-0/+2
| | | | | | Bug: 74771887 Change-Id: I3b6dca1dc7fe692d8156edc8468d0a64d238ca39 Signed-off-by: Thierry Strudel <tstrudel@google.com>
* panel_info: allow HardwareInfoService accessThierry Strudel2018-06-251-0/+4
| | | | | | Bug: 69271229 Change-Id: I3ae3ecc0bd2c2073532032f5148d9d4e0985921f Signed-off-by: Thierry Strudel <tstrudel@google.com>
* FG: dump cycle_counts_binsThierry Strudel2018-06-251-0/+2
| | | | | | Bug: 74006386 Change-Id: I32bb48f36981ab1fe108da742efeb8286613741a Signed-off-by: Thierry Strudel <tstrudel@google.com>
* init.hardware.rc: adjust charger state CPUsThierry Strudel2018-06-251-7/+3
| | | | | | Bug: 74771887 Change-Id: Ifd5d2ac499866ce897cfa99a655da592248e7bbd Signed-off-by: Thierry Strudel <tstrudel@google.com>
* Merge "Enforce camera shutter sounds to always play for some markets" into ↵Eino-Ville Talvala2018-06-251-0/+6
|\ | | | | | | pi-dev
| * Enforce camera shutter sounds to always play for some marketsEino-Ville Talvala2018-06-211-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Carrier requirements in some markets require that the camera shutter sound is always audible. Our existing build-agnostic approach relies on MCC, which is only available with a SIM inserted. For more complete coverage, force shutter sounds on for all devices with radio.subtype of 1. Test: First set device to Japan radio mode: fastboot oem set_platform_info s s 1 Then verify that after muting ringer and media sounds: - Shutter sounds play in camera app, no visible setting in app to disable it. - pdk/apps/TestingCamera also plays shutter sounds. Bug: 110126976 Change-Id: I78e58e6e08db33756a943db9a1563a072038032a
* | init.hardware.rc: Disable qti serviceAmruth Ramachandran2018-06-211-5/+0
| | | | | | | | | | | | | | Bug: 80181026 CRs-Fixed: 2265399 Test: Basic live sanity with TMO,VZW Change-Id: I6ef35759ee44f47acf223c10e4f1cace02a78f03
* | Revert "Wait for keymasters to start up."Shawn Willden2018-06-201-8/+2
| | | | | | | | | | | | | | | | | | | | This reverts commit 564bcbef333ceb92bbc333e5c96f9106d601e353. Reason for revert: Broke some devices with certain configurations. Will resubmit with ag/4381586 and go/nor/17160 Test: N/A Bug: 110479595 Change-Id: I4c3b71941f9ce0ec90c465027ea75bad65d35fa9
* | Start vendor gralloc to get early bootanimationWei Wang2018-06-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | b1c1 no longer uses default "android.hardware.graphics.allocator@2.0-service" [ 2.398763] init: Command 'start vendor.gralloc-2-0' action=late-fs (/vendor/etc/init/hw/init.sdm845.rc:250) took 0ms and failed: service vendor.gralloc-2-0 not found Bug: 74437368 Test: Boot with simulated fsck and no boot animation delay Change-Id: Ic8b7b7852f9c5cf1ae953e6c17584dcd3afd6922
* | Start ISecureElement interface for eSE only on Japan skuRuchi Kandoi2018-06-191-0/+2
| | | | | | | | | | | | Test: check for services on respective skus Bug: 110053681 Change-Id: Iede80c1f11d4d3a22f8d148afcc94886671c2515
* | Wait for keymasters to start up.Shawn Willden2018-06-191-2/+8
|/ | | | | | | | | Use wait_for_strongbox instead of wait_for_keymaster to wait until both keymaster HALs are ready. Bug: 90406546 Test: Boot the device Change-Id: I8c6065a4b035cb821b2d2dd1084ccdf764b8a9a4
* Merge "b1c1: dynamically enable backup-charge in recovery/charging mode" ↵Jia-yi Chen2018-06-151-0/+2
|\ | | | | | | into pi-dev
| * b1c1: dynamically enable backup-charge in recovery/charging modedavidchao2018-06-081-0/+2
| | | | | | | | | | | | | | | | | | | | | | Summary: 1. Since the "backup-charge" is only used in recovery/charging mode so we dynamically enable backup-charge in recovery/charging mode. Bug: 72993533 Test: bakcup-charge can be enabled in recovery/charging mode only Change-Id: Ib84b9b745219c55cca1c613c4707b4770207aaa6 Signed-off-by: davidchao <davidchao@google.com>
* | Merge "Collect modem debug stat in Bugreport" into pi-devTreeHugger Robot2018-06-131-0/+4
|\ \
| * | Collect modem debug stat in BugreportJie Song2018-06-071-0/+4
| |/ | | | | | | | | | | | | | | | | | | - Add modem debug stat in Bugreport for user and userdebug build, modem debug stat will contain statistics report of hardware errors. - Add required SELinux policy Bug: 79656374 Test: Verify modem stat in Bugreport Change-Id: I023be7e6d90865f11a874e954ca9963fc1d8cab8
* / init: disabled some scheduling knobsJohn Dias2018-06-111-6/+0
|/ | | | | | | Test: running jank benchmarks Bug: 109836581 Change-Id: I8c8b2ca50bffec20845881e4aeeb07361096e8b5 Suggested-by: connoro@google.com
* Create data file directory for Neural Network HAL on startupChengYou Ho2018-06-071-0/+2
| | | | | Bug: 109547412 Change-Id: I5d67ea460ccff588753a5702039d63efdecce258
* msm: skunk: Start cdsprpcd service under system for 845c_mtharu2018-06-071-0/+5
| | | | | | | Start cdsprpcd service under system. Bug: 109547412 Change-Id: Ib18e1be0fe31a71594afe491f3bc9527c925e30c
* thermal: Support thermal config reading for old HW versionWei Wang2018-06-061-4/+5
| | | | | | Bug: 80259361 Test: Old HW version can read corresponding thermal config Change-Id: I4497b897581982ab520203a1dab065971f490b78
* Merge "crosshatch: don't use deadline" into pi-devTreeHugger Robot2018-06-061-2/+0
|\
| * crosshatch: don't use deadlineTim Murray2018-06-051-2/+0
| | | | | | | | | | | | | | | | deadline scheduler performs poorly under load, so don't use it. Test: boots Bug: 63630139 Change-Id: I7c3189f2f19d17b859b69d2b63a894802dd72a61
* | Merge "Add sku specific manifest file" into pi-devRuchi Kandoi2018-06-051-0/+3
|\ \ | |/ |/|
| * Add sku specific manifest fileRuchi Kandoi2018-06-051-0/+3
| | | | | | | | | | | | | | | | | | Japan sku will instantiate eSE1 instance of Secure Element HAL RoW sku will instantiate SIM1 instance of Secure Element HAL Bug: 109674921 Test: Test with RoW & Japan SKU Change-Id: I4d8ac2c3439ae84cd3c7d771c7930c1e370ba3f1
* | Merge "Start logd early" into pi-devTom Cherry2018-06-051-0/+2
|\ \
| * | Start logd earlyTom Cherry2018-06-051-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Crosshatch has system-as-root and therefore starts daemons earlier than the rest of Android typically expects. One of the caveats that wasn't expected or handled correctly is that logd must start before the rest of these daemons otherwise their logs will be missed. Therefore we start logd at the beginning of the `on init` trigger. Bug: 89689596 Test: see hwservicemanager logd consistently while true; do adb reboot && adb wait-for-device && adb logcat -b all -d | grep "hwservicemanager is ready now." || echo NOPE; done 01-21 05:17:01.193 582 582 I hwservicemanager: hwservicemanager is ready now. 01-21 05:17:23.083 583 583 I hwservicemanager: hwservicemanager is ready now. 01-21 05:17:45.178 583 583 I hwservicemanager: hwservicemanager is ready now. ... Change-Id: If381afa13390130890d0a7b2b1aed036c4e6f15c
* | | Merge "Wifi: Remove early setting of wlan.driver.status" into pi-devAhmed ElArabawy2018-06-041-3/+0
|\ \ \ | |_|/ |/| |
| * | Wifi: Remove early setting of wlan.driver.statusAhmed ElArabawy2018-06-041-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In current implementation, the wlan.driver.status property is set to OK inside the init script once driver is loaded. This is too early, and driver may not be ready yet by that time. This resulted in breaking the feature to set driver and FW version properties. This commit removes this early setting, and relies on the HAL to set it when driver is ready. Bug: 76220544 Test: Boot the device and make sure the version properties are set Test: adb shell getprop sys.wlan.driver.version Test: adb shell getprop sys.wlan.firmware.version Change-Id: I4a1921f13c9b8077c78320fca593f53352cb922c Signed-off-by: Ahmed ElArabawy <arabawy@google.com>
* | | sepolicy: allow CHRE to use wakelocksAndrew Rossignol2018-06-011-1/+2
|/ / | | | | | | | | | | Bug: 67001170 Test: make -j48, flash, wakelock acquire/release Change-Id: I437ad8cd85de9e45a39de13b97faa3291c8460e6
* | init.qcom.rc: Add vendor prefix to vendor qti binaryAdam Shih2018-06-011-1/+1
| | | | | | | | | | | | | | | | Added vendor prefix to qti module Bug: 80274434 Test: Built pass and boot to home Change-Id: I487d482a7e70dabd0089a2187898b6dd0510f72c
* | Remove code/policy to change owner of sensor registry files.Joel Galenson2018-05-311-6/+0
| | | | | | | | | | | | | | | | | | | | | | | | Commit 4d855e9ce9374662c959b7e766ba5c8919235723 changed the sensor daemons to run as the system user and contained temporary code and SELinux policy to change the ownership of some files. Now that all devices should have made this change, we can remove it. Bug: 77284159 Test: Booted device and tested wifi and camera. Test: Followed tests in ag/3818973. Change-Id: Id47a4cdbd36fc5a1ca15d0298eea71598d2646e1