Minimum viable TimeZoneDetectorService
This is a do-nothing TimeZoneDetectorService that can be populated in following commits. A temporary method has been added so the service has one method. Unit tests can be run with: atest FrameworksServicesTests:TimeZoneDetectorServiceTest Test: build / boot Test: See above Merged-In: I565fb5dd2f18b7aac2e5779d346bfe69e9da02af Change-Id: I565fb5dd2f18b7aac2e5779d346bfe69e9da02af
This commit is contained in:
@@ -206,6 +206,8 @@ public final class SystemServer {
|
||||
"com.android.server.timezone.RulesManagerService$Lifecycle";
|
||||
private static final String TIME_DETECTOR_SERVICE_CLASS =
|
||||
"com.android.server.timedetector.TimeDetectorService$Lifecycle";
|
||||
private static final String TIME_ZONE_DETECTOR_SERVICE_CLASS =
|
||||
"com.android.server.timezonedetector.TimeZoneDetectorService$Lifecycle";
|
||||
|
||||
private static final String PERSISTENT_DATA_BLOCK_PROP = "ro.frp.pst";
|
||||
|
||||
@@ -1211,6 +1213,14 @@ public final class SystemServer {
|
||||
}
|
||||
traceEnd();
|
||||
|
||||
traceBeginAndSlog("StartTimeZoneDetectorService");
|
||||
try {
|
||||
mSystemServiceManager.startService(TIME_ZONE_DETECTOR_SERVICE_CLASS);
|
||||
} catch (Throwable e) {
|
||||
reportWtf("starting StartTimeZoneDetectorService service", e);
|
||||
}
|
||||
traceEnd();
|
||||
|
||||
if (!disableNonCoreServices && !disableSearchManager) {
|
||||
traceBeginAndSlog("StartSearchManagerService");
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user