Skip to content

Cannot parse APK with multiple Namespaces #9

Description

@boulaycote
N: amazon=http://schemas.amazon.com/apk/res/android
  N: android=http://schemas.android.com/apk/res/android
    E: manifest (line=1)
      A: android:versionCode(0x0101021b)=(type 0x10)0x97ebef
...

I figure the indent is broken.

Something like

if (line.match(/^( +)?N:/)) {
    namespaces += 1;
    continue;
}

if (namespaces > 1) {
    indentLength -= namespaces;
}

Should fix the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions