Commit Graph

9434 Commits

Author SHA1 Message Date
Brian Stack
3163bf0d35 Expose UwbManager through Context.getSystemService
Bug: 170323306
Test: atest UwbManagerTests
Change-Id: I04c1263a191fcfeee5824be5d6d1944354819d02
Merged-In: I04c1263a191fcfeee5824be5d6d1944354819d02
2020-12-02 13:58:28 -08:00
Treehugger Robot
3724bc6c47 Merge "Migrate THROW_SECURITY_EXCEPTIONS" 2020-11-18 09:19:11 +00:00
Aurimas Liutikas
bdd6c53abb Merge "Suppress all hidden abstract methods in constructable classes." 2020-11-13 02:56:37 +00:00
Aurimas Liutikas
d23189b998 Suppress all hidden abstract methods in constructable classes.
Having a hidden abstract method for a class that can be extended
means that public implementors cannot implement these hidden methods
posing a risk that custom implementations will not have required
abstract methods resulting in an exception.

Bug: 151134792
Test: make update-api
Change-Id: I758d12465fabc671be19bedeeceb16885de23c87
Merged-In: I758d12465fabc671be19bedeeceb16885de23c87
Exempt-From-Owner-Approval: large scale suppression of existing issues,
    no-op in terms of behavior
2020-11-13 02:56:20 +00:00
Andrei-Valentin Onea
714960f745 Merge "Migrate FILTER_APPLICATION_QUERY" 2020-11-12 13:09:53 +00:00
Paul Hu
5753a34e67 Merge "Expose some ApplicationInfo#is* methods as in-process API" 2020-11-11 05:23:56 +00:00
Andrei Onea
51f631383a Migrate FILTER_APPLICATION_QUERY
Use @EnabledSince instead of @EnabledAfter for FILTER_APPLICATION_QUERY.

Test: m
Bug: 172238506
Change-Id: Iedb82b9ec3ff503e6c7fa912470c21aa31032688
2020-11-09 21:34:19 +00:00
Andrei Onea
1af46efa1c Migrate THROW_SECURITY_EXCEPTIONS
Use @EnabledSince instead of @EnabledAfter for
THROW_SECURITY_EXCEPTIONS.

Test: m
Bug: 172238506
Change-Id: Idfc08b82493dfece24e838b74e2a4690459a146e
2020-11-09 21:23:20 +00:00
paulhu
cc8b163dba Expose some ApplicationInfo#is* methods as in-process API
Connectivity service is going to become a mainline module which
will not able to access hidden APIs. But PermissionMonitor needs
ApplicationInfo#is(Vendor|Oem|Product) APIs to know the package
partition. Thus, expose them as in-process API to support the
usage.

Bug: 170593746
Test: atest FrameworksNetTests
Change-Id: Ie4ffb2b47539786dd51b885ca93c8813d039c4da
2020-11-09 06:17:28 +00:00
Mathew Inwood
5d123b6775 Add maxTargetSdk restriction to unused APIs.
These are APIs that have @UnsupportedAppUsage but for which we don't
have any evidence of them currently being used, so should be safe to
remove from the unsupported list.

Bug: 170729553
Test: Treehugger
Merged-In: I626caf7c1fe46c5ab1f39c2895b42a34319f771a
Change-Id: I54e5ecd11e76ca1de3c5893e3a98b0108e735413
2020-11-04 09:45:53 +00:00
Treehugger Robot
d40928888b Merge "Deprecate PackageParser main class and add OWNERS" 2020-11-03 01:10:15 +00:00
Benedict Wong
e2dacc7411 Add shell VcnManagementService
This patch adds a shell of the VcnManagementService and VcnManager

