From 9a81291281f16e1adbc2b260bebed91306649c83 Mon Sep 17 00:00:00 2001 From: Neil Fuller Date: Thu, 5 Dec 2019 13:05:57 +0000 Subject: [PATCH] Remove broadcast of NETWORK_SET_TIMEZONE intent android.intent.action.NETWORK_SET_TIMEZONE is not used by anything in the platform so it can be removed. It was previously broadcast when telephony made a time zone change, presumably as a way to coordinate time zone detection logic if there were other, lower-priority detection mechanisms on the device. The logic for time zone detection is now centralized in the system server so coordination can be done more directly when needed. All the APK usages appear to be only manifest entries for in apps that don't send the intent themselves, which doesn't make a lot of sense. Note: There is a separate commit to remove the broadcast from the old (disabled) NITZ logic. Bug: 140712361 Test: treehugger Change-Id: Iab629778e45815f4632359e90d920b7751c1a199 --- core/res/AndroidManifest.xml | 5 +- .../TimeZoneDetectorCallbackImpl.java | 14 +--- .../TimeZoneDetectorStrategy.java | 6 +- .../TimeZoneDetectorStrategyTest.java | 66 ++++--------------- .../internal/telephony/TelephonyIntents.java | 19 ------ 5 files changed, 18 insertions(+), 92 deletions(-) diff --git a/core/res/AndroidManifest.xml b/core/res/AndroidManifest.xml index 68f3c2e1cc9f1..a35c4dbdf383f 100644 --- a/core/res/AndroidManifest.xml +++ b/core/res/AndroidManifest.xml @@ -633,10 +633,9 @@ - + - - *
    - *
  • time-zone - The java.util.TimeZone.getID() value identifying the new time - * zone.
  • - *
- * - *

- * Requires the READ_PHONE_STATE permission. - * - *

This is a protected intent that can only be sent - * by the system. - */ - public static final String ACTION_NETWORK_SET_TIMEZONE - = "android.intent.action.NETWORK_SET_TIMEZONE"; - /** *

Broadcast Action: It indicates the Emergency callback mode blocks datacall/sms *

.