Commit Graph

1355 Commits

Author SHA1 Message Date
TreeHugger Robot
5aa16fb5b9 Merge "Initialize AIDL biometric HALs after BiometricService is started" 2020-11-12 02:41:49 +00:00
Kevin Chyn
13161747db Initialize AIDL biometric HALs after BiometricService is started
Fixes: 172291793
Test: On device with default AIDL HAL, notice it's registered
      with BiometricService
Test: atest com.android.server.biometrics

Change-Id: Ia7283cf9473ef1d33237f2b4788d81b79ae26824
2020-11-11 16:37:57 -08:00
Felipe Leme
6b94ea477f Initial definition of DevicePolicySafetyChecker.
This object will be used to fail DevicePolicyManagers that cannot be
executed on automotive when it's not safe to (for example, because
the vehicle is moving).

Test: atest CarDevicePolicyManagerTest#testLockNow_safe \
            CarDevicePolicyManagerTest#testLockNow_unsafe
Bug: 172376923

Change-Id: I7f910a7ee5efc7d647525db1687bd27e68cb7c0a
2020-11-11 11:04:36 -08:00
Yi Kong
8c20d86f91 Merge "profcollectd: Only start the forwarding service if enabled through device config" am: fb8f388ce7 am: f69edfbddf am: de81949fe4 am: ffbd8ee487
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1484896

Change-Id: I2ed9be0bfbb31d52d1f36db6653cc2baca51364f
2020-11-03 10:59:11 +00:00
Yi Kong
ffbd8ee487 Merge "profcollectd: Only start the forwarding service if enabled through device config" am: fb8f388ce7 am: f69edfbddf am: de81949fe4
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1484896

Change-Id: Icac75d15493ab3b7c83fdb5d1c167244a98585f4
2020-11-03 10:47:16 +00:00
Darryl Johnson
7e0f96992c Merge "Add logic to forward foldable device state to native cameraserver." 2020-11-03 01:24:23 +00:00
Yi Kong
0c51fb20dd profcollectd: Only start the forwarding service if enabled through device config
Test: boot profcollect build
Bug: 79161490
Change-Id: I8058594fd78327bbd0983c7f39391dc82e18e2a3
2020-11-03 08:51:07 +08:00
Darryl L Johnson
4526eddd9a Add logic to forward foldable device state to native cameraserver.
This change adds two methods to CameraServiceProxy to be used within
system_server for setting camera device state flags. It also updates
DisplayFoldController to leverage these methods.

Bug: 153788656
Bug: 154038218
Bug: 159401801
Test: Trigger fold and verify camera's toggle
Change-Id: I08392a62bc65d10a0715ef0d831c8bb919035a5d
2020-11-02 14:06:02 -08:00
Benedict Wong
76062fa471 Merge "Add shell VcnManagementService" am: fa2c588ab5 am: 1ee8f22e8a am: e0eb89cf66 am: 3eda5ec4f9
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1456942

Change-Id: Ib6d081351c2440945d094e7e97433f1e91e1fa8b
2020-10-29 23:20:36 +00:00
Benedict Wong
3eda5ec4f9 Merge "Add shell VcnManagementService" am: fa2c588ab5 am: 1ee8f22e8a am: e0eb89cf66
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1456942

Change-Id: I774426130072afa26da857ee66b724f94b627cd7
2020-10-29 23:07:47 +00:00
Benedict Wong
e2dacc7411 Add shell VcnManagementService
This patch adds a shell of the VcnManagementService and VcnManager

Bug: 163431877
Test: Compiles, Boots
Change-Id: I1f3d8ab9c9bff7d419ea6d3edaae3b6b41b1d775
2020-10-27 20:09:06 -07:00
Felipe Leme
c60be18878 Created a mechanism to dump service-less SystemServer state.
SystemServer has classes (like SystemServerInitThreadPool,
SystemServiceManager, and even SystemServer itself) that are
not associated with a service; hence, the state of these classes
are not dumped in a bugreport.

Test: adb shell dumpsys system_server_dumper
Test: adb shell dumpsys system_server_dumper --list
Test: adb shell dumpsys system_server_dumper --name SystemServer

Bug: 159831354
Fixes: 163921395

Change-Id: I5719f7cd3a9022dc0ab12a3b3b22487e2b4866e0
2020-10-23 11:40:06 -07:00
Aaron Huang
f7ebb0c0e4 Merge "Create service-connectivity.jar" am: bfceacea50 am: b91257f553 am: 5b03885d43
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1351252

Change-Id: I9a04f911043e34c3de1bcac3647773c5adfde294
2020-10-20 20:27:13 +00:00
Aaron Huang
944025aef2 Create service-connectivity.jar
Create a new target service-connectivity to split
ConnectivityService from services.core.

Add ConnectivityServiceInitializer for initializing
ConnectivityService and add systemReady() in
ConnectivityManager so that SystemServer can call systemReady()
through ConnectivityManager which won't change current behavior.

Bug: 158268939
Test: make target-java, make host-java
      atest FrameworksNetIntegrationTests
      atest FrameworksNetTests
      make, device can boot,
      atest CtsStrictJavaPackagesTestCases
      wifi and mobile data work.
Change-Id: I99401772ba9c1c34adca20040da3c7c72d86ddd9
Merged-In: Ie732bfaf381404af0bb599ca2f421a96e7aa4257
2020-10-16 22:46:14 +08:00
Aaron Huang
e6f27dd738 Create service-connectivity.jar
Create a new target service-connectivity to split
ConnectivityService from services.core.

Add ConnectivityServiceInitializer for initializing
ConnectivityService and add systemReady() in
ConnectivityManager so that SystemServer can call systemReady()
through ConnectivityManager which won't change current behavior.

Bug: 158268939
Test: make target-java, make host-java
      atest FrameworksNetIntegrationTests
      atest FrameworksNetTests
      make, device can boot,
      atest CtsStrictJavaPackagesTestCases
      wifi and mobile data work.
Change-Id: Ie732bfaf381404af0bb599ca2f421a96e7aa4257
2020-10-16 02:29:04 +08:00
Nick Moukhine
4c3ecce019 Merge "Add system service for music recognition." 2020-10-09 07:35:34 +00:00
TreeHugger Robot
b16775425a Add DeviceStateManagerService and stub implementation of policy.
Test: atest DeviceStateManagerServiceTest
Bug: 159401801

Change-Id: Ib7f424e905c80812b36e0e0bb30771224ce56e34
2020-10-07 13:49:09 -07:00
Nick Moukhine
cf47bdd888 Add system service for music recognition.
The client submits a RecognitionRequest via MusicRecognitionManager.  System server opens an audio stream based on the request and sends it to a MusicRecognitionService (which is exposed by a system app).  The result is passed back through system server to the original caller.

Test: tracked in b/169662646
Bug: 169403302
Change-Id: I4c7fd9d9d72ddd5678867fd037cab6198bff2c2d
2020-09-30 14:44:01 +00:00
Neil Fuller
99bba2b91e Merge "Initial version of LocationTimeZoneManagerService" 2020-09-18 17:43:50 +00:00
Neil Fuller
95126bcefd Initial version of LocationTimeZoneManagerService
This includes an initial version of LocationTimeZoneManagerService,
supporting / implementation classes and test infra.

This commit is not final code (see various TODOs) but forms the
scaffolding for later commits. The ControllerImpl only supports a single
LocationTimeZoneProvider, and the "real" binder implementation is left
for a later commit.

Test: atest services/tests/servicestests/src/com/android/server/location/timezone/
Bug: 149014708
Change-Id: Icfba9a816e55a51ee555e08bb889848644539735
2020-09-17 20:33:23 +01:00
Mat Bevilacqua
8160121220 Initial commit of PowerStatsService
Bug: 164465661
Bug: 164466995
Bug: 167280723
Test: Verified PowerStatsService is functional on targets that
have ODPM data.

Change-Id: Ic555b380c566ea26bc2214374f142c5448ea2ee7
2020-09-14 20:30:49 +00:00
Yi Kong
ab6c5c191b Introduce ProfcollectForwardingService am: a0bd2a99ee am: fbeb0d8002 am: 4914fdc68c am: 4e400a6f4e
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1425268

Change-Id: Ic5961ad3b5c4aceaad32bca1ed86342fb00223f9
2020-09-11 05:02:45 +00:00
Yi Kong
a0bd2a99ee Introduce ProfcollectForwardingService
Bug: 79161490
Test: boot and observe logcat
Change-Id: I0413c52f08b930b1e42971acc7f50e2e2da52f99
Merged-In: I0413c52f08b930b1e42971acc7f50e2e2da52f99
2020-09-11 05:57:02 +08:00
Jin Seok Park
679825e9ea Merge "[Media ML] Remove hidden API usage in SystemServer" 2020-08-04 16:04:13 +00:00
Roshan Pius
e9bae9c27c Merge "Revert "Revert "SystemServer: Dynamically load wifi-service"" into rvc-qpr-dev am: b2c8cb2a53
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12282648

Change-Id: I4f0c4543aa511bc33d0c639488a03504aa265877
2020-08-04 00:45:39 +00:00
Roshan Pius
2c17b6690f Revert "Revert "SystemServer: Dynamically load wifi-service"
Revert submission 10144846-revert-10103769-load_wifi_service_dynamically-XZNQJHXURR

Reason for revert: Changes in build system to store uncompressed and aligned DEX files for java libs in APEXes.

Reverted Changes:
Icc0b680c2: Revert "SystemServer: Dynamically load wifi-servic...
I83a2f93e3: Revert "product: Remove wifi-service off SystemSer...


Bug: 148099857
Bug: 162371380
Bug: 162746981
Test: Compiles
Change-Id: I6c3f36873cae476dc76fd353d20fb6bd2c177f0b
2020-08-03 17:27:26 +00:00
Yi Kong
86f85936a1 Introduce ProfcollectForwardingService
Bug: 79161490
Test: boot and observe logcat
Change-Id: I0413c52f08b930b1e42971acc7f50e2e2da52f99
2020-08-04 01:09:42 +08:00
Jin Seok Park
4cc92f87cb [Media ML] Remove hidden API usage in SystemServer
Replace calling MediaSessionService and MediaResourceMonitorService
directly with calling string equivalents.

Bug: 162734094
Test: build, boot and check service is running with
    adb command: "adb shell service list"
Change-Id: I243b1dbeabcfeadd8927de51cd595fceb48d461b
2020-08-04 00:19:07 +09:00
TreeHugger Robot
d32d73e482 Merge "Initial splitting of Content Providers from AMS." 2020-07-27 17:24:53 +00:00
Varun Shah
1109a0c544 Initial splitting of Content Providers from AMS.
This is the first of many CLs for refactoring Content Provider related
code from Activity Manager Service.

This CL simply pulls out most of the CP code from AMS into its own
class. There are no logic or lock-related changes in this particular CL.

Bug: 156262145
Test: atest ContentProviderTest [all]
Change-Id: I03310a1f06d354e15439a37f7aeffa543192dad3
2020-07-20 09:32:43 -07:00
Nicolas Geoffray
d8ad89c414 Merge "Remove old code that isn't relevant anymore." am: 22e3e74e4b am: 0642fc19f3 am: dd85ce6a50 am: 11f4874360 am: c21f8b9143
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1354663

Change-Id: Ib3e7dbefdb78b3ad9c7b00766d563c7877f823ac
2020-07-07 09:47:52 +00:00
Nicolas Geoffray
dd85ce6a50 Merge "Remove old code that isn't relevant anymore." am: 22e3e74e4b am: 0642fc19f3
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1354663

Change-Id: Ic39e4a46f50fd3ab18dba5c859ec39c9458191a0
2020-07-07 09:03:34 +00:00
Nicolas Geoffray
af6d3a6cb5 Remove old code that isn't relevant anymore.
In order to reduce the CorePlatformAPI surface.

Test: m
Bug: 154796679
Change-Id: I428fe21d764bf6897942d7e67d85297d826d3716
2020-07-02 17:24:21 +01:00
vichang
26ed852eaf Merge "Use new package name for ZoneInfo and libcore.timezone" am: af6f8e2301 am: 64937407f2
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1346485

Change-Id: I5ded5092e4c7706f58417a5c97f3207524b44a95
2020-06-30 17:23:46 +00:00
Victor Chang
2ea241f6ee Use new package name for ZoneInfo and libcore.timezone
Bug: 141747409
Test: None
Merged-In: Id99a345ec024179295063c3644f72c062cb50554
Change-Id: Id99a345ec024179295063c3644f72c062cb50554
2020-06-30 13:53:47 +01:00
Victor Chang
6c22f6adb0 Use new package name for ZoneInfo and libcore.timezone
Bug: 141747409
Test: None
Change-Id: Id99a345ec024179295063c3644f72c062cb50554
2020-06-25 18:30:29 +01:00
Kevin Chyn
77f92351c1 1/n: Move modality-specific files into new subdirectory
It's easier to read/maintain if we separate sensor-specific code
from BiometricPrompt/BiometricManager code

Bug: 157790417

Test: Enroll/auth fingerprint/face on respective devices
Test: atest com.android.server.biometrics

Change-Id: I472c206743482bbea75498051c6f81e1fbd351ad
2020-06-08 12:54:52 -07:00
Neil Fuller
29867f046d Merge "Be more defensive around invalid tzids" am: f60c302dad am: 96c57398b4
Change-Id: If8695ee257155eaedc901aa797f1939eab0c721e
2020-05-26 10:54:50 +00:00
Neil Fuller
26fe60a188 Be more defensive around invalid tzids
Add checks during boot in case the persist.sys.timezone property is set
to a bad ID.

This can happen in the rare case of a mainline rollback: i.e. if a device has
been set to a new ID and then the update is rolled back. Using GMT as a
fallback probably works without this change (it does in java.util.TimeZone),
but relies on all code, including native code that uses
persist.sys.timezone directly, knowing to interpret a bad ID as "GMT".
This commit makes that choice more explicit and defensive.

This change also removes the possibility of IOException, which is never
thrown, from some ZoneInfoDb methods.

Bug: 155738410
Test: boot with a valid id, verify persist.sys.timezone is unchanged
Test: boot with an invalid id set,  verify persist.sys.timezone is "GMT"
Merged-In: I6dc0f4f81848efbbaec6a11a62014471a0ef01fd
Change-Id: I6dc0f4f81848efbbaec6a11a62014471a0ef01fd
Exempt-From-Owner-Approval: Approved / landed internally
2020-05-26 10:19:53 +00:00
Neil Fuller
29fba44b58 Be more defensive around invalid tzids
Add checks during boot in case the persist.sys.timezone property is set
to a bad ID.

This can happen in the rare case of a mainline rollback: i.e. if a device has
been set to a new ID and then the update is rolled back. Using GMT as a
fallback probably works without this change (it does in java.util.TimeZone),
but relies on all code, including native code that uses
persist.sys.timezone directly, knowing to interpret a bad ID as "GMT".
This commit makes that choice more explicit and defensive.

This change also removes the possibility of IOException, which is never
thrown, from some ZoneInfoDb methods.

Bug: 155738410
Test: boot with a valid id, verify persist.sys.timezone is unchanged
Test: boot with an invalid id set,  verify persist.sys.timezone is "GMT"
Change-Id: I6dc0f4f81848efbbaec6a11a62014471a0ef01fd
2020-05-21 13:34:59 +01:00
Suprabh Shukla
2760e5ee53 Move AlarmManager to apex
Mechanical refactoring to move all except native code to the apex
directory. Accesses across the jar boundary will be cleaned up in
follow-ups.
Also, moved alarm manager code into its own package for better
organization.

Test: Buids, boots. Existing tests:
atest FrameworksMockingServicesTests:AlarmManagerServiceTest
atest CtsAlarmManagerTestCases

Bug: 151976605
Change-Id: Ida46491c1f1dff02dce4c50d3fafd4efbf977766
2020-05-19 21:19:26 -07:00
TreeHugger Robot
253cf88cea Merge "Fixed when SystemServerInitThreadPool.shutdown() is called." into rvc-dev am: 3ce5a9b85b am: 5ab2f9aa78 am: 9f2a62c067 am: 949db94e76
Change-Id: Ib45dc4ad1276044fef31ff3c405187e3935897fe
2020-05-11 22:37:28 +00:00
TreeHugger Robot
5ab2f9aa78 Merge "Fixed when SystemServerInitThreadPool.shutdown() is called." into rvc-dev am: 3ce5a9b85b
Change-Id: I0b4b9ad545f2cebd9edd4adf3259ac34371bb79d
2020-05-11 22:09:07 +00:00
felipeal
fc5304075e Fixed when SystemServerInitThreadPool.shutdown() is called.
The class' Javadoc says it's shut down after P HASE_BOOT_COMPLETED, whic was
not the case.

Test: manual verification / boot
Fixes: 156257347

Change-Id: I3c8b24c6855c7c83cdf1eacc637b8e064a121fe3
2020-05-11 10:36:59 -07:00
Amy Zhang
3df1c0545a Merge "Start TunerResourceManager when FEATURE_TUNER is supported" into rvc-dev am: 71f11a7ec5 am: 0309df1780 am: a6e2e81943 am: 6f70a2a80b
Change-Id: Ib3d4f8e845b387889e99c64c1e8071d8a1698139
2020-05-07 18:23:16 +00:00
Amy Zhang
0309df1780 Merge "Start TunerResourceManager when FEATURE_TUNER is supported" into rvc-dev am: 71f11a7ec5
Change-Id: I70a1ddac77f1be879809c4a7b79be4c6e8b13b9f
2020-05-07 17:50:52 +00:00
Amy Zhang
6b4b728d8c Start TunerResourceManager when FEATURE_TUNER is supported
Test: make services
Bug: 147380513
Change-Id: I56201db818018b019dfa7d442e3905fba30806d7
2020-05-06 11:58:59 -07:00
Yurii Zubrytskyi
463ea96cc1 Merge changes I8942a2db,Ibcef3f40,I6e765563 into rvc-dev am: 930f1d10bc am: 5899bac92e am: b8eb14b2b7 am: 3d7c09e846
Change-Id: I34b1d1a54a1c172dc1d514787e55c5d1e35c4880
2020-04-22 19:22:55 +00:00
Yurii Zubrytskyi
b8eb14b2b7 Merge changes I8942a2db,Ibcef3f40,I6e765563 into rvc-dev am: 930f1d10bc am: 5899bac92e
Change-Id: I76abfe6251fbd50bd0f11a187363a2df786002b1
2020-04-22 19:00:45 +00:00
Yurii Zubrytskyi
0e87d5ebc1 Merge changes I8942a2db,Ibcef3f40,I6e765563 into rvc-dev am: 930f1d10bc
Change-Id: I7ba1058a91b3e2140e05b69d749cc65d62511251
2020-04-22 18:42:20 +00:00