diff --git a/include/ui/GraphicBuffer.h b/include/ui/GraphicBuffer.h index 4b9b5a833..ea9368d85 100644 --- a/include/ui/GraphicBuffer.h +++ b/include/ui/GraphicBuffer.h @@ -24,6 +24,7 @@ #include #include #include +#include struct ANativeWindowBuffer; @@ -37,10 +38,8 @@ class GraphicBufferMapper; // =========================================================================== class GraphicBuffer - : public ANativeObjectBase< - ANativeWindowBuffer, - GraphicBuffer, - LightRefBase >, public Flattenable + : public ANativeObjectBase< ANativeWindowBuffer, GraphicBuffer, RefBase >, + public Flattenable { public: diff --git a/libs/utils/RefBase.cpp b/libs/utils/RefBase.cpp index e80a795b7..2b39bce2e 100644 --- a/libs/utils/RefBase.cpp +++ b/libs/utils/RefBase.cpp @@ -199,7 +199,7 @@ public: { char name[100]; snprintf(name, 100, "/data/%p.stack", this); - int rc = open(name, O_RDWR | O_CREAT | O_APPEND); + int rc = open(name, O_RDWR | O_CREAT | O_APPEND, 644); if (rc >= 0) { write(rc, text.string(), text.length()); close(rc);