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

Commit 6a8b22c0 authored by Calin Juravle's avatar Calin Juravle Committed by android-build-merger
Browse files

Merge "Revert "nativebrige: log code_cache access errors to stderr as well"" am: 8b999d89

am: cf0d813e

* commit 'cf0d813e':
  Revert "nativebrige: log code_cache access errors to stderr as well"
parents 89a31c44 cf0d813e
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -413,19 +413,14 @@ bool InitializeNativeBridge(JNIEnv* env, const char* instruction_set) {
      if (errno == ENOENT) {
        if (mkdir(app_code_cache_dir, S_IRWXU | S_IRWXG | S_IXOTH) == -1) {
          ALOGW("Cannot create code cache directory %s: %s.", app_code_cache_dir, strerror(errno));
          fprintf(stderr, "Cannot create code cache directory %s: %s.",
              app_code_cache_dir, strerror(errno));
          ReleaseAppCodeCacheDir();
        }
      } else {
        ALOGW("Cannot stat code cache directory %s: %s.", app_code_cache_dir, strerror(errno));
        fprintf(stderr, "Cannot stat code cache directory %s: %s.",
            app_code_cache_dir, strerror(errno));
        ReleaseAppCodeCacheDir();
      }
    } else if (!S_ISDIR(st.st_mode)) {
      ALOGW("Code cache is not a directory %s.", app_code_cache_dir);
      fprintf(stderr, "Code cache is not a directory %s.", app_code_cache_dir);
      ReleaseAppCodeCacheDir();
    }