summaryrefslogtreecommitdiff
path: root/tools/veridex/hidden_api.cc
diff options
context:
space:
mode:
author android-build-team Robot <android-build-team-robot@google.com> 2018-04-05 07:23:24 +0000
committer android-build-team Robot <android-build-team-robot@google.com> 2018-04-05 07:23:24 +0000
commit406cfc2782cd6ba93a4162c066a0d13cbf4967a2 (patch)
tree14414421a47add577038a7cc60352effc262dfd1 /tools/veridex/hidden_api.cc
parent1f07c426558d8019058d8825319091e1e2d6c55c (diff)
parent60af9c3a914c518f39d58a79a74a4ffdc4bdaa3a (diff)
Snap for 4701683 from 60af9c3a914c518f39d58a79a74a4ffdc4bdaa3a to pi-release
Change-Id: I75cb19465ec86c1ebb2aaa729a169155c1ad0a49
Diffstat (limited to 'tools/veridex/hidden_api.cc')
-rw-r--r--tools/veridex/hidden_api.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/veridex/hidden_api.cc b/tools/veridex/hidden_api.cc
index 93f921a25f..17fa1b8513 100644
--- a/tools/veridex/hidden_api.cc
+++ b/tools/veridex/hidden_api.cc
@@ -61,6 +61,11 @@ void HiddenApi::FillList(const char* filename, std::set<std::string>& entries) {
// Add the class->method name (so stripping the signature).
entries.insert(str.substr(0, pos));
}
+ pos = str.find(':');
+ if (pos != std::string::npos) {
+ // Add the class->field name (so stripping the type).
+ entries.insert(str.substr(0, pos));
+ }
}
}
}