Commit Graph

530366 Commits

Author SHA1 Message Date
Treehugger Robot
e80c7cb69a Merge "FileBridge: fix fd ownership mismanagement." 2020-10-01 22:35:55 +00:00
Steven Moreland
028f65fa86 HIDL: unsilence error for local Java binder
HIDL Java never originally supported passthrough HALs. However, even
though after a series of bug fixes were created, they are believed to
work, they are still untested, and there is a desire to avoid adding
additional complexity by introducing this usecase, which hasn't been
needed from the birth to the beginning of the deprecation of HIDL.

Bug: 169369810
Test: RemoteException, instead of silent failure
10-01 22:25:30.691  3701  3701 E android_os_HwBinder: Local Java Binder not supported.
10-01 22:25:30.691  3701  3701 E android_os_HwBinder: Uncaught exception!
10-01 22:25:30.692  3704  3704 E HidlTestJava: Error
10-01 22:25:30.692  3704  3704 E HidlTestJava: android.os.RemoteException: HwBinder Error: (-2147483648)
10-01 22:25:30.692  3704  3704 E HidlTestJava:  at android.os.HwRemoteBinder.transact(Native Method)
10-01 22:25:30.692  3704  3704 E HidlTestJava:  at android.hardware.tests.baz.V1_0.IBaz$Proxy.haveSomeStructWithInterface(IBaz.java:2497)
10-01 22:25:30.691  3701  3701 E android_os_HwBinder: Local Java Binder

Change-Id: Ic69c4c860fd5b93320c249ab460bf1c6192fe3e2
2020-10-01 22:29:35 +00:00
Treehugger Robot
403f00bfb8 Merge "Parcel interface token methods @NonNull." 2020-10-01 22:29:23 +00:00
Steven Moreland
844bd1dd1e Move AIDL files to declared packages.
There was a regression in the AIDL compiler recently that removed the
requirement that, like in Java, .aidl unstructured parcelables (these
parcelable declarations) are in directories and files which match their
packages and file names. This CL moves relevant files to the correct
directory required by their type.

Bug: N/A
Test: build
Change-Id: I71f6f714e98e184a02b6bbf3d4f8b0b8c8aee30b
2020-10-01 21:17:52 +00:00
Jack Yu
73d3765e84 Merge "Added getEquivalentHomePlmns API" am: 6c541722ff am: ee052afb4f am: ed1d2560ff
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1441700

Change-Id: I54cb9d58fdd5908e164d187e5b7048e6f3d03944
2020-10-01 20:03:35 +00:00
Patrick Baumann
e756364b69 Merge "Expose grantImplicitAccess in IPackageManager" am: 638bab6e48 am: 76f1cd8f98 am: 11b68dfbe3
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1441675

Change-Id: Ia83d20322964e280241c4eac54af68b51a0e304e
2020-10-01 20:03:10 +00:00
Steven Moreland
414da7912c Parcel interface token methods @NonNull.
These functions have always aborted when there is a null argument
(before, because they used GetStringCritical). Noticed while working
on b/169674485.

Bug: N/A
Test: N/A
Change-Id: Ic24bd26b4c0323fa3ebee78ccf60bbba4627b565
2020-10-01 19:36:14 +00:00
Jack Yu
ed1d2560ff Merge "Added getEquivalentHomePlmns API" am: 6c541722ff am: ee052afb4f
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1441700

Change-Id: I61089b3173ea142e8517eacaf64e1e69ebc83275
2020-10-01 19:08:19 +00:00
Patrick Baumann
11b68dfbe3 Merge "Expose grantImplicitAccess in IPackageManager" am: 638bab6e48 am: 76f1cd8f98
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1441675

Change-Id: Ib455f5a0ef7ab52364d7d24e70b78c1606be5cb8
2020-10-01 19:07:18 +00:00
Jack Yu
ee052afb4f Merge "Added getEquivalentHomePlmns API" am: 6c541722ff
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1441700

Change-Id: Iae99db12f51d25775410ae194e9924917f561547
2020-10-01 18:43:41 +00:00
Patrick Baumann
76f1cd8f98 Merge "Expose grantImplicitAccess in IPackageManager" am: 638bab6e48
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1441675

