Commit graph

40386 commits

Author SHA1 Message Date
Bill Rassieur
25f1ac6be2 Merge PQ1A.181205.006 from Pi-QPR1-Release into ToT for Pi-Platform release.\n\nBUG: 120448245
Change-Id: Ia66dd2a90e074d2fcb0dbaeb424031a41752dd03
2018-12-04 17:00:05 +00:00
Bill Yi
a17e32ac8c Merge pi-qpr1-release PQ1A.181105.017.A1 to pi-platform-release
Change-Id: I71c020e283326cc9ae8bb99fcea83e32c98c6e6d
2018-11-28 18:35:04 -08:00
android-build-team Robot
1b94df53de Merge cherrypicks of [5371217, 5371218, 5370861, 5369688, 5370512, 5370513, 5371204, 5371205] into pi-qpr1-release
Change-Id: I9e0dd4a5cedf8eeba4a67c49e7fb4e93c7ce21ad
2018-10-26 20:57:46 +00:00
Tim Murray
04675d7781 DO NOT MERGE: lmkd: retune rate at which processes are killed
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
(cherry picked from commit afb3a15f39)
2018-10-26 20:57:25 +00:00
Suren Baghdasaryan
d2e1a669c6 lmkd: rate-limit and cleanup failed kill reports
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>
(cherry picked from commit d6cbf3f41d)
2018-10-26 20:57:23 +00:00
Bill Rassieur
4da9048b80 Merge PPR2.181005.003 from pi-release-2 into pi-platform-release.
Change-Id: I398364a59b493057139bdfd5de6b5070978c44bb
BUG: 117431430
2018-10-10 17:27:51 +00:00
android-build-team Robot
c9602275fc Merge cherrypicks of [4793640, 4793602, 4793603, 4793660, 4793604, 4793680, 4793681, 4793581, 4793582, 4793625, 4793626, 4793627, 4793628, 4793700, 4793701, 4793702, 4793703, 4793704, 4793705, 4793661, 4793720, 4793721, 4793722, 4793723, 4793724, 4793725, 4793726, 4793727, 4793728, 4793583, 4793740, 4793760, 4793662, 4793780, 4793729] into pi-release-2
Change-Id: Ia75958a7ea990a00967dbc876fcd5fdd0339fb85
2018-08-16 16:41:32 +00:00
Greg Kaiser
d8e76e1e43 Revert "Support Speck encryption."
This reverts commit 49c27c5cb2.

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
(cherry picked from commit 270e90f033)
2018-08-16 16:40:38 +00:00
android-build-team Robot
1797c6976f Snap for 4939496 from 270e90f033 to pi-qpr1-release
Change-Id: I58c840b601d31afc4b161d62a28052f71460e906
2018-08-08 03:08:33 +00:00
Greg Kaiser
270e90f033 Revert "Support Speck encryption."
This reverts commit 49c27c5cb2.

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
2018-08-07 10:15:19 -07:00
android-build-team Robot
0673f0ba26 Snap for 4916303 from ae2e19dd96 to pi-qpr1-release
Change-Id: I35cf9d0f8977bc35e330ef1b91c207a27f4a4d82
2018-07-27 03:14:25 +00:00
Thierry Strudel
ae2e19dd96 metricslogger: fix ACTION_BATTERY_CAUSED_SHUTDOWN not matching proto
Bug: 111664962
Test: "pixelstats_client -s" uses the right ATOM value
Change-Id: I2944c6d9f79298ce88812fad218552b92afee97a
Signed-off-by: Thierry Strudel <tstrudel@google.com>
2018-07-19 19:14:58 -07:00
android-build-team Robot
0fac9018f2 Merge cherrypicks of [4392181, 4392182, 4392183, 4392184, 4392201, 4392202] into pi-release
Change-Id: I82b5577e2ecdbf50a73df940db72964b9c6969af
2018-06-21 00:58:42 +00:00
Doheon Lee
9e9970d7ce Determine product partition path on build time
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 cccad0bf84)
(cherry picked from commit 93d837f3a9)
2018-06-21 00:58:38 +00:00
Inseob Kim
987e94eb8f Add /system/product/* paths to permitted paths
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 3918936b9e)
(cherry picked from commit c4cf62f4b4)
2018-06-21 00:58:31 +00:00
Doheon Lee
93d837f3a9 Determine product partition path on build time
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 cccad0bf84)
2018-06-20 00:53:55 +00:00
Inseob Kim
c4cf62f4b4 Add /system/product/* paths to permitted paths
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 3918936b9e)
2018-06-20 00:53:17 +00:00
TreeHugger Robot
ee81388edb Merge "Revert "healthd: add stem to health@2.0-service.override [DO NOT MERGE]"" into pi-dev 2018-06-18 23:35:25 +00:00
android-build-team Robot
68078ca2b8 Merge cherrypicks of [4368877, 4369031, 4369032, 4369033, 4369034, 4368878, 4369035, 4369036, 4369008] into pi-release
Change-Id: I05769d63a54c76d20b8724dce36b30e54cba9be6
2018-06-18 23:34:51 +00:00
Hridya Valsaraju
c1cc7eca84 Populate recovery DTBO offset correctly
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 26e01bbdc5)
(cherry picked from commit b8371d532d)
2018-06-18 23:34:31 +00:00
Hridya Valsaraju
59ef43ef1f Correct comment in boot image header
Test: make
Bug: 80207223
Change-Id: I88cf7683e036ff43bbe3ff5418519c7e35e08b79
Merged-In: I88cf7683e036ff43bbe3ff5418519c7e35e08b79
(cherry picked from commit d0ab4e3701)
(cherry picked from commit f514f6f66a)
2018-06-18 23:34:26 +00:00
Yifan Hong
9a95028eac Revert "healthd: add stem to health@2.0-service.override [DO NOT MERGE]"
This should have been done with actual fixes to sepolicy and rc scripts.

This reverts commit 2992767857.

Reason for revert: broke the build

Bug: 110228707

Change-Id: I23944d044dd2f87e6c1033ed7a4c7cf34f16247e
2018-06-18 21:23:14 +00:00
Yifan Hong
95d314be38 Merge "healthd: add stem to health@2.0-service.override [DO NOT MERGE]" into pi-dev 2018-06-18 20:15:24 +00:00
Yifan Hong
2992767857 healthd: add stem to health@2.0-service.override [DO NOT MERGE]
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-14 22:30:04 +00:00
TreeHugger Robot
74e8061fd0 Merge "Populate recovery DTBO offset correctly" into pi-dev 2018-06-14 17:29:54 +00:00
Hridya Valsaraju
f514f6f66a Correct comment in boot image header
Test: make
Bug: 80207223
Change-Id: I88cf7683e036ff43bbe3ff5418519c7e35e08b79
Merged-In: I88cf7683e036ff43bbe3ff5418519c7e35e08b79
(cherry picked from commit d0ab4e3701)
2018-06-13 16:25:26 -07:00
Hridya Valsaraju
b8371d532d Populate recovery DTBO offset correctly
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 26e01bbdc5)
2018-06-12 15:32:03 -07:00
android-build-team Robot
f309407c6c Snap for 4826885 from 820ef15058 to pi-release
Change-Id: Ifbb0531108a6292880957b7f4a4a5225926e32c6
2018-06-07 07:20:19 +00:00
TreeHugger Robot
820ef15058 Merge "Parse IfIndex for Netlink RTM_NEWADDR / RTM_DELADDR event" into pi-dev 2018-06-06 13:51:24 +00:00
android-build-team Robot
84240055f4 Snap for 4824048 from ea03e1f841 to pi-release
Change-Id: I0f4785f6e473990eb636cea655c7d1c78022de93
2018-06-06 07:21:53 +00:00
Mark Salyzyn
ea03e1f841 liblog: expect content only if ro.logd.kernel is enabled
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-05 08:42:51 -07:00
android-build-team Robot
5f1febdeef Snap for 4818534 from 9bd3ee1c4f to pi-release
Change-Id: Idc9af3a531d434302036e2d1d61e172bd9a7849d
2018-06-03 07:20:49 +00:00
Inseob Kim
9bd3ee1c4f Support /product/bin
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 25195daaca)
2018-06-01 10:38:57 +09:00
TreeHugger Robot
f88508898c Merge "Support product-specific libraries" into pi-dev 2018-06-01 01:00:28 +00:00
Yin-Chia Yeh
c5c84baaf8 Camera: add DISABLE error code
Test: CTS CameraEvictionTest + IdleUidTest
Bug: 77486868
Change-Id: I1411d6667776963435ce25bd643a33c41d224921
2018-05-31 12:14:14 -07:00
Inseob Kim
e5c2de355b Support product-specific libraries
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 67cb05654c)
2018-05-31 09:59:21 +09:00
android-build-team Robot
2d48594be4 Snap for 4807121 from 39edb87aaf to pi-release
Change-Id: Ie984edd49d1535bd3fc0686a3b6144b2659b25a9
2018-05-27 07:28:13 +00:00
android-build-team Robot
aa0ede2d31 Snap for 4801384 from c70e76f1a4 to pi-release
Change-Id: I33f4e3cdd7a211df7432408c810cf3194112db93
2018-05-24 07:24:19 +00:00
TreeHugger Robot
39edb87aaf Merge "healthd_mode_charger: unblank the screen only on first frame" into pi-dev 2018-05-24 07:03:36 +00:00
Andrew Chant
c70e76f1a4 Merge "Add cwren to libmetricslogger OWNERS" into pi-dev 2018-05-24 01:30:58 +00:00
TreeHugger Robot
f6f8751fd6 Merge "Make per-application memcg hierarchy configurable via a property" into pi-dev 2018-05-24 01:20:17 +00:00
Thierry Strudel
ac2aa7d7b1 healthd_mode_charger: unblank the screen only on first frame
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-23 17:30:16 -07:00
Suren Baghdasaryan
cbb690299f Make per-application memcg hierarchy configurable via a property
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-23 16:23:20 -07:00
Andrew Chant
2cd9d92a1d Merge "Add Hardware Reliabilty metrics to C header" into pi-dev 2018-05-23 21:25:45 +00:00
Andrew Chant
77b720e458 Add cwren to libmetricslogger OWNERS
Bug: 69978775
Test: None.
Change-Id: Ic48e37fa4a1fa192bcd948954dc056219535e0b8
2018-05-23 14:16:42 -07:00
android-build-team Robot
a8992075c0 Snap for 4799153 from 428a6ffaf8 to pi-release
Change-Id: I8b50c825ba0cdcaedd4729b759cecf5ee3d48a4c
2018-05-23 07:28:01 +00:00
Andrew Chant
358471f749 Add Hardware Reliabilty metrics to C header
Expose Hardware Reliabilty TRON metrics constants
for logging via C++ interfaces.

Bug: 69978775
Test: Logged events from Pixelstats HAL
Change-Id: I9a1c4467d31f64ae3c43e35b0a4cf5a92157c39f
2018-05-22 15:55:49 -07:00
Jordan Liu
428a6ffaf8 Merge "Add a new directory to store downloaded apns" into pi-dev 2018-05-22 21:12:31 +00:00
Tom Cherry
8b491495a3 Merge "init: finer grained permissions for ctl. properties" into pi-dev 2018-05-22 20:15:07 +00:00
Tom Cherry
9ad11c0eee Merge "init: allow entering of network namespaces" into pi-dev 2018-05-22 17:13:41 +00:00