Commit Graph

9405 Commits

Author SHA1 Message Date
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
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
Charles Chen
8d53c79a02 Merge "Fix NPE when invoking Context#isUiContext" into rvc-dev am: 5c25605da0
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12105622

Change-Id: Ic5670956e2cec2fd6e63a9d0e6c4fa86f2ec991e
2020-07-08 17:59:55 +00:00
Charles Chen
5c25605da0 Merge "Fix NPE when invoking Context#isUiContext" into rvc-dev 2020-07-08 17:46:09 +00:00
Charles Chen
3b8e8d7631 Fix NPE when invoking Context#isUiContext
Add null checks in both ContextWrapper and before obtaining
ContextImpl#getOuterContext.

Test: atest ContextTest#testIsUiContext_ContextWrapper
fixes: 160037462
Change-Id: Ic6a71dd9ac4b195d219d6e5431f2f2b199a400fa
2020-07-08 23:58:58 +08:00
TreeHugger Robot
038d147eab Merge "Remove references to undocumented WHITELIST_AUTO_REVOKE_PERMISSIONS from javadoc" into rvc-dev am: d99b74a975
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12087983

Change-Id: Ibf148f64366a3f6c935b8950ed0b2e87b16e1547
2020-07-08 03:16:29 +00:00
Eugene Susla
aad46b8980 Remove references to undocumented WHITELIST_AUTO_REVOKE_PERMISSIONS from javadoc
Fixes: 160119966
Test: presubmit
Change-Id: If7db38ae7d96441cabab1141e93abf357daf8164
2020-07-06 10:23:25 -07:00
Makoto Onuki
a11035a7eb Remove unnecessarily @System/TestApi annotations
We can't expose APIs if the enclosing class is hidden, so these
annotations are redundant. We need to remove them so that we can enable the
check.

Exempt-From-Owner-Approval: Cherry-pick from goog/master
Bug: 159121253
Test: treehugger (i.e. this shouldn't trigger "API has changed" error.)
Merged-in: Ie1841a670bdf6c6f4b25a1fc5deed8ec2d18cda2
Change-Id: I36e3562b72e64b51e4febd1d42a3bc8e4dc60988
2020-06-24 20:49:20 +00:00
Makoto Onuki
42bec243c0 Remove unnecessarily @System/TestApi annotations
We can't expose APIs if the enclosing class is hidden, so these
annotations are redundant. We need to remove them so that we can enable the
check.

Exempt-From-Owner-Approval:Cherry-pick from goog/master
Bug: 159121253
Test: treehugger (i.e. this shouldn't trigger "API has changed" error.)
Merged-in: Ie1841a670bdf6c6f4b25a1fc5deed8ec2d18cda2
Change-Id: Ie1841a670bdf6c6f4b25a1fc5deed8ec2d18cda2
2020-06-24 18:02:10 +00:00
TreeHugger Robot
32bb7140ef Merge "Update Java doc for FLAG_ACTIVITY_LAUNCH_ADJACENT" into rvc-dev am: 8411d73710
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11905502

Change-Id: Iacb5eb08a2bd9e69a6c54c4f66eda12de6e46a4a
2020-06-18 16:46:59 +00:00
TreeHugger Robot
8411d73710 Merge "Update Java doc for FLAG_ACTIVITY_LAUNCH_ADJACENT" into rvc-dev 2020-06-18 16:40:32 +00:00
Michael Groover
a61dae35a9 Merge "Relax minimum signature scheme version for apps on system partition" into rvc-dev am: 67cb3a610d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11885723

Change-Id: Ia6bca552833917bdc84e7a445e070074d39d7d1d
2020-06-18 16:23:13 +00:00
Michael Groover
67cb3a610d Merge "Relax minimum signature scheme version for apps on system partition" into rvc-dev 2020-06-18 16:13:30 +00:00
jun.h.cho
c3540cc2f9 Update Java doc for FLAG_ACTIVITY_LAUNCH_ADJACENT
The behavior of the adjacent flag is changed. It can be changed to split-screen mode if supported by the system.

Fixes: 155050369
Test: n/a
Change-Id: Ia19e0228442e7c8847d403ee2def841f1c0b712b
2020-06-18 07:55:15 -07:00
Michael Groover
b71e398935 Relax minimum signature scheme version for apps on system partition
Android 11 requires a minimum V2 APK signature for apps targeting SDK
version 30+; however some apps on a system partition can only be signed
with the V1 signature scheme. This commit relaxes the minimum signature
scheme version to allow for these apps on a system partition.

Bug: 158728035
Test: atest PackageManagerTest
Test: atest PackageManagerTests
Test: atest PkgInstallSignatureVerificationTest
Change-Id: I1a95fd6894cc937e00ad1ac54d1846b51b48e9cd
2020-06-17 11:02:18 -07:00
TreeHugger Robot
17eca29097 Merge "Add tron metrics to track iorap." into rvc-dev am: f40975ee76
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11833622

Change-Id: Ib4e8b352befe546a4202e1e40de93e1ddfd40e7b
2020-06-16 02:33:46 +00:00
TreeHugger Robot
f40975ee76 Merge "Add tron metrics to track iorap." into rvc-dev 2020-06-16 02:20:26 +00:00
yawanng
35a0090975 Add tron metrics to track iorap.
Bug: 158007508
Test: Make and manually check the log using
"adb logcat -b events | grep sysui_multi_action".
Change-Id: I8365bbaa0abf65bdffd8da9462a2295a5e37b3c2
2020-06-15 17:01:04 +00:00
TreeHugger Robot
84f65247cb Merge "Don't provide read logs for shell-initiated installations." into rvc-dev am: e0ba6d9dff
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11778056

Change-Id: I866bc89927ae11a0da7069d33e3e06d5c1f1b51f
2020-06-15 16:42:24 +00:00
Alex Buynytskyy
0403545508 Don't provide read logs for shell-initiated installations.
Only if the application is profileable.

Bug: 158238023
Fixes: 158238023
Test: atest PackageManagerShellCommandTest PackageManagerShellCommandIncrementalTest IncrementalServiceTest PackageParserTest
Change-Id: I8575830ec3f29850297fdbfbaa157072d6350a28
Merged-In: I8575830ec3f29850297fdbfbaa157072d6350a28
2020-06-12 13:30:45 -07:00
TreeHugger Robot
bf52673a6a Merge "Apply theme shape clipping to group convo avatars" into rvc-dev am: 0561690cac
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11820082

Change-Id: Icc00a6f35213958cb5badfb4e7311e646608b1bf
2020-06-11 18:41:57 +00:00
TreeHugger Robot
0561690cac Merge "Apply theme shape clipping to group convo avatars" into rvc-dev 2020-06-11 18:22:46 +00:00
TreeHugger Robot
26c2956206 Merge "Fix PackagePartitions contains null check" into rvc-dev am: ca4709a9a5
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11825431

Change-Id: Ia1521e95d4b2776e789ec8ce30d4a06bc91455b2
2020-06-10 20:45:22 +00:00
Steve Elliott
86bc69a491 Apply theme shape clipping to group convo avatars
Fixes: 158493588
Test: manual
Change-Id: I57b5e0712822b345c9dcce74b8a6d6ff33409de6
2020-06-10 15:23:33 -04:00
Winson
6bdadaf0a0 Fix PackagePartitions contains null check
The subfolders can be null depending on the partition.

Bug: 158671002

Test: manual was tested as part of not yet merged
	Ie09ccf4b64a0be26d19c9034a68ca4877ca49b81

Change-Id: Ic3a07867cb50b6b0b0e265e9540c52ee94c68050
2020-06-10 11:07:12 -07:00
Charles Munger
d3c43f0789 Merge "Deprecate public PackageManager constructor." am: 2b745800a8 am: 061ce932ce
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1314369

Change-Id: I232e22992440b51dcd41b77cc76e0db3dd83787e
2020-06-09 00:44:29 +00:00
Charles Munger
e73a6a704e Deprecate public PackageManager constructor.
BUG=63112905

Change-Id: I0277737eb9e683073f27d2ddea30c93f78ec4b91
2020-06-08 17:37:31 +00:00
TreeHugger Robot
9f15ba2e1a Merge "Fix up discrepancies between v1 and v2 package parsing" into rvc-dev 2020-06-04 18:12:56 +00:00
Eugene Susla
f42f5f69a7 Merge "Deprecate docs for auto revoke manifest and Intent APIs" into rvc-dev am: c43f49dfc4
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11722408

Change-Id: I0878a342bc43867bf2113e23cdf564afa30e2f1c
2020-06-04 01:23:16 +00:00
Eugene Susla
c43f49dfc4 Merge "Deprecate docs for auto revoke manifest and Intent APIs" into rvc-dev 2020-06-04 01:08:10 +00:00
Eugene Susla
c7cae60a64 Deprecate docs for auto revoke manifest and Intent APIs
Test: presubmit
Bug: 153607914
Change-Id: I9c8d0aa1432ca00b729f19749e751cb117374b0a
2020-06-03 13:46:00 -07:00