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

Commit 829bf7ce authored by Xin Qi's avatar Xin Qi
Browse files

Revert "frameworks/base: update perflock path name in Activity Trigger"

This reverts commit 4db57e5021c4091352f40f6e4399b0b929f63151.
parent 0ddf0df2
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -39,8 +39,7 @@
#include <cutils/properties.h>
#include <utils/Log.h>

#define LIBRARY_PATH_PREFIX_OLD	"/system/lib/"
#define LIBRARY_PATH_PREFIX "/vendor/lib/"
#define LIBRARY_PATH_PREFIX	"/system/lib/"

namespace android
{
@@ -68,9 +67,7 @@ com_android_internal_app_ActivityTrigger_native_at_init()

    /* Sanity check - ensure */
    buf[PROPERTY_VALUE_MAX-1] = '\0';
    if (((strncmp(buf, LIBRARY_PATH_PREFIX, sizeof(LIBRARY_PATH_PREFIX) - 1) != 0)
	&&
	(strncmp(buf, LIBRARY_PATH_PREFIX_OLD, sizeof(LIBRARY_PATH_PREFIX_OLD) - 1) != 0))
    if ((strncmp(buf, LIBRARY_PATH_PREFIX, sizeof(LIBRARY_PATH_PREFIX) - 1) != 0)
        ||
        (strstr(buf, "..") != NULL)) {
        return;