Commit Graph

475523 Commits

Author SHA1 Message Date
Sundong Ahn
4bb8ffb044 Reland "Change to using sysprop for services.core.unboosted"
This reverts commit 123fba9ffb.

Reason for revert: Fix build error (ag/11388833)

Bug: 124531214
Change-Id: If4810b59ba0665b7fec1329982800674297d891c
2020-05-06 07:05:41 +00:00
Jeff Sharkey
123fba9ffb Revert "Change to using sysprop for services.core.unboosted"
This reverts commit dc217b9d20.

Reason for revert:

https://android-build.googleplex.com/builds/submitted/6448376/apps/latest/view/logs/build_error.log

Change-Id: I77fb257c216093c99b27484c2e3ac6da88c34d15
2020-04-30 17:28:47 +00:00
Sundong Ahn
dc217b9d20 Change to using sysprop for services.core.unboosted
The configstore service was deprecated. So change to use sysprop
instead of configstore

Bug: 124531214
Test: 1. check reading property values
      2. uninstall configstore && check reading property values
      3. uninstall configstore && check reading default values
Change-Id: Ia4471a58fdc042d3a011d965582c2ec02f338f3c
2020-04-28 21:56:25 +09:00
Jian-Yang Liu
c65d2c3e06 Merge "Updated OverlayPanelViewController to allow for showing overlay panel from the bottom navigation bar." into rvc-dev 2020-04-25 21:14:55 +00:00
TreeHugger Robot
8a36b147a0 Merge "Import translations. DO NOT MERGE" into rvc-dev 2020-04-25 17:45:21 +00:00
TreeHugger Robot
d5fee92534 Merge "Import translations. DO NOT MERGE" into rvc-dev 2020-04-25 15:52:39 +00:00
Bill Yi
61726a56e8 Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Change-Id: I527c7e235d3dade46d7c245d9aef68079d384c8a
2020-04-25 08:18:38 -07:00
Bill Yi
9b3e75e4c8 Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Change-Id: Ie1a375e25e9164454045d2cd94e65fe2cca38e51
2020-04-25 03:19:53 -07:00
Nathan Harold
6f918dbf7c Merge "Update GlobalCellId during Un-parceling" into rvc-dev 2020-04-25 03:43:26 +00:00
Jeff Sharkey
7732d1f870 Merge "Non-generic grants also need forceUriPermissions." into rvc-dev 2020-04-25 03:25:21 +00:00
Nathan Harold
3f7dfb8239 Update GlobalCellId during Un-parceling
The Global Cell-ID is constructed from other
fields in each CellIdentity.

Currently, it is not stored during parceling.
Thus, after a CellId is parceled and unparceled
this value is being lost.

Do a quick fix to update the global Cell ID during
unparceling. A longer-term fix is to resolve the
layering violations that create the situation where
the global Cell ID is defined in the base class
but manipulated in the derived classes.

Fixes a broken unit test.

Bug: 154955167
Test: atest ServiceStateTrackerTest#testRatRatchet
Change-Id: I5c58322ebcec8886405e25e09754c7f154187efe
2020-04-24 18:42:08 -07:00
Jeff Sharkey
edb79a9548 Non-generic grants also need forceUriPermissions.
The recently adjusted logic created a regression where we didn't
always honor the forceUriPermissions flag from a provider; we need
to consider it both in the "generic" case where we don't know the
target and in the "non-generic" case where we know where the grant
is destined.

Bug: 154962874
Test: atest FrameworksServicesTests:com.android.server.uri
Test: atest CtsAppSecurityHostTestCases:android.appsecurity.cts.ExternalStorageHostTest
Change-Id: Ica89ee977e29e084a74e66f49d28d3aed10fe1f3
2020-04-24 19:38:38 -06:00
Ytai Ben-tsvi
f7d789b0ed Merge "Deliver internal server errors to the client" into rvc-dev 2020-04-25 01:34:06 +00:00
TreeHugger Robot
304562d30b Merge "Update prebuilt CTS shim pkgs with the ones built on server" into rvc-dev 2020-04-25 01:18:11 +00:00
TreeHugger Robot
525fab26a1 Merge "Add back ActivityManagerService.onUserRemoved" into rvc-dev 2020-04-25 01:16:49 +00:00
TreeHugger Robot
11ddcad881 Merge "AudioService: fix A2DP (dis)connection during media playback" into rvc-dev 2020-04-25 01:02:57 +00:00
Darryl Johnson
637fd24378 Merge "Revert "Try to reland Ib3ee007bc"" into rvc-dev 2020-04-25 00:37:46 +00:00
Darryl Johnson
87f93a5585 Revert "Try to reland Ib3ee007bc"
This reverts commit b6415618f1.

Reason for revert: Caused regression of b/149213586

Bug: 148639826
Bug: 149213586

Change-Id: I5248e03b42e3f24a6e2abb134d0bf339e77f484b
2020-04-24 23:50:53 +00:00
Ytai Ben-Tsvi
458930753d Deliver internal server errors to the client
Due to a binder limitation (b/150808347), any unexpected exception
thrown by a binder service while processing an RPC call, will be
silently discarded and the client will get back a default-initialized
result parcelable (i.e. in most cases, won't know that anything wrong
happened).

We work around this issue by throwing a ServiceSpecificException,
which does get delivered, having a special code to designate an
internal error. Errors resulting from a HAL malfunctions will result
in a HAL reboot, which leads to recovery.

Bug: 154089179
Test: Manual verification of basic error recovery scenarios by
      injecting HAL error codes and crashes.
Change-Id: Ib5dbe08a362e545501c04204bebad5ab95f5d632
2020-04-24 16:39:36 -07:00
JianYang Liu
2d922fb64b Updated OverlayPanelViewController to allow for showing overlay panel
from the bottom navigation bar.

Added Top and Bottom NotificationPanelViewMediators that can be used to
change the direction that the notification panel should go in.

Bug: 145827692
Test: Manual
Change-Id: I813415711f826a70cdbf4bd16e9b4f425e81e0de
2020-04-24 23:12:51 +00:00
Jing Ji
b344e0ac95 Merge "Fix test failure in testProcessStateByPulling" into rvc-dev 2020-04-24 23:05:08 +00:00
TreeHugger Robot
677051e3f1 Merge "Force update sysui flags after binding to overview service" into rvc-dev 2020-04-24 23:02:00 +00:00
TreeHugger Robot
ed3c3005a4 Merge "Change BLACK to TRANSPARENT to fix test" into rvc-dev 2020-04-24 22:59:10 +00:00
Chavi Weingarten
79cb781072 Merge "Fix some issues with applySyncTransaction" into rvc-dev 2020-04-24 22:53:55 +00:00
TreeHugger Robot
3aaeffc7a5 Merge "AudioService: better A2DP (dis)connection testing" into rvc-dev 2020-04-24 22:52:28 +00:00
Nikita Ioffe
26444a4418 Merge "Add vendor/xts/gts-tests/hostsidetests/stagedinstall to TEST_MAPPING" into rvc-dev 2020-04-24 22:51:41 +00:00
Eugene Susla
181ef8dfa1 Merge "Update auto revoke deeplink action javadoc: extra -> Uri" into rvc-dev 2020-04-24 22:27:00 +00:00
Adam Bookatz
aa59419bbd Add back ActivityManagerService.onUserRemoved
ActivityManagerService.onUserRemoved was accidentally removed in
ag/4246926. This cl adds it back.

The part of onUserRemoved that told ActivityTaskManagerService that
the user had stopped (and thereby cleaned up ATMS) was retained, but
the additional actions of AMS.onUserRemoved - namely, telling
BatteryStatsService and UserController - were accidentally removed.
Consequently, those services were never told when a user was removed.

Bug: 140645064
Test: manual verification that profile is removed in  adb shell dumpsys activity users
Change-Id: I903b06ae68d583bdb326ad3b764a63d18b5555d8
2020-04-24 22:24:05 +00:00
TreeHugger Robot
56669d830c Merge "Ignore revealKeyguardIfBouncerPrepared request if Bouncer is null." into rvc-dev 2020-04-24 22:15:30 +00:00
TreeHugger Robot
23cc2b8958 Merge "Unit test for min_futurity exemption" into rvc-dev 2020-04-24 21:42:46 +00:00
Phil Burk
abaa48139c Merge "audio: E_AC3 is also Dolby Digital Plus" into rvc-dev 2020-04-24 21:36:27 +00:00
TreeHugger Robot
9178d7db09 Merge "Fix alignment of subtitle" into rvc-dev 2020-04-24 21:34:26 +00:00
TreeHugger Robot
d5d8f6b69c Merge "TEMP: Repair user sensitive read phone flags" into rvc-dev 2020-04-24 21:32:46 +00:00
Winson Chung
4d3511b94f Force update sysui flags after binding to overview service
- There is a rare chance where SysUI state can change prior to
  the overview service being connected in which the sysui state
  would not be passed to launcher, and when the service connects,
  the updating of the sysui state could trigger no changes (due
  to what it thinks is no changes in the flags).

  ie:
  sysui or launcher crashes
  > OPS registers callbacks but service is not yet connected
    so initial callback does nothing (only for sysui crash)
  > sysui notification state changes, updates sysui state,
    notifies OPS via callback, but still not yet connected
  > OPS service connects, triggers update of all relevant
    states, but notifications is already in that state, so
    sysui state skips callbacks to OPS

Change-Id: I7635ed19bfc2767d380703a52b8fb623f8a43e21
Bug: 146964271
Test: Force delay OPS service connection, change sysui state
      and ensure launcher is still notified
2020-04-24 14:23:31 -07:00
TreeHugger Robot
8f0b08f178 Merge "Migrate clients from Binder.waitForService to ServiceManager.waitForService" into rvc-dev 2020-04-24 21:16:54 +00:00
Matt Pietal
2e9b2b3204 Merge "Global Actions - Close and long press while open" into rvc-dev 2020-04-24 21:11:28 +00:00
Collin Fijalkovich
cffe947079 Merge "Cache getDefaultSubscriptionId Binder calls" into rvc-dev 2020-04-24 20:54:04 +00:00
TreeHugger Robot
3ccae84e2f Merge "Maintain alignment of subtitle in mgmt screen" into rvc-dev 2020-04-24 20:53:54 +00:00
kwaky
9a87d6370d Ignore revealKeyguardIfBouncerPrepared request if Bouncer is null.
Conceptually, if the Bouncer is not yet instantiated, it is not prepared
so we should ignore the request.

Test: Existing unit tests passing
Bug: 154928953
Change-Id: Iaa61d65ab8fc056b9ac4566f43599e81a2024e92
2020-04-24 13:45:07 -07:00
Christine Tsai
eea03ac1be Merge "Annotate state atoms" into rvc-dev 2020-04-24 20:43:27 +00:00
TreeHugger Robot
31d3998a05 Merge "Mock sourceDir for ActivityThreadClientTest" into rvc-dev 2020-04-24 20:21:33 +00:00
Sally Yuen
8ab42a27ce Merge "Add @TestApi to registerSystemAction and unregisterSystemAction" into rvc-dev 2020-04-24 20:12:16 +00:00
Fabian Kozynski
98ef196f8b Fix alignment of subtitle
Make the subtitle invisible if there's no text

Test: visual
Fixes: 154672823
Change-Id: I8be3fb2a1193612ef39f564fc1d4c29c7f730877
2020-04-24 16:04:14 -04:00
Nate Myren
cec23dc62f TEMP: Repair user sensitive read phone flags
Repair the user sensitive flags of any permission with READ_PHONE_STATE.
If that permission has been auto revoked, reset the flag. This CL should
be reverted once pushed through dogfood

Fixes: 154871288
Test: Install on device, verify CBRS is not user sensitive
Change-Id: Ief5ab71fe71d92f26c83f500c89ab893ac9d08f0
2020-04-24 12:54:51 -07:00
Anton Hansson
09d9391dab Merge "Update reference to test in TEST_MAPPING" into rvc-dev 2020-04-24 19:53:14 +00:00
Patrick Baumann
80888dbb00 Merge "Fixes shouldFilterApplication usages" into rvc-dev 2020-04-24 19:47:41 +00:00
Fabian Kozynski
bac4388d2b Maintain alignment of subtitle in mgmt screen
The subtitle aligns on top to an invisible checkbox, so it's position
remains the same between different screens.

Test: visual
Fixes: 154759251
Change-Id: I75c28dd02e099680555acdab200a0de909b57c51
2020-04-24 15:24:59 -04:00
Jean-Michel Trivi
e9e4a3de4a AudioService: fix A2DP (dis)connection during media playback
Fix issue with A2DP connection/disconnection during media
playback by modifying:
- how messages related to A2DP connection/disconnection are
  removed from the AudioDeviceBroker message handler: have
  .equals() be used when checking which object to remove,
  and correct which class is used for the messages in the
  queue:
    * MSG_IL_SET_A2DP_SINK_CONNECTION_STATE_*CONNECTED is
      using BtHelper.BluetoothA2dpDeviceInfo
    * MSG_L_A2DP_DEVICE_CONNECTION_CHANGE_EXT_CONNECTION
      is using BtDeviceConnectionInfo
- locking: use the AudioDeviceBroker main lock, mDeviceStateLock
  to synchronize posting events on the handler, and removing
  some of those messages to avoid race conditions the thread
  in which events are posted (e.g. BT's event thread) and the
  AudioDeviceBroker handler thread.

  Cleanup: annotation around audio formats from native defined
in AudioSystem, moved conversions to AudioSystem.

Bug: 142293357
Test: atest AudioDeviceBrokerTest
Change-Id: I2e8dc813354829fb1b2c7ca95ad395a14f8b70cf
2020-04-24 12:06:10 -07:00
TreeHugger Robot
7e76c85d57 Merge "Only save conversation modifications on 'apply'" into rvc-dev 2020-04-24 18:57:56 +00:00
Ytai Ben-tsvi
141c3d3c22 Merge "Revert "Revert "Reboot sound trigger HAL on exception""" into rvc-dev 2020-04-24 18:50:08 +00:00