Change-Id: If0b65cfd426576861ed63f3193e53d5a24b9774f
2020-10-01 18:38:54 +00:00
Jack Yu
6c541722ff Merge "Added getEquivalentHomePlmns API" 2020-10-01 18:29:31 +00:00
Patrick Baumann
638bab6e48 Merge "Expose grantImplicitAccess in IPackageManager" 2020-10-01 18:26:13 +00:00
Nathan Harold
cc584e777d [BACKPORT] Improve location checks in TelephonyRegistry
Improve location checking for apps targeting SDK28
or earlier.

Bug: 158484422
Test: (cts) atest TelephonyLocationTests; atest PhoneStateListenerTest
Merged-In: I8caa3ea409836ce8469d8d8210b481a0284594f2
Change-Id: I8caa3ea409836ce8469d8d8210b481a0284594f2
(cherry picked from commit 4e0c7d16fd)
2020-10-01 17:23:25 +00:00
Nathan Harold
81bab8b849 [DO NOT MERGE][BACKPORT]Improve location checks in TelephonyRegistry
Improve location checking for apps targeting SDK28
or earlier.

Bug: 158484422
Test: (cts) atest TelephonyLocationTests; atest PhoneStateListenerTest
Merged-In: I8caa3ea409836ce8469d8d8210b481a0284594f2
Change-Id: I8caa3ea409836ce8469d8d8210b481a0284594f2
(cherry picked from commit 4e0c7d16fd)
(cherry picked from commit 5c4fa70f5e543a5438f1c1efb35474a481c21430)
2020-10-01 10:10:13 -07:00
Yi Kong
198e7d360f Merge "Workaround global ThinLTO build break" am: 06c47e70a4 am: 78edf52928 am: 2405f41b57
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1442736

Change-Id: Ie61fe46a15f2eb8a22c973e57757ec40dc44b90a
2020-10-01 08:07:49 +00:00
Yi Kong
2405f41b57 Merge "Workaround global ThinLTO build break" am: 06c47e70a4 am: 78edf52928
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1442736

Change-Id: Ie0570c14afdc1e0b5440deb521a4491a2bc78c65
2020-10-01 07:48:26 +00:00
Yi Kong
78edf52928 Merge "Workaround global ThinLTO build break" am: 06c47e70a4
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1442736

Change-Id: Ic22ceb533d17740c17ab8e01bdeebebb54719b1d
2020-10-01 07:25:36 +00:00
Yi Kong
06c47e70a4 Merge "Workaround global ThinLTO build break" 2020-10-01 04:04:35 +00:00
Brad Ebinger
9123ff8c6e Merge "Revert "Clean up IMS based interfaces to use a push model instea..."" am: 8827badd30 am: 9a8e4bf6f1 am: a6bc5361b7
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1443078

Change-Id: Icc3add9e3ea4d4a192f6b9e54c68673bc51497d8
2020-09-30 22:13:40 +00:00
Patrick Baumann
c0e064f848 Merge "Only allow system apps to be forceQueryable" am: 34108ebb9e am: 775db18508 am: 304d3b95c5
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1443136

Change-Id: I8fcc111d329d1681224f49bfa3d8a3ffcde7548c
2020-09-30 22:13:11 +00:00
Brad Ebinger
a6bc5361b7 Merge "Revert "Clean up IMS based interfaces to use a push model instea..."" am: 8827badd30 am: 9a8e4bf6f1
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1443078

Change-Id: I656f6145c4de980ea71ac7ee083cd218c014f897
2020-09-30 21:48:26 +00:00
Patrick Baumann
304d3b95c5 Merge "Only allow system apps to be forceQueryable" am: 34108ebb9e am: 775db18508
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1443136

Change-Id: I6779f52bf044d5b3e4a1149e09de5aad0bde8cc0
2020-09-30 21:47:14 +00:00
Brad Ebinger
9a8e4bf6f1 Merge "Revert "Clean up IMS based interfaces to use a push model instea..."" am: 8827badd30
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1443078

Change-Id: Ibd5354d59392f707b423d8cbd0522191dcb01c32
2020-09-30 21:06:18 +00:00
Brad Ebinger
8827badd30 Merge "Revert "Clean up IMS based interfaces to use a push model instea..."" 2020-09-30 21:00:35 +00:00
Patrick Baumann
775db18508 Merge "Only allow system apps to be forceQueryable" am: 34108ebb9e
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1443136

Change-Id: I47e4d5ba2f0cad42b949493140f45a5fa8ee5006
2020-09-30 20:53:37 +00:00
Patrick Baumann
34108ebb9e Merge "Only allow system apps to be forceQueryable" 2020-09-30 20:30:29 +00:00
Yi Kong
cd1e70b874 Workaround global ThinLTO build break
These projects triggers Clang crash for global ThinLTO build. Disable
ThinLTO for these projects for now.

This CL has no affect for normal builds.

Test: GLOBAL_THINLTO=true m
Bug: 169004486
Change-Id: Id0c7d243250b6dc7f1ec3099c77cebc179d2c3b3
2020-10-01 04:29:05 +08:00
Brad Ebinger
360c5f1749 Fix un-dismissable incoming call for auto-rejected calls
When the device receives an incoming call indication and quickly
receives another call terminated indication (such as the auto
reject case), there is the possiblity that the call terminated indication
happens while onIncomingCall is still being processed. This is due to the
fact that binder oneway calls are only guaranteed to be on the same binder
thread for the same IBinder node. Since these callbacks are happening on
two separate nodes potentially, there are running in two binder threads
at the same time, causing race conditions.

Instead, the onIncomingCall binder call should not be oneway (as it is
required to complete before other indications should occur) and only
return control back to the ImsService thread once the
MmTelFeature#notifyIncomingCall call completes.

Bug: 160213239
Fixes: 169723915
Test: incoming call, auto-rejected incoming call on MSIm
Merged-In: I054e6b00656fc04f48f7f378076e29322daf59ad
Change-Id: I054e6b00656fc04f48f7f378076e29322daf59ad
2020-09-30 13:02:46 -07:00
Jack Yu
34a50e35f5 Added getEquivalentHomePlmns API
Added a new API to retrieve EF_EHPLMN from the SIM.

Fix: 155843989
Test: CtsTelephonyTestCases

Change-Id: I2797dc466e12f9aa64b830b93446ee1d0532c760
2020-09-30 12:16:19 -07:00
Patrick Baumann
48afc4448c Expose grantImplicitAccess in IPackageManager
This change exposes the method to grant implicit visibility access via
IPackageManager and as a hidden API in PackageManager. This variant of
the method takes a recipient UID and the authority that it should see
and limits access to only the contacts provider on device.

Bug: 158688602
Test: PackageManagerTests
Change-Id: I0050593e4aa734af1a69a40a60746f7cf0ea72df
Merged-In: I0050593e4aa734af1a69a40a60746f7cf0ea72df
Merged-In: I2c80513a5dffa7ad92963e376ea85217f127f39a
2020-09-30 17:52:37 +00:00
Brad Ebinger
bdd15379d2 Revert "Clean up IMS based interfaces to use a push model instea..."
Revert "Move IMS to a listener type model instead of a poll model"

Revert "Push Binder updates when ImsFeatures change"

Revert submission 1425374-ims_poll

Reason for revert: b/169729036, ANR in phone process
Reverted Changes:
I1d6dd2dfd:Move to a push model of querying ImsFeature Binder...
Ie3982c245:Move IMS to a listener type model instead of a pol...
I8b9ded0f4:Push Binder updates when ImsFeatures change
Ia9f7ae3db:Clean up IMS based interfaces to use a push model ...

Merged-In: I7ef3c07021a79e809d2c8b30ed2422372eae962d
Change-Id: I7ef3c07021a79e809d2c8b30ed2422372eae962d
2020-09-30 17:31:59 +00:00
Patrick Baumann
9fdc1bfc0c Only allow system apps to be forceQueryable
This change ensures that only system apps can declare themselves
forceQueryable via manifest.

Fixes: 166780599
Fixes: 169739214
Test: atest AppEnumerationTests
Change-Id: Ib217ade392500f97a7ff5a08b781cc99e60838ff
Merged-In: Ib217ade392500f97a7ff5a08b781cc99e60838ff
2020-09-30 17:19:27 +00:00
Anton Hansson
4c42b5ee98 Merge "Revert "Add genrules for merged removed.txt files"" am: 27b40fc234 am: de51075d79 am: 1691d6d02a
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1442896

Change-Id: I6109a937e1efa42094309e54a24e9851dacb92f6
2020-09-30 14:51:04 +00:00
Anton Hansson
1691d6d02a Merge "Revert "Add genrules for merged removed.txt files"" am: 27b40fc234 am: de51075d79
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1442896

Change-Id: I24152a58ea0ae22fe29b04fb9cbb3351b65b7aaf
2020-09-30 14:39:30 +00:00
Anton Hansson
de51075d79 Merge "Revert "Add genrules for merged removed.txt files"" am: 27b40fc234
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1442896

Change-Id: I8e57f13db22b46bf1394dd43b905bb0bf8510d18
2020-09-30 14:19:18 +00:00
Lorenzo Colitti
3616f6eced Merge changes I53ca4b98,I1757fdeb am: 3a463815e2 am: 230fabb17e am: 1569c71b07
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1440767

Change-Id: Ia2779a68a17225190222b56358d6ca13a97ea00a
2020-09-30 14:18:54 +00:00
Lorenzo Colitti
1569c71b07 Merge changes I53ca4b98,I1757fdeb am: 3a463815e2 am: 230fabb17e
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1440767

Change-Id: I59f834071b66d310652016a626b0f8a6bb471d03
2020-09-30 13:53:31 +00:00
Anton Hansson
27b40fc234 Merge "Revert "Add genrules for merged removed.txt files"" 2020-09-30 13:51:21 +00:00
Anton Hansson
ca5b8b5c6f Revert "Add genrules for merged removed.txt files"
This reverts commit cfb26e3b4c.

Reason for revert: b/169747069

Change-Id: I9290708aea6a66bbecc098b75403f6e5d7e77ec7
2020-09-30 13:50:48 +00:00
Andrei-Valentin Onea
3a5b1a12c5 Merge "Fix compat change CTS test flakiness" am: bb0db1d243 am: 3d1cfa54d6 am: 1fe983edb7
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1440635

Change-Id: Id36d3ce48a39d40f714ef5131b4cee4644d1a590
2020-09-30 13:45:05 +00:00
Lorenzo Colitti
230fabb17e Merge changes I53ca4b98,I1757fdeb am: 3a463815e2
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1440767

Change-Id: If1d0eb5a1818dd7a9346f8d0d64d5f37ea1b53c2
2020-09-30 13:14:23 +00:00
Andrei-Valentin Onea
1fe983edb7 Merge "Fix compat change CTS test flakiness" am: bb0db1d243 am: 3d1cfa54d6
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1440635

Change-Id: I611aae09d53d4b81b00f91a0edf08c9c83fa12b8
2020-09-30 13:07:11 +00:00
Lorenzo Colitti
3a463815e2 Merge changes I53ca4b98,I1757fdeb
* changes:
  Fix OffloadHardwareInterfaceTest.
  tethering: offload: Netlink Req NfGen
2020-09-30 12:53:57 +00:00
Andrei-Valentin Onea
3d1cfa54d6 Merge "Fix compat change CTS test flakiness" am: bb0db1d243
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1440635

Change-Id: I0b32b7631d7f9ceade3e170d53ba068db924e85f
2020-09-30 12:31:11 +00:00
Andrei-Valentin Onea
bb0db1d243 Merge "Fix compat change CTS test flakiness" 2020-09-30 12:13:24 +00:00
Anton Hansson
41c5dbb0dd Merge "Add genrules for merged removed.txt files" am: 19189d886b am: 554cdd7792 am: b16f6fed44
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1438691

Change-Id: If5a19712bdceb5cc60eea4ba6cccdd830114cd4c
2020-09-30 11:09:32 +00:00
Anton Hansson
b16f6fed44 Merge "Add genrules for merged removed.txt files" am: 19189d886b am: 554cdd7792
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1438691

Change-Id: I472ffc39686ef7b895509140ff13a917ec882556
2020-09-30 10:51:21 +00:00
Anton Hansson
554cdd7792 Merge "Add genrules for merged removed.txt files" am: 19189d886b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1438691

Change-Id: I29ccf915258c276def7571b6574ce19256e770b7
2020-09-30 10:15:24 +00:00
Neil Fuller
75ae324fb9 Merge "Add a new permission in AOSP" am: 4b22e7c281 am: 1f728acac0 am: 8a0ce64177
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1440636

Change-Id: I0c4deb866e86feb77fe898e4bf643cd45ad9f086
2020-09-30 09:51:55 +00:00