Commit Graph

59638 Commits

Author SHA1 Message Date
Jeffrey Huang 6d99e68e74 Merge "Tag libstatspull and libstatssocket tests as MTS" into rvc-dev 2020-04-23 23:55:31 +00:00
TreeHugger Robot 27eff567b7 Merge "logcatd: unset pinning log files" into rvc-dev am: 04083e2ba8 am: 0561cefc44 am: ead6029693
Change-Id: Icf21c968bf9b61bc7bb545cc5dea42235c758227
2020-04-23 23:27:43 +00:00
TreeHugger Robot ead6029693 Merge "logcatd: unset pinning log files" into rvc-dev am: 04083e2ba8 am: 0561cefc44
Change-Id: I9f7f327fd8f0791be62db198337c128b80cc8344
2020-04-23 23:18:23 +00:00
TreeHugger Robot 0561cefc44 Merge "logcatd: unset pinning log files" into rvc-dev am: 04083e2ba8
Change-Id: I141461ab6ac7a2173616a5f65132a76450bde726
2020-04-23 23:04:22 +00:00
TreeHugger Robot 04083e2ba8 Merge "logcatd: unset pinning log files" into rvc-dev 2020-04-23 22:52:26 +00:00
Tom Cherry 4cbe11759b Merge "Remove thread safety from libbase logging / liblog" into rvc-dev am: c53c64c0ec am: 01cd4c654a am: 7a05330c37
Change-Id: Ief85e6bf0ae772978bd721ddda241cee63e746ba
2020-04-23 22:19:41 +00:00
Tom Cherry 7a05330c37 Merge "Remove thread safety from libbase logging / liblog" into rvc-dev am: c53c64c0ec am: 01cd4c654a
Change-Id: I3e217bf888f8f6003f5447d941a20f1cba811573
2020-04-23 22:03:34 +00:00
Tom Cherry 01cd4c654a Merge "Remove thread safety from libbase logging / liblog" into rvc-dev am: c53c64c0ec
Change-Id: Ifeb3482fa4da475b49093e48a25427d5c82d80cc
2020-04-23 21:49:39 +00:00
David Anderson 166f0bd274 Merge "liblp: Fix tests for linear extent overlap." into rvc-dev am: d029ccd0d6 am: 659cc9d588 am: ef0811ad13
Change-Id: I6ec7b4c1c5cf34a1a3ea95f3ed376f48de0bd4fd
2020-04-23 21:42:13 +00:00
Tom Cherry c53c64c0ec Merge "Remove thread safety from libbase logging / liblog" into rvc-dev 2020-04-23 21:40:23 +00:00
David Anderson ef0811ad13 Merge "liblp: Fix tests for linear extent overlap." into rvc-dev am: d029ccd0d6 am: 659cc9d588
Change-Id: If8d8e26f03c731a48f82dfee2ce943947aa63705
2020-04-23 21:23:09 +00:00
David Anderson 659cc9d588 Merge "liblp: Fix tests for linear extent overlap." into rvc-dev am: d029ccd0d6
Change-Id: I3a299b5d055aa4c412bc08d25c4ea93949c68d8e
2020-04-23 21:06:02 +00:00
TreeHugger Robot 38cf62df18 Merge "adb: Avoid extra string construction" into rvc-dev am: 386e91d21c am: ca79430600 am: 997997a974
Change-Id: I34e900094eeb645da6d60e17a2bbeb4595617efc
2020-04-23 20:57:31 +00:00
Jaegeuk Kim 63cdd7095b logcatd: unset pinning log files
commit 5327d931ac ("logcatd: fallocate and fadvise to logcat files")
introduced pinning log files in order to avoid f2fs fragmentation.

But, logcatd does not guarantee to write data within fallocated 2MB space.
So, we can see some bytes written beyond 2MB boundary which results in
pinning small chunks across the filesystem. This makes F2FS GC have to unset
the pinning blocks via GC loop. If this happens during checkpoint=disable
at booting time, we can see long delay to mount /data accordingly.

Bug: 136483670
Bug: 137180754
Bug: 149418646
Fixes: 5327d931ac ("logcatd: fallocate and fadvise to logcat files")
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
Change-Id: I986221d6d1da9b8e46e63d1be98ddf0ce4cb099f
2020-04-23 13:53:37 -07:00
David Anderson d029ccd0d6 Merge "liblp: Fix tests for linear extent overlap." into rvc-dev 2020-04-23 20:51:15 +00:00
TreeHugger Robot 997997a974 Merge "adb: Avoid extra string construction" into rvc-dev am: 386e91d21c am: ca79430600
Change-Id: I6f511a36450298fb19a8a3e35eb72361cac82fb0
2020-04-23 20:41:56 +00:00
TreeHugger Robot ca79430600 Merge "adb: Avoid extra string construction" into rvc-dev am: 386e91d21c
Change-Id: I876983c946ecaee8b0443b9c5acdca66321d22ad
2020-04-23 20:29:48 +00:00
TreeHugger Robot 386e91d21c Merge "adb: Avoid extra string construction" into rvc-dev 2020-04-23 20:11:05 +00:00
Ytai Ben-Tsvi 6025b731e6 Control audio HAL services in start/stop
Some system services (e.g. SoundTriggerMiddleware) assume that
whenever they start, the audio HAL is in its default (reset) state.
init.rc scripts tie the lifetimes of the audio HAL and system
processes, but when using stop/start this is not the case, and this
may cause spurious crashes in this case.

stop/start is apparently being relied on in some test infrastructure,
so this change is needed to avoid causing problems for those systems
or false detection of problems, which are not actually present in
production.

Bug: 154029444
Test: Manually verify that the audio HAL is stopped on
      'adb shell stop', restarted on 'adb shell start' and that the
      system boots correctly after.
Change-Id: I39878b978b47a169c4fe446c43d7347809d15e06
2020-04-23 10:42:55 -07:00
Tom Cherry 2ae56067bf Remove thread safety from libbase logging / liblog
There are no libbase users that require thread safety for SetLogger,
SetAborter, or SetDefaultTag  and the equivalent liblog symbols are
unreleased, thus have effectively no users.

It is hard to imagine a scenario where a user would need to use these
functions in a multi-threaded program, and it is unreasonable for all
users to pay for thread safety for a vast minority of potential
scenarios. Thread safety implies less efficiency and necessarily means
that these functions are neither fork safe nor async-signal safe, and
we do have users who depend on those characteristics.

It is always possible for users of the non-thread safe versions of
these functions to build thread safe versions on top of them.  For
example, if a user needs a thread safe SetLogger(), they can use the
non-thread safe SetLogger at the start of their program to register a
logger that has its own lock and pointer to a logger function.

Bug: 119867234
Test: logging unit tests
Change-Id: I8afffec1a6957d3bda95502a4c59493e0c5049ce
(cherry picked from commit 53d301c29b)
2020-04-23 10:33:03 -07:00
android-build-team Robot 9066adc848 Snap for 6421724 from 77c52aefc4 to mainline-release
Change-Id: I2d541cde6e65495b6da35e89bd6ff2868d361f3f
2020-04-23 07:10:30 +00:00
Jeffrey Huang 2f51ad7b86 Tag libstatspull and libstatssocket tests as MTS
create both 32 and 64 bit variants
fixes libstatssocket_test for 32 bit devices

Bug: 154652564
Test: make mts, adb push, adb shell all 4 tests
Change-Id: Ia6b51686c06e786b38cb3713315977533f1bb819
2020-04-22 17:13:24 -07:00
David Anderson f81ec0e43a liblp: Fix tests for linear extent overlap.
The "OwnsSector" tests did not work if one range fit completely inside
another range. The new OverlapsWith() methods address this case.

Bug: 154277287
Bug: 154646936
Test: liblp_test gtests
Change-Id: I1a59069db4ffe4f13c45963c4847cff7b3dd3dfc
2020-04-22 14:39:04 -07:00
Nikita Ioffe 77c52aefc4 Merge "Observe new apexd status value of "activated" as required." into rvc-dev am: 1b8c391c29 am: b80b857bf5 am: c94cff6590
Change-Id: I352e28572d8f43c80c39f551dc237f2577a89975
2020-04-22 19:29:23 +00:00
Nikita Ioffe c94cff6590 Merge "Observe new apexd status value of "activated" as required." into rvc-dev am: 1b8c391c29 am: b80b857bf5
Change-Id: I8d5c3d22fcd7c4fb6a96513a1abcfe18aebc996c
2020-04-22 19:17:40 +00:00
Nikita Ioffe b80b857bf5 Merge "Observe new apexd status value of "activated" as required." into rvc-dev am: 1b8c391c29
Change-Id: I6beaffec8578aacaa66d618d417bf94f3021d395
2020-04-22 19:00:36 +00:00
Nikita Ioffe 1b8c391c29 Merge "Observe new apexd status value of "activated" as required." into rvc-dev 2020-04-22 18:43:01 +00:00
Oli Lan 7c59fc4fb4 Observe new apexd status value of "activated" as required.
- Cherry pick of aosp/1228482

As of aosp/1224611, there is a new step in the preparation of APEXes
where init calls back into apexd after DE user data is unencrypted to
allow DE apex data to be snapshotted or restored.

aosp/1228581 introduces a new apexd.status value of "activated" that
is set once APEXes are activated but before this snapshot has occurred.

init may execute "perform_apex_config" once this has occurred, so this
CL changes init to wait for "activated" rather than "ready" before
doing this.

Bug: 148672144
Test: build & flash, check boot completes and check in logs that init
waits on the correct status value.
Merged-In: I339580bf593d3b09a5dff749ac2a5d1952bcb210
Change-Id: I71b62c9dd2f7951811606002f38612784d3d9086
2020-04-22 12:37:27 +00:00
android-build-team Robot d8468baeac Snap for 6417465 from 115166fe6b to mainline-release
Change-Id: I1212d83449aaeca017b8c86aa055ddedeac906aa
2020-04-22 07:11:36 +00:00
Greg Kaiser cb885c24fc adb: Avoid extra string construction
Bug: 150827486
Test: TreeHugger
Change-Id: Ie03062a17b98866f1bc419a7e509461cf4e6bb80
Merged-In: Ie03062a17b98866f1bc419a7e509461cf4e6bb80
2020-04-21 20:34:44 -07:00
Nikita Ioffe 71278019d1 Make /data/apex/active world readable
This will allow Phonesky to read APEXes under /data/apex/active.

Test: adb shell su 10114 dd if=/data/apex/active/com.android.tzdata@300000000.apex of=/dev/null
Bug: 154635217
Change-Id: I5278897413ca0e32aed9d1c7f82e48138bc51404
2020-04-21 21:14:59 +01:00
TreeHugger Robot 115166fe6b Merge "Add /mnt/androidwritable for MOUNT_EXTERNAL_ANDROID_WRITABLE apps" into rvc-dev am: af9240abc9 am: 1cd960371b am: 7cb9bf8981
Change-Id: I4dcd0c35fc4585f9676864b79686b585eea895ef
2020-04-21 11:45:07 +00:00
Jiyong Park 578e85085e Merge changes from topic "apex_available" into rvc-dev am: 132bb5f861 am: 1c092a0b4c am: 46848a6aeb
Change-Id: Iad5b517b8d5a0565bd81c53509021f65964da12f
2020-04-21 11:44:43 +00:00
Jiyong Park ed07d92c87 Set apex_available property am: a6bcd4817c am: eeb39177ac am: 07cce803f0
Change-Id: If9d0023907b206c17b9ae5b496b8d79a2b6cf369
2020-04-21 11:44:41 +00:00
Jiyong Park 58f2b0644a Set apex_available property am: 5390bee3f4 am: 4cf8b21427 am: f7dcec60f0
Change-Id: I9161bec25a23f61cea7013197408e5705457e25f
2020-04-21 11:44:35 +00:00
Jiyong Park aad40b111e Set apex_available property am: 137fb1ff1e am: da6120982b am: a43314a317
Change-Id: I224882c2a8269be6f91e6a02fd9a2cc2bcbbc851
2020-04-21 11:44:27 +00:00
Jiyong Park 7940146e0e Set apex_available property am: a206b8cbf4 am: 9ac7e02abd am: a9fec0e286
Change-Id: Iccfdb9cb44cced6ba769097d43fe5e9b7ff69dfe
2020-04-21 11:44:22 +00:00
TreeHugger Robot 7cb9bf8981 Merge "Add /mnt/androidwritable for MOUNT_EXTERNAL_ANDROID_WRITABLE apps" into rvc-dev am: af9240abc9 am: 1cd960371b
Change-Id: Ibe7cedeaea584c509b2fe85d23cafa41ee3bae70
2020-04-21 11:30:44 +00:00
Jiyong Park 46848a6aeb Merge changes from topic "apex_available" into rvc-dev am: 132bb5f861 am: 1c092a0b4c
Change-Id: I039a1fc9342bd27b1e34b9f4ec325320f961c09b
2020-04-21 11:30:14 +00:00
Jiyong Park 07cce803f0 Set apex_available property am: a6bcd4817c am: eeb39177ac
Change-Id: Ic5fc3c6077e5fad1959ef9d3f9bc349bfcfe1c81
2020-04-21 11:30:11 +00:00
Jiyong Park f7dcec60f0 Set apex_available property am: 5390bee3f4 am: 4cf8b21427
Change-Id: If1b74e9b8985f2f46cc32673fc8c40ad1705e695
2020-04-21 11:30:07 +00:00
Jiyong Park a43314a317 Set apex_available property am: 137fb1ff1e am: da6120982b
Change-Id: I520b2f8507fcee207a7aaecf8b3b0702665f6630
2020-04-21 11:29:59 +00:00
Jiyong Park a9fec0e286 Set apex_available property am: a206b8cbf4 am: 9ac7e02abd
Change-Id: I143c1fec0902d67e5064513eef2b4666f90c4904
2020-04-21 11:29:52 +00:00
TreeHugger Robot 1cd960371b Merge "Add /mnt/androidwritable for MOUNT_EXTERNAL_ANDROID_WRITABLE apps" into rvc-dev am: af9240abc9
Change-Id: I36a5c30beedbc835ff4dced7649bfff2e0057a73
2020-04-21 11:24:14 +00:00
Jiyong Park 1c092a0b4c Merge changes from topic "apex_available" into rvc-dev am: 132bb5f861
Change-Id: Ibbefe2e408c0ba22db9b69e2abb4d1282a6bb8f4
2020-04-21 11:20:53 +00:00
Jiyong Park eeb39177ac Set apex_available property am: a6bcd4817c
Change-Id: Ibe54242ec7b83d5f6a5bc55001d1f98f3dfc93e6
2020-04-21 11:20:50 +00:00
Jiyong Park 4cf8b21427 Set apex_available property am: 5390bee3f4
Change-Id: I5516bc8a13ee04ffaff2aa98b511d30e92d057e3
2020-04-21 11:20:45 +00:00
Jiyong Park da6120982b Set apex_available property am: 137fb1ff1e
Change-Id: If625091524946f00a4c1accbb86ed28fa378d4e0
2020-04-21 11:20:37 +00:00
Jiyong Park 9ac7e02abd Set apex_available property am: a206b8cbf4
Change-Id: I87cb7f3c8589394789b4db86b3f644ab3406f227
2020-04-21 11:20:31 +00:00
TreeHugger Robot af9240abc9 Merge "Add /mnt/androidwritable for MOUNT_EXTERNAL_ANDROID_WRITABLE apps" into rvc-dev 2020-04-21 11:08:07 +00:00