summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-10-04Merge "liblog#__android_log_btwrite__android_logger_list_read fail" into ↵pie-cts-devTreehugger Robot
pie-cts-dev
2018-09-28liblog#__android_log_btwrite__android_logger_list_read failYuxian Xu
With replaced AOSP system.img, adb can be root by other test. The fail is caused by the reason that logdw is still active after __android_log_close(). This test has a potential bug. proc/net/unix may contain '\0', then "grep" command will treat this file as a bianry file. Using "grep -a" instead of "grep" could be a safer way to get the right results from bianry file. bug: 112250722 Test: Build CTS Test: Pixel 2 XL PPP5.180610.010 passed the following tests Test: run cts-on-gsi -m CtsLiblogTestCases --skip-preconditions Change-Id: I9bfca1522e90ebb68e6cecbdb63e3b67248e47c4 Merged-In: I9bfca1522e90ebb68e6cecbdb63e3b67248e47c4 Signed-off-by: Xinghua Yang <xinghua.yang@mediatek.com>
2018-09-16Merge "logd: remove failing test." into pie-cts-devTreehugger Robot
2018-09-12logd: remove failing test.Elliott Hughes
Bug: 112251723 Test: ran tests manually Change-Id: I3ebb97d757077acaab1b51809a1c2be90ceb1ad9 (cherry picked from commit 6427c363dfba0f5de286c0b9846a6547ca591871)
2018-07-25Remove pstore case ibc.__pstore_append from CTSandroid-vts-9.0_r4android-cts-9.0_r2chenhg
Bug: 110118705 Bug: 110761200 Test: partners verified Change-Id: I946c645af0cfb3f3b0e9344c51940da226fd08ce
2018-06-20Determine product partition path on build timepie-dr1-devDoheon Lee
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)
2018-06-20Add /system/product/* paths to permitted pathsInseob Kim
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)
2018-06-18Merge "Revert "healthd: add stem to health@2.0-service.override [DO NOT ↵TreeHugger Robot
MERGE]"" into pi-dev
2018-06-18Revert "healthd: add stem to health@2.0-service.override [DO NOT MERGE]"Yifan Hong
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
2018-06-18Merge "healthd: add stem to health@2.0-service.override [DO NOT MERGE]" into ↵Yifan Hong
pi-dev
2018-06-14healthd: add stem to health@2.0-service.override [DO NOT MERGE]Yifan Hong
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
2018-06-14Merge "Populate recovery DTBO offset correctly" into pi-devTreeHugger Robot
2018-06-13Correct comment in boot image headerHridya Valsaraju
Test: make Bug: 80207223 Change-Id: I88cf7683e036ff43bbe3ff5418519c7e35e08b79 Merged-In: I88cf7683e036ff43bbe3ff5418519c7e35e08b79 (cherry picked from commit d0ab4e3701dcec866cb05f4d2a122fbbcabf61cc)
2018-06-12Populate recovery DTBO offset correctlyHridya Valsaraju
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)
2018-06-06Merge "Parse IfIndex for Netlink RTM_NEWADDR / RTM_DELADDR event" into pi-devTreeHugger Robot
2018-06-05liblog: expect content only if ro.logd.kernel is enabledMark Salyzyn
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
2018-06-01Support /product/binInseob Kim
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)
2018-06-01Merge "Support product-specific libraries" into pi-devTreeHugger Robot
2018-05-31Camera: add DISABLE error codeYin-Chia Yeh
Test: CTS CameraEvictionTest + IdleUidTest Bug: 77486868 Change-Id: I1411d6667776963435ce25bd643a33c41d224921
2018-05-31Support product-specific librariesInseob Kim
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)
2018-05-24Merge "healthd_mode_charger: unblank the screen only on first frame" into pi-devTreeHugger Robot
2018-05-24Merge "Add cwren to libmetricslogger OWNERS" into pi-devAndrew Chant
2018-05-24Merge "Make per-application memcg hierarchy configurable via a property" ↵TreeHugger Robot
into pi-dev
2018-05-23healthd_mode_charger: unblank the screen only on first frameThierry Strudel
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>
2018-05-23Make per-application memcg hierarchy configurable via a propertySuren Baghdasaryan
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>
2018-05-23Merge "Add Hardware Reliabilty metrics to C header" into pi-devAndrew Chant
2018-05-23Add cwren to libmetricslogger OWNERSAndrew Chant
Bug: 69978775 Test: None. Change-Id: Ic48e37fa4a1fa192bcd948954dc056219535e0b8
2018-05-22Add Hardware Reliabilty metrics to C headerAndrew Chant
Expose Hardware Reliabilty TRON metrics constants for logging via C++ interfaces. Bug: 69978775 Test: Logged events from Pixelstats HAL Change-Id: I9a1c4467d31f64ae3c43e35b0a4cf5a92157c39f
2018-05-22Merge "Add a new directory to store downloaded apns" into pi-devJordan Liu
2018-05-22Merge "init: finer grained permissions for ctl. properties" into pi-devTom Cherry
2018-05-22Merge "init: allow entering of network namespaces" into pi-devTom Cherry
2018-05-22Merge "Fix bug when doing signal handler lookup." into pi-devChristopher Ferris
2018-05-22init: finer grained permissions for ctl. propertiesTom Cherry
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
2018-05-22Merge "Add files to CleanSpec.mk" into pi-devTreeHugger Robot
2018-05-21lmkd: Do not set soft_limit_in_bytes on high-end devicesSuren Baghdasaryan
Setting memory.soft_limit_in_bytes on high-end devices with large memory reserves affects performance of memory-hungry applications that have large workingsets and keep thrashing because of the memory limits imposed. Limit the usage of memory.soft_limit_in_bytes to low-memory devices only. Add debug messages for future troubleshooting to capture cases when vmpressure events are being ignored. Bug: 78916015 Test: collect vmstat while running a heavy app Change-Id: Ib4434b96d2be802ef89960b573486eae8d12f198 Merged-In: Ib4434b96d2be802ef89960b573486eae8d12f198 Signed-off-by: Suren Baghdasaryan <surenb@google.com>
2018-05-21Merge changes from topic "generic_by_name" into pi-devTreeHugger Robot
* changes: Adds /dev/block/by-name/<partition> symlinks Removing block device by-num symlinks
2018-05-21Fix bug when doing signal handler lookup.Christopher Ferris
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)
2018-05-21Add a new directory to store downloaded apnsNiklas Lindgren
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
2018-05-21init: allow entering of network namespacesTom Cherry
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)
2018-05-19Adds /dev/block/by-name/<partition> symlinksBowgo Tsai
During uevent processing, some "by-name" symlinks will be created. /dev/block/<type>/<device>/by-name/<partition> <type> can be: platform, pci or vbd. <device> might be: soc.0/f9824900.sdhci, soc.0/f9824900.sdhci, etc. <partition> might be: system, vendor, system_a, system_b, etc. e.g., on a non-A/B device: /dev/block/platform/soc.0/f9824900.sdhci/by-name/system /dev/block/platform/soc.0/f9824900.sdhci/by-name/vendor On a A/B device: /dev/block/platform/soc/1da4000.ufshc/by-name/system_a /dev/block/platform/soc/1da4000.ufshc/by-name/system_b /dev/block/platform/soc/1da4000.ufshc/by-name/vendor_a /dev/block/platform/soc/1da4000.ufshc/by-name/vendor_b However, those symlinks are "device-specific". This change adds the "generic" symlinks in ueventd, in addition to the existing symlinks, when the possible "boot devices" are specified in device tree. e.g., &firmware_android { compatible = "android,firmware"; boot_devices ="soc/1da4000.ufshc,soc.0/f9824900.sdhci"; } The following symlinks will then be created on the aforementioned non-A/B and A/B devices, respectively. /dev/block/by-name/system /dev/block/by-name/vendor /dev/block/by-name/system_a /dev/block/by-name/system_b /dev/block/by-name/vendor_a /dev/block/by-name/vendor_b Note that both <type> and <device> are skipped in the newly create symlinks. It assumes there is no more than one devices with the same <partition>, which is the assumption of current first stage mount flow. Finally, when 'boot_devices' in DT is absent, it fallbacks to extract 'boot_devices' from fstab settings. e.g., using 'soc/1da4000.ufshc', 'soc.0/f9824900.sdhci' for a fstab with the following content: /dev/block/platform/soc/1da4000.ufshc/by-name/system /dev/block/platform/soc.0/f9824900.sdhci/by-name/vendor Bug: 78613232 Test: adb shell ls /dev/block/by-name Change-Id: Iec920b5a72409b6a2bdbeeb290f0a3acd2046b5d Merged-In: Iec920b5a72409b6a2bdbeeb290f0a3acd2046b5d (cherry picked from commit 8eec38f4e463d8cd980562ec49432c17972cc5cb)
2018-05-19Removing block device by-num symlinksBowgo Tsai
The uevent.partition_num easily collides between partitions, for example: Both /dev/block/sda3 and /dev/block/sdd3 will generate the same symlink: /dev/block/platform/soc/1da4000.ufshc/by-num/p3 This change remove those by-num symlinks as there seems no effective user of it. Bug: 78613232 Test: m init_tests && \ adb push $OUT/data/nativetest64/init_tests/init_tests /data/. && \ adb shell /data/init_tests Change-Id: I8dfa8dc1a2f9fc9296aa30f33e905bf158b501de Merged-In: I8dfa8dc1a2f9fc9296aa30f33e905bf158b501de (cherry picked from commit 95591bd00e653826f25bfa705c3f50545f6b06a3)
2018-05-18Add option to create metadata mount pointPaul Crowley
Test: booted metadata-encrypted device Bug: 79781913 Change-Id: Ie922db20314c04409c98700bfb1aff3d111275f0
2018-05-16Parse IfIndex for Netlink RTM_NEWADDR / RTM_DELADDR eventRubin Xu
Bug: 64692591 Test: cts-tradefed run commandAndExit cts-dev -m CtsHostsideNetworkTests -t com.android.cts.net.HostsideVpnTests Change-Id: Icb2ae1264f0d2fcd285b04edd27641175dd2646f
2018-05-16Merge "Only log the lmkd state change when the killing really happened." ↵TreeHugger Robot
into pi-dev
2018-05-16Merge "Always use versioned VNDK directory" into pi-devLogan Chien
2018-05-16Add files to CleanSpec.mkLogan Chien
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
2018-05-16Always use versioned VNDK directoryLogan Chien
Bug: 78605339 Test: sailfish-userdebug builds and boots Test: sailfish boots with GSI Change-Id: I7da5845b5c1caed3b73d7665f1db672f2764c2a8
2018-05-15Only log the lmkd state change when the killing really happened.Yang Lu
BUG: b/78603347 Test: statsd test Change-Id: I0345a47e1cd1c79a67103e401a2eb0a7fbe0631b
2018-05-14Make memunreachable_test more robust against false negative leaksColin Cross
For some reason, the memunreachable tests are rock solid on the devices covered by APCT, but catch a ton of false-negatives on hikey960, which show up as failures that look like: system/core/libmemunreachable/tests/MemUnreachable_test.cpp:200: Failure Expected equality of these values: 1U Which is: 1 info.leaks.size() Which is: 0 These happen when a stray copy of a pointer is lying around that points to the memory it is expected to leak. The stray pointers can be on the stack or in the jemalloc thread cache of freed allocations, which is always considered active memory. Add some extra cleanups to get rid of old pointers. 1. Clear the tcache when destructing UnreachableMemoryInfo 2. Clear the stack and tcache before and after each test 3. Make MemunreachbleTest.twice match MemunreachableTest.stack Also fix MemunreachableTest.notdumpable, which was only passing when run as root, which was bypassing what the test was trying to cover. Make the test pass when run as non-root, and skip when the test is running as root. Bug: 79701104 Test: memunreachable_test Test: memunreachable_test as root Change-Id: Ia6c6df11e76405d08118afcc19c1fe80a6684c56 Merged-In: Ia6c6df11e76405d08118afcc19c1fe80a6684c56 (cherry picked from commit ca71f170b78e4707dbaa5bf4ddace47a455b4699)
2018-05-15Merge "adb: fix double close in jdwp_service." into pi-devJosh Gao