Commit Graph

651228 Commits

Author SHA1 Message Date
Julia Reynolds
210bab229f [automerger skipped] Move service initialization am: caa5a22ea0 -s ours am: 2ee5edda84 -s ours am: 39711c9dd7 -s ours
am skip reason: Merged-In I2f9f9bdba37f4ebfaea56c1a6662f0474ae8a002 with SHA-1 14d7f081c8 is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18577100

Change-Id: I39fd8aae76294148f1ae29fd366840c4eb490223
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-26 18:34:14 +00:00
Julia Reynolds
3132e811e3 [automerger skipped] Move service initialization am: 14d7f081c8 -s ours am: 56822a2cbb -s ours
am skip reason: Merged-In I2f9f9bdba37f4ebfaea56c1a6662f0474ae8a002 with SHA-1 d262fa6af7 is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18589711

Change-Id: Id31f1f2e1c65abb07343ae82ab4ea828b87c6433
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-26 18:34:09 +00:00
Julia Reynolds
1df64fbf87 [automerger skipped] Move service initialization am: d262fa6af7 -s ours
am skip reason: Merged-In I2f9f9bdba37f4ebfaea56c1a6662f0474ae8a002 with SHA-1 937cc90b0d is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18589618

Change-Id: I6c8ea200cf286d45a14537458a3c5f4f5dc4c350
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-26 18:34:04 +00:00
Julia Reynolds
39711c9dd7 [automerger skipped] Move service initialization am: caa5a22ea0 -s ours am: 2ee5edda84 -s ours
am skip reason: Merged-In I2f9f9bdba37f4ebfaea56c1a6662f0474ae8a002 with SHA-1 14d7f081c8 is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18577100

Change-Id: I495654b0d378f61904bfa689df4e76ef3a113523
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-26 18:33:22 +00:00
Julia Reynolds
56822a2cbb [automerger skipped] Move service initialization am: 14d7f081c8 -s ours
am skip reason: Merged-In I2f9f9bdba37f4ebfaea56c1a6662f0474ae8a002 with SHA-1 d262fa6af7 is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18589711

Change-Id: I15a32d7cd62c72412257e83b064e0f99375b4bdf
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-26 18:33:01 +00:00
Julia Reynolds
2ee5edda84 [automerger skipped] Move service initialization am: caa5a22ea0 -s ours
am skip reason: Merged-In I2f9f9bdba37f4ebfaea56c1a6662f0474ae8a002 with SHA-1 14d7f081c8 is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18577100

Change-Id: I9b3572694f3424ba5da6b52fe06b3c71b23b3efa
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-26 18:32:51 +00:00
Julia Reynolds
937cc90b0d Move service initialization
Occasionally ILockSettings can fail to be initialized otherwise
Fixes: 232714129
Test: boot (and eventually bootstress/reboot-long)

Change-Id: I2f9f9bdba37f4ebfaea56c1a6662f0474ae8a002
Merged-In: I2f9f9bdba37f4ebfaea56c1a6662f0474ae8a002
(cherry picked from commit 8e278543bd)
2022-05-24 23:28:38 +00:00
Julia Reynolds
d262fa6af7 Move service initialization
Occasionally ILockSettings can fail to be initialized otherwise
Fixes: 232714129
Test: boot (and eventually bootstress/reboot-long)

Change-Id: I2f9f9bdba37f4ebfaea56c1a6662f0474ae8a002
Merged-In: I2f9f9bdba37f4ebfaea56c1a6662f0474ae8a002
(cherry picked from commit 8e278543bd)
2022-05-24 23:28:00 +00:00
Julia Reynolds
14d7f081c8 Move service initialization
Occasionally ILockSettings can fail to be initialized otherwise
Fixes: 232714129
Test: boot (and eventually bootstress/reboot-long)

Change-Id: I2f9f9bdba37f4ebfaea56c1a6662f0474ae8a002
Merged-In: I2f9f9bdba37f4ebfaea56c1a6662f0474ae8a002
(cherry picked from commit 8e278543bd)
2022-05-24 23:15:56 +00:00
Julia Reynolds
caa5a22ea0 Move service initialization
Occasionally ILockSettings can fail to be initialized otherwise
Fixes: 232714129
Test: boot (and eventually bootstress/reboot-long)

