Commit Graph

12613 Commits

Author SHA1 Message Date
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
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
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
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
Automerger Merge Worker
d6bf5aa253 Merge "Implement the ThreadPrioritySetter interface" am: bc0290a7b0 am: 4db03331ac am: 09b06a3f1f
Change-Id: I54ee7272cd69f5e8e14777f8f717db8ce2239232
2020-01-07 03:42:21 +00:00
Automerger Merge Worker
09b06a3f1f Merge "Implement the ThreadPrioritySetter interface" am: bc0290a7b0 am: 4db03331ac
Change-Id: Ib8df0e26ebc61f6d2014d8784e91c16197389fb1
2020-01-07 03:25:43 +00:00
Rick Yiu
bc0290a7b0 Merge "Implement the ThreadPrioritySetter interface" 2020-01-07 02:31:17 +00:00
Philip P. Moltmann
4aacd7138f Collect historical appops by feature
This
- pipes through the featureId from AppOpsService to HistoricalRegistry
- changes the file format of historical app ops by adding the feature-id
  tag. This will make us loose all previously collected app-ops. This is
  ok as we never shipped a device with historical app-ops enabled
- Adds a new layer to the HistoricalOps hierarchy. For backwards
  compatibility it is possible to go directly from package to op. In this
  case a combined HistoricalOp object is generated on the fly.
- It is possible to filter historical ops requests by featureId.
  Unfortunately a 'null' featureId is a valid ID. Hence there is now a
  dedicated mask of paramters to filter for (@HistoricalOpsRequestFilter).
- Fixes the equals methods of HistoricalOp by implementing an equals
  method for LongSparseLongArray

Test: atest CtsAppOpsTestCases AppOpsServiceTest
Bug: 136595429
Change-Id: I92c41e8ae2cd471051c2d628d49a3ad6a5a66330
2020-01-06 14:42:56 -08:00
TreeHugger Robot
33872252d1 Merge "Add dumpsys cpuinfo proto" 2020-01-06 22:05:56 +00:00
Dave Mankoff
6b5b77e7bd Merge "Refactor PanelView and NotificationPanelView into Controllers." 2020-01-06 21:49:10 +00:00
Mike Ma
24b9636a3c Add dumpsys cpuinfo proto
Add protobuf dumpsys of cpuinfo, invoked by dumpsys cpuinfo --proto.
Also add "dumpsys cpuinfo --proto" section to incident.proto

Bug: 146086163
Test: adb shell dumpsys cpuinfo --proto, then verify its content
Change-Id: I84ed623dee9708e36c75d8effb71408401e0dac0
2020-01-06 12:43:32 -08:00
Dave Mankoff
59b9496c7b Refactor PanelView and NotificationPanelView into Controllers.
Bug: 141751146
Test: atest SystemUITests
Change-Id: I9a92cad636e30634ac5b1fa16121d320991492c2
2020-01-06 14:56:26 -05:00
TreeHugger Robot
b40b4ccb52 Merge "LockscreenCredential: clarify Effective Java rule" 2020-01-06 17:27:22 +00:00
TreeHugger Robot
18813f70ac Merge "Rollback collapsed flag in ResolverDrawerLayout due to b/147137182" 2020-01-06 17:07:15 +00:00
TreeHugger Robot
b6a24e67e3 Merge "Avoid calling LockPatternUtils from LockSettingsService" 2020-01-06 16:46:35 +00:00
Rubin Xu
3744acff4b Avoid calling LockPatternUtils from LockSettingsService
Bug: 63619579
Test: atest com.android.server.locksettings
Change-Id: I3f4183867b2919bc7a793c6824796a47e31cd377
2020-01-06 14:59:23 +00:00
Sergey Troshin
89b384697a Rollback collapsed flag in ResolverDrawerLayout due to b/147137182
Bug: 147137182
Test: atest ChooserActivityTest ResolverActivityTest

Change-Id: I0e81000cd11f32109ecc1a109011c53d42db3f15
2020-01-06 15:25:20 +01:00
Artur Satayev
ed5a6ae7ae 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: I41e12e425284e74561c6b61663241df364ae54a1
2020-01-06 12:27:42 +00:00
Peter_Liang
3960d7ae36 Multiple shortcut menu for android R (2/n).
1. Update AccessibilityButtonChooserActivity:
  - Refactor the design
  - Add shortcut type checker and the corresponding UI
2. Add new icons

Bug: 142528666
Test: maunal
Change-Id: Ia58742f094535d42b748f56dfef84e5e06f2b0aa
2020-01-06 13:55:11 +08:00