Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot parse APK with multiple Namespaces #9

Open
boulaycote opened this issue May 21, 2015 · 0 comments
Open

Cannot parse APK with multiple Namespaces #9

boulaycote opened this issue May 21, 2015 · 0 comments

Comments

@boulaycote
Copy link
Contributor

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.

boulaycote added a commit to boulaycote/node-apk-parser that referenced this issue May 21, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant