summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Use more relaxex VNDK configHEADmasterJoonas Kylmälä2019-03-061-216/+10
| | | | | Change-Id: I4c66e86b6353a174584ff77b38989713f2f77a9e Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi>
* Snap for 5115288 from b94cc009432f0b1c0e7b18ce3812580a56ff8d0f to ↵android-build-team Robot2018-11-071-8/+7
|\ | | | | | | | | | | pi-qpr2-release Change-Id: I4709055bf47574f71518182ca184b1dd9443828b
| * Merge "init: increase thermal shutdown timeout to 3s" into pi-devTreeHugger Robot2018-11-071-8/+7
| |\
| | * init: increase thermal shutdown timeout to 3sWei Wang2018-10-261-8/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1) increase thermal shutdown timeout to 3s for process to save work 2) respect property "ro.build.shutdown_timeout" in thermal shutdown if it is set less than default time - "3s" Bug: 112432890 Test: Build Change-Id: Idc2b24dd44c1fab8f9b047fd2468de2ee45ff783 Merged-In: Idc2b24dd44c1fab8f9b047fd2468de2ee45ff783 (cherry picked from commit b5de088262b735267288bbdd3f4430f18f281967)
* | | Snap for 5101444 from afb3a15f39e73978c071a58d3466993293c6d3b1 to ↵android-build-team Robot2018-10-311-7/+29
|\| | | | | | | | | | | | | | | | | pi-qpr2-release Change-Id: I5a5f1437eab7c9919ded24651fef547a0a920677
| * | DO NOT MERGE: lmkd: retune rate at which processes are killedTim Murray2018-10-261-7/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | Kill a single process at a time and try to wait up to 100ms for that process to reclaim memory before triggering another kill. Test: boots, works bug: 116877958 Change-Id: I6775d0534b3e3728c04389d3eae1a00e3cbf9f27
* | | Snap for 5073521 from e77572d76d311ac83449127d550875f778080d9c to ↵android-build-team Robot2018-10-173-25/+122
|\| | | | | | | | | | | | | | | | | pi-qpr2-release Change-Id: Ic9faca28265d0f09225bf6e509087ad552c2f9b8
| * | Merge "Read memory stats from /proc/pid/stat file." into pi-devTreeHugger Robot2018-10-152-25/+82
| |\ \ | | |/ | |/|
| | * Read memory stats from /proc/pid/stat file.Rajeev Kumar2018-10-122-25/+82
| | | | | | | | | | | | | | | | | | | | | | | | (cherry pick from commit 0301683e49ab255769b15469487feaab3466167a) Bug: 117333340 Test: Manual testing using alloc-stress tool Change-Id: Ie555933aafa6a6b7aa1dbf5518ebe804376e0afd Merged-In: Ie555933aafa6a6b7aa1dbf5518ebe804376e0afd
| * | lmkd: Implement pid purge command to clear old pids when zygote restartsSuren Baghdasaryan2018-10-102-0/+40
| |/ | | | | | | | | | | | | | | | | | | | | lmkd keeps a list of pids registered by ActivityManager, however on rare occasions when framework restarts and lmkd survives that list has to be purged. Implement a command that can be used to clear the pid list. Bug: 116801366 Test: locally by killing zygote process Change-Id: I71d6012f86bb83a73edd5b687e05a0848e0569b1 Signed-off-by: Suren Baghdasaryan <surenb@google.com>
* | Snap for 5044688 from d6cbf3f41d7cb54e7dc62f4c29f7a7cba05aa28b to ↵android-build-team Robot2018-10-022-34/+48
|\| | | | | | | | | | | pi-qpr2-release Change-Id: I962d0906585a4643f49f52d6a0dbd7bca7785536
| * lmkd: rate-limit and cleanup failed kill reportsSuren Baghdasaryan2018-09-072-34/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Excessive number of failed kill reports when lmkd can't find an eligible process to kill or frees not enough memory pollutes logs and bugreports. Cleanup kill reports to remove duplicate information and rate limit failed kill attempts at 1 report per sec. The number of suppressed failed kills will be reported in the next lmkd report. Bug: 113864581 Test: Verified using lmkd_unit_test Change-Id: I67fa1fec97613f136c7582115edcbc56b1503c9c Merged-In: I67fa1fec97613f136c7582115edcbc56b1503c9c Signed-off-by: Suren Baghdasaryan <surenb@google.com>
* | Snap for 4939496 from 270e90f033dd412206697e3a27aee76c24038c33 to ↵android-build-team Robot2018-08-081-5/+1
|\| | | | | | | | | | | pi-qpr1-release Change-Id: I58c840b601d31afc4b161d62a28052f71460e906
| * Revert "Support Speck encryption."Greg Kaiser2018-08-071-5/+1
| | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 49c27c5cb2c48ce4665affe2b3086077c768a9ae. Remove the Speck encryption support. It was eventually decided not to allow Speck in Android P, so this code is no longer needed and wasn't used outside of testing. Bug: 112009351 Test: Confirmed AES continues to work with FBE. Change-Id: Ia5458143be5687fff8d541d8fa2c8ee24a369da4
* | Snap for 4916303 from ae2e19dd96e47a084eac09c3b3095b3bef427415 to ↵android-build-team Robot2018-07-271-1/+1
|\| | | | | | | | | | | pi-qpr1-release Change-Id: I35cf9d0f8977bc35e330ef1b91c207a27f4a4d82
| * metricslogger: fix ACTION_BATTERY_CAUSED_SHUTDOWN not matching protoThierry Strudel2018-07-191-1/+1
|/ | | | | | | Bug: 111664962 Test: "pixelstats_client -s" uses the right ATOM value Change-Id: I2944c6d9f79298ce88812fad218552b92afee97a Signed-off-by: Thierry Strudel <tstrudel@google.com>
* Determine product partition path on build timeDoheon Lee2018-06-202-20/+13
| | | | | | | | | | | | | Path of product partitoin can be set as /product or /system/product whether generate extra product partition or not. Substitute %PRODUCT% to relevant path to know linker which path should search and permit. Bug: 110286945 Test: m -j # Check /system/etc/ld.config.$(PLATFORM_VNDK_VERSION).txt Change-Id: I6ca177d0c9c5af00ad821879fece40848331fc8d Merged-In: I6ca177d0c9c5af00ad821879fece40848331fc8d (cherry picked from commit cccad0bf8461ab575a5861f9bc68c9f8f69db582)
* Add /system/product/* paths to permitted pathsInseob Kim2018-06-201-0/+8
| | | | | | | | | | | | | | As linker doesn't resolve paths in permitted paths, /system/product variants should be added to support devices having product partition under /system. Bug: 110286945 Test: m -j succeeds on taimen and libraries under /system can dlopen libraries under /system/product/apps Change-Id: Icd102d44511702e4ec66c07a367b59c3d9700a44 Merged-In: Icd102d44511702e4ec66c07a367b59c3d9700a44 (cherry picked from commit 3918936b9e7fee51828d285a1217c7202d5cb2d1)
* Merge "Revert "healthd: add stem to health@2.0-service.override [DO NOT ↵TreeHugger Robot2018-06-181-1/+0
|\ | | | | | | MERGE]"" into pi-dev
| * Revert "healthd: add stem to health@2.0-service.override [DO NOT MERGE]"Yifan Hong2018-06-181-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | This should have been done with actual fixes to sepolicy and rc scripts. This reverts commit 299276785787a35effa829f3f9d507cbde266dea. Reason for revert: broke the build Bug: 110228707 Change-Id: I23944d044dd2f87e6c1033ed7a4c7cf34f16247e
* | Merge "healthd: add stem to health@2.0-service.override [DO NOT MERGE]" into ↵Yifan Hong2018-06-181-0/+1
|\| | | | | | | pi-dev
| * healthd: add stem to health@2.0-service.override [DO NOT MERGE]Yifan Hong2018-06-141-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The override module should have the same name as the -service module; the only difference is that healthd is installed or not. Without this change, the binary is completely useless due to incorrect rc files and sepolicy file_contexts. This allows emulator to use this module correctly. Bug: 110228707 Test: builds on emulator, boots Change-Id: Id2062925ec3567c4fde70358184bb790541bf83b
* | Merge "Populate recovery DTBO offset correctly" into pi-devTreeHugger Robot2018-06-142-11/+25
|\ \
| * | Populate recovery DTBO offset correctlyHridya Valsaraju2018-06-122-11/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also, remove recovery_dtbo_offset argument for mkbootimg as this is calculated based on sizes of kernel, ramdisk and second binaries. Also, modify unpack_bootimg to use the recovery_dtbo_offset field to extract recovery_dtbo. Test: make recoveryimage showcommands -j32 Bug: 80207223 unpack_bootimg --boot_img $OUT/recovery.img diff recovery_dtbo dtbo.img Change-Id: I588ccc8b739c169b6f78c17ffe554c5562397d98 Merged-In: I588ccc8b739c169b6f78c17ffe554c5562397d98 (cherry picked from commit 26e01bbdc5cb2dcad64d73ec836447b8ded4fc6c)
* | | Correct comment in boot image headerHridya Valsaraju2018-06-131-5/+8
|/ / | | | | | | | | | | | | | | Test: make Bug: 80207223 Change-Id: I88cf7683e036ff43bbe3ff5418519c7e35e08b79 Merged-In: I88cf7683e036ff43bbe3ff5418519c7e35e08b79 (cherry picked from commit d0ab4e3701dcec866cb05f4d2a122fbbcabf61cc)
* | Merge "Parse IfIndex for Netlink RTM_NEWADDR / RTM_DELADDR event" into pi-devTreeHugger Robot2018-06-061-4/+5
|\ \
| * | Parse IfIndex for Netlink RTM_NEWADDR / RTM_DELADDR eventRubin Xu2018-05-161-4/+5
| | | | | | | | | | | | | | | | | | Bug: 64692591 Test: cts-tradefed run commandAndExit cts-dev -m CtsHostsideNetworkTests -t com.android.cts.net.HostsideVpnTests Change-Id: Icb2ae1264f0d2fcd285b04edd27641175dd2646f
* | | liblog: expect content only if ro.logd.kernel is enabledMark Salyzyn2018-06-051-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | On svelte devices, CTS test liblog#android_logger_get_ fails on the missing kernel buffer because it is not enabled to save space. Test: gTest liblog_unit_tests Bug: 109669791 Change-Id: Iaf46fe9713d3462a56885515a67db640544345ab
* | | Support /product/binInseob Kim2018-06-013-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 80422611 Test: m -j succeeded and permissions of files under /product/bin are set correctly Change-Id: I83377d809c47c92da6b226d2853ea6a7462fb127 Merged-In: I83377d809c47c92da6b226d2853ea6a7462fb127 (cherry picked from commit 25195daaca079e048e47b38b83fc41527a89ccb0)
* | | Merge "Support product-specific libraries" into pi-devTreeHugger Robot2018-06-017-37/+104
|\ \ \
| * | | Support product-specific librariesInseob Kim2018-05-317-37/+104
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Product-specific libraries in /product/lib can be exposed to Android apps by adding the list of the libs into /product/etc/public.libraries-<companyname>.txt. The libs MUST be named as lib<name>.<companyname>.so. Bug: 73095206 Test: with taimen mma -j and runtest.sh. The libs are all loaded in system, but not in vendor. After reinstalling app using adb -r and reopening app, only libraries listed in .txt are loaded Change-Id: I7c386813c72a7b225a7f244b6c5fec4ac0660fd3 Merged-In: I7c386813c72a7b225a7f244b6c5fec4ac0660fd3 (cherry picked from commit 67cb05654cfa677fd5db33ea0629a9496a9ae907)
* | | | Camera: add DISABLE error codeYin-Chia Yeh2018-05-311-0/+9
|/ / / | | | | | | | | | | | | | | | Test: CTS CameraEvictionTest + IdleUidTest Bug: 77486868 Change-Id: I1411d6667776963435ce25bd643a33c41d224921
* | | Merge "healthd_mode_charger: unblank the screen only on first frame" into pi-devTreeHugger Robot2018-05-241-4/+4
|\ \ \
| * | | healthd_mode_charger: unblank the screen only on first frameThierry Strudel2018-05-231-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Original code is unblank screen for all frames of the first cycle, unblank is needed only before the first frame of the first cycle. Bug: 74771887 Change-Id: I51d8390e359335a0b1cb127b096db1a8b889b169 Signed-off-by: Thierry Strudel <tstrudel@google.com>
* | | | Merge "Add cwren to libmetricslogger OWNERS" into pi-devAndrew Chant2018-05-241-0/+1
|\ \ \ \
| * | | | Add cwren to libmetricslogger OWNERSAndrew Chant2018-05-231-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 69978775 Test: None. Change-Id: Ic48e37fa4a1fa192bcd948954dc056219535e0b8
* | | | | Merge "Make per-application memcg hierarchy configurable via a property" ↵TreeHugger Robot2018-05-241-5/+24
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | into pi-dev
| * | | | | Make per-application memcg hierarchy configurable via a propertySuren Baghdasaryan2018-05-231-5/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Introduce ro.config.per_app_memcg Android property to enable/disable per-application memcg hierarchy. On low-ram devices (ro.config.low_ram=true) ro.config.per_app_memcg defaults to true, otherwise it defaults to false. Bug: 80201565 Test: set ro.config.per_app_memcg=true and verify /proc/<app_pid>/cgroup membership (memory:/apps/uid_xxx/pid_xxx) Test: set ro.config.per_app_memcg=false and verify /proc/<app_pid>/cgroup membership (memory:/) Change-Id: Iabd3ef6c9c16c774b9da959a7f43b5f66df120a3 Signed-off-by: Suren Baghdasaryan <surenb@google.com>
* | | | | | Merge "Add Hardware Reliabilty metrics to C header" into pi-devAndrew Chant2018-05-231-0/+59
|\ \ \ \ \ \ | |_|_|/ / / |/| | | | |
| * | | | | Add Hardware Reliabilty metrics to C headerAndrew Chant2018-05-221-0/+59
| | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Expose Hardware Reliabilty TRON metrics constants for logging via C++ interfaces. Bug: 69978775 Test: Logged events from Pixelstats HAL Change-Id: I9a1c4467d31f64ae3c43e35b0a4cf5a92157c39f
* | | | | Merge "Add a new directory to store downloaded apns" into pi-devJordan Liu2018-05-221-0/+1
|\ \ \ \ \
| * | | | | Add a new directory to store downloaded apnsNiklas Lindgren2018-05-211-0/+1
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | downloaded apns-conf.xml will be stored in the folder /data/misc/apns/ to make sure TelephonyProvider gets access. Bug: 79948106 Test: Manual Change-Id: I4ba0596fa6523c0eb96328dbe46ead02587bd9b8 Merged-In: I4ba0596fa6523c0eb96328dbe46ead02587bd9b8
* | | | | Merge "init: finer grained permissions for ctl. properties" into pi-devTom Cherry2018-05-222-16/+39
|\ \ \ \ \
| * | | | | init: finer grained permissions for ctl. propertiesTom Cherry2018-05-222-16/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently, permissions for ctl. property apply to each action verb, so if a domain has permissions for controlling service 'foo', then it can start, stop, and restart foo. This change implements finer grainer permissions such that permission can be given to strictly start a given service, but not stop or restart it. This new permission scheme is mandatory for the new control functions, sigstop_on, sigstop_off, interface_start, interface_stop, interface_restart. Bug: 78511553 Test: see appropriate successes and failures based on permissions Change-Id: I6ce915ae39954a67eb6fe1795a93cf715c352ae4
* | | | | | Merge "init: allow entering of network namespaces" into pi-devTom Cherry2018-05-223-17/+85
|\ \ \ \ \ \ | |_|_|/ / / |/| | | | |
| * | | | | init: allow entering of network namespacesTom Cherry2018-05-213-17/+85
| | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add the ability to enter a network namespace when launching a service. Typical usage of this would be something similar to the below: on fs exec ip netns add namespace_name service vendor_something /vendor/... capabilities <lower than root> user not_root enter_namespace net /mnt/.../namespace_name Note changes to the `ip` tool are needed to create the namespace in the correct directory. Bug: 73334854 Test: auto team verified Merged-In: Ifa91c873d36d69db399bb9c04ff2362518a0b07d Change-Id: Ifa91c873d36d69db399bb9c04ff2362518a0b07d (cherry picked from commit aead51b418e70a49191bc0cc5b67c92c969ae699)
* | | | | Merge "Fix bug when doing signal handler lookup." into pi-devChristopher Ferris2018-05-2213-62/+202
|\ \ \ \ \ | |_|/ / / |/| | | |
| * | | | Fix bug when doing signal handler lookup.Christopher Ferris2018-05-2113-62/+202
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The new lld linker uses all non-zero offset executable maps. There was a bug when trying to find if the stack is in a signal handler that caused the code to read the wrong place in the elf. Fixed by not adding the elf offset to the relative pc. Also fixed the unwind_for_offline tool to dump multiple stacks if necessary. Added new offline unit test that would have failed with the old code. Bug: 79936827 Test: Ran unit tests and libbacktrace unit tests. Test: Dumped backtraces of system pids. Test: Ran 137-cfi art test. Change-Id: Iaca8c18c2a314902e64c3f72831234297e8dcb1b Merged-In: Iaca8c18c2a314902e64c3f72831234297e8dcb1b (cherry picked from commit 239425b9fa91ae13d18cf8158b31663876d07acf)
* | | | Merge "Add files to CleanSpec.mk" into pi-devTreeHugger Robot2018-05-221-0/+3
|\ \ \ \
| * | | | Add files to CleanSpec.mkLogan Chien2018-05-161-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit removes stale files from incremental builds: * /system/etc/ld.config.txt, * /system/etc/llndk.libraries.txt * /system/etc/public.libraries.txt These files are replaced by versioned ones. Bug: 78605339 Test: Those files are removed in incremental builds Change-Id: I7925fa45b47397829bde835ab3c479611faffa33