Commit Graph

12777 Commits

Author SHA1 Message Date
TreeHugger Robot
40a36f90f5 Merge "UiEventLogger option to log uid + package_name." 2020-01-10 21:08:43 +00:00
Daulet Zhanguzin
252fcabe07 Merge "Deprecate checkNotNull in favor of Objects.requireNonNull()." am: 7b511f0dd8 am: 1e62d2dd40
am: 5bb34c7861

Change-Id: I42b5f3730d4ae3da871c8f36ba1630a2d0552af8
2020-01-10 11:23:45 -08:00
Will Brockman
a5f1728ef7 UiEventLogger option to log uid + package_name.
Bug: 147488850
Test: SystemUITests
Change-Id: I25d3faebace5a2803784d62168b6758bfaf8ce0c
2020-01-10 13:51:59 -05:00
Automerger Merge Worker
5bb34c7861 Merge "Deprecate checkNotNull in favor of Objects.requireNonNull()." am: 7b511f0dd8 am: 1e62d2dd40
Change-Id: I9493491cecb3c2308d961e167c276204587a7ce6
2020-01-10 17:17:30 +00:00
Nicholas Ambur
b2a5c29796 Merge "add parameter control to AlwaysOnHotwordDetector" 2020-01-10 17:08:00 +00:00
Daulet Zhanguzin
7b511f0dd8 Merge "Deprecate checkNotNull in favor of Objects.requireNonNull()." 2020-01-10 16:36:15 +00:00
Peter_Liang
8089bc4daa Multiple shortcut menu for android R (4/n).
Implementation for deleting the target.

Fix: b/146967898
Test: manual test
Change-Id: Id5d10fa3cc7e1b3b818787837a4f5cb86b2e777f
2020-01-10 16:53:11 +08:00
Automerger Merge Worker
a6110193f8 Merge "Use Parcelable CellIdentity instead of CellLocation in AIDL." am: 9bda007cb8 am: a881005317
Change-Id: I14834c28abb17cdc0397950470e45f4e73462dff
2020-01-10 04:46:53 +00:00
Nicholas Ambur
f94db1c822 add parameter control to AlwaysOnHotwordDetector
Per-model control to AlwaysOnHotwordDetector interface.
Models are selected by keyphrase and locale associated with the
AlwaysOnHotwordDetector instance.

Bug: 141929369
Test: tested manually with test app
Change-Id: Iffeb0954059fa030d8a4fefb934a3e665323be37
2020-01-09 18:18:47 -08:00
Daulet Zhanguzin
9dd0f80341 Deprecate checkNotNull in favor of Objects.requireNonNull().
Remove one of unused overloads. The same change passed on master:
ag/10013392

Bug: 126528330

Test: Treehugger
Test: made equivalent change in internal branch to verify that removed method is not in use

Change-Id: I37c5b93e2ffbfa38a5b9feb4cae2062ef24acec5
2020-01-09 11:18:25 +00:00
PETER LIANG
98d850609d Merge "Multiple shortcut menu for android R (3/n)." 2020-01-09 10:22:39 +00:00
TreeHugger Robot
c9296a6d9c Merge "Add app data isolation whitelist" 2020-01-09 10:20:09 +00:00
Peter_Liang
f150888157 Multiple shortcut menu for android R (3/n).
Update UI and deleting item behavior to meet UX design.
 - Remove save button, listener and string.
 - Will remove the target from shortcut list at once when user deleting item.

Bug: b/142528666
Bug: b/147027236
Test: maunal test
Change-Id: I01bd745be006311007190deb1ba63fd438a804ff
2020-01-09 16:30:42 +08:00
Martijn Coenen
3fa3890183 Merge "Only allow Download authority/MTP/installers to write in Android/." 2020-01-09 07:38:22 +00:00
Martijn Coenen
496ac000f6 Only allow Download authority/MTP/installers to write in Android/.
Previously when FUSE was enabled, we gave all apps requesting
WRITE_MEDIA_STORAGE or install permissions a direct view
to the lower filesystem. This was way too broad for a few reasons:
1) WRITE_MEDIA_STORAGE will be deprecated; holding that permission by
itself shouldn't grant you any special privileges.
2) Installers should only be able to write OBBs

The only other exceptions that are allowed to bypass scoped storage are
the process hosting the DownloadProvider and the process implementing
the MTP server; both of these have legit reasons for writing in
Android/. The way this is currently implemented is by giving these apps
the SDCARD_RW gid, which has write access in the default Android/
sdcardfs view.

Installers will be further scoped down to be only able to access OBB
in a follow-up CL.

Bug: 134706060
Bug: 146490513
Test: DownloadProvider can download
      Play + OBBs work
      Writing in Android/ through MTP works

Change-Id: Iff8681732d0c1124e24e5347f7dcb64b781c1e8c
2020-01-09 07:37:11 +00:00
TreeHugger Robot
141751afe7 Merge "Propagate exception stacktrace via AndroidFuture IPC" 2020-01-09 06:01:05 +00:00
Meng Wang
8af4d4ad78 Use Parcelable CellIdentity instead of CellLocation in AIDL.
Currently CellLocation is passed over AIDL by manually
marshalling/unmarshalling to/from Bundle, and type info
is not preserved in the process.

Bug: 146092124
Test: make
Merged-In: I6225f100953a2ad354acaa261a774989926393ce
Change-Id: I6225f100953a2ad354acaa261a774989926393ce
2020-01-08 20:29:27 -08:00
Automerger Merge Worker
e576ba8f8d Merge "(Backport) Pipe through featureId from caller to permission checks in telephony code" am: 0104ce5293 am: f5a037d685
Change-Id: I09813d60dacabbd98e395816f9d7cb6d965a4f19
2020-01-09 03:45:21 +00:00
Treehugger Robot
0104ce5293 Merge "(Backport) Pipe through featureId from caller to permission checks in telephony code" 2020-01-09 02:48:14 +00:00
Eugene Susla
49b8cdf5d0 Propagate exception stacktrace via AndroidFuture IPC
Re-uses the code from Parcel to make it consistent with binder IPC exception
stacktrace propagation behavior.

Test: atest AndroidFutureTest
Change-Id: I5c73c42544af5bf964c7b6cd646bcb347e3ae146
2020-01-08 17:32:00 -08:00
Meng Wang
1b3499c83c Merge "System API used by telephony to bind to WapPushManager app." 2020-01-09 00:18:53 +00:00
Philip P. Moltmann
06b07e9e25 (Backport) Pipe through featureId from caller to permission checks in telephony
code

Test: atest FrameworksTelephonyTests CtsAppOpsTestCases
Bug: 136595429
Fixes: 146350559
Change-Id: Ie58007cf2a4e4a39cdfd72822150efce71dfbe84
Merged-In: I7ef41e8961e48d40e5685c4a521e83cb20953e48
2020-01-08 14:16:54 -08:00
Meng Wang
e6a40697e1 System API used by telephony to bind to WapPushManager app.
Bug: 145179378
Test: make
Change-Id: Ibfb5ce49d20addcd19775d9e8d762945e71b9843
2020-01-08 13:52:19 -08:00
Dave Mankoff
af8163f77d Revert "Revert "Refactor PanelView and NotificationPanelView into Controllers.""
This reverts commit da13c3fd3d.

This includes a fix for the original issue - an NPE in
NotificationPanelView.

Bug: 147295216
Change-Id: Id1a71b0e30aada460a70d738c5451e21dd412a7a
Test: atest SystemUITests
2020-01-08 14:55:19 -05:00
Automerger Merge Worker
25457a966a Add test for OverrideValidatorImpl am: 1828d218d6 am: 261d85b7ce am: 7311ee7976
Change-Id: I9df678420e589c3b76284047038d5f0d0cf20365
2020-01-08 18:55:23 +00:00
Automerger Merge Worker
f1c5228703 Enforce overriding methods for IPlatformCompat am: 465b214383 am: ed7fc22f27 am: f4115dd50f
Change-Id: I62f976d42d30ac2b4ab5891f6f5b68ccfa33c81f
2020-01-08 18:55:13 +00:00
Automerger Merge Worker
7311ee7976 Add test for OverrideValidatorImpl am: 1828d218d6 am: 261d85b7ce
Change-Id: I85702ddaa1c801e8078a6e25d2457af264e778ed
2020-01-08 18:54:19 +00:00
Automerger Merge Worker
f4115dd50f Enforce overriding methods for IPlatformCompat am: 465b214383 am: ed7fc22f27
Change-Id: Id4eafc4f2700b0c7e4578471059204dbc756fdd9
2020-01-08 18:54:13 +00:00
Zhuoyao Zhang
b2c90b1e3c Merge "Revert "Refactor PanelView and NotificationPanelView into Controllers."" 2020-01-08 18:53:06 +00:00
Andrei Onea
261d85b7ce Add test for OverrideValidatorImpl
am: 1828d218d6

Change-Id: I8a07c6c7542db7b7a2654f45aaaa39d452101605
2020-01-08 10:48:02 -08:00
Andrei Onea
ed7fc22f27 Enforce overriding methods for IPlatformCompat
am: 465b214383

Change-Id: I2f6ff12c492eaf9cc9b8852b0d2b12facb622596
2020-01-08 10:47:55 -08:00
Andrei-Valentin Onea
e7194bfdfc Merge changes from topic "fix-policy"
* changes:
  Refactor CompatConfigTest and PlatformCompatTest
  Add test for OverrideValidatorImpl
  Enforce overriding methods for IPlatformCompat
2020-01-08 18:42:44 +00:00
Zhuoyao Zhang
da13c3fd3d Revert "Refactor PanelView and NotificationPanelView into Controllers."
Revert "NoticationPanelView now has a controller."

Revert submission 9930899-b141751146-npv-controller

Reason for revert: b/147295216
Reverted Changes:
I9a92cad63: Refactor PanelView and NotificationPanelView into ...
I454bc4790: NoticationPanelView now has a controller.

Change-Id: Iae9db40e9385e1b88bd2f5f162a5f6d53d91878d
2020-01-08 18:30:30 +00:00
Automerger Merge Worker
133e292ec5 DO NOT MERGE: Add another exception to the nearby-sharing chip code. am: 3187e48e1f
Change-Id: Id338e3a93630c726dd7c4d68b6c40c7d1a8ef2c3
2020-01-08 15:24:11 +00:00
TreeHugger Robot
c18efd1f4d Merge "Use new UnsupportedAppUsage annotation." 2020-01-08 07:55:21 +00:00
Automerger Merge Worker
af62773f71 Merge "Revert "Implement the ThreadPrioritySetter interface"" am: e716ff86af am: bca74a47bc am: 2f162c37cf
Change-Id: I83c6720bd80c85d4446ce5b173102dc6fbe5cdc2
2020-01-08 07:38:57 +00:00
Automerger Merge Worker
2f162c37cf Merge "Revert "Implement the ThreadPrioritySetter interface"" am: e716ff86af am: bca74a47bc
Change-Id: I81839f9092d261042c0d5cad918b35ab24244674
2020-01-08 07:23:22 +00:00
Rick Yiu
e716ff86af Merge "Revert "Implement the ThreadPrioritySetter interface"" 2020-01-08 06:49:37 +00:00
Meng Wang
1ce0f39441 Merge "ANY_DATA_CONNECTION_STATE_CHANGED: define locally" 2020-01-08 02:26:44 +00:00
Rick Yiu
6df72bd988 Revert "Implement the ThreadPrioritySetter interface"
Revert submission 1194951-ThreadPrioritySetter2

Reason for revert: need to update new API
Reverted Changes:
Iee33a26c0: Implement the ThreadPrioritySetter interface
I71c5052be: Use ThreadPrioritySetter to set thread priority

Change-Id: I38c1335bff657662d82ff8778bffade323ced620
2020-01-08 02:22:39 +00:00
Kenny Root
155d5648fd Merge "Support Resume on Reboot" 2020-01-08 01:51:17 +00:00
Dan Sandler
3187e48e1f DO NOT MERGE: Add another exception to the nearby-sharing chip code.
Fixes: 146690046
Test: Share from Chrome
Change-Id: I41b3965ca2289f628a2d1de3a6da7daf01385a54
2020-01-08 00:26:37 +00:00
Meng Wang
dd43acc58f ANY_DATA_CONNECTION_STATE_CHANGED: define locally
to cut the tie with telephony mainline module.

Bug: 147101086
Test: make
Change-Id: I2b749cadbbf425649b38786821025a1634fe4d4e
2020-01-07 14:05:25 -08:00
TreeHugger Robot
e4f93070ed Merge "Collect historical appops by feature" 2020-01-07 19:20:21 +00:00
TreeHugger Robot
26eb022b1b Merge "Sharesheet - Crash during work profile share" 2020-01-07 18:17:52 +00:00
Nathan Harold
8b804f3308 Merge "Add Callback for Registration Failure" 2020-01-07 18:17:03 +00:00
Kenny Root
f76cfc314c Support Resume on Reboot
When an OTA is downloaded, the RecoverySystem can be triggered to store
the user's lock screen knowledge factor in a secure way using the
IRebootEscrow HAL. This will allow the credential encrypted (CE)
storage, keymaster credentials, and possibly others to be unlocked when
the device reboots after an OTA.

Bug: 63928581
Test: atest FrameworksServicesTests:RebootEscrowDataTest \
            FrameworksServicesTests:LockSettingsServiceTests \
            FrameworksServicesTests:RecoverySystemServiceTest \
            FrameworksServicesTests:RebootEscrowManagerTests
Test: use fake OTA console app to apply update
Change-Id: I59df6942b27ea2bdd11b757922f5169085a325f0
2020-01-07 08:18:02 -08:00
Matt Pietal
2025a1bee2 Sharesheet - Crash during work profile share
RecyclerView was crashing, due to a view being added without an
appropriate viewholder. Needed to delay view/viewholder creation until
requested by the recyclerview.

Bug: 147137182
Test: atest ChooserActivityTest
Change-Id: I5f8a9713a3e72523edef1d296eb627bcb2e8fd7d
2020-01-07 10:12:33 -05:00
Artur Satayev
00f8b53650 Use new UnsupportedAppUsage annotation.
Existing annotations in libcore/ and frameworks/ will deleted after the migration. This also means that any java library that compiles @UnsupportedAppUsage requires a direct dependency on "unsupportedappusage" java_library.

Bug: 145132366
Test: m && diff unsupportedappusage_index.csv
Change-Id: I8ffa1da1bcd43c25f4ff817575db77a33c0f3d31
2020-01-07 14:40:02 +00:00
Artur Satayev
74cb719964 Use new UnsupportedAppUsage annotation.
Existing annotations in libcore/ and frameworks/ will deleted after the migration. This also means that any java library that compiles @UnsupportedAppUsage requires a direct dependency on "unsupportedappusage" java_library.

Bug: 145132366
Test: m && diff unsupportedappusage_index.csv
Change-Id: I547d7fb2e6bc2e9707bbc0d14dc1e8cd632c5a23
2020-01-07 14:19:21 +00:00