OSDN Git Service
(root)
/
android-x86
/
frameworks-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c010798
)
WifiEnterpriseConfiguration: Do not print credentials in toString
author
Paul Stewart
<pstew@google.com>
Wed, 11 Nov 2015 18:23:43 +0000
(10:23 -0800)
committer
Paul Stewart
<pstew@google.com>
Sat, 14 Nov 2015 00:43:53 +0000
(16:43 -0800)
BUG:
25624963
Change-Id: I939a12a27d6b915d8a9cc8b142f645fba0ee42ec
wifi/java/android/net/wifi/WifiEnterpriseConfig.java
patch
|
blob
|
history
diff --git
a/wifi/java/android/net/wifi/WifiEnterpriseConfig.java
b/wifi/java/android/net/wifi/WifiEnterpriseConfig.java
index
e611ea4
..
6e42391
100644
(file)
--- a/
wifi/java/android/net/wifi/WifiEnterpriseConfig.java
+++ b/
wifi/java/android/net/wifi/WifiEnterpriseConfig.java
@@
-737,7
+737,9
@@
public class WifiEnterpriseConfig implements Parcelable {
public String toString() {
StringBuffer sb = new StringBuffer();
for (String key : mFields.keySet()) {
- sb.append(key).append(" ").append(mFields.get(key)).append("\n");
+ // Don't display password in toString().
+ String value = (key == PASSWORD_KEY) ? "<removed>" : mFields.get(key);
+ sb.append(key).append(" ").append(value).append("\n");
}
return sb.toString();
}