Commit Graph

15294 Commits

Author SHA1 Message Date
TreeHugger Robot
6d623e495b Merge "Updating onLocation related APIs to onLaunchLocation as per API review" 2019-03-22 15:24:29 +00:00
Rubin Xu
e120a42c25 Merge "Improve javadoc" 2019-03-22 11:12:21 +00:00
Hai Zhang
be1fe6f31a Merge "Add getDeclaredShareLibraries() for role qualification checking." 2019-03-22 09:43:48 +00:00
TreeHugger Robot
6798ab9e95 Merge "Remove unnecessary called from system process warning." 2019-03-22 03:51:16 +00:00
TreeHugger Robot
f621dfc7d5 Merge "Make LSS report honest password quality to DPMS" 2019-03-22 03:02:04 +00:00
Hai Zhang
1ad238f935 Add getDeclaredShareLibraries() for role qualification checking.
Bug: 124452117
Test: build
Change-Id: I13e4313c4ab5305335fc9490dfc58b03a24a86dd
2019-03-21 18:37:08 -07:00
Sunny Goyal
c2baa4d724 Updating onLocation related APIs to onLaunchLocation as per API review
Bug: 126179809
Bug: 126180256
Test: everything compiles

Change-Id: I583f96bd5f5b5042131488a9ad5950cbad298071
2019-03-21 18:03:48 +00:00
Mady Mellor
989d897933 Merge "Documentation & refinements around BubbleMetadata#setIcon API" 2019-03-21 17:18:38 +00:00
Joe Onorato
324cb51012 Remove unnecessary called from system process warning.
This method takes the UserHandle, so we don't need to warn that the
system process is calling the method without UserHandle.

Test: treehugger
Change-Id: I68b0ffc75e11ee2d45faec510ea63e446830a378
2019-03-21 10:13:02 -07:00
Julia Reynolds
b4a9e9c8c6 Allow delegates to read target app notification channels
Test: cts, atest
Fixes: 128852206
Change-Id: I12ddfbdf6f520d29a8ea5fe8e0581bc425c1638b
2019-03-21 09:29:06 -04:00
Julia Reynolds
a5516ba016 Merge "Add the ability to turn off NAS capabilities individually" 2019-03-21 13:09:00 +00:00
Annie Meng
153edfc35e Merge "API Review: Make dataManagementLabel a CharSequence" 2019-03-21 10:17:09 +00:00
Mady Mellor
9848a6c4a1 Documentation & refinements around BubbleMetadata#setIcon API
Also actually use the icon if we're provided it!

Test: atest NotificationTest
Bug: 128010752
Change-Id: Ide8bcf9af4ed687501afffeca4e9ccf84482042b
2019-03-20 20:10:46 -07:00
Jeff Sharkey
8c6eee1124 Merge "Implement dual-permission model for storage." 2019-03-20 23:49:08 +00:00
Rubin Xu
408b7eabef Improve javadoc
Change-Id: I9a957c162e72676b5ab863fcae40a3e3b412220a
Fix: 76202444
Fix: 79737644
Test: make ds-docs
2019-03-20 17:42:21 +00:00
Pavel Grafov
19a4fb3fe0 Make LSS report honest password quality to DPMS
Previously password quality would be promoted to whatever admin
has requested or depending on whether it was PIN or password.

Bug: 120536847
Test: manual, steps from b/123924734
Test: atest DeviceAdminHostSideTestApi24#testRunDeviceOwnerPasswordTest
Test: atest MixedManagedProfileOwnerTest#testResetPasswordWithToken
Test: atest com.android.cts.devicepolicy.PasswordComplexityTest
Test: atest PasswordMetricsTest
Change-Id: I51ca2d327f4c6db8f74c0b0ec35e4a3a346a9b5c
2019-03-20 15:53:02 +00:00
Svet Ganov
8e5bf968c1 Fix reading app ops data - framework
There was an optimized code path that is hit if the op
has not been accessed that does not write the uid state
information which did not add the closing tag which
resulted in producing a malformed XML.

Test: atest android.app.appops.cts.AppOpsTest#testNonHistoricalStatePersistence

bug:128872367

Change-Id: Iaddcce09b41f3e124e1838b65731d8dac9ca64e3
2019-03-20 15:12:23 +00:00
Julia Reynolds
ad6dd3575c Add the ability to turn off NAS capabilities individually
Test: atest
Bug: 127825514
Change-Id: Ic59e4be40ec71c70703eacf004ef32333e3356c9
2019-03-20 09:09:56 -04:00
Annie Meng
4eb4efc466 API Review: Make dataManagementLabel a CharSequence
Make the data management label a CharSequence for the system APIs:
- BackupManager#updateTransportAttributes
- BackupManager#getDataManagementLabel
- BackupTransport#dataManagementLabel

Renames dataManagementLabel -> dataManagementIntentLabel to change
return type

Removes getDataManagementLabel AIDL method as usages converted to use
"forUser" version in topic CL.

Bug: 113856654
Test: 1) atest RunBackupFrameworksServicesRoboTests
2) atest BackupManagerTransportAttributesHostSideTest
3) atest $(find \
frameworks/base/services/tests/servicestests/src/com/android/server/backup \
-name '*Test.java')
4) Manual: boot and verify transports registered properly using old API;
Modify LocalTransport to use new API, verify success

Change-Id: Ia48017156debe0a29684909f58927fa1fbf972f9
2019-03-20 12:13:10 +00:00
Narayan Kamath
3f95d3bc24 Merge "Require a foreground service of a specific type to start media projection." 2019-03-20 10:18:05 +00:00
Nadav Bar
66a2bdb3a5 Merge "Grant record audio permission to SystemCaptionsService instead of ContentCaptureService" 2019-03-20 08:00:52 +00:00
Brad Stenning
fbc4c76b24 Merge "Updates isKeyguardSecure to take in a user id." 2019-03-19 18:52:00 +00:00
TreeHugger Robot
90088bb8d1 Merge "No need for getProfileOwnerForUser as SystemApi" 2019-03-19 17:35:11 +00:00
TreeHugger Robot
6d15a88107 Merge "Add Nullability annotations for Notification.Action.Builder methods." 2019-03-19 16:57:42 +00:00
Kiyoung Kim
5636c3f3ca Merge "Mark product apks as unbundled" am: 856ef55672 am: 716111d81c
am: e1e02641af

Change-Id: I2b8497140c4ba063a09617ee866c89459fe8918a
2019-03-19 07:44:54 -07:00
TreeHugger Robot
0a96038c85 Merge changes I7bf9bde4,I8d655d1c,Ibc59aa36
* changes:
  Adds class and method documentation in all app prediction classes
  Link Intent.EXTRA_SHORTCUT_ID to ACTION_SEND Intent
  Change ShortcutInfo.Builder.setLongLived to take a boolean
2019-03-19 14:22:28 +00:00
Kiyoung Kim
716111d81c Merge "Mark product apks as unbundled"
am: 856ef55672

Change-Id: I9d4d7cf2ae8e47c8aaed82d0d47861cd7d787067
2019-03-19 07:17:53 -07:00
Treehugger Robot
856ef55672 Merge "Mark product apks as unbundled" 2019-03-19 14:02:59 +00:00
Xiao Ma
2ce206c82d Merge "Move the IpMemoryStore to the network stack." am: 93bf5ef495 am: 5db1518bfa
am: 3176d57308

Change-Id: I243056012d2f099d96a33657c0eb63a5b66a2cfe
2019-03-19 06:54:43 -07:00
Xiao Ma
5db1518bfa Merge "Move the IpMemoryStore to the network stack."
am: 93bf5ef495

Change-Id: I672d07ca2d0a251c246993ab8c7c3075de385570
2019-03-19 06:35:31 -07:00
Xiao Ma
93bf5ef495 Merge "Move the IpMemoryStore to the network stack." 2019-03-19 13:21:12 +00:00
Lorenzo Colitti
03f50c1aa5 Merge "Address API review comments for VPN changes." am: bbfee2b427 am: 071c17e277
am: ea7b1b7bb9

Change-Id: I0cc600177432f11c7d7dab39478336ed9b7409d7
2019-03-18 20:23:30 -07:00
Lorenzo Colitti
071c17e277 Merge "Address API review comments for VPN changes."
am: bbfee2b427

Change-Id: I79d035244faeef373751e256f49075d1f2a10faf
2019-03-18 19:34:28 -07:00
TreeHugger Robot
6d1b312c33 Merge "Revert "Allow transitioning through lifecycle when finished"" 2019-03-19 00:07:25 +00:00
Andrii Kulian
0f3356c7ce Revert "Allow transitioning through lifecycle when finished"
This reverts commit f2d598e168.

Reason for revert: b/128819045, b/128808377, b/128812576

Change-Id: Iafa2bb14dbb77be32e576de92dc1378a1bd96a6f
2019-03-18 21:34:40 +00:00
TreeHugger Robot
2de33b0f4b Merge "Don't schedule jobs in 'bad' apps" 2019-03-18 20:48:11 +00:00
Philip P. Moltmann
477666d963 No need for getProfileOwnerForUser as SystemApi
Rather use
context.createPackageContextAsUser(context.getPackageName(), 0, user)
        .getSystemService(DevicePolicyManager.class).getProfileOwner();

Test: Looked at permission restricted by device owner in UI
Fixes: 126699845
Change-Id: I3dc16fbe360aaeb416c526cacf5f55ce2c3a1b20
2019-03-18 18:43:40 +00:00
TreeHugger Robot
47119cf977 Merge "Use context user for canNotifyAsPackage" 2019-03-18 17:57:47 +00:00
Pavel Grafov
50d17cfa07 Address API review comments for VPN changes.
Whitelist is now a Set rather than a list + javadoc improvement.

Bug: 124882903
Bug: 125346147
Test: atest MixedDeviceOwnerTest#testAlwaysOnVpn
Test: atest MixedDeviceOwnerTest#testAlwaysOnVpnAcrossReboot
Change-Id: Ieecaad083f2ab55de33587e6ce767f5f961683c9
2019-03-18 17:05:55 +00:00
Gustav Sennton
e1fc87b512 Add Nullability annotations for Notification.Action.Builder methods.
Bug: 128704087
Test: make
Change-Id: Id69837cde581297cc9e1e449f00d492b067bf771
2019-03-18 16:58:01 +00:00
Julia Reynolds
7a6d07ae0d Use context user for canNotifyAsPackage
Test: atest
Fixes: 128748189
Change-Id: I464364ec0b6bb21b2a4d72a70470ca29ec47cfe1
2019-03-18 11:34:56 -04:00
Ruslan Tkhakokhov
d016641531 Merge changes from topic "api-review-restore-packages"
* changes:
  API Review: Internal RestoreSession#restorePackages
  API Review: RestoreSession#restoreSomePackages
2019-03-18 15:10:04 +00:00
Ruslan Tkhakokhov
507e6f834d API Review: Internal RestoreSession#restorePackages
Bug: 120843781
Test: 1) atest RunBackupFrameworksServicesRoboTests
      2) atest CtsBackupTestCases
      3) atest CtsBackupHostTestCases
      4) atest GtsBackupTestCases
      5) atest GtsBackupHostTestCases

Change-Id: Ice42aedd702e1c16b074d7a00d7b15d8f4aaf733
2019-03-18 12:26:02 +00:00
Gustav Sennton
df4c244c8a Fix curly brackets in Notification.java
Test: N/A

Change-Id: I3c46a8d4b0e68e3ca2859529fa93aa36c2c56b28
2019-03-18 11:45:47 +00:00
Ruslan Tkhakokhov
25f0e81671 API Review: RestoreSession#restoreSomePackages
1. Rename restoreSome to restorePackages
2. Add @Nullable annotation for BackupObserver, BackupManagerMonitor and @NonNull for 'packages' params
3. Update javadoc to reflect the difference between BackupObserver and BackupManagerMonitor
4. Change 'packages' param from String[] to Set

Bug: 120843781
Test: 1) atest RunBackupFrameworksServicesRoboTests
      2) atest CtsBackupTestCases
      3) atest CtsBackupHostTestCases
      4) atest GtsBackupTestCases
      5) atest GtsBackupHostTestCases

Change-Id: I433739c0b1e62059b10593c233dfb2f461a8630e
2019-03-18 11:27:51 +00:00
Chalard Jean
952135122d Move the IpMemoryStore to the network stack.
Test: atest FrameworksNetTests
Change-Id: Ic5bd6ff54b09a6fa92b6863f240a5b053011acb6
2019-03-18 11:33:17 +09:00
Nadav Bar
1a1f5a2118 Grant record audio permission to SystemCaptionsService instead of ContentCaptureService
Now that we have a definition for a SystemCaptionsService we should move to use it instead
of piggybacking on ContentCaptureService.
This is also required to ensure that T2C will be granted audio recording permission in case it will
be shipped in a different APK for OEMs.

Test: Manual and DefaultPermissionGrantPolicyTest.
Bug: 128622041.
Change-Id: Ic0b5b21b05ff1ad200472bfc1c4eaa3c588324df
2019-03-17 15:11:22 +00:00
TreeHugger Robot
b3e900902a Merge "Allow transitioning through lifecycle when finished" 2019-03-17 01:02:11 +00:00
Winson Chung
abd068245c Merge "Add mechanism for freezing the system recent task list" 2019-03-16 17:37:38 +00:00
TreeHugger Robot
74a57744b2 Merge "Fix AppOps API review bugs." 2019-03-16 07:27:16 +00:00