Commit Graph

102917 Commits

Author SHA1 Message Date
Alex Kershaw
78ce4ab540 Merge "Clarify setPackagesSuspended javadoc" into rvc-dev 2020-03-18 22:21:57 +00:00
Eugene Susla
733a81b9f7 Merge "Rename auto-revoke manifest flags to not contain "Dont"" into rvc-dev 2020-03-18 21:46:40 +00:00
Sally Yuen
56da5ed373 Merge "Implement ACTION_LONG_CLICK for accessibility" into rvc-dev 2020-03-18 21:45:46 +00:00
Anthony Stange
2f89fa5737 Merge "Revert "Unrestrict updated buggy apps."" into rvc-dev 2020-03-18 21:36:21 +00:00
Jing Ji
6ef8f5e1ab Merge "Add support to provide app its own ANR stack trace" into rvc-dev 2020-03-18 21:30:44 +00:00
TreeHugger Robot
f6567d2ef5 Merge changes I6f21d272,Ic0f72593 into rvc-dev
* changes:
  SurfaceControlViewHost: Call die instead of dispatchDetached
  SurfaceView: Release SurfacePackage when done
2020-03-18 21:30:28 +00:00
Anthony Stange
6801cc3494 Revert "Unrestrict updated buggy apps."
This reverts commit 75e1da7beb.

Reason for revert: Caused build breakage - b/10429173

Change-Id: I617c44aa846c1cb561cd065c953574599c593a1b
2020-03-18 21:27:43 +00:00
Robert Carr
bb7964d645 SurfaceControlViewHost: Call die instead of dispatchDetached
Seems more appropriate as this more mirrors the normal release path.
I think everything gets release eventually either way.

Bug: 149591513
Test: Existing tests pass
Change-Id: I6f21d2723e06dbae4e09421efc352c179115bc40
2020-03-18 14:24:38 -07:00
Eugene Susla
fea313038b Merge "Expose OPSTR_AUTO_REVOKE_MANAGED_BY_INSTALLER as @SystemApi" into rvc-dev 2020-03-18 19:56:09 +00:00
Yurii Zubrytskyi
1d6e6bfe96 Merge "Removing race condition accessing shared binder object." into rvc-dev 2020-03-18 19:54:55 +00:00
Robert Carr
5af7d62e27 SurfaceView: Release SurfacePackage when done
We release the SurfaceControl assosciated with a Surface package
when accepting a new SurfacePackage, or at time of detached-from-window
this way we don't rely on the finalize method.

Bug: 149591513
Test: Existing tests pass
Change-Id: Ic0f7259394836ee094ed49db73b5986b778b450f
2020-03-18 12:53:28 -07:00
Sarah Chin
210bccd974 Merge "API review: SubscriptionPlan#getNetworkTypes/setNetworkTypes" into rvc-dev 2020-03-18 19:52:26 +00:00
Cody Kesting
93b97bd690 Merge "Change NetworkCapabilities administrator UIDs to be stored as int[]." into rvc-dev 2020-03-18 19:40:39 +00:00
Amit Mahajan
0ed16d7b4b Merge changes from topic "Remove telephony protection level" into rvc-dev
* changes:
  Remove telephony protection level.
  Revert "Allowed telephony to bind network service"
  Revert "add telephony role to some permissions needed by telephony module"
2020-03-18 19:22:36 +00:00
Rubin Xu
243c57f079 Merge "Replace COMMON_CRITERIA_MODE setting with getter API" into rvc-dev 2020-03-18 18:42:28 +00:00
Rubin Xu
763285e574 Merge "Do not crash if attempt to launch app from locked profile" into rvc-dev 2020-03-18 18:36:06 +00:00
TreeHugger Robot
9b7197fb11 Merge "Camera: clarify offline processing spec" into rvc-dev 2020-03-18 18:25:36 +00:00
Kweku Adams
87962f9d0a Merge "Unrestrict updated buggy apps." into rvc-dev 2020-03-18 18:01:04 +00:00
Cody Kesting
f7ac996fb5 Change NetworkCapabilities administrator UIDs to be stored as int[].
NetworkCapabilities#mAdministratorUids is used to track the UIDs that
are administrators of the given Network. This value was previously
stored as List<Integer>. However, general Android API Council guidelines
recommend using Arrays for primitive values. In order to be consistent
with the guidelines, updating the field to use an Array.

Bug: 147903575
Test: atest FrameworksNetTests
Change-Id: I2652a5b0f276b8944454af5cb4b1383a3e054cfa
2020-03-18 17:40:24 +00:00
Jing Ji
56006fd5bc Add support to provide app its own ANR stack trace
...If it was killed due to ANR.

Also add support to set a cookie which could be
included into the app kill reason.

Bug: 148413462
Test: atest ApplicationExitInfoTest
Test: atest CtsAppExitTestCases:ActivityManagerAppExitInfoTest
Change-Id: I79d9955d8f5c5f42074f0e1567119b41fc486d50
2020-03-18 10:30:43 -07:00
Shuo Qian
cf5dc204f6 Merge "API Council Feedbacks" into rvc-dev 2020-03-18 17:15:36 +00:00
Rob Carr
4841efcfcd Merge "SurfacePackage: Add release method" into rvc-dev 2020-03-18 17:13:32 +00:00
Adrian Roos
269b162622 Merge "WindowInsetsAnimationController: Add state callback and getters" into rvc-dev 2020-03-18 16:43:10 +00:00
Alex Buynytskyy
b6e02f7b09 Removing race condition accessing shared binder object.
Test: incrementally installing two apks at the same time
Bug: b/150411019
Change-Id: I81231edf7a32470542ec529aa305b4f9fb2b80e3
2020-03-18 09:01:36 -07:00
Ricky Wai
3909ffc964 Merge "Do not mount storage obb&data dirs in fuse daemon process" into rvc-dev 2020-03-18 15:36:13 +00:00
Alex Kershaw
d7fae7fede Clarify setPackagesSuspended javadoc
Clarify that some packages cannot be suspended.

Fixes: 144411650
Test: Javadoc change only; not applicable
Change-Id: Ia89ad60c5445b3bf2a355eb49ea645f4962a1212
2020-03-18 13:23:40 +00:00
Rubin Xu
6c113b6d07 Do not crash if attempt to launch app from locked profile
Handle the case of a locked profile with unified challenge as a
first-class state: attempts to open work apps in this state will
result in a confirm credential operation, instead of letting the
app launch directly which will result in crashes.

Test: atest ActivityStartInterceptorTest
Test: 1. Turn off a work profile with unified challenge.
      2. Manually turn on profile (without unlocking), run
      adb shell  am broadcast -a com.android.server.pm.DISABLE_QUIET_MODE_AFTER_UNLOCK \
          --ei android.intent.extra.USER_ID 10
      3. Attempt to launch a work app.
Bug: 72178550
Bug: 138560482
Change-Id: I85f796fe3edeb3c1d6c0dd6d2143d2f44ac22ea7
2020-03-18 12:20:55 +00:00
Ruslan Tkhakokhov
3a0df8a06c Merge "Enable SETTINGS_DO_NOT_RESTORE_PRESERVED by default" into rvc-dev 2020-03-18 11:48:15 +00:00
Adrian Roos
5d557edb44 WindowInsetsAnimationController: Add state callback and getters
Adds more comprehensive callbacks and getters for the WindowInsetsAnimationController,
to make it more straight forward to properly use.

Test: atest InsetsControllerTest PendingInsetsControllerTest
Fixes: 151707442
Change-Id: Ida55f609112396c0f6de4c5c4431e0793c2e315e
2020-03-18 12:17:19 +01:00
Chiachang Wang
1cb71607bc Merge changes I97015365,Ic9db4b9b into rvc-dev
* changes:
  Add NattKeepalivePacketDataTest
  Add KeepalivePacketDataTest
2020-03-18 10:15:15 +00:00
Zoey Chen
3312226652 Merge "[TelephonyMainline] @hide @SystemApi and revisit them in S. - CarrierColumns" into rvc-dev 2020-03-18 09:39:12 +00:00
TreeHugger Robot
24466c4924 Merge changes from topic "code_sync_from_aosp" into rvc-dev
* changes:
  Change naming to be more specific
  Update preferred payment related APIs
2020-03-18 08:17:36 +00:00
Andrii Kulian
10e5f36550 Merge "Don't override activity display adjustments with app config" into rvc-dev 2020-03-18 06:08:18 +00:00
Chiachang Wang
d4d035d6eb Add NattKeepalivePacketDataTest
Add test for constructor and parcel

Test: atest CtsNetTestCasesLatestSdk:android.net.NattKeepalivePacketDataTest
      on both Q and R devices
Bug: 151402211
Change-Id: I97015365604be1846e3ecbaf60ac99e334705565
Merged-In: I97015365604be1846e3ecbaf60ac99e334705565
2020-03-18 05:44:26 +00:00
Wei Wang
540c37bae3 Merge "Send DEVICE_IDLE and DISPLAY_INACTIVE hint from framework" into rvc-dev 2020-03-18 03:57:41 +00:00
Paul Murphy
a9fbd8e4d8 Merge "Update CompanionDeviceManager javadoc to include the COMPANION_APPROVE_WIFI_CONNECTIONS_PERMISSION" into rvc-dev 2020-03-18 03:23:09 +00:00
Mehdi Alizadeh
f9275345db Merge changes Ibfb3cf6f,I9a4bd220 into rvc-dev
* changes:
  Load Uri based shortcut drawable in LauncherApps
  Adds icon URI field to shortcutInfo
2020-03-18 02:59:03 +00:00
Joanne Chung
6d6ddf4502 Merge "Fix broken tests in TextClassifierServiceTest." into rvc-dev 2020-03-18 02:27:40 +00:00
Shuo Qian
43c2f470ed API Council Feedbacks
1) Add Annotation for getCarrirPrivilegeStatus
2) Remove NullProinterException throwing in isDataConnectionAllowed
3) Add SdkConstant for ACTION_UPDATE_EMRGENCY_NUMBER_DB

Test: Treehugger
Bug: 148218347
Bug: 151455822
Change-Id: I4943491abf70641f9379862a67941295a4cf67f9
2020-03-18 02:12:30 +00:00
Eugene Susla
1f466ece61 Rename auto-revoke manifest flags to not contain "Dont"
Fixes: 151311445
Test: presubmit
Change-Id: Idc78c35acef6828ac21f0d651a6d8efbc5094872
2020-03-17 17:42:40 -07:00
Paul Murphy
515729d964 Update CompanionDeviceManager javadoc to include the
COMPANION_APPROVE_WIFI_CONNECTIONS_PERMISSION

Change-Id: I07b5ea07ccd0d28e589b586dd6fbf4816f035679
Test: None, this is strictly a javadoc update
Bug: 151311975
2020-03-17 16:53:17 -07:00
Wei Wang
80d224621f Send DEVICE_IDLE and DISPLAY_INACTIVE hint from framework
Bug: 140148621
Test: boot device
Change-Id: I34971fde28a80056c51d3c1501467f975c7e82a2
2020-03-17 16:11:42 -07:00
Junyu Lai
3a6a98f5bb Merge changes from topics "am-ad04c8ad832c4674be35bfc5fe4280dd-rvc-dev", "sp21-api-review-feedback", "sp25-networkstats-rename" into rvc-dev
* changes:
  [SP25] Rename functions that add Entry conditionally
  [SP24] Rename functions that add Entry unconditionally
  [SP23] Address misc API review comment about NetworkStats
  [SP21] Address comments for API council review about aosp/1172143
  [SP20] Check signature permission when accessing network stats provider
2020-03-17 23:11:34 +00:00
Shuo Qian
0d4f4e464e Merge "Hide several System APIs" into rvc-dev 2020-03-17 23:09:31 +00:00
Mehdi Alizadeh
98ffa48a7a Load Uri based shortcut drawable in LauncherApps
Bug: 143106625
Test: Manual test by publishing shortcuts with uri icons in a sample app
Test: atest com.android.server.pm.ShortcutManagerTest1 \
            com.android.server.pm.ShortcutManagerTest2 \
            com.android.server.pm.ShortcutManagerTest3 \
            com.android.server.pm.ShortcutManagerTest4 \
            com.android.server.pm.ShortcutManagerTest5 \
            com.android.server.pm.ShortcutManagerTest6 \
            com.android.server.pm.ShortcutManagerTest7 \
            com.android.server.pm.ShortcutManagerTest8 \
            com.android.server.pm.ShortcutManagerTest9 \
            com.android.server.pm.ShortcutManagerTest10

Change-Id: Ibfb3cf6f7dabdeed36b845ab6e026506978d972a
2020-03-17 15:43:01 -07:00
Philip P. Moltmann
379322f066 Merge "Suggested additions to permissions docs" into rvc-dev 2020-03-17 22:19:32 +00:00
TreeHugger Robot
173eb0db9b Merge "[framework] Extract v3 digest for v4 checking correctly" into rvc-dev 2020-03-17 21:22:35 +00:00
Beverly Tai
552d491f63 Merge "Give mConsolidatedPolicy a default value" into rvc-dev 2020-03-17 21:19:25 +00:00
Robert Carr
d9c9c0cc75 SurfacePackage: Add release method
Oversight, the SurfacePackage holds a reference to the SurfaceControl
which is protected by a close-guard. We need a way to close it
explicitly. Going to follow up with a patch to have SurfaceView
manage the lifetime when the SurfacePackage is consumed, but want
to make sure this explicit release gets in ASAP.

Bug: 149591513
Test: Existing tests pass
Change-Id: I7276a2440c38cc6d859b79b4c3ee57bc122ce2a6
2020-03-17 14:12:53 -07:00
Winson Chung
042f6dae6e Merge "Update comment for deprecated method" into rvc-dev 2020-03-17 21:01:17 +00:00