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

Commit 811669c7 authored by Jeremy Meyer's avatar Jeremy Meyer
Browse files

Have aapt2 handle quoted filepaths

Fixes: 374827548
Test: Automated
Flag: EXEMPT Aconfig not supported on host tools
Change-Id: I053b40a8e1a5586695cfb8a64587e6b4ef1df2eb
parent 0d55dcc9
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -1574,7 +1574,10 @@ class Linker {
  // If the file path ends with .flata, .jar, .jack, or .zip the file is treated
  // as ZIP archive and the files within are merged individually.
  // Otherwise the file is processed on its own.
  bool MergePath(const std::string& path, bool override) {
  bool MergePath(std::string path, bool override) {
    if (path.size() > 2 && util::StartsWith(path, "'") && util::EndsWith(path, "'")) {
      path = path.substr(1, path.size() - 2);
    }
    if (util::EndsWith(path, ".flata") || util::EndsWith(path, ".jar") ||
        util::EndsWith(path, ".jack") || util::EndsWith(path, ".zip")) {
      return MergeArchive(path, override);