Android-x86
Fork
Donation

  • R/O
  • HTTP
  • SSH
  • HTTPS

frameworks-base: Commit

frameworks/base


Commit MetaInfo

Revisioncc8c13896a8f6b65664a4ee191fcc2b850b9ddef (tree)
Time2017-01-10 23:10:09
AuthorChih-Wei Huang <cwhuang@linu...>
CommiterChih-Wei Huang

Log Message

fd_utils: fix DEBUG mode booting issue

Remove the "/android/" prefix before the white list checking.

Suggested by Chris Vandomelen <chris@sightworks.com>.

Change Summary

Incremental Difference

--- a/core/jni/fd_utils-inl.h
+++ b/core/jni/fd_utils-inl.h
@@ -108,6 +108,8 @@ class FileDescriptorInfo {
108108 std::string file_path;
109109 if (!Readlink(fd, &file_path)) {
110110 return NULL;
111+ } else if (!strncmp(file_path.c_str(), "/android/", 9)) {
112+ file_path = file_path.substr(8);
111113 }
112114
113115 if (!IsWhitelisted(file_path)) {
Show on old repository browser