Change-Id: I2f9f9bdba37f4ebfaea56c1a6662f0474ae8a002
Merged-In: I2f9f9bdba37f4ebfaea56c1a6662f0474ae8a002
(cherry picked from commit 8e278543bd)
2022-05-24 16:14:17 -07:00
Brian Julian
a16d02f7af Merge "DO NOT MERGE. Add a permissions check to LocationManagerService." into sc-dev am: 3fe61746df
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18321041

Change-Id: Ib105ab445d98ce2fd4a1f6001f457ff0565ed8bf
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-20 19:55:53 +00:00
Brian Julian
3fe61746df Merge "DO NOT MERGE. Add a permissions check to LocationManagerService." into sc-dev 2022-05-20 19:27:25 +00:00
Brian Julian
a6aa828949 Merge changes from topic "cp-sc-dev-222473855" into sc-qpr1-dev
* changes:
  [automerge] DO NOT MERGE. Add a permissions check to LocationManagerService. 2p: 5b376bc9fd
  DO NOT MERGE. Add a permissions check to LocationManagerService.
2022-05-20 19:27:25 +00:00
Brian Julian
6a3adcb520 Merge "DO NOT MERGE. Add a permissions check to LocationManagerService." into sc-qpr1-dev 2022-05-20 19:27:05 +00:00
Lucas Lin
6b1bf26b0b Merge "Clear mInterface before calling resetIkeState()" into rvc-dev am: 7ba3a378c5 am: 1f68b323f3 am: 59378118d7
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18279994

Change-Id: I831ae41f1de1dd8cd8c150f266b8ec07f57413e7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-20 00:48:57 +00:00
Lucas Lin
59378118d7 Merge "Clear mInterface before calling resetIkeState()" into rvc-dev am: 7ba3a378c5 am: 1f68b323f3
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18279994

Change-Id: I8ad5f88e34f6d3838bf63f0350af8fe333db850f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-20 00:28:57 +00:00
Lucas Lin
1f68b323f3 Merge "Clear mInterface before calling resetIkeState()" into rvc-dev am: 7ba3a378c5
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18279994

Change-Id: I302b84b9b7fd6bd62dbac6eec2eb37b389a431eb
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-20 00:10:36 +00:00
Brian Julian
32bf2b1707 [automerge] DO NOT MERGE. Add a permissions check to LocationManagerService. 2p: 5b376bc9fd
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18321041

Bug: 222473855
Change-Id: I660763f54e7f129d24c0fedb2443413e9ce99326
2022-05-20 00:06:18 +00:00
Brian Julian
5b376bc9fd DO NOT MERGE. Add a permissions check to LocationManagerService.
Prevents apps from reading location requests of other users without INTERACT_ACROSS_USERS permission.
Bug: 222473855
Test: Build

Change-Id: Id591cd39ed7813c649b44d4a3210f0b1fb79b40d
(cherry picked from commit 16560c0930)
2022-05-19 23:57:54 +00:00
Lucas Lin
7ba3a378c5 Merge "Clear mInterface before calling resetIkeState()" into rvc-dev 2022-05-19 23:46:09 +00:00
Brian Julian
8b7a447104 DO NOT MERGE. Add a permissions check to LocationManagerService.
Prevents apps from reading location requests of other users without INTERACT_ACROSS_USERS permission.
Bug: 222473855
Test: Build

Change-Id: Id591cd39ed7813c649b44d4a3210f0b1fb79b40d
(cherry picked from commit 16560c0930)
2022-05-19 15:16:52 +00:00
Hui Yu
abb06fd681 [automerger skipped] Merge "Make sure callingPackage belongs to callingUid when checking BG-FGS restrictions." into sc-dev am: f6e715f998 -s ours
am skip reason: Merged-In Ic14fc331a9b5fbdbcfe6e54a31c8b765513bfd89 with SHA-1 eef20391ce is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18359892

Change-Id: I2f6361a0faf2b9144d9297a9cbe8b749e5c86d4f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-18 18:14:54 +00:00
Hui Yu
f6e715f998 Merge "Make sure callingPackage belongs to callingUid when checking BG-FGS restrictions." into sc-dev 2022-05-18 18:04:04 +00:00
Hui Yu
16f330db3f Merge changes from topic "cherrypick-SPOOF_PACKAGE_NAME-zoqa9prsry" into sc-qpr1-dev
* changes:
  [automerge] Make sure callingPackage belongs to callingUid when checking BG-FGS restrictions. 2p: eef20391ce
  Make sure callingPackage belongs to callingUid when checking BG-FGS restrictions.
