Commit Graph

1678 Commits

Author SHA1 Message Date
Antonio Kantek
bc0bb0da46 Add config for device specific IMMS
Bug: 245798405
Test: m
Change-Id: I337e2804871ce66553306696d6819b21e3307081
2022-11-08 20:00:43 +00:00
Yeabkal Wubshit
f19567bfaa Remove init for Wear Lefty Service
The service has been removed, so the init logic in the SystemServer
should also been removed.

Bug: 200706260
Tested: build passes
Change-Id: I3955571b66e7748f54b8136318a8d141c2dbcd15
(cherry picked from commit 7a5641422fe84106fced84daba3a0ee34f0d6aab)
(cherry picked from commit af07c8b703ae63666481fe89cc0b3f5c11c98741)
2022-11-03 22:56:20 +00:00
Wenhao Wang
7843bbb2f0 Init BackgroundInstallControlService
The BackgroundInstallControlService monitors background installed apps.
It can provide the list of those apps to the service clients via binder.
See the following desgin doc and PRD for more details.
go/bg-install-control
go/BIC-prd

Bug: 244216300
Test: manual test (verify the binder service is published)
Change-Id: Ic45770061c1291ef3e650337514fca99e0c683b8
2022-10-27 03:24:08 +00:00
Fabian Kozynski
c5976b7166 Merge "Proto dump from SystemUI." into tm-qpr-dev am: f50de68685 am: af3547caa4
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19789974

Change-Id: I188db1d4b3bb3d179ba0ed029ec1f026f997c505
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-21 20:12:25 +00:00
Fabian Kozynski
af3547caa4 Merge "Proto dump from SystemUI." into tm-qpr-dev am: f50de68685
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19789974

Change-Id: Id649cad109553285502acd5160799dd86b831d0d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-21 19:36:58 +00:00
Fabian Kozynski
afa802a889 Proto dump from SystemUI.
Needs to be called by doing `adb shell dumpsys statusbar --proto`
because using `dumpsys activity service` adds text to the dump.

Will also be dumped as part of the BR

Test: atest SystemUITests
Test: Used in CTS
Test: manual dump and BR
Fixes 237786667

Change-Id: I74abf65a76c059ea9bb5a14728192b6b683b7fc7
2022-10-20 14:25:24 -04:00
Reema Bajwa
89b8a12b94 Register credential manager system service
Test: Local testing. Successfully able to call publishBinderServie and register service with system server
Bug:250713478

Change-Id: I5aec8b67ad81a38992d59c01efedfd55832d570e
2022-10-03 23:47:59 +00:00
Yeabkal Wubshit
8b7bf7ce4e Merge "Update Wear Service Class Names" 2022-09-30 16:39:53 +00:00
Anna Zhuravleva
8b0ce1fbac Merge "Add HealthConnect system service scaffold." 2022-09-30 15:05:30 +00:00
Neil Fuller
eea8043ace Merge "Extract time zone storage logic from AlarmManager" 2022-09-30 09:33:29 +00:00
Anna Zhuravleva
5bdd56de55 Add HealthConnect system service scaffold.
Setup scaffold for the Health Connect system service.
This service will provide system APIs to read and write
health data.

Bug: 249321392
CTS-Coverage-Bug: 248508112
Test: atest android.healthconnect.cts
Change-Id: I503c24a039c37d09895fc4f73a1de1a13eeb72b0
2022-09-29 16:03:25 +00:00
Neil Fuller
6bfc89fe62 Extract time zone storage logic from AlarmManager
Extract time zone storage logic from AlarmManagerService and add storage
for new time zone metadata.

This simplifies the AlarmManagerService, which would otherwise have to
expose the time zone metadata (or more knowledge of the storage would be
duplicated elsewhere).

The new metadata describes the confidence Android has in the current
time zone setting. It is intended to support upcoming APIs for SetUp
Wizard, which should ask the user to confirm the time zone.  Currently
the SUW tries to infer this by watching for time zone changes, but this
is error prone and prevents the time zone detector from defaulting the
time zone using low-confidence (but still better than the hardcoded
"GMT") time zones today.