Bug: 163431877
Test: Compiles, Boots
Change-Id: I1f3d8ab9c9bff7d419ea6d3edaae3b6b41b1d775
2020-10-27 20:09:06 -07:00
Anton Hansson
d2d4637685 Merge "Remove @TestApi from @SystemApi symbols" 2020-10-20 13:45:13 +00:00
Anton Hansson
dd7d52f963 Remove @TestApi from @SystemApi symbols
I ran these commands:
    cd frameworks/base
    grep -rl '@TestApi' --include '*.java' | xargs perl -i -p0e \
        's/\@SystemApi[\s\n]+(\@\w+[\s\n]+)?\@TestApi/\@SystemApi\1/gs'
    grep -rl '@TestApi' --include '*.java' | xargs perl -i -p0e \
        's/\@TestApi[\s\n]+(\@\w+[\s\n]+)?\@SystemApi/\1\@SystemApi/gs'

Bug: 171179806
Test: m checkapi
Change-Id: I772790b783b0a8730b8bf680c9e569a886b8d789
Merged-In: I772790b783b0a8730b8bf680c9e569a886b8d789
2020-10-19 16:41:01 +01:00
Xin Li
986e6eeddf Merge ab/6749736 in stage.
Bug: 167233921
Merged-In: Iecef31f7bf10ad97b7e0075cf302ae94e248474a
Change-Id: I9e9c873bc2e05a0cfe3af0bf74725500f3f108db
2020-10-10 20:38:57 -07:00
Winson Chiu
907f3e3e9b Deprecate PackageParser main class and add OWNERS
This wasn't deprecated in the original refactor because there was no
publicly exposed alternative that encapsulated all the functionality.
There are also some subclasses which are still used as they haven't
been copied to the parsing subpackage yet.

But this has lead to contributors making changes to PackageParser, not
realizing that the class is unused. So it's worth marking it deprecated
just so it's obvious to anyone editing the code.

The changes made since last release seem mostly unconsequential, so
they will not be reverted, but no additional new code should be added.

Also protects PackageParser and core parsing with OWNERS.

Test: none, docs change

Change-Id: I9d80132503b3a5a3384abbe6b0b1fbb752029710
2020-10-09 17:53:13 +00: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
Treehugger Robot
48c50ccdfe Merge "Update language to comply with Android's inclusive language guidance" 2020-09-23 23:30:57 +00:00
Charles Munger
3bec6b94fe Clarify docs for FLAG_SYSTEM
Bug: 168557744
Change-Id: Ia27aaae7b4f60f843013bd629ebcce4c662828d2
2020-09-15 18:46:49 +00:00
Jeff Sharkey
16dd960d6f Update language to comply with Android's inclusive language guidance
See https://source.android.com/setup/contribute/respectful-code for reference

Test: none
Bug: 168334533
Exempt-From-Owner-Approval: docs updates
Change-Id: Id1a0f2a38e41badee3a34bd71af240511f273a7b
2020-09-14 10:00:05 -06:00
Jeff Sharkey
6516a83886 Update language to comply with Android's inclusive language guidance
See https://source.android.com/setup/contribute/respectful-code for reference

Test: none
Bug: 168334533
Exempt-From-Owner-Approval: docs updates
Change-Id: Ifce5239991e3b78dd4757712e3b88093ad7161f0
2020-09-14 10:00:02 -06:00
Jeff Sharkey
705f6bec2d Update language to comply with Android's inclusive language guidance
See https://source.android.com/setup/contribute/respectful-code for reference

Test: none
Bug: 168334533
Exempt-From-Owner-Approval: docs updates
Change-Id: I53003332717baf57dc088b2f6b969cdb1863f65e
2020-09-14 09:59:01 -06:00
Louis Chang
a1903d6928 Update language to comply with Android's inclusive language guidance
See https://source.android.com/setup/contribute/respectful-code for
reference.

Bug: 162536543
Test: Treehugger
Change-Id: I6dac60aac172a8fccf4b5671107b41c5c84ccd76
Merged-In: I6dac60aac172a8fccf4b5671107b41c5c84ccd76
2020-09-14 18:03:49 +08:00
Xin Li
628590d7ec Merge Android R (rvc-dev-plus-aosp-without-vendor@6692709)
Bug: 166295507
Merged-In: I3d92a6de21a938f6b352ec26dc23420c0fe02b27
Change-Id: Ifdb80563ef042738778ebb8a7581a97c4e3d96e2
2020-08-31 21:21:38 -07:00
Jackal Guo
008df2af16 Update language to comply with Android's inclusive language guidance
See https://source.android.com/setup/contribute/respectful-code for
reference

Bug: 163975639
Test: m docs
Change-Id: Id2af5961bc016d886f25c1f1fa989e6da1d1f44a
2020-08-14 09:15:49 +00:00
Treehugger Robot
49fc83bc70 Merge "Update language to comply with Android's inclusive language guidance" am: ea575e7bc4 am: 0166574738 am: fd6b8e0da4
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1382385

Change-Id: I784c5050682c23e64796689caed846e0952bfed5
2020-07-31 15:08:28 +00:00
Lais Andrade
d2ce0e0f17 Merge "Update language to comply with Android's inclusive language guidance" am: cb51202601 am: 6c6e238f23 am: 40bdc0c86f
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1382537

Change-Id: Iad19e0977aab66758c01a3b8448a8f432fa92d89
2020-07-31 15:07:19 +00:00
Treehugger Robot
fd6b8e0da4 Merge "Update language to comply with Android's inclusive language guidance" am: ea575e7bc4 am: 0166574738
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1382385

Change-Id: I2367b78e9b80b2ffe284cc18adf07e29925656a8
2020-07-31 14:47:01 +00:00
Lais Andrade
40bdc0c86f Merge "Update language to comply with Android's inclusive language guidance" am: cb51202601 am: 6c6e238f23
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1382537

Change-Id: I19ef5e99506ffbb2b7dcb79f72fae92161b77f8b
2020-07-31 14:46:24 +00:00
Treehugger Robot
ea575e7bc4 Merge "Update language to comply with Android's inclusive language guidance" 2020-07-31 14:12:37 +00:00
Lais Andrade
d877fa3317 Update language to comply with Android's inclusive language guidance
See https://source.android.com/setup/contribute/respectful-code for reference

#inclusivefixit

BUG=162536543

Change-Id: I8059d138ed476e89c7b796f0b1ad002692987a6f
2020-07-31 12:39:40 +00:00
Lais Andrade
d3797976d8 Update language to comply with Android's inclusive language guidance
See https://source.android.com/setup/contribute/respectful-code for reference

#inclusivefixit

BUG=162536543

Change-Id: I0ff4f00b9251789820023f25623f3bb9f8a437af
2020-07-31 11:12:40 +00:00
Jackal Guo
2603293071 Correct protectionToString am: 379eb5c25f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12265005

Change-Id: Ib4da555c392f4b93e1fcd7be0056188881a49a35
2020-07-30 09:03:30 +00:00
Jackal Guo
379eb5c25f Correct protectionToString
The information of protectionLevel companion is missing when dumping
to string.

Bug: 161855740
Test: atest CtsPermission2TestCases:PermissionPolicyTest
Change-Id: Ifa9099541df1c287e5883a801ed14d34dad6287b
Merged-In: Ifa9099541df1c287e5883a801ed14d34dad6287b
2020-07-30 05:22:53 +00:00
Treehugger Robot
2863f04c43 Merge "Update language to comply with Android's inclusive language guidance" am: f8ca47966f am: 26d3e569db
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1374759

Change-Id: I090f2b972cd5d0221da4d690d98df29f4a5b0445
2020-07-30 01:25:39 +00:00
Treehugger Robot
fee9000990 Merge "Update language to comply with Android's inclusive language guidance" am: 18e37909f3 am: 2009a6f05e
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1374877

Change-Id: Ib3c12e47deb8b856ae276d238c70f445107dbccf
2020-07-30 01:25:12 +00:00
Treehugger Robot
f8ca47966f Merge "Update language to comply with Android's inclusive language guidance" 2020-07-30 01:09:16 +00:00
Treehugger Robot
18e37909f3 Merge "Update language to comply with Android's inclusive language guidance" 2020-07-30 01:00:04 +00:00
Treehugger Robot
0cc93e30c4 Merge "Update language to comply with Android's inclusive language guidance" am: df9c0ce0d6 am: 9d5f5e2a5e
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1374899

