Commit Graph

1651 Commits

Author SHA1 Message Date
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
Neha Pattan
4b0e5661e8 Start system service for AdServices.
Test: build (the service is empty)
Bug: 216375107
Change-Id: I6d8212f65e424c08a433e1dad54bf17dd50dba18
2022-03-09 21:37:24 +00:00
Winson
eb403e7d37 Isolate IPackageManager implementation
To avoid leaking IPackageManager methods directly into
PackageManagerService, moves the IPM implementation into an inner
class similar to PackageManagerInternal.

This will help enforce snapshot consistency by ensuring that all
non-IPM PMS methods can always take in a Computer instance to re-use.

Bug: 217961172

Test: presubmit

Change-Id: Ibf7bd3d1d90a40786279763ba8d62eb9348bb760
2022-03-07 23:10:41 -08:00
TreeHugger Robot
edc7b17ce9 Merge changes from topic "tm-remove-iorapd" into tm-dev
* changes:
  [Re-land] Remove scripts related to iorap
  [Re-land] Remove iorap framework codes
2022-03-03 17:16:02 +00:00
Nikita Ioffe
8056335fcd Merge "Rename SupplementalProcess to SdkSandbox" into tm-dev 2022-03-01 17:07:16 +00:00
Nikita Ioffe
df5971335b Rename SupplementalProcess to SdkSandbox
Bug: 218314884
Bug: 220320098
Test: presubmit
Test: atest PackageManagerShellCommandTest
Test: atest SdkSandboxPermissionTest
Change-Id: I9fb98e0caee75bdaaa35d11d174004505f236799
2022-02-28 17:29:55 +00:00
Junyu Lai
990eeb962e [MS62.1] Start NetworkStatsService from the module am: c3c278779f
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1987466

