OSDN Git Service

Add ability to log last 2 digits of dialed numbers in userdebug builds.
authorTyler Gunn <tgunn@google.com>
Mon, 23 Apr 2018 16:52:25 +0000 (09:52 -0700)
committerTyler Gunn <tgunn@google.com>
Mon, 23 Apr 2018 16:52:25 +0000 (09:52 -0700)
commit9bc35116e341cb948abf73a9d13b3ebf08c6c1ef
treeedf1b6cc413b153d5792d3dc48c6ef56de1435ae
parent1142ffcc9b4624887707e3e7d37e0ec777d099db
Add ability to log last 2 digits of dialed numbers in userdebug builds.

Filers of bugs often refer to specific phone numbers.  Bug reports by
default obscure dialed phone numbers from the Telecom logs.  This makes it
difficult to relate events in the bug report to what the bug filer refers
to.

To ease this, in userdebug builds we will now leave the last 2 digits of
dialed phone numbers un-obfuscated.  User builds will remain obfuscated.

Test: Added unit tests to cover this case.
Bug: 78457192
Change-Id: I52704cf57ed11b1fa53a55bc883d7d090af661f4
telecomm/java/android/telecom/Log.java