Refine relationship between context word and possible OTP

Rather than simply looking for a context word anywhere in the message
containing a possible OTP, require that
A. The two be within 50 characters of each other (the maximum currently
seen is 35 characters
B. The two be in the same sentence, or the context word be in the
preceding sentence.

Also removes "confirm" and "confirmation" from the context words, as
there are a large number of "confirmation numbers" that are not OTP
related

Test: atest NotificationOtpDetectionHelperTest
Fixes: 367357496
Flag: EXEMPT bugfix
Change-Id: I43b291d2fe005147c232011bd525b6c922ffc733
2 files changed
tree: b5a90095e1c8afba2eed1afef52457b35cf04611
  1. apex/
  2. java/
  3. jni/
  4. native/
  5. .clang-format
  6. Android.bp
  7. AndroidManifest.xml
  8. EmptyManifest.xml
  9. jarjar-rules.txt
  10. NOTICE
  11. OWNERS
  12. PREUPLOAD.cfg
  13. proguard.proguard
  14. README.md
  15. TEST_MAPPING
README.md

ExtServices module

Introduction

ExtServices is an updatable Mainline module that contains the logic used by Android framework components such as storage cache, autofill, textclassifier, package watchdog, notifications and notification ranking that runs continually. These are algorithms for framework, making the module updatable to introduce the new features or bug fixes more frequently with monthly release than a platform quarter release cycle.

Development (internal)

Before you start to develop on ExtServices, please read go/smart-os-extservices to get the guideline.

Other resources