Change-Id: I1f72e7f3fbcb64052e90a10bc2869076fc9ecea7
2022-02-28 06:26:36 +00:00
Roopa Sattiraju
82c71dd74d Merge "Enabling Apex in BT" into tm-dev 2022-02-25 06:30:19 +00:00
Eric Jeong
540cc1fa17 [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-02-24 13:43:01 -08:00
Roopa Sattiraju
293ed88b2f Enabling Apex in BT
Bug: 217736913
Test: Compile, bringup and test user journeys
Change-Id: I3e796e3618ad9a077fa5e8ac387e314e896d1051
2022-02-24 20:42:33 +00:00
Mangesh Ghiware
9edf5e8d1b Use AppSearchModule$Lifecycle class for starting system services in appsearch
ag/16942831 creates a new AppSearchModule class that dispatches system
service lifecycle callbacks to both AppSearchManagerService and
ContactsIndexerManagerService.

Test: refactoring CL. Existing unit tests still pass.

Change-Id: Ia57732d0ad0c5de86a41b08ec4edafa2dca1ce0e
2022-02-23 00:49:08 +00:00
Junyu Lai
c3c278779f [MS62.1] Start NetworkStatsService from the module
NetworkStatsService is going to be moved into Connectivity mainlne
module and it will be not visible to SystemServiceResistry after
migration done. Thus:
1. Register service in NetworkStatsServiceInitialalizer, a separate
   initializer is needed because the service needs to be created
   before NetworkPolicyManagerService's initialization.
2. Call SystemReady at PHASE_ACTIVITY_MANAGER_READY phase where
   it needs to be ready before StatsPullAtomService pulls at
   PHASE_THIRD_PARTY_APPS_CAN_START.
3. Register manager in ConnectivityFrameworkInitializerTiramisu
   instead of SystemServiceRegistery.

Test: atest FrameworksNetTests CtsNetTestCases NetworkUsageStatsTest
Bug: 204830222
  (cherry-picked from ag/16688794)
Change-Id: I95020d816ed613ce3480a0720a5b71dcdc7fab72
Merged-In: I95020d816ed613ce3480a0720a5b71dcdc7fab72
2022-02-18 16:20:47 +08:00
TreeHugger Robot
99b6c0fbd7 Merge "Use onBootPhase for PowerManagerService bring-up" 2022-02-17 15:56:47 +00:00
Roopa Sattiraju
ebd556314a Changing server location to com.android.server.bluetooth
Bug: 217736913
Test: Compile and bringup
Change-Id: I570a8cf84246cc8e7c6cc2c0a0bfef49d9e69c9d
2022-02-14 10:28:52 -08:00
Lais Andrade
800c1b5c06 Use onBootPhase for PowerManagerService bring-up
Change PowerManagerService to remove the extra systemReady method called
from SystemServer and use the boot phase for system services ready
instead.

Fix: 218847044
Test: PowerManagerServiceTest
Change-Id: Ib69f0a0a5168e270e413c25d75f739809787eded
2022-02-14 13:33:02 +00:00
Xin Li
5ad6db7742 Merge sc-v2-dev-plus-aosp-without-vendor@8084891
Bug: 214455710
Merged-In: I8cfa435bb6233818adb9cc99dadeeb06a03443d5
Change-Id: Ib93992d88fd1704179009a3872798b9e7b83a6d1
2022-02-11 07:25:43 +00:00
TreeHugger Robot
4c1d179738 Merge "Revert "Move Scheduling system service into apex manifest."" 2022-02-10 17:40:10 +00:00
Artur Satayev
fd500e7bb1 Revert "Move Scheduling system service into apex manifest."
This reverts commit 1e0219774f.

Reason for revert: we need explicit declaration in SystemServer for non-mainline devices since they use flattened apex

Fix: 215565746
Test: presubmit
Change-Id: Ie0cbe03c21a18a185df54a9cd9b9a2ff1ae6f821
2022-02-10 15:42:19 +00:00
Aaron Huang
794d210854 Split out the ipsec API surface and use framework-connectivity-tiramisu
(cherry picked from commit 1dad7aa006)
Bug: 204153604
Test: TH
Change-Id: I6cc8aef6a0ab9ce4bcef2797196b1d1b3687acca
Merged-In: I6cc8aef6a0ab9ce4bcef2797196b1d1b3687acca
2022-02-10 19:01:00 +09:00
TreeHugger Robot
8acbe89683 Merge "Replaces com.android.server.Dumpable by android.util.Dumpable." 2022-02-07 16:47:23 +00:00
Olivier Gaillard
1051bbbd1f Merge "Add half watchdogs to dropbox and make the watchdog timeout configurable." 2022-02-07 12:05:41 +00:00
Junyu Lai
937076ef12 [MS62.1] Start NetworkStatsService from the module
NetworkStatsService is going to be moved into Connectivity mainlne
module and it will be not visible to SystemServiceResistry after
migration done. Thus:
1. Register service in NetworkStatsServiceInitialalizer, a separate
   initializer is needed because the service needs to be created
   before NetworkPolicyManagerService's initialization.
2. Call SystemReady at PHASE_ACTIVITY_MANAGER_READY phase where
   it needs to be ready before StatsPullAtomService pulls at
   PHASE_THIRD_PARTY_APPS_CAN_START.
3. Register manager in ConnectivityFrameworkInitializerTiramisu
   instead of SystemServiceRegistery.

Test: atest FrameworksNetTests CtsNetTestCases NetworkUsageStatsTest
Bug: 204830222
Change-Id: I95020d816ed613ce3480a0720a5b71dcdc7fab72
2022-02-07 11:45:17 +09:00
Felipe Leme
92d145c886 Replaces com.android.server.Dumpable by android.util.Dumpable.
Test: adb shell dumpsys system_server_dumper
Bug: 149254050

Change-Id: I4e027599ef46b58963c8b0f97d66e510902f05c7
2022-02-03 22:04:23 -08:00
Kathy Chen
05c1633355 Fix a bug where the AmbientContextManager is not registered if the AmbientContextDetectionService is not available. The manager should always be available, and return STATUS_SERVICE_NOT_AVAILABLE in this case.
Test: end-to-end test
Bug: 192476579
Change-Id: Ifce8c8dbb71a7bb6efd65db41686c14681cf0e4a
2022-02-03 19:41:31 +00:00
Artur Satayev
02e0ed6436 Merge "Revert "Revert "Revert "Revert "Introduce initOrder for apex-system-services.""""" 2022-02-03 16:58:23 +00:00
Artur Satayev
8b8331e530 Revert "Revert "Revert "Revert "Introduce initOrder for apex-system-services.""""
This reverts commit 00029af7e0.

Reason for revert: broken test is unrelated and is still red

Change-Id: I1784b76b3c5afc922881334370e0df95e51dc280
2022-02-03 12:48:25 +00:00
Olivier Gaillard
6fe4769529 Add half watchdogs to dropbox and make the watchdog timeout
configurable.

The content of the half watchdog is now more consistent with watchdogs
to make it more actionable (watchdog subject, memory psi, cpu data).

The half watchdog is also published to dropbox in a similar way to the
watchdog. We also use a thread to publish to dropbox to make sure that
we do not block the watchdog handler code.

For the half watchdog, we know wait for 5s to get the cpu data (similar to
the watchdog) which delays the next run. That's only 10% of the default
timeout though so that's not a big difference.

For the configurable watchdog timeout, we delay fetching the value to
be able to start the watchdog as early as possible when system server
starts to detect blocked threads that might happen early. As well, even
if fetching settings is broken, the watchdog will still be running with
the default timeout values.

Test: tested that the half watchdog is added to dropbox

~/master$ adb shell dumpsys dropbox | grep watchdog
2022-01-25 23:22:19 system_server_pre_watchdog (compressed text, 21612 bytes)
2022-01-25 23:22:56 system_server_watchdog (compressed text, 21386 bytes)
2022-01-25 23:29:09 system_server_pre_watchdog (compressed text, 21621 bytes)

The watchdogs and half wathdogs were generated by adding a message with
a long sleep on the ui thread

    Runnable runnable = new Runnable() {
	@Override
	public void run() {
	    SystemClock.sleep(40_000);  // 40s
	}
    };
    Message msg = Message.obtain(UiThread.getHandler(), runnable);
    msg.setAsynchronous(true);
    UiThread.getHandler().sendMessage(msg);

Bug: 209932320
Change-Id: I1bca723d1d7bee98dc7e1aade73a2e4384d6f035
2022-02-03 11:55:05 +00:00
Aaron Huang
1dad7aa006 Split out the ipsec API surface and use framework-connectivity-tiramisu
Bug: 204153604
Test: TH
Change-Id: I6cc8aef6a0ab9ce4bcef2797196b1d1b3687acca
2022-02-03 09:47:41 +09:00