Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
halo
frameworks_opt_telephony
Commits
5e040f4d
Commit
5e040f4d
authored
8 years ago
by
fionaxu
Browse files
Options
Download
Email Patches
Plain Diff
pii part2: redact non-null pii with SHA-1 Hash
Bug: 30073833 Change-Id: Id4d7b59623b39660218f35d2c202518a994bae4c
parent
04406d95
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
16 deletions
+14
-16
src/java/com/android/internal/telephony/uicc/IccRecords.java
src/java/com/android/internal/telephony/uicc/IccRecords.java
+11
-14
src/java/com/android/internal/telephony/uicc/SIMRecords.java
src/java/com/android/internal/telephony/uicc/SIMRecords.java
+3
-2
No files found.
src/java/com/android/internal/telephony/uicc/IccRecords.java
View file @
5e040f4d
...
...
@@ -22,10 +22,10 @@ import android.os.Handler;
import
android.os.Message
;
import
android.os.Registrant
;
import
android.os.RegistrantList
;
import
android.telephony.Rlog
;
import
android.telephony.SubscriptionInfo
;
import
android.telephony.TelephonyManager
;
import
android.text.TextUtils
;
import
android.telephony.SubscriptionInfo
;
import
com.android.internal.telephony.CommandsInterface
;
import
com.android.internal.telephony.uicc.IccCardApplicationStatus.AppState
;
...
...
@@ -133,12 +133,13 @@ public abstract class IccRecords extends Handler implements IccConstants {
+
" recordsRequested="
+
mRecordsRequested
+
" iccid="
+
iccIdToPrint
+
" msisdnTag="
+
mMsisdnTag
+
(
VDBG
?
(
" voiceMailNum="
+
mVoiceMailNum
)
:
""
)
+
" voiceMailNum="
+
Rlog
.
pii
(
VDBG
,
mVoiceMailNum
)
+
" voiceMailTag="
+
mVoiceMailTag
+
(
VDBG
?
(
" voiceMailNum="
+
mNewVoiceMailNum
)
:
""
)
+
" voiceMailNum="
+
Rlog
.
pii
(
VDBG
,
mNewVoiceMailNum
)
+
" newVoiceMailTag="
+
mNewVoiceMailTag
+
" isVoiceMailFixed="
+
mIsVoiceMailFixed
+
(
VDBG
?
(
" mImsi="
+
mImsi
)
:
""
)
+
" mImsi="
+
((
mImsi
!=
null
)
?
mImsi
.
substring
(
0
,
6
)
+
Rlog
.
pii
(
VDBG
,
mImsi
.
substring
(
6
))
:
"null"
)
+
" mncLength="
+
mMncLength
+
" mailboxIndex="
+
mMailboxIndex
+
" spn="
+
mSpn
;
...
...
@@ -736,19 +737,15 @@ public abstract class IccRecords extends Handler implements IccConstants {
String
iccIdToPrint
=
SubscriptionInfo
.
givePrintableIccid
(
mFullIccId
);
pw
.
println
(
" iccid="
+
iccIdToPrint
);
if
(
TextUtils
.
isEmpty
(
mMsisdn
))
{
pw
.
println
(
" mMsisdn=null"
);
}
else
{
pw
.
println
(
" mMsisdn="
+
(
VDBG
?
mMsisdn
:
"XXX"
));
}
pw
.
println
(
" mMsisdn="
+
Rlog
.
pii
(
VDBG
,
mMsisdn
));
pw
.
println
(
" mMsisdnTag="
+
mMsisdnTag
);
pw
.
println
(
" mVoiceMailNum="
+
(
VDBG
?
mVoiceMailNum
:
"XXX"
));
pw
.
println
(
" mVoiceMailNum="
+
Rlog
.
pii
(
VDBG
,
mVoiceMailNum
));
pw
.
println
(
" mVoiceMailTag="
+
mVoiceMailTag
);
pw
.
println
(
" mNewVoiceMailNum="
+(
VDBG
?
mNewVoiceMailNum
:
"XXX"
));
pw
.
println
(
" mNewVoiceMailNum="
+
Rlog
.
pii
(
VDBG
,
mNewVoiceMailNum
));
pw
.
println
(
" mNewVoiceMailTag="
+
mNewVoiceMailTag
);
pw
.
println
(
" mIsVoiceMailFixed="
+
mIsVoiceMailFixed
);
if
(
VDBG
)
pw
.
println
(
" mImsi="
+
mImsi
);
pw
.
println
(
" mImsi="
+
((
mImsi
!=
null
)
?
mImsi
.
substring
(
0
,
6
)
+
Rlog
.
pii
(
VDBG
,
mImsi
.
substring
(
6
))
:
"null"
));
pw
.
println
(
" mMncLength="
+
mMncLength
);
pw
.
println
(
" mMailboxIndex="
+
mMailboxIndex
);
pw
.
println
(
" mSpn="
+
mSpn
);
...
...
This diff is collapsed.
Click to expand it.
src/java/com/android/internal/telephony/uicc/SIMRecords.java
View file @
5e040f4d
...
...
@@ -349,7 +349,8 @@ public class SIMRecords extends IccRecords {
mNewMsisdn
=
number
;
mNewMsisdnTag
=
alphaTag
;
if
(
DBG
)
log
(
"Set MSISDN: "
+
mNewMsisdnTag
+
" "
+
/*mNewMsisdn*/
"xxxxxxx"
);
if
(
DBG
)
log
(
"Set MSISDN: "
+
mNewMsisdnTag
+
" "
+
/*mNewMsisdn*/
Rlog
.
pii
(
LOG_TAG
,
mNewMsisdn
));
AdnRecord
adn
=
new
AdnRecord
(
mNewMsisdnTag
,
mNewMsisdn
);
...
...
@@ -815,7 +816,7 @@ public class SIMRecords extends IccRecords {
mMsisdn
=
adn
.
getNumber
();
mMsisdnTag
=
adn
.
getAlphaTag
();
log
(
"MSISDN: "
+
/*mMsisdn*/
"xxxxxxx"
);
log
(
"MSISDN: "
+
/*mMsisdn*/
Rlog
.
pii
(
LOG_TAG
,
mMsisdn
)
);
break
;
case
EVENT_SET_MSISDN_DONE:
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment