summaryrefslogtreecommitdiff
path: root/startop/scripts/app_startup/lib/adb_utils.py
diff options
context:
space:
mode:
authorsqian <shuoq@google.com>2019-04-01 19:26:18 -0700
committerShuo Qian <shuoq@google.com>2019-04-03 21:32:28 +0000
commit9371193264ee1ebfea2e55a79d39c406e017f934 (patch)
treec02b5cc31fab75d65fb937786480b1b100de6374 /startop/scripts/app_startup/lib/adb_utils.py
parentdc489aba0edfcf0407941a892380aa27408cce27 (diff)
Modify the deprecation of PhoneNumberUtil isEmergencyNumber
1) Telephony API is still called by a bunch of Util methods in Android that don't have context, therefore the service can be null. Throwing an exception can cause crash. 2) Fix the usage of isEmergencyNumber and isPotentialEmergencyNumber. Test: Manual Fixes: 129721537 Change-Id: If82bfc5102a9ac1d7e07ff744c0775a1dc95ba2c Merged-In: If82bfc5102a9ac1d7e07ff744c0775a1dc95ba2c (cherry picked from commit c6d55453ee9a4c352be873eb73c4ec433be11faf)
Diffstat (limited to 'startop/scripts/app_startup/lib/adb_utils.py')
0 files changed, 0 insertions, 0 deletions