This change also includes small refactorings to how AlarmManagerService
tries to keep the kernel's time zone offset in sync with Android's time
zone setting. Code comments have also been added to try to clarify
behavior.

The system property defaulting behavior previously in SystemServer is
moved to SystemTimeZone too so that all the logic associated with the
system property is now in one place.

Bug: 236612872
Test: manual testing + inspection / treehugger
Test: atest services/tests/servicestests/src/com/android/server/devicepolicy/DevicePolicyManagerTest.java services/tests/servicestests/src/com/android/server/timezonedetector/TimeZoneDetectorStrategyImplTest.java services/tests/mockingservicestests/src/com/android/server/alarm/AlarmManagerServiceTest.java
Change-Id: I493d31043f22d32f12793e0c35110233c850ed85
2022-09-29 14:22:11 +01:00
Yeabkal Wubshit
778863456b Update Wear Service Class Names
See related for the refactoring that caused this CL

Bug: 243827192
Test: booted with a Wear devices without an issue
Change-Id: I17fd058033fa49c89dcbab5b826d3be3650b3a06
2022-09-29 00:16:48 +00:00
Joanne Chung
62d698f8e8 [DO NOT MERGE] Revert "Revert "[DO NOT MERGE] Remove selection toolbar code from build time"" am: 8be1773964
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19992748

Change-Id: I93dcd232eb6205c8c6361406b4ccd0863a0dea46
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-23 09:38:07 +00:00
Joanne Chung
990b2f2682 Merge "[DO NOT MERGE] Revert "Revert "[DO NOT MERGE] Remove selection toolbar code from build time""" into tm-qpr-dev 2022-09-23 09:05:50 +00:00
Hui Wu
8ad644d560 Merge "Remove impl of cloudsearch api" into tm-qpr-dev am: aa0ffaee0d am: 9af4e0bd3d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20019599

Change-Id: I39d3d6c07594b2e99d773a0feb46127dfa19e55d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-23 07:42:46 +00:00
Hui Wu
9af4e0bd3d Merge "Remove impl of cloudsearch api" into tm-qpr-dev am: aa0ffaee0d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20019599

Change-Id: I8475cd36abd09908238d7e996dcc9f5dbf14b784
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-22 22:50:42 +00:00
Hui Wu
1a25dca0bc Remove impl of cloudsearch api
Bug: 246376638
Test: Manually Tested
Change-Id: I1740d5e1a0fb25a0fedea0a92e8a901684e35635
2022-09-22 15:08:56 -07:00
Joanne Chung
8be1773964 [DO NOT MERGE] Revert "Revert "[DO NOT MERGE] Remove selection toolbar code from build time""
This reverts commit 888e79f7a0.

Reason for revert: The feature is planned in QPR2. This should be removed before QPR1 deadline.

Change-Id: I8af811935171d7ff51d9ba2a9ea60437695d7966
2022-09-20 02:23:28 +00:00
Olivier Gaillard
800547e511 Move the logic to update the system server timeouts to the end of the startup process.
That change will help using smaller system server timeouts.

Bug: 209932320
Change-Id: I5f7ccfb75b410385def362031be60d87f00014cd
2022-09-09 08:49:40 +00:00
Jiakai Zhang
3abb09c7a5 Pass context to ArtManagerLocal.
ART Services needs the context for:

1. Getting PowerManager and AppHibernationManager
2. Getting resource strings such as R.string.config_systemUi

Bug: 236954191
Test: adb shell pm art optimize-package -m speed-profile -f \
  com.google.android.youtube
Change-Id: I80ffebdcf6f19e8ef0384f1df5877a79a7bf7384
2022-08-31 12:40:21 +01:00
Joanne Chung
c4d1b9e6d6 Revert "[DO NOT MERGE] Remove selection toolbar code from build time" am: 888e79f7a0
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19204106

Change-Id: I2eed4842d349cb38bd488793cd4bfdf672d4c3cf
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-10 09:19:11 +00:00
Joanne Chung
888e79f7a0 Revert "[DO NOT MERGE] Remove selection toolbar code from build time"
This reverts commit ade911b9c7.

Reason for revert: The feature is planned to run a study in QPR1
with the aim of launching in QPR-2. The code will be removed from
build time before QPR1 finalized.

Change-Id: Ida04260a1196121bb4084b527216aae1e4e6ec54
2022-08-08 11:02:44 +00:00
Almaz Mingaleev
cc4630cdbf Merge "Remove TZUvA feature." am: 10c7acc51d am: 050cc50319
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/953617

Change-Id: I50d4b907cc0d88451b771ff414978dfeaa2e4913
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-24 19:31:24 +00:00
TreeHugger Robot
73e564fe80 Merge "Change Bluetooth apex mountpoint" into tm-dev am: 7a1c701712 am: a506d19b0f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19038084

Change-Id: I8fb452c5d9aef764141685fef00de87cb26246b4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-23 10:50:54 +00:00
William Escande
7b012e937e Change Bluetooth apex mountpoint
Apex name has been changed to com.android.btservices
Changing mount point accordingly
Bug: 235892590
Test: Flash / boot bt / look logs & pair a device

Change-Id: I8cff5f6449ee19466b3df571a40e062964a9e46c
2022-06-22 13:19:14 -07:00
Neil Fuller
5d23852150 Remove TZUvA feature.
The feature was superseded by tzdata mainline module(s).

Bug: 148144561
Test: m
Test: see system/timezone
Change-Id: I5f67e34e9beb608d3cf3c4c072b268805865f6dd
Merged-In: I5f67e34e9beb608d3cf3c4c072b268805865f6dd
2022-06-13 11:44:35 +00:00
Neil Fuller
b9e72bab40 Remove TZUvA feature.
The feature was superseded by tzdata mainline module(s).

Bug: 148144561
Test: m
Test: see system/timezone
Change-Id: I5f67e34e9beb608d3cf3c4c072b268805865f6dd
2022-06-06 12:12:03 +01:00
Neil Fuller
9bbe9f695a Change package of NetworkTimeUpdateService
NetworkTimeUpdateService handles NTP time detection. timedetection (now)
has its own package. Change the package / update references before
proposed refactoring.

Bug: 222295093
Test: treehugger only
Change-Id: Ib5e5738325797dd4cda6c413bcfac8645b95bf59
2022-05-20 18:19:40 +01:00
Jing Ji
91209a5842 Merge "Include watchdog timeout configuration in dumpsys output" into tm-dev am: 85d5a6eb1d am: 854c3ebb5c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18310155

Change-Id: Ib67d0fec4147bcb18ac3fceec11a598d56cedf26
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-12 23:31:03 +00:00
Jing Ji
0d9ea1b08d Include watchdog timeout configuration in dumpsys output
Bug: 209932320
Test: dumpsys
Change-Id: I682c6749b0a5c7c25e1ca9109ce187e28d70697f
2022-05-11 11:15:27 -07:00
Eric Biggers
7f747ed810 SystemServer: remove FDE workaround from runtime restart detection
Since Full Disk Encryption (FDE) is no longer supported, SystemServer no
longer needs to take FDE into consideration when deciding whether a
runtime restart has occurred.

Bug: 208476087
Change-Id: I5150f488f05a2d4ab3e5fcc2b92ec376a569e7e2
2022-05-10 04:22:17 +00:00
Joanne Chung
ade911b9c7 [DO NOT MERGE] Remove selection toolbar code from build time
The feature punts to QPR so disable or remove code from the build
time.

Bug: 222185402
Test: build pass and can boot to home
Test: make sure the toolbar using local implementation

Change-Id: Idad82c3c46ddce0731a26f4599de01eecb0e52c3
2022-05-05 18:09:42 +08:00
Jeff Sharkey
41b469e9d4 Merge changes from topic "PMS_remove_onlyCore"
* changes:
  Telephony: deprecate RESULT_SMS_RECEIVED_WHILE_ENCRYPTED
  BootReceiver: stop using IPackageManager::isOnlyCoreApps()
  StorageManagerService: stop using IPackageManager::isOnlyCoreApps()
  SystemUI: stop using IPackageManager::isOnlyCoreApps()
  SettingsProvider: stop using IPackageManager::isOnlyCoreApps()
  PackageManager: remove INSTALL_PARSE_FAILED_ONLY_COREAPP_ALLOWED
  PackageManagerService: remove unused support for onlyCore mode
2022-04-22 16:43:23 +00:00
TreeHugger Robot
5f7ebe5a86 Merge "DisplayManagerService: remove unused support for onlyCore mode" 2022-04-21 04:12:36 +00:00
Hans Boehm
6cb22623a8 Merge "Don't preload into nonexistent zygote" am: c3a27297c4 am: 3aab9125d9 am: 80b4f59eec am: 87503f91cf am: 908445b37d
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2067474

Change-Id: I68a8fe8a6646e69a4dde907c63e3bc9d46e66ac8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-20 21:19:19 +00:00
Hans Boehm
87503f91cf Merge "Don't preload into nonexistent zygote" am: c3a27297c4 am: 3aab9125d9 am: 80b4f59eec
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2067474

Change-Id: Ic146cd903313a76e93f39dace347382b5d4bb484
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-20 20:36:51 +00:00
Eric Biggers
6efca75753 PackageManagerService: remove unused support for onlyCore mode
Due to the removal of support for Full Disk Encryption,
the "core apps only" mode of system_server is no longer used, and
onlyCore is hard-coded to false.  For details, see http://ag/17685636.

Remove the corresponding obsolete code from PackageManagerService and
the related classes InitAppsHelper, UserDataPreparer, PackageParser2,
and ParsingPackageUtils.

Bug: 208476087
Change-Id: I48289d1f74414f831504b38ac5c1bde719b07fb2
2022-04-20 05:36:06 +00:00
Hans Boehm
c8e95b9329 Don't preload into nonexistent zygote
We tried to access the first entry of Build.SUPPORTED_32_BIT_ABIS
even when there where none, causing an out of bounds array access.
The resulting exception was handled correctly, so this only
speeds things up a little and avoids log spam.

Bug: 228390898
Test: Build and boot master, Treehugger
Change-Id: I5827c6991065dd50d3f6e797930a9e6b7616de6e
2022-04-19 12:57:25 -07:00
Eric Biggers
c110849433 WindowManagerService: remove unused support for onlyCore mode
The "core apps only" mode of system_server is no longer used, and
onlyCore is hard-coded to false.  For details, see http://ag/17685636.

Remove the corresponding obsolete code from WindowManagerService.

Bug: 208476087
Change-Id: Icec64be737709b63c14f0d2a73c9abf6894ce87e
2022-04-14 06:38:14 +00:00
Eric Biggers
b5256590e9 DisplayManagerService: remove unused support for onlyCore mode
The "core apps only" mode of system_server is no longer used, and
onlyCore is hard-coded to false.  For details, see http://ag/17685636.

Remove the corresponding obsolete code from DisplayManagerService.

Bug: 208476087
Change-Id: If53532e1404048d644f6f805a6882e034e914fa9
2022-04-14 05:46:34 +00:00
Eric Biggers
2dbafb77a1 SystemServer: stop checking for CryptKeeper mode
Since support for Full Disk Encryption was removed in favor of
File Based Encryption, "CryptKeeper mode" no longer exists and the
"vold.decrypt" system property is never set.

system_server has the concept of running "core apps only", which is only
used in CryptKeeper mode.  This is now unused code, so as the first step
towards removing this functionality entirely, remove it from
SystemServer.java and hard-code coreApps=false for three services.
Later CLs will remove this functionality from these services.

Bug: 208476087
Change-Id: Ib14470dfea5e77e0bfd4406f0f31e3a96e8eff79
2022-04-13 18:06:49 +00:00
Alan Stokes
240171e237 Merge "Log pending odsign metrics on start" am: 59137a2227 am: a6976f726d am: 1ef1c6a842
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2058177

Change-Id: Ide9144dbe1d5d7ada7885a14b723ce379807f0b4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-08 09:34:01 +00:00
Alan Stokes
32ebf109be Log pending odsign metrics on start
Bug: 202926606
Test: Manual - create file, observe logs, file is deleted
Change-Id: Ie7f35cf4ebd9e293b376da6c7a2d13b98315c587
2022-04-07 14:01:07 +01:00
Treehugger Robot
fbd7a9c17e Merge changes from topic "aosp-remove-iorapd"
* changes:
  [Re-land] Remove scripts related to iorap
  [Re-land] Remove iorap framework codes
2022-03-22 04:09:42 +00:00
Hui Wang
2595b4cf16 Start TelecomLoaderService based on FEATURE_TELECOM
TelecomLoaderService should be configured by FEATURE_TELECOM. We also
keep checking FEATURE_TELEPHONY for backward compatible, which will be
phased out in the future.

Bug: 221098783
Test: build
Change-Id: I0bee21402e1dc6baa485205290d674336c8283ae
2022-03-16 16:11:26 +00:00
Eric Jeong
a46adf380d [Re-land] Remove iorap framework codes
This reverts commit 2f393cdbce.

- It's decided to remove iorap from Android.
- This CL removes iorap framework codes.
- Removing iorap daemon and git repo will follow.

Bug: 211461392
Test: build okay
Change-Id: Ie1bebf1dfdce8b5db59c4e5a685c8f1afb46e266
Merged-In: Ie1bebf1dfdce8b5db59c4e5a685c8f1afb46e266
(cherry picked from commit 7ee89676b9)
2022-03-14 11:21:22 -07:00
Xiao Ma
f4d72b212c Split out the ethernet API surface and use framework-connectivity-t
Ethernet framework and service source code is going to be moved to
Connectivity mainline module, this CL contains below corresponding
changes to adapt the migration in f/b side:

1. Split out ethernet module-lib APIs to Connectivity module.
   Add the ethernet resource filegroup to tiramisu-updatable-sources
   filegroup as well, build them together. Also update the module-lib
   and system api txt to reflect the APIs change. Remove the hidden
   APIs which are moved to Connectivity module. This removal fixes the
   api inconsistent issue with Tethering/apex/hidden/.

2. Remove EthernetService from SystemServer which will be registered
   from ConnectivityServiceInitializer.

3. Replace the BackgroundThread class(imported from f/b/core/java)
   with the one in the modules-utils-backgroundthread lib, which is
   visible to Connectivity module.

Bug: 210586283
Test: m
Test: atest FrameworksNetTests EthernetServiceTests
Change-Id: I3e13cb9c0e348333af295c2537d459aa6700ff17
Merged-In: I1956848d3248cc56e9841d221e5e4c160bed65a4
2022-03-14 13:47:01 +00:00
Xiao Ma
218c4d3162 Split out the ethernet API surface and use framework-connectivity-t
Ethernet framework and service source code is going to be moved to
Connectivity mainline module, this CL contains below corresponding
changes to adapt the migration in f/b side:

1. Split out ethernet module-lib APIs to Connectivity module.
   Add the ethernet resource filegroup to tiramisu-updatable-sources
   filegroup as well, build them together. Also update the module-lib
   and system api txt to reflect the APIs change. Remove the hidden
   APIs which are moved to Connectivity module. This removal fixes the
   api inconsistent issue with Tethering/apex/hidden/.

2. Remove EthernetService from SystemServer which will be registered
   from ConnectivityServiceInitializer.

3. Replace the BackgroundThread class(imported from f/b/core/java)
   with the one in the modules-utils-backgroundthread lib, which is
   visible to Connectivity module.

Bug: 210586283
Test: m
Test: atest FrameworksNetTests EthernetServiceTests
Change-Id: I1956848d3248cc56e9841d221e5e4c160bed65a4
2022-03-10 21:22:42 +09:00
Neha Pattan
dcdb94e369 Merge "Start system service for AdServices." into tm-dev 2022-03-09 23:46:25 +00:00