frameworks/base
Révision | cc8c13896a8f6b65664a4ee191fcc2b850b9ddef (tree) |
---|---|
l'heure | 2017-01-10 23:10:09 |
Auteur | Chih-Wei Huang <cwhuang@linu...> |
Commiter | Chih-Wei Huang |
fd_utils: fix DEBUG mode booting issue
Remove the "/android/" prefix before the white list checking.
Suggested by Chris Vandomelen <chris@sightworks.com>.
@@ -108,6 +108,8 @@ class FileDescriptorInfo { | ||
108 | 108 | std::string file_path; |
109 | 109 | if (!Readlink(fd, &file_path)) { |
110 | 110 | return NULL; |
111 | + } else if (!strncmp(file_path.c_str(), "/android/", 9)) { | |
112 | + file_path = file_path.substr(8); | |
111 | 113 | } |
112 | 114 | |
113 | 115 | if (!IsWhitelisted(file_path)) { |