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

Commit 808fd192 authored by Makoto Onuki's avatar Makoto Onuki
Browse files

Support per-process Application class in <process> tag

Bug: 197264681
Test: atest CtsProcessTest
Change-Id: I08889ed16fadb956715499dc7cee567d10988e61
parent c74e2e0e
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -2584,6 +2584,9 @@
    <declare-styleable name="AndroidManifestProcess" parent="AndroidManifestProcesses">
        <!-- Required name of the process that is allowed -->
        <attr name="process" />
        <!-- custom Application class name. We use call it "name", not "className", to be
             consistent with the Application tag. -->
        <attr name="name" />
        <attr name="gwpAsanMode" />
        <attr name="memtagMode" />
        <attr name="nativeHeapZeroInitialized" />
+11 −0
Original line number Diff line number Diff line
@@ -588,10 +588,21 @@ static bool RenameManifestPackage(const StringPiece& package_override, xml::Elem
            child_el->name == "provider" || child_el->name == "receiver" ||
            child_el->name == "service") {
          FullyQualifyClassName(original_package, xml::kSchemaAndroid, "name", child_el);
          continue;
        }

        if (child_el->name == "activity-alias") {
          FullyQualifyClassName(original_package, xml::kSchemaAndroid, "targetActivity", child_el);
          continue;
        }

        if (child_el->name == "processes") {
          for (xml::Element* grand_child_el : child_el->GetChildElements()) {
            if (grand_child_el->name == "process") {
              FullyQualifyClassName(original_package, xml::kSchemaAndroid, "name", grand_child_el);
            }
          }
          continue;
        }
      }
    }