2022-05-18 18:04:04 +00:00
TreeHugger Robot
bb5255b7d2 [automerger skipped] [DO NOT MERGE] [conflict] Merge "Make sure callingPackage belongs to callingUid when checking BG-FGS restrictions." into rvc-dev am: a70add46f3 am: a4bbe303ff -s ours am: 043d3bd55f -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18446993

Change-Id: I2f046c98476769427b282c92b9df1c8d75283cf6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-18 04:38:01 +00:00
TreeHugger Robot
043d3bd55f [automerger skipped] [DO NOT MERGE] [conflict] Merge "Make sure callingPackage belongs to callingUid when checking BG-FGS restrictions." into rvc-dev am: a70add46f3 am: a4bbe303ff -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18446993

Change-Id: I0e9added2c94f78647023c0bbdfe1c4fb625d20c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-18 04:17:14 +00:00
TreeHugger Robot
a4bbe303ff [DO NOT MERGE] [conflict] Merge "Make sure callingPackage belongs to callingUid when checking BG-FGS restrictions." into rvc-dev am: a70add46f3
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18356706

Change-Id: Ie110b8cfd17e441789f225ca8743d60a65365a92
Merged-In: Ic14fc331a9b5fbdbcfe6e54a31c8b765513bfd89
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-18 00:33:45 +00:00
TreeHugger Robot
a70add46f3 Merge "Make sure callingPackage belongs to callingUid when checking BG-FGS restrictions." into rvc-dev 2022-05-17 23:37:35 +00:00
Hui Yu
023509e487 Make sure callingPackage belongs to callingUid when checking BG-FGS restrictions.
This is to stop spoofed packageName to pretend to be allowListed
packageName so it can bypass the BG-FGS restriction. This applies to
both BG-FGS while-in-use restriction and BG-FGS-start restriction
since these two restrictions are related.

Bug: 216695100
Bug: 215003903
Test: atest cts/tests/app/src/android/app/cts/ActivityManagerFgsBgStartTest.java#testSpoofPackageName
Change-Id: Ic14fc331a9b5fbdbcfe6e54a31c8b765513bfd89
Merged-In: Ic14fc331a9b5fbdbcfe6e54a31c8b765513bfd89
BYPASS_INCLUSIVE_LANGUAGE_REASON=Legacy API
2022-05-17 20:16:05 +00:00
Presubmit Automerger Backend
ca3e85e57a [automerge] Make sure callingPackage belongs to callingUid when checking BG-FGS restrictions. 2p: eef20391ce
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18359892

Bug: 216695100
Bug: 215003903
Change-Id: I4a28a8fe31276c24935a14ad55dacc8101edbccb
Merged-In: Ic14fc331a9b5fbdbcfe6e54a31c8b765513bfd89
2022-05-17 20:15:40 +00:00
Hui Yu
eef20391ce Make sure callingPackage belongs to callingUid when checking BG-FGS restrictions.
This is to stop spoofed packageName to pretend to be allowListed
packageName so it can bypass the BG-FGS restriction. This applies to
both BG-FGS while-in-use restriction and BG-FGS-start restriction
since these two restrictions are related.

Bug: 216695100
Bug: 215003903
Test: atest cts/tests/app/src/android/app/cts/ActivityManagerFgsBgStartTest.java#testSpoofPackageName
Change-Id: Ic14fc331a9b5fbdbcfe6e54a31c8b765513bfd89
Merged-In: Ic14fc331a9b5fbdbcfe6e54a31c8b765513bfd89
2022-05-17 20:15:29 +00:00
Manjeet Rulhania
b0ec7cce63 [automerger skipped] Merge "Fix duplicate permission privilege escalation" into qt-dev am: b22a6d7372 am: e545a5dbbf -s ours am: 94c1765004 -s ours am: 7aaba89b77 -s ours am: 89ed3dc229 -s ours
am skip reason: Merged-In I1910dca44104e35a57eba4acfa8188cd9b8626ac with SHA-1 f9a9dc720c is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18408986

Change-Id: I224497a3042f59707350abcfaca8ac5a385e513f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-16 22:05:46 +00:00
Manjeet Rulhania
89ed3dc229 [automerger skipped] Merge "Fix duplicate permission privilege escalation" into qt-dev am: b22a6d7372 am: e545a5dbbf -s ours am: 94c1765004 -s ours am: 7aaba89b77 -s ours
am skip reason: Merged-In I1910dca44104e35a57eba4acfa8188cd9b8626ac with SHA-1 f9a9dc720c is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18408986

Change-Id: If4dfb752ed0e4d16c973439f8ae798c96a8bf2e7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-16 21:31:23 +00:00
Manjeet Rulhania
7aaba89b77 [automerger skipped] Merge "Fix duplicate permission privilege escalation" into qt-dev am: b22a6d7372 am: e545a5dbbf -s ours am: 94c1765004 -s ours
am skip reason: Merged-In I1910dca44104e35a57eba4acfa8188cd9b8626ac with SHA-1 f9a9dc720c is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18408986

Change-Id: Icad731f56b018936687104b34dec1dc6cd2afda7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-16 21:14:01 +00:00
Manjeet Rulhania
94c1765004 [automerger skipped] Merge "Fix duplicate permission privilege escalation" into qt-dev am: b22a6d7372 am: e545a5dbbf -s ours
am skip reason: Merged-In I1910dca44104e35a57eba4acfa8188cd9b8626ac with SHA-1 f9a9dc720c is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18408986

Change-Id: I1889b690d52231c896cdc65983be4febdb6eb984
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-16 20:53:20 +00:00
Manjeet Rulhania
e545a5dbbf Merge "Fix duplicate permission privilege escalation" into qt-dev am: b22a6d7372
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18078651

Change-Id: I0e25a20970648244c2a72581478f5a09ac6c10b4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
Merged-In: I1910dca44104e35a57eba4acfa8188cd9b8626ac
Merged-In: I34120fff2ec2a158dfa55779d2afd4bbd49487ff
Merged-In: I9bc839836786a0876e67fd73c05f8944bb532249
2022-05-16 19:49:21 +00:00
Manjeet Rulhania
b22a6d7372 Merge "Fix duplicate permission privilege escalation" into qt-dev 2022-05-16 16:13:01 +00:00
Manjeet Rulhania
473bb58e58 [automerger skipped] Merge "Fix duplicate permission privilege escalation" into rvc-dev am: 3624b53d39 am: f689ec94c6 -s ours am: e131598842 -s ours
am skip reason: skipped by user mrulhania

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18083515

Change-Id: I43d0a123282ac4ddec1643d25a8def016c341096
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-16 03:25:47 +00:00
Manjeet Rulhania
e131598842 [automerger skipped] Merge "Fix duplicate permission privilege escalation" into rvc-dev am: 3624b53d39 am: f689ec94c6 -s ours
am skip reason: skipped by user mrulhania

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18083515

Change-Id: I286b000f30a05ae45d3951b05c6b6253238b46df
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-16 02:18:21 +00:00
Manjeet Rulhania
31bd425bb6 Fix duplicate permission privilege escalation
Duplicate permissions definition with different group allows
privilege permission escalation to a different permission group.

Android studio and gradle plugin does not allow duplicate
permissions with different attributes, these tools only allow
if duplicate permissions are exact copies.

Also platform stores permissions in map at multiple places with
permission name as key. This suggests that we can disallow
duplicate permissions during package install/update.

Bug: 213323615
Test: manual
Change-Id: I6f44e740897305e7a0553c1cf6c3af37faf02a2e
Merged-In: I1910dca44104e35a57eba4acfa8188cd9b8626ac
Merged-In: I34120fff2ec2a158dfa55779d2afd4bbd49487ff
Merged-In: I9bc839836786a0876e67fd73c05f8944bb532249
2022-05-16 02:06:24 +00:00
Manjeet Rulhania
f689ec94c6 Merge "Fix duplicate permission privilege escalation" into rvc-dev am: 3624b53d39
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18083515

Change-Id: I64289b97a4277cde614e132aa19a971fd065db97
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-15 17:35:31 +00:00
Manjeet Rulhania
3624b53d39 Merge "Fix duplicate permission privilege escalation" into rvc-dev 2022-05-15 16:45:22 +00:00
Manjeet Rulhania
f9a9dc720c Fix duplicate permission privilege escalation
Duplicate permissions definition with different group allows
privilege permission escalation to a different permission group.

Android studio and gradle plugin does not allow duplicate
permissions with different attributes, these tools only allow
if duplicate permissions are exact copies.

Also platform stores permissions in map at multiple places with
permission name as key. This suggests that we can disallow
duplicate permissions during package install/update

Bug: 213323615
Test: AppSecurityTests
Change-Id: I1910dca44104e35a57eba4acfa8188cd9b8626ac
Merged-Id: I34120fff2ec2a158dfa55779d2afd4bbd49487ff
Merged-In: I9bc839836786a0876e67fd73c05f8944bb532249
2022-05-14 03:55:04 +00:00
Manjeet Rulhania
7c95fa70de [automerge] Fix duplicate permission privilege escalation 2p: 548edbb850
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18002380

Bug: 213323615
Change-Id: I80db06143d4caa7b304894ac6ab2ac78fe15eb50
Merged-In: I9bc839836786a0876e67fd73c05f8944bb532249
2022-05-13 21:57:02 +00:00
Manjeet Rulhania
548edbb850 Fix duplicate permission privilege escalation
Duplicate permissions definition with different group allows
privilege permission escalation to a different permission group.

Android studio and gradle plugin does not allow duplicate permissions
with different attributes, these tools only allow if duplicate
permissions are exact copies.

Also platform stores permissions in map at multiple places with permission
name as key. This suggests that we can disallow duplicate permissions
during package install/update

Bug: 213323615
Test: AppSecurityTests
Change-Id: I34120fff2ec2a158dfa55779d2afd4bbd49487ff
Merged-In: I9bc839836786a0876e67fd73c05f8944bb532249
2022-05-13 21:56:34 +00:00
Roman Kiryanov
09b78c405c Cleanup in EmulatorClipboardMonitor (4)
Bug: 231345789
Test: presubmit
Signed-off-by: Roman Kiryanov <rkir@google.com>
Change-Id: I9ba57f4347e50f8462cec347e5608ec4d1eb0b30
Merged-In: I9ba57f4347e50f8462cec347e5608ec4d1eb0b30
2022-05-12 21:58:11 -07:00
Roman Kiryanov
a5f8393d76 Cleanup in EmulatorClipboardMonitor (3)
make more functions static, less places to
mess with the global state.

Bug: 231345789
Test: presubmit
Signed-off-by: Roman Kiryanov <rkir@google.com>
Change-Id: I236b039c4fbbbfb519ba1432326bba9a89d008c2
Merged-In: I236b039c4fbbbfb519ba1432326bba9a89d008c2
2022-05-12 21:58:04 -07:00
Roman Kiryanov
14fa62c07d Cleanup in EmulatorClipboardMonitor (2)
The whole `openPipe` function does not
have to be synchronized.

Bug: 231345789
Test: presubmit
Signed-off-by: Roman Kiryanov <rkir@google.com>
Change-Id: I5241086c947a4227fb32648f0693303be66f4d46
Merged-In: I5241086c947a4227fb32648f0693303be66f4d46
2022-05-12 21:57:39 -07:00
Roman Kiryanov
e0b8d2008d Cleanup in EmulatorClipboardMonitor (1)
Bug: 231345789
Test: presubmit
Signed-off-by: Roman Kiryanov <rkir@google.com>
Change-Id: I3e96ab6ada8f0c892613a1f9dcc6b6ae12f6d73b
Merged-In: I3e96ab6ada8f0c892613a1f9dcc6b6ae12f6d73b
2022-05-12 21:57:33 -07:00
Roman Kiryanov
6edf57328b Add wrappers around IO functions to check the return values
Os.read and Os.write don't throw exceptions if
`fd` is closed on the other end.

Bug: 231345789
Bug: 232284244
Test: save a snapshot
Test: use clipboard both, check if there is no
Test: infinite loops which sets the clipboard
Signed-off-by: Roman Kiryanov <rkir@google.com>
Change-Id: If98fb3adf58f2e4e13d483b78ea05ea9d8d61b58
Merged-In: If98fb3adf58f2e4e13d483b78ea05ea9d8d61b58
2022-05-12 21:57:25 -07:00