Change-Id: I71bc9fc5d79daa5631e67380041d24ef1e907a76
2020-07-30 00:58:29 +00:00
Treehugger Robot
66ea204537 Merge "Update language to comply with Android's inclusive language guidance" am: 0b7e8cc6bc am: b5cf67da5a
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1375856

Change-Id: I041cc607ebe35c8d6e57cb78fa30170f38817ae3
2020-07-30 00:57:55 +00:00
Treehugger Robot
df9c0ce0d6 Merge "Update language to comply with Android's inclusive language guidance" 2020-07-30 00:43:35 +00:00
Saint Chou
e3f0cc2cc8 Update language to comply with Android's inclusive language guidance
See https://source.android.com/setup/contribute/respectful-code for reference

#inclusivefixit

Bug: 161896447
Change-Id: Ib3879e8dac4ac85c35e6a56cd45fb18fd26be058
Test: NA (Comment only)
2020-07-29 08:26:38 +00:00
Saint Chou
a668a62399 Update language to comply with Android's inclusive language guidance
See https://source.android.com/setup/contribute/respectful-code for reference

#inclusivefixit

Bug: 161896447
Change-Id: I39301089c02ab2860124a2390470ac607770a071
Test: NA (Comment only)
2020-07-29 07:50:26 +00:00
Saint Chou
0d62a0cca3 Update language to comply with Android's inclusive language guidance
See https://source.android.com/setup/contribute/respectful-code for reference

#inclusivefixit

Bug: 161896447
Test: NA (Comment only)
Change-Id: Idb9cf2a5bdad0e1d15c8b553b2fc5380a504676e
2020-07-29 07:19:12 +00:00
Saint Chou
a3bda85ce9 Update language to comply with Android's inclusive language guidance
See https://source.android.com/setup/contribute/respectful-code for reference

#inclusivefixit

Bug: 161896447
Test: NA (Comment only)

Change-Id: I3e86de365f5a3eb2649ce7166ac34079484cfabd
2020-07-29 06:50:15 +00:00
Hall Liu
5169953baf Merge "Skip carrier priv check for trusted UIDs" into rvc-dev am: f1a6972937
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12141306

Change-Id: Iac6c6a95dc0df15e45e2ef4f25a3b92e162800b0
2020-07-13 23:46:14 +00:00
Hall Liu
12a3f5cfdc Skip carrier priv check for trusted UIDs
Checking carrier privileges for UIDs with lots of shared apps can incur
a significant performance hit. For UIDs that are fixed and trusted
(system and phone), skip the permission check and always allow.

Also, double the cache size for getPackageInfo in order to reduce the
rate of cache misses.

Bug: 160971853
Test: manual verification -- observed lower rate of cache misses for
getPackageInfo from com.android.phone.

Change-Id: I1399cab579308479d7cf191b8795441cbcd3ff65
2020-07-13 12:45:00 -07:00
Patrick Baumann
8f65482603 Merge "Don't assume host is wildcard if not provided" into rvc-dev am: a1b6280ec8
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12118654

Change-Id: Id420df09eff3c591d4bab1ef7640d7ddf071b93a
2020-07-09 23:44:38 +00:00
Patrick Baumann
a1b6280ec8 Merge "Don't assume host is wildcard if not provided" into rvc-dev 2020-07-09 23:31:56 +00:00
Patrick Baumann
aab67c2b9d Don't assume host is wildcard if not provided
This change ensures that while parsing a package, we require an explicit
wildcard in the queries->intent->data->host field. Prior to this change,
we were defaulting to wildcard when not provided. This resulted in,
e.g. someone trying to get visibility to just browsers actually getting
access to all packages that handle any web intent.

Fixes: 160868841
Test: atest AppEnumerationTests IntentFilterTest
Change-Id: I771845467928b6655fe19efe89bd2ca548dca6e5
2020-07-09 12:28:54 -07:00