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

jadx.core.utils.exceptions.JadxRuntimeException: Can not parse xml content #2407

Open
xhacker19 opened this issue Feb 9, 2025 · 6 comments

Comments

@xhacker19
Copy link

Please describe what you did before the error occurred.
IMPORTANT! If the error occurs with a specific APK file please attach or provide link to apk file!

  • Jadx version: 1.5.1
  • Java version: 22.0.2
  • Java VM: Oracle Corporation Java HotSpot(TM) 64-Bit Server VM
  • Platform: Windows 11 (10.0 amd64)
  • Max heap size: 10896 MB
  • Program args: -Xms128M -XX:MaxRAMPercentage=70.0 -Dawt.useSystemAAFontSettings=lcd -Dswing.aatext=true -Djava.util.Arrays.useLegacyMergeSort=true -Djdk.util.zip.disableZip64ExtraFieldValidation=true -XX:+IgnoreUnrecognizedVMOptions --add-opens=java.base/java.lang=ALL-UNNAMED -Dsun.java2d.noddraw=true -Dsun.java2d.d3d=false -Dsun.java2d.ddforcevram=true -Dsun.java2d.ddblit=false -Dswing.useflipBufferStrategy=True
jadx.core.utils.exceptions.JadxRuntimeException: Can not parse xml content
	at jadx.core.utils.android.AndroidManifestParser.parseXml(AndroidManifestParser.java:214)
	at jadx.core.utils.android.AndroidManifestParser.parseAndroidManifest(AndroidManifestParser.java:231)
	at jadx.core.utils.android.AndroidManifestParser.<init>(AndroidManifestParser.java:36)
	at jadx.core.utils.android.AndroidManifestParser.<init>(AndroidManifestParser.java:28)
	at jadx.gui.ui.MainWindow.goToApplication(MainWindow.java:983)
	at jadx.gui.utils.ui.ActionHandler.lambda$new$0(ActionHandler.java:20)
	at jadx.gui.utils.ui.ActionHandler.actionPerformed(ActionHandler.java:79)
	at jadx.gui.ui.action.JadxGuiAction.actionPerformed(JadxGuiAction.java:100)
	at java.desktop/javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1972)
	at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2314)
	at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:407)
	at java.desktop/javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:262)
	at java.desktop/javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:279)
	at java.desktop/java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:298)
	at java.desktop/java.awt.Component.processMouseEvent(Component.java:6621)
	at java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3398)
	at java.desktop/java.awt.Component.processEvent(Component.java:6386)
	at java.desktop/java.awt.Container.processEvent(Container.java:2266)
	at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:4996)
	at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2324)
	at java.desktop/java.awt.Component.dispatchEvent(Component.java:4828)
	at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4948)
	at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4575)
	at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4516)
	at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2310)
	at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2780)
	at java.desktop/java.awt.Component.dispatchEvent(Component.java:4828)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:775)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:720)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:714)
	at java.base/java.security.AccessController.doPrivileged(AccessController.java:400)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:87)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:98)
	at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:747)
	at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:745)
	at java.base/java.security.AccessController.doPrivileged(AccessController.java:400)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:87)
	at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:744)
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
Caused by: java.lang.RuntimeException: Failed to parse xml
	at jadx.api.security.impl.JadxSecurity.parseXml(JadxSecurity.java:46)
	at jadx.core.utils.android.AndroidManifestParser.parseXml(AndroidManifestParser.java:210)
	... 43 more
Caused by: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Content is not allowed in prolog.
	at java.xml/com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:262)
	at java.xml/com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:342)
	at java.xml/javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:122)
	at jadx.api.security.impl.JadxSecurity.parseXml(JadxSecurity.java:44)
	... 44 more

@jpstotz
Copy link
Collaborator

jpstotz commented Feb 9, 2025

@xhacker19 Can you please provide the APK that causes this error? Without it is next to impossible to understand and fix the problem.

@xhacker19
Copy link
Author

@xhacker19 Can you please provide the APK that causes this error? Without it is next to impossible to understand and fix the problem.

It was the Google photos revanced apk

@jpstotz
Copy link
Collaborator

jpstotz commented Feb 9, 2025

@xhacker19 Can you please provide a link where you got the APK from or provide the APK itself? Different versions of the same app can be totally different thus not triggering the bug you have observed.

@xhacker19
Copy link
Author

@xhacker19 Can you please provide a link where you got the APK from or provide the APK itself? Different versions of the same app can be totally different thus not triggering the bug you have observed.

Here it is: https://revanced.net/revanced-google-photos#download-apk

@jpstotz
Copy link
Collaborator

jpstotz commented Feb 9, 2025

Sorry I am not able to reproduce your error using the linked APK vanced.net_vanced_google_photos_arm64_v8a_v7.11.0.705590205_cli5.0.0_p5.8.0.apk with SHA-256 hash 9cdee8006bb28d6d7060bf445d77acad9624635ba8dc0e43505ce804ccaad297

Jadx 1.5.1 (with Java 17 and Java 23 from the Jadx release with JRE) as well as latest unstable version from GIT load the APK without problems. Both tests were on Windows 11. Jadx requires quite some minutes to load this APK, but besides this it was loaded successfully and I can see AndroidManifest.xml.

@skylot
Copy link
Owner

skylot commented Feb 10, 2025

Looks like @xhacker19 press Go to application button which cause manifest parsing.
But I am also can't reproduce this issue, and AndroidManifest.xml looks fine to me.

@xhacker19 can you post a content of AndroidManifest.xml file? Maybe it contains error message with details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants