Commit Graph

10828 Commits

Author SHA1 Message Date
Christian Wailes
cbee8d1b23 Merge changes I29d91abd,Ie13d2c1a
* changes:
  Fixes initialization bug in USAP pool properties.
  Fixed a nullptr exception in ZygoteProcess.java.
2019-03-12 21:07:31 +00:00
Chris Wailes
84efefd666 Fixes initialization bug in USAP pool properties.
This patch fixes an initialization order bug in the USAP pool policy
management code.  Previously, bad values were used when initializing the
USAP pool when it was enabled on device boot.  This patch ensures that
the policy system properties have been checked before the pool is
initialized.

Test: Boot with USAP pool enabled
Change-Id: I29d91abd511bc35c7a70a3a56668c7ee2290864b
2019-03-12 11:19:42 -07:00
Ram Periathiruvadi
b0e93d731e Merge "Notify the TrustAgent when the token is activated." 2019-03-11 20:35:51 +00:00
Beth Thibodeau
e970c5c049 Merge "Fix RTL expanded media notification layout" 2019-03-11 14:00:30 +00:00
Bernie Innocenti
a7de534a93 Merge "Add junyulai@ as owner of the core networking dirs" am: e5e3ac639b am: b0498ba448
am: 6f6fc40839

Change-Id: I5902959b76797a58884480e3fd219ba53497ae8e
2019-03-09 06:04:09 -08:00
Chalard Jean
5c6f6ed370 Merge "Support VPN Proxy(1/2)" am: 65087f4705 am: ba4a9abe35
am: ff3d9bb029

Change-Id: If9b778dd168efdd8b2df15db375ac654398dd709
2019-03-09 04:19:38 -08:00
TreeHugger Robot
045630b80d Merge "Delete the color extraction blacklist" 2019-03-09 02:40:35 +00:00
TreeHugger Robot
071c59240d Merge "Check mChooserListAdapter for null when using App Predictor Service" 2019-03-08 23:45:46 +00:00
Beth Thibodeau
52fcd9d9fb Fix RTL expanded media notification layout
Fixes: 127643295
Test: visual, examples at https://drive.google.com/open?id=17NoNOO3UClrw7MGfrIfFDYUPmsKJ01WI
Change-Id: I2bc2c779750a3a7c6caf64131c728a6a5567a663
2019-03-08 16:51:58 -05:00
TreeHugger Robot
d1bd765392 Merge "Add RoleControllerManager for role controller service." 2019-03-08 21:32:00 +00:00
Ram Periathiruvadi
32d5355b4d Notify the TrustAgent when the token is activated.
Previously, the agent will have to query the TrustManager to see if a
recently added escrow token has been activated.  If the agent asked too
soon about the token state, then the result could be inactive.  That
will be hard to distinguish from when the token is actually inactive
because activation failed.

This change pipes the call from LockSettings to the TrustAgentService
through the TrustManager when the token is activated.  So, the trust
agent doesn't have to query, it just gets notified.

Bug: 124312230
Test: Observe the onTokenStateReceived() callback received on the trust
agent.

Change-Id: I0ac674219fd7925ba36f50bb695c9998c18226f7
2019-03-08 13:21:02 -08:00
Robert Snoeberger
4603244f68 Delete the color extraction blacklist
Bug: 124180048
Test: TonalTest passes
Change-Id: Ia3c00d88e2b224a5ea2f81e3734f2b3eff8a712a
2019-03-08 15:58:38 -05:00
George Hodulik
0dd5fbe86e Check mChooserListAdapter for null when using App Predictor Service
mChooserListAdapter will be null if there are no apps that can perfrom
the action (Share, Open With).

Bug:127305716
Test: Flashed and got the appropriate behavior: https://screenshot.googleplex.com/VcJFGHadspN
Change-Id: I5ca647cd974a02041522409fc070c27df2bdc9c4
2019-03-08 12:34:20 -08:00
TreeHugger Robot
66f8f5357c Merge "Add sampling interval debug entry." 2019-03-08 17:34:33 +00:00
Bernie Innocenti
6f6fc40839 Merge "Add junyulai@ as owner of the core networking dirs" am: e5e3ac639b
am: b0498ba448

Change-Id: Ic47555bcaf336a09f6e79fd570e93bc665bb7714
2019-03-08 08:58:44 -08:00
TreeHugger Robot
30579cd805 Merge "Introduce ApplicationInfo.getAllApkPaths()." 2019-03-08 16:32:07 +00:00
Bernie Innocenti
b0498ba448 Merge "Add junyulai@ as owner of the core networking dirs"
am: e5e3ac639b

Change-Id: I06cca33e638baf671b891eb0c20b4c8f439eda2e
2019-03-08 07:50:29 -08:00
Chalard Jean
ff3d9bb029 Merge "Support VPN Proxy(1/2)" am: 65087f4705
am: ba4a9abe35

Change-Id: Ie17bfbc464ee72ef5c6a075b15ecd59c405f3d7a
2019-03-08 07:44:13 -08:00
Bernie Innocenti
e5e3ac639b Merge "Add junyulai@ as owner of the core networking dirs" 2019-03-08 15:21:01 +00:00
Chalard Jean
ba4a9abe35 Merge "Support VPN Proxy(1/2)"
am: 65087f4705

Change-Id: I51a716d1ee6b85bef347164061d1c12183612f50
2019-03-08 06:42:23 -08:00
Olivier Gaillard
5d339ddc9b Add sampling interval debug entry.
Test: atest BinderCallsStatsTest LooperStatsTest
Change-Id: I5a5d836b2a4d2160196caedeb5a01cccceaa2258
2019-03-08 14:32:02 +00:00
Bernie Innocenti
ea89cf2c6e Add junyulai@ as owner of the core networking dirs
Also removed emeritus accounts ek@ and silberst@ from various places.
A cleanup using 'include' would probably be in order...

Test: N/A
Change-Id: I575e60dd5e600e42d9571ce8e8d7661d30e99bfe
2019-03-08 13:04:05 +00:00
Hai Zhang
a4959e569d Add RoleControllerManager for role controller service.
This allows us to expose both system-only and app available APIs for
role in RoleControllerService.

Bug: 127691087
Test: manual
Change-Id: I86fe3736fc28516aae25d48efe3ba599ffdf45d5
2019-03-07 21:33:12 -08:00
Felipe Leme
0879ad0bd4 Merge "Don't destroy service when the bind connection died." 2019-03-08 03:44:51 +00:00
Chalard Jean
65087f4705 Merge "Support VPN Proxy(1/2)" 2019-03-08 00:34:25 +00:00
Felipe Leme
817b5e12f9 Don't destroy service when the bind connection died.
Otherwise it won't reconnect...

Bug: 126807984
Test: manual verification

Change-Id: I54c7fc244672d38f387f786ea13a7ffb54aca44b
2019-03-07 14:46:59 -08:00
Olivier Gaillard
1c56b4d293 Fix a bug that cause binder calls to be underreported.
Test: atest BinderCallsStatsTest
Change-Id: I04805eae2d8ea7679d770f4392960850394a00a2
2019-03-07 22:28:01 +00:00
Torne (Richard Coles)
1aaae10e77 Introduce ApplicationInfo.getAllApkPaths().
Add an internal method to ApplicationInfo to get all APK files that may
be required by an application. This moves assumptions about how apps are
constructed out of Zygote.allowAppFilesAcrossFork and into a more
appropriate place where it can be shared.

Bug: 124116212
Test: atest android.webkit.cts.WebViewTest
Change-Id: I79add98c4922c4f97263bff78cf808bc38274755
2019-03-07 13:59:45 -05:00
Beth Thibodeau
ff0e66270b Merge "Fix position of expand/collapse button" 2019-03-07 15:06:11 +00:00
Kiyoung Kim
9b56c81652 Merge "Add product apk support from libnativeloader" 2019-03-07 05:46:26 +00:00
Selim Cinek
891640397d Merge "Remove the ambient group layout" 2019-03-07 02:56:37 +00:00
TreeHugger Robot
20496370c6 Merge "Fixed Content Capture and Augmented Autofill whitelist." 2019-03-06 23:53:35 +00:00
Selim Cinek
7927c73ffd Remove the ambient group layout
Because the layout looks pretty much the same as when awake, we're
going back to the regular group layout.

Test: atest SystemUiTests
Fixes: 127697886
Change-Id: I5eafaf74435151faab13d8f84850b4939196edd9
2019-03-06 15:21:39 -08:00
TreeHugger Robot
863affdeef Merge "Sharesheet - Lock direct share row" 2019-03-06 23:04:14 +00:00
Beth Thibodeau
837bfc2c51 Fix position of expand/collapse button
Example screenshots at https://drive.google.com/open?id=1rKBY9uj54KbeSr-M4Rd4aKG9FQQYL8qm

Bug: 124522176
Test: verified that button does not move between collapsed and expanded
layouts

Change-Id: Ic7cbe3b78aa439cec8f10b532b80f863bb6c283c
2019-03-06 17:30:11 -05:00
George Hodulik
3179289522 Merge "Revert "Set Sharesheet to use AiAi for DirectShare targets."" 2019-03-06 22:06:52 +00:00
TreeHugger Robot
ab5598dfa7 Merge "Display browsable layout for http/s scheme intents" 2019-03-06 21:23:23 +00:00
Felipe Leme
0f0b1d383d Fixed Content Capture and Augmented Autofill whitelist.
Bug: 125348180
Test: atest CtsContentCaptureServiceTestCases AugmentedLoginActivityTest

Change-Id: Ia7a9b1ebbd14c0011a4806bcf5ba87f438510129
2019-03-06 12:08:39 -08:00
TreeHugger Robot
54a2b0a924 Merge "Allow users to set the default browser via ResolverActivity" 2019-03-06 19:46:45 +00:00
Matt Pietal
cdfcd9a7ba Sharesheet - Lock direct share row
Add single direct share row this is always present, prepare for
expanding to 2. Show message about missing direct share targets
if none are found in the first XX seconds. Use animations to
transition between the states. Add border dividers between sections

Bug: 126565347
Test: atest ChooserActivityTest
Change-Id: I31963375530433c3d6e9069402b5a20df5766034
2019-03-06 14:42:50 -05:00
George Hodulik
2bd58810f6 Revert "Set Sharesheet to use AiAi for DirectShare targets."
This reverts commit 4f270f0325.

Reason for revert: b/127305716

Change-Id: I46a9dba07d0e1b15af78ab185d873a045c0e7423
2019-03-06 19:22:10 +00:00
Ashley Rose
0be2720c5b Merge "Add @InspectableProperty annotations to LayoutParams" 2019-03-06 18:38:18 +00:00
Adam He
682ea3ccfd Merge changes from topic "aa_whitelist"
* changes:
  Check for empty arguments in setWhitelist().
  Implemented a WhitelistHelper for whitelisting packages/activities for Augmented Autofill and Content Capture.
2019-03-06 18:31:59 +00:00
Andrei-Valentin Onea
438ec44268 Merge "Add @UnsupportedAppUsage annotations" am: 842e3aa420
am: 20ebeb61a9

Change-Id: Ibcbbe37ffd476ea414a1041c015b8267a46a5402
2019-03-06 10:07:46 -08:00
Andrei-Valentin Onea
20ebeb61a9 Merge "Add @UnsupportedAppUsage annotations"
am: 842e3aa420

Change-Id: Ie3bc96e663223de383be59cb764f139f459c5a67
2019-03-06 09:46:00 -08:00
shafik
0c7c5d59f8 Display browsable layout for http/s scheme intents
Displays Settings button instead of always button for all intents that
have http or https scheme, as opposed to only intents that have
BROWSABLE as category.
This fixes an inconsistent and confusing behaviour that users were
experiencing, as sometimes they saw the Always button and sometime the
Settings button.

Fixes: 126499502
Test: open a mail.google.com from Facebook Messenger - used to display
Always button and now displays Settings button
Test: use shell command to send https intent without BROWSABLE category
- used to display Always button and now displays Settings button

Change-Id: I1084fd716ba8e584c2b17d8fe1500dbc641cab46
2019-03-06 17:12:27 +00:00
shafik
34064c39bd Allow users to set the default browser via ResolverActivity
The resolver prompt now redirects users to the Default Browser page when
they tap a browser app and choose [Settings]. In that page, they can
choose the default browser (even if the tapped browser app is already
the default browser).

Bug: 124721947
Test: manual
Change-Id: I31518510fa382bd49c61ee494bf585dec0c762f8
2019-03-06 15:53:18 +00:00
Tony Mak
9a3c1f1dfe Configurable NAS by using DeviceConfig
The latest plan is only system apps with a certain privilege permission
could become NAS. And DeviceConfig could specify any of these valid
candidate to be the default NAS.

So the logic would be like this:
1. If user has set the NAS manually, NMS will persist the user_set bit
   and never mess with it.
2. If it is not the case, NMS will try the NAS defined in DeviceConfig,
   and then the one defined in config.xml

Also added some new shell commands for easy debugging.

Test: atest NotificationAssistantTest.java
Test: atest NotificationManagerServiceTest.java
Test: Use "device_config put" command to set a valid one. Observe that
      NAS is updated and persisted across reboot.
Test: Repeat the command with an invalid one, observe that NAS is not
      updated.
Test: Go to settings, set a NAS, and repeat the device_config command,
      observe that NAS is not changed.
Test: Go to settings, set NAS to be none. Reboot the device, and "none"
      is persisted.

FIXES: 123566150

Change-Id: Ibf8e498944afd5d1fa8659a856a8abdcce41f092
2019-03-06 13:27:53 +00:00
Adam He
70ebc5a508 Check for empty arguments in setWhitelist().
Bug: 125348180
Test: atest CtsContentCaptureServiceTestCases
Test: atest FrameworksCoreTests:com.android.internal.infra.WhitelistHelperTest
Change-Id: I9c2296ebe2762e97f03350b365b148429b15ab60
2019-03-05 14:51:30 -08:00
Mathieu Chartier
77bd12369e Fix logic for use_app_image_startup_cache flag
The logic was only there for the system server before, it is now
moved to ProcessList (the correct location).

Test: manual
Bug: 123524494
Bug: 124437687

Change-Id: Ie259a13617981bcbced144f1514c43f32d06102b
2019-03-05 14:12:01 -08:00