Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 72a9a362 authored by Chih-hung Hsieh's avatar Chih-hung Hsieh Committed by android-build-merger
Browse files

Merge "Use -Werror in frameworks/native/cmds/cmd"

am: 68686bd1

Change-Id: I690f234edece16c44c359c9aefbe1dc2c7494846
parents e725faa1 68686bd1
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -10,6 +10,8 @@ LOCAL_SHARED_LIBRARIES := \
    libselinux \
	libbinder

LOCAL_CFLAGS := -Wall -Werror

LOCAL_C_INCLUDES += \
    $(JNI_H_INCLUDE)

+1 −1
Original line number Diff line number Diff line
@@ -78,7 +78,7 @@ public:
        if (is_selinux_enabled() && seLinuxContext.size() > 0) {
            String8 seLinuxContext8(seLinuxContext);
            security_context_t tmp = NULL;
            int ret = getfilecon(fullPath.string(), &tmp);
            getfilecon(fullPath.string(), &tmp);
            Unique_SecurityContext context(tmp);
            int accessGranted = selinux_check_access(seLinuxContext8.string(), context.get(),
                    "file", "write", NULL);