Commit Graph

98958 Commits

Author SHA1 Message Date
Etan Cohen
73450f2004 Wificond: transfer implementation to android.net.wifi
Move implementation of wificond to frameworks/base (android.net.wifi)
in prepration for making into a public API (which will be a wrapper
around the AIDL).

Bug: 140062898
Test: atest com.android.server.wifi
Test: atest android.net.wifi
Test: associates, soft AP client information received correctly
Change-Id: I3c5ede95d0421a1e00078e0316e9a2e751156f3e
2019-12-13 11:18:54 -08:00
TreeHugger Robot
19df6fdad1 Merge changes Idfec610d,I68011fd3
* changes:
  Allow setting User Restrictions per user type
  Support custom user types (profiles)
2019-12-13 17:38:06 +00:00
Dmitri Plotnikov
15d8e474d6 Merge "Log outgoing blocking binder calls in system server as WTF" 2019-12-13 17:29:10 +00:00
Carmen Agimof
79dc7ed61e Merge "Do not try to do a restore at install if the user is not ready for backup." 2019-12-13 16:41:21 +00:00
Mark Renouf
364568f6f7 Merge "Mark TaskEmbedder#setListener as public" 2019-12-13 15:59:07 +00:00
TreeHugger Robot
b3fa0c77a4 Merge "Return to direct mutation for Provider authority" 2019-12-13 15:32:00 +00:00
TreeHugger Robot
1f7780553f Merge "Fix generatePermissionGroupInfo" 2019-12-13 15:29:39 +00:00
Eran Messeri
30f2961cec Merge "Wire individual attestation" 2019-12-13 14:54:02 +00:00
Alan Stokes
ef055fc65c Merge "Pass initiatingPackageName to verifier." 2019-12-13 14:43:17 +00:00
Abhijeet Kaur
0e4bf80f05 Merge "Remove PROP_FUSE_SNAPSHOT as it is no longer required" 2019-12-13 14:03:25 +00:00
Abhijeet Kaur
a4f4056ff6 Remove PROP_FUSE_SNAPSHOT as it is no longer required
With the newly added flag for Settings developer options, which is now
used to change the state of FUSE, PROP_FUSE now acts as the snapshot
feature flag for the current boot.

Also, on a reboot PROP_FUSE_SNAPSHOT was always set to PROP_FUSE or
the default value (false) if PROP_FUSE is not set.

Since PROP_FUSE now replaces PROP_FUSE_SNAPSHOT, it always needs to be
set to some value after a reboot. PROP_FUSE is initialised to the default
value (false) only once, after that it takes value from the latest
changed flag.

Bug: 145391093
Test: Manual (adb shell ls /sdcard works)
Test: atest AdoptableHostTest
Change-Id: I3abb8690a50f542b2567c495ef9942a643be457d
2019-12-13 11:21:37 +00:00
Eran Messeri
c54507664b Wire individual attestation
Properly define the constant for requesting the use of device individual
attestation certificate and use it in AttestationUtils.

This lets callers to DevicePolicyManager.generateKeyPair request the use
of device-unique attestation certificate, on Keymaster implementations
that support this.

Bug: 140193672
Bug: 136494773
Test: atest com.android.cts.devicepolicy.MixedDeviceOwnerTest#testKeyManagement
Change-Id: I74de89e4c121a27b0495dcb99b0775445c3d4eaf
2019-12-13 10:58:57 +00:00
Galia Peycheva
a4aff1e1df Merge "Add minimal post processing API to framework" 2019-12-13 10:09:00 +00:00
TreeHugger Robot
34dea9fd96 Merge "Add a feature flag for Settings conditionals removal." 2019-12-13 09:36:43 +00:00
Evan Rosky
c3527d7edd Merge "Add support for SystemUI Window Management" 2019-12-13 05:02:20 +00:00
TreeHugger Robot
3de47e4a86 Merge "BatteryStatsManager: Move constants from @hide BatteryStats" 2019-12-13 04:14:53 +00:00
Yi-Ling Chuang
afc4d88a96 Add a feature flag for Settings conditionals removal.
Bug: 142927361
Test: rebuild and manual
Change-Id: I4cfce774f717ae15af1ea321dbb645561d77c4aa
2019-12-13 12:06:53 +08:00
Bookatz
d15b2f7279 Allow setting User Restrictions per user type
FULL and PROFILE user types now have their default restrictions
delineated in UserTypeFactory. The restrictions for these user types can
be customized in config_user_types, along with the other user type
customization.

Note: even though FULL user types can now be customized, the only
supported customization is user restrictions. Moreover, new FULL user
types cannot be defined.

This cl also has the following repercussions:
-When a user is created (but not yet started), the applied restrictions
are not propagated as an update (prior to this, the restrictions for new
users - other than guest - were set via setUserRestriction, which did
more than just store the data). When the user is started, the
restrictions will still be propagated.

-When a user is created via adb, its default restrictions are applied.
Previously this was not the case except for guest users.

-When an Admin user is created/set, it is now the callers responsibility to
adjust its restrictions. UserManager will no longer automatically remove
the DISALLOW_SMS/DISALLOW_OUTGOING_CALLS restrictions for Admins.

Also note that Restricted Users have additional hardcoded restrictions,
indepent of this cl.

Test: atest UserManagerServiceUserTypeTest
Test: atest UserManagerTest
Bug: 142482943
Bug: 143491938

Change-Id: Idfec610da871aea2bc7109d11d1eb9a957e080a4
2019-12-12 19:33:28 -08:00
Marcus Hagerott
368db11f6e Merge "Improve comments for contacts local account" 2019-12-13 02:59:42 +00:00
Winson
42af5f4b85 Fix generatePermissionGroupInfo
Missed assigning descriptionRes.

Bug: 146158078

Test: atest android.content.pm.cts.PackageManagerTest

Change-Id: Iea84511e1bc1ddb9f447bb4a035656b71964ae6f
2019-12-12 18:55:15 -08:00
Winson
2160e0fd56 Return to direct mutation for Provider authority
The EffectiveProvider wrapper is incorrect. The fact that ComponentResolver
mutates the Provider instance is a required behavior, otherwise the authority
doesn't get propagated.

This causes queries to fail because the EffectiveProvider thinks the authority
should be null. This change reverts to the original behavior pre-refactor,
directly mutating the ParsedProvider instance.

Fixing this mutation will have to wait for a followup, unfortunately.

Bug: 146072648

Test: run test in linked bug that queries content providers
Test: manual verified failing case

Change-Id: Ief960bec3692d60e823a60734c2196ee6caeff7a
2019-12-12 18:46:10 -08:00
Evan Rosky
22b6bbd8c5 Add support for SystemUI Window Management
Enables SystemUI to create/position its own ui elements.

First of all, this adds, to WM, the concept of a ShellRoot
which represents a piece of the hierarchy that a client shell can
do whatever it needs with. For now, multiple of these roots can
be registered at various "levels" (which correspond to window
types for now). This is needed because not everything will live
in this piece of the hierarchy, so handling z-order will still
be a shared effort between the Shell and WM for a while.

On the SystemUI side, a new Dependency called SystemWindows
provides simplistic window management for these system-ui
windows via WindowlessWindowManagers per-display-per-layer.
The benefit of this is that manipulation of these windows lives
entirely in SystemUI making synchronization easier and making
it possible to move a lot of the special handling code out
of wm (eg. DOCK_DIVIDER). As a result, SystemUI becomes
more customizable and WM becomes simpler.

Early clients of this are going to be display-level IME
handling and Split-screen.

Bug: 133381284
Test: manual test after later CLs
Change-Id: I1602d9b9b69d38b9ff15806e509cc8128c837748
2019-12-12 17:34:05 -08:00
Jackal Guo
24ca88cf30 Merge "Don't clear cache when changing accessibility focus" 2019-12-13 01:27:08 +00:00
Songchun Fan
6cde9d9ada add DataLoaderManagerService to system server and register to system service
Test: boots
Change-Id: I9cba99327da012b6f6de898ad1c5cc7cf11d1d31
2019-12-13 00:07:17 +00:00
Automerger Merge Worker
00d15617ed Merge "Deprecate incorrect year constant" am: 9fbb152eb2 am: 2b446998a1 am: 2c8f4df701
Change-Id: I4ee9f166508b4aaa2b99935e3dbc4307b18a7b0f
2019-12-12 23:54:33 +00:00
Matt Pape
89190916ba Merge "Add a DeviceConfig.Properties.Builder class." 2019-12-12 23:49:22 +00:00
Automerger Merge Worker
2c8f4df701 Merge "Deprecate incorrect year constant" am: 9fbb152eb2 am: 2b446998a1
Change-Id: I26f759d358c273657f0a0eba180968463e46ac44
2019-12-12 23:39:47 +00:00
Charles Munger
2b446998a1 Merge "Deprecate incorrect year constant"
am: 9fbb152eb2

Change-Id: I5623253402d980b8c105b4fa7a4d622067eaa7fa
2019-12-12 15:02:01 -08:00
Treehugger Robot
9fbb152eb2 Merge "Deprecate incorrect year constant" 2019-12-12 22:56:13 +00:00
Roshan Pius
9e1e0fc381 BatteryStatsManager: Move constants from @hide BatteryStats
Exposed the @hide constants from BatteryStats used in
BatteryStatsManager as @SystemApi.

Bug: 146009681
Test: Compiles
Change-Id: If1c798181b4c160453c7775bd6bb779b9e81a6ee
2019-12-12 14:47:12 -08:00
Automerger Merge Worker
e06f253e8c Merge "Fix nav bar leak in SystemUI" into qt-qpr1-dev am: d6e73ec8f1
Change-Id: I39643a2f6e7edc9af7221a295eb201cda3244534
2019-12-12 21:47:54 +00:00
Jeffrey Huang
cd5c5990d2 Merge "Rename IStatsManager to IStatsd" 2019-12-12 21:47:47 +00:00
Automerger Merge Worker
1b73c9f05d Merge "Resolve BluetoothDevice hidden API usages by Settings" am: ce656f7754 am: 10fd57e659 am: 7daf421abd
Change-Id: Ic45b11120553e256ccc774307a108b94aafbabcc
2019-12-12 21:47:20 +00:00
Nicholas Ambur
e0b8b8cd03 Merge "add SoundTrigger HAL 2.3 per model parameter apis" 2019-12-12 21:37:01 +00:00
Automerger Merge Worker
7daf421abd Merge "Resolve BluetoothDevice hidden API usages by Settings" am: ce656f7754 am: 10fd57e659
Change-Id: I001128eba5499a0a080707d00c1627335eae7514
2019-12-12 21:33:56 +00:00
Winson Chung
d6e73ec8f1 Merge "Fix nav bar leak in SystemUI" into qt-qpr1-dev 2019-12-12 21:27:08 +00:00
Rahul Sabnis
10fd57e659 Merge "Resolve BluetoothDevice hidden API usages by Settings"
am: ce656f7754

Change-Id: I6c9af91fa6338246a872318038dad699c5c3fe04
2019-12-12 13:19:41 -08:00
Treehugger Robot
ce656f7754 Merge "Resolve BluetoothDevice hidden API usages by Settings" 2019-12-12 21:13:46 +00:00
Peter Wang
7319176298 Merge "[Telephony Mainline] Expose MAX_NETWORK_TYPE constant" 2019-12-12 21:03:13 +00:00
Dmitri Plotnikov
51e51feb3c Log outgoing blocking binder calls in system server as WTF
Test: boot the system, see log entries like this:
4030 E Binder  : Outgoing transactions from this process must be FLAG_ONEWAY

Change-Id: Ie1b3c76ec08aecc706a5edc5a6d2b4b946895ed9
2019-12-12 12:59:31 -08:00
TreeHugger Robot
b53ecd8420 Merge "Revert "Cleaning up listener when task completes"" 2019-12-12 20:55:39 +00:00
Matt Pape
78f4347c6d Add a DeviceConfig.Properties.Builder class.
Test: atest FrameworksCoreTests:DeviceConfigTest
      atest SettingsProviderTest:DeviceConfigServiceTest
Bug: 136135417

Change-Id: I2e1b2d467ba0b0590ef216eb10d42f73ba1ccda0
2019-12-12 12:35:00 -08:00
Zimuzo Ezeozue
fe30cb6f17 Merge "Revert "Remove the rename() interceptor"" 2019-12-12 20:20:03 +00:00
TreeHugger Robot
4a0dbe942c Merge "Add an exception to setProperties method signature" 2019-12-12 19:57:43 +00:00
TreeHugger Robot
6137064d41 Merge "Add admin consent cross-profile package APIs" 2019-12-12 19:53:16 +00:00
Hall Liu
1c013ae319 Merge "Add change ID for platform compat" 2019-12-12 19:28:33 +00:00
Jeff Sharkey
30b412cab7 Apply Dark theme changes when screen off only
this change waits to apply ui changes after screen off
battery manager sends updates and continuously updates the ui mode

this change also applies external changes to ui configurations when
the mode is actually changed. this resolves some perfromance regression
issues

Fixes: 145694649
Fixes: 145161355
Fixes: 145776479

Test: atest UiModeManagerService
Change-Id: Ib769df4302d1c09166e2dc456b8ced35daa4d0b7
Merged-In: Ib769df4302d1c09166e2dc456b8ced35daa4d0b7
2019-12-12 19:25:07 +00:00
Automerger Merge Worker
876469ea3a Merge "Expose CloseGuard as a public API" am: 4314616565 am: 37f8e04de9 am: 58745b4dcc
Change-Id: I40a7e24b9e77c27a954ab4394b47ac75a4681760
2019-12-12 19:12:27 +00:00
Jeff Sharkey
216c08e460 Apply Dark theme changes when screen off only
this change waits to apply ui changes after screen off
battery manager sends updates and continuously updates the ui mode

this change also applies external changes to ui configurations when
the mode is actually changed. this resolves some perfromance regression
issues

Fixes: 145694649
Fixes: 145161355
Fixes: 145776479

Test: atest UiModeManagerService
Change-Id: Ib769df4302d1c09166e2dc456b8ced35daa4d0b7
Merged-In: Ib769df4302d1c09166e2dc456b8ced35daa4d0b7
2019-12-12 18:51:02 +00:00
Automerger Merge Worker
58745b4dcc Merge "Expose CloseGuard as a public API" am: 4314616565 am: 37f8e04de9
Change-Id: I42faa5840cb92a7c5c549e41f5cb03660165d9f4
2019-12-12 18:45:43 +00:00