Skip to content
This repository has been archived by the owner on Dec 13, 2023. It is now read-only.

Fix INSTALL_PARSE_FAILED_MANIFEST_MALFORMED #107

Merged
merged 1 commit into from
Sep 4, 2022

Conversation

nonnonstop
Copy link
Contributor

Fix #105 (comment).
This is caused by the failure to generate XML due to missing ManifestEditor's assets . (#105 (comment))

Command log
> java -jar jar-v0.3.1-328-release.jar -v -f app-release4.apk
Processing C:\Users\user\Downloads\app-release4.apk -> C:\Users\user\Downloads\.\app-release4-328-lspatched.apk
apk path: C:\Users\user\Downloads\app-release4.apk
Parsing original apk...
Register apk signer with default keystore...
Original signature
308202c9308201b1a003020102020411554fa1300d06092a864886f70d01010b0500301531133011060355040a130a6e6f6e6e6f6e73746f70301e170d3231303531303037313632385a170d3436303530343037313632385a301531133011060355040a130a6e6f6e6e6f6e73746f7030820122300d06092a864886f70d01010105000382010f003082010a02820101009933dd76ead68b45bb58a697d82b678d8c1ca12a865b0994a370d0ed1f917ae86e6deb8a49e243972eebda66a1ef7a91f0251523e3336021afac20072b86a64ed4378d13534bf79fc72ea3a2c24a2b5fd432e9c92ac6b174eb0ee59de791137441c84af5aec4330eb1ab02fcadcb187b443cae81e38419a0753540f3c654703362b86db7eb433b4715ef43d21de568d46a3e7e17a33ce5c9d41ffc4a0f2bc3ddc91373cc1fe3ef4f98a28a21761b389ccc5b49cc8170145c2848d2e64bccc76c460931f5d3a740b656a075a880011101a320e6c15dd852324dc84e092d4cf01a1c667353cfd67d9ef1b2111779223d51f4d04d78c09525701222047da80c1d7d0203010001a321301f301d0603551d0e041604149c6fda24fdf0a6a8897088713fdb03f599b03269300d06092a864886f70d01010b05000382010100103b52d51353cf4767b873d151c13d4be6f0ce5151177cbfd6c99195b8955e761c8db0ea91742b96105cfdd426dd637c9a6202d947efd17ce436a638144e0f7d30e932e42cb7db9c4022dfb68e5a9d6840f98273e4be14437ae61002ece127a294550f0bd7409cf7605e978e31044b44240dc3eef851752bcaa346cf8cdca36dc12620b0df38131986d85e3ec409091fbb0f3fef271797149427a3a896ec232a0a990d8aaf3382abb55e0bd8bca2d45458f843b943477f92583e87ecdc7775c72dd381ade946a0bc4f5987bf18449e02042a905bee0e3e4a5771eda9355f503fb7062b983a3b3c66f296fb460b6aa0e066e8cdef19ba7702b8fb8f572aa27230
original appComponentFactory class: .MyAppComponentFactory
Patching apk...
java.lang.IllegalArgumentException: InputStream cannot be null
        at java.xml/javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:118)
        at com.wind.meditor.xml.ResourceIdXmlReader.findIdFromXmlFile(ResourceIdXmlReader.java:67)
        at com.wind.meditor.xml.ResourceIdXmlReader.parseIdFromXml(ResourceIdXmlReader.java:38)
        at com.wind.meditor.property.AttributeItem.getResourceId(AttributeItem.java:37)
        at com.wind.meditor.visitor.ModifyAttributeVisitor.attr(ModifyAttributeVisitor.java:50)
        at pxb.android.axml.AxmlReader.accept(AxmlReader.java:65)
        at com.wind.meditor.core.ManifestEditor.processManifest(ManifestEditor.java:62)
        at org.lsposed.patch.LSPatch.modifyManifestFile(LSPatch.java:360)
        at org.lsposed.patch.LSPatch.patch(LSPatch.java:245)
        at org.lsposed.patch.LSPatch.doCommandLine(LSPatch.java:176)
        at org.lsposed.patch.LSPatch.main(LSPatch.java:151)
parse xml failed, Document is null
java.lang.IllegalArgumentException: InputStream cannot be null
        at java.xml/javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:118)
        at com.wind.meditor.xml.ResourceIdXmlReader.findIdFromXmlFile(ResourceIdXmlReader.java:67)
        at com.wind.meditor.xml.ResourceIdXmlReader.parseIdFromXml(ResourceIdXmlReader.java:38)
        at com.wind.meditor.property.AttributeItem.getResourceId(AttributeItem.java:37)
        at com.wind.meditor.visitor.ModifyAttributeVisitor.attr(ModifyAttributeVisitor.java:50)
        at pxb.android.axml.AxmlReader.accept(AxmlReader.java:65)
        at com.wind.meditor.core.ManifestEditor.processManifest(ManifestEditor.java:62)
        at org.lsposed.patch.LSPatch.modifyManifestFile(LSPatch.java:360)
        at org.lsposed.patch.LSPatch.patch(LSPatch.java:245)
        at org.lsposed.patch.LSPatch.doCommandLine(LSPatch.java:176)
        at org.lsposed.patch.LSPatch.main(LSPatch.java:151)
parse xml failed, Document is null
java.lang.IllegalArgumentException: InputStream cannot be null
        at java.xml/javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:118)
        at com.wind.meditor.xml.ResourceIdXmlReader.findIdFromXmlFile(ResourceIdXmlReader.java:67)
        at com.wind.meditor.xml.ResourceIdXmlReader.parseIdFromXml(ResourceIdXmlReader.java:38)
        at com.wind.meditor.property.AttributeItem.getResourceId(AttributeItem.java:37)
        at com.wind.meditor.visitor.ModifyAttributeVisitor.attr(ModifyAttributeVisitor.java:50)
        at pxb.android.axml.AxmlReader.accept(AxmlReader.java:65)
        at com.wind.meditor.core.ManifestEditor.processManifest(ManifestEditor.java:62)
        at org.lsposed.patch.LSPatch.modifyManifestFile(LSPatch.java:360)
        at org.lsposed.patch.LSPatch.patch(LSPatch.java:245)
        at org.lsposed.patch.LSPatch.doCommandLine(LSPatch.java:176)
        at org.lsposed.patch.LSPatch.main(LSPatch.java:151)
parse xml failed, Document is null
java.lang.IllegalArgumentException: InputStream cannot be null
        at java.xml/javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:118)
        at com.wind.meditor.xml.ResourceIdXmlReader.findIdFromXmlFile(ResourceIdXmlReader.java:67)
        at com.wind.meditor.xml.ResourceIdXmlReader.parseIdFromXml(ResourceIdXmlReader.java:38)
        at com.wind.meditor.property.AttributeItem.getResourceId(AttributeItem.java:37)
        at com.wind.meditor.visitor.ModifyAttributeVisitor.attr(ModifyAttributeVisitor.java:50)
        at pxb.android.axml.AxmlReader.accept(AxmlReader.java:65)
        at com.wind.meditor.core.ManifestEditor.processManifest(ManifestEditor.java:62)
        at org.lsposed.patch.LSPatch.modifyManifestFile(LSPatch.java:360)
        at org.lsposed.patch.LSPatch.patch(LSPatch.java:245)
        at org.lsposed.patch.LSPatch.doCommandLine(LSPatch.java:176)
        at org.lsposed.patch.LSPatch.main(LSPatch.java:151)
parse xml failed, Document is null
java.lang.IllegalArgumentException: InputStream cannot be null
        at java.xml/javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:118)
        at com.wind.meditor.xml.ResourceIdXmlReader.findIdFromXmlFile(ResourceIdXmlReader.java:67)
        at com.wind.meditor.xml.ResourceIdXmlReader.parseIdFromXml(ResourceIdXmlReader.java:38)
        at com.wind.meditor.property.AttributeItem.getResourceId(AttributeItem.java:37)
        at com.wind.meditor.visitor.ModifyAttributeVisitor.attr(ModifyAttributeVisitor.java:50)
        at pxb.android.axml.AxmlReader.accept(AxmlReader.java:65)
        at com.wind.meditor.core.ManifestEditor.processManifest(ManifestEditor.java:62)
        at org.lsposed.patch.LSPatch.modifyManifestFile(LSPatch.java:360)
        at org.lsposed.patch.LSPatch.patch(LSPatch.java:245)
        at org.lsposed.patch.LSPatch.doCommandLine(LSPatch.java:176)
        at org.lsposed.patch.LSPatch.main(LSPatch.java:151)
parse xml failed, Document is null
java.lang.IllegalArgumentException: InputStream cannot be null
        at java.xml/javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:118)
        at com.wind.meditor.xml.ResourceIdXmlReader.findIdFromXmlFile(ResourceIdXmlReader.java:67)
        at com.wind.meditor.xml.ResourceIdXmlReader.parseIdFromXml(ResourceIdXmlReader.java:38)
        at com.wind.meditor.property.AttributeItem.getResourceId(AttributeItem.java:37)
        at com.wind.meditor.visitor.ModifyAttributeVisitor.attr(ModifyAttributeVisitor.java:50)
        at pxb.android.axml.AxmlReader.accept(AxmlReader.java:65)
        at com.wind.meditor.core.ManifestEditor.processManifest(ManifestEditor.java:62)
        at org.lsposed.patch.LSPatch.modifyManifestFile(LSPatch.java:360)
        at org.lsposed.patch.LSPatch.patch(LSPatch.java:245)
        at org.lsposed.patch.LSPatch.doCommandLine(LSPatch.java:176)
        at org.lsposed.patch.LSPatch.main(LSPatch.java:151)
parse xml failed, Document is null
java.lang.IllegalArgumentException: InputStream cannot be null
        at java.xml/javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:118)
        at com.wind.meditor.xml.ResourceIdXmlReader.findIdFromXmlFile(ResourceIdXmlReader.java:67)
        at com.wind.meditor.xml.ResourceIdXmlReader.parseIdFromXml(ResourceIdXmlReader.java:38)
        at com.wind.meditor.property.AttributeItem.getResourceId(AttributeItem.java:37)
        at com.wind.meditor.visitor.ModifyAttributeVisitor.attr(ModifyAttributeVisitor.java:50)
        at pxb.android.axml.AxmlReader.accept(AxmlReader.java:65)
        at com.wind.meditor.core.ManifestEditor.processManifest(ManifestEditor.java:62)
        at org.lsposed.patch.LSPatch.modifyManifestFile(LSPatch.java:360)
        at org.lsposed.patch.LSPatch.patch(LSPatch.java:245)
        at org.lsposed.patch.LSPatch.doCommandLine(LSPatch.java:176)
        at org.lsposed.patch.LSPatch.main(LSPatch.java:151)
parse xml failed, Document is null
java.lang.IllegalArgumentException: InputStream cannot be null
        at java.xml/javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:118)
        at com.wind.meditor.xml.ResourceIdXmlReader.findIdFromXmlFile(ResourceIdXmlReader.java:67)
        at com.wind.meditor.xml.ResourceIdXmlReader.parseIdFromXml(ResourceIdXmlReader.java:38)
        at com.wind.meditor.property.AttributeItem.getResourceId(AttributeItem.java:37)
        at com.wind.meditor.visitor.ModifyAttributeVisitor.attr(ModifyAttributeVisitor.java:50)
        at pxb.android.axml.AxmlReader.accept(AxmlReader.java:65)
        at com.wind.meditor.core.ManifestEditor.processManifest(ManifestEditor.java:62)
        at org.lsposed.patch.LSPatch.modifyManifestFile(LSPatch.java:360)
        at org.lsposed.patch.LSPatch.patch(LSPatch.java:245)
        at org.lsposed.patch.LSPatch.doCommandLine(LSPatch.java:176)
        at org.lsposed.patch.LSPatch.main(LSPatch.java:151)
parse xml failed, Document is null
java.lang.IllegalArgumentException: InputStream cannot be null
        at java.xml/javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:118)
        at com.wind.meditor.xml.ResourceIdXmlReader.findIdFromXmlFile(ResourceIdXmlReader.java:67)
        at com.wind.meditor.xml.ResourceIdXmlReader.parseIdFromXml(ResourceIdXmlReader.java:38)
        at com.wind.meditor.property.AttributeItem.getResourceId(AttributeItem.java:37)
        at com.wind.meditor.visitor.ModifyAttributeVisitor.attr(ModifyAttributeVisitor.java:50)
        at pxb.android.axml.AxmlReader.accept(AxmlReader.java:65)
        at com.wind.meditor.core.ManifestEditor.processManifest(ManifestEditor.java:62)
        at org.lsposed.patch.LSPatch.modifyManifestFile(LSPatch.java:360)
        at org.lsposed.patch.LSPatch.patch(LSPatch.java:245)
        at org.lsposed.patch.LSPatch.doCommandLine(LSPatch.java:176)
        at org.lsposed.patch.LSPatch.main(LSPatch.java:151)
parse xml failed, Document is null
java.lang.IllegalArgumentException: InputStream cannot be null
        at java.xml/javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:118)
        at com.wind.meditor.xml.ResourceIdXmlReader.findIdFromXmlFile(ResourceIdXmlReader.java:67)
        at com.wind.meditor.xml.ResourceIdXmlReader.parseIdFromXml(ResourceIdXmlReader.java:38)
        at com.wind.meditor.property.AttributeItem.getResourceId(AttributeItem.java:37)
        at com.wind.meditor.visitor.ModifyAttributeVisitor.attr(ModifyAttributeVisitor.java:50)
        at pxb.android.axml.AxmlReader.accept(AxmlReader.java:65)
        at com.wind.meditor.core.ManifestEditor.processManifest(ManifestEditor.java:62)
        at org.lsposed.patch.LSPatch.modifyManifestFile(LSPatch.java:360)
        at org.lsposed.patch.LSPatch.patch(LSPatch.java:245)
        at org.lsposed.patch.LSPatch.doCommandLine(LSPatch.java:176)
        at org.lsposed.patch.LSPatch.main(LSPatch.java:151)
parse xml failed, Document is null
java.lang.IllegalArgumentException: InputStream cannot be null
        at java.xml/javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:118)
        at com.wind.meditor.xml.ResourceIdXmlReader.findIdFromXmlFile(ResourceIdXmlReader.java:67)
        at com.wind.meditor.xml.ResourceIdXmlReader.parseIdFromXml(ResourceIdXmlReader.java:38)
        at com.wind.meditor.property.AttributeItem.getResourceId(AttributeItem.java:37)
        at com.wind.meditor.visitor.ModifyAttributeVisitor.attr(ModifyAttributeVisitor.java:50)
        at pxb.android.axml.AxmlReader.accept(AxmlReader.java:65)
        at com.wind.meditor.core.ManifestEditor.processManifest(ManifestEditor.java:62)
        at org.lsposed.patch.LSPatch.modifyManifestFile(LSPatch.java:360)
        at org.lsposed.patch.LSPatch.patch(LSPatch.java:245)
        at org.lsposed.patch.LSPatch.doCommandLine(LSPatch.java:176)
        at org.lsposed.patch.LSPatch.main(LSPatch.java:151)
parse xml failed, Document is null
java.lang.IllegalArgumentException: InputStream cannot be null
        at java.xml/javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:118)
        at com.wind.meditor.xml.ResourceIdXmlReader.findIdFromXmlFile(ResourceIdXmlReader.java:67)
        at com.wind.meditor.xml.ResourceIdXmlReader.parseIdFromXml(ResourceIdXmlReader.java:38)
        at com.wind.meditor.property.AttributeItem.getResourceId(AttributeItem.java:37)
        at com.wind.meditor.visitor.ModifyAttributeVisitor.attr(ModifyAttributeVisitor.java:50)
        at pxb.android.axml.AxmlReader.accept(AxmlReader.java:65)
        at com.wind.meditor.core.ManifestEditor.processManifest(ManifestEditor.java:62)
        at org.lsposed.patch.LSPatch.modifyManifestFile(LSPatch.java:360)
        at org.lsposed.patch.LSPatch.patch(LSPatch.java:245)
        at org.lsposed.patch.LSPatch.doCommandLine(LSPatch.java:176)
        at org.lsposed.patch.LSPatch.main(LSPatch.java:151)
parse xml failed, Document is null
java.lang.IllegalArgumentException: InputStream cannot be null
        at java.xml/javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:118)
        at com.wind.meditor.xml.ResourceIdXmlReader.findIdFromXmlFile(ResourceIdXmlReader.java:67)
        at com.wind.meditor.xml.ResourceIdXmlReader.parseIdFromXml(ResourceIdXmlReader.java:38)
        at com.wind.meditor.property.AttributeItem.getResourceId(AttributeItem.java:37)
        at com.wind.meditor.visitor.ModifyAttributeVisitor.attr(ModifyAttributeVisitor.java:50)
        at pxb.android.axml.AxmlReader.accept(AxmlReader.java:65)
        at com.wind.meditor.core.ManifestEditor.processManifest(ManifestEditor.java:62)
        at org.lsposed.patch.LSPatch.modifyManifestFile(LSPatch.java:360)
        at org.lsposed.patch.LSPatch.patch(LSPatch.java:245)
        at org.lsposed.patch.LSPatch.doCommandLine(LSPatch.java:176)
        at org.lsposed.patch.LSPatch.main(LSPatch.java:151)
parse xml failed, Document is null
java.lang.IllegalArgumentException: InputStream cannot be null
        at java.xml/javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:118)
        at com.wind.meditor.xml.ResourceIdXmlReader.findIdFromXmlFile(ResourceIdXmlReader.java:67)
        at com.wind.meditor.xml.ResourceIdXmlReader.parseIdFromXml(ResourceIdXmlReader.java:38)
        at com.wind.meditor.property.AttributeItem.getResourceId(AttributeItem.java:37)
        at com.wind.meditor.visitor.ModifyAttributeVisitor.attr(ModifyAttributeVisitor.java:50)
        at pxb.android.axml.AxmlReader.accept(AxmlReader.java:65)
        at com.wind.meditor.core.ManifestEditor.processManifest(ManifestEditor.java:62)
        at org.lsposed.patch.LSPatch.modifyManifestFile(LSPatch.java:360)
        at org.lsposed.patch.LSPatch.patch(LSPatch.java:245)
        at org.lsposed.patch.LSPatch.doCommandLine(LSPatch.java:176)
        at org.lsposed.patch.LSPatch.main(LSPatch.java:151)
parse xml failed, Document is null
java.lang.IllegalArgumentException: InputStream cannot be null
        at java.xml/javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:118)
        at com.wind.meditor.xml.ResourceIdXmlReader.findIdFromXmlFile(ResourceIdXmlReader.java:67)
        at com.wind.meditor.xml.ResourceIdXmlReader.parseIdFromXml(ResourceIdXmlReader.java:38)
        at com.wind.meditor.property.AttributeItem.getResourceId(AttributeItem.java:37)
        at com.wind.meditor.visitor.ModifyAttributeVisitor.attr(ModifyAttributeVisitor.java:50)
        at pxb.android.axml.AxmlReader.accept(AxmlReader.java:65)
        at com.wind.meditor.core.ManifestEditor.processManifest(ManifestEditor.java:62)
        at org.lsposed.patch.LSPatch.modifyManifestFile(LSPatch.java:360)
        at org.lsposed.patch.LSPatch.patch(LSPatch.java:245)
        at org.lsposed.patch.LSPatch.doCommandLine(LSPatch.java:176)
        at org.lsposed.patch.LSPatch.main(LSPatch.java:151)
parse xml failed, Document is null
java.lang.IllegalArgumentException: InputStream cannot be null
        at java.xml/javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:118)
        at com.wind.meditor.xml.ResourceIdXmlReader.findIdFromXmlFile(ResourceIdXmlReader.java:67)
        at com.wind.meditor.xml.ResourceIdXmlReader.parseIdFromXml(ResourceIdXmlReader.java:38)
        at com.wind.meditor.property.AttributeItem.getResourceId(AttributeItem.java:37)
        at com.wind.meditor.visitor.ModifyAttributeVisitor.attr(ModifyAttributeVisitor.java:50)
        at pxb.android.axml.AxmlReader.accept(AxmlReader.java:65)
        at com.wind.meditor.core.ManifestEditor.processManifest(ManifestEditor.java:62)
        at org.lsposed.patch.LSPatch.modifyManifestFile(LSPatch.java:360)
        at org.lsposed.patch.LSPatch.patch(LSPatch.java:245)
        at org.lsposed.patch.LSPatch.doCommandLine(LSPatch.java:176)
        at org.lsposed.patch.LSPatch.main(LSPatch.java:151)
parse xml failed, Document is null
java.lang.IllegalArgumentException: InputStream cannot be null
        at java.xml/javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:118)
        at com.wind.meditor.xml.ResourceIdXmlReader.findIdFromXmlFile(ResourceIdXmlReader.java:67)
        at com.wind.meditor.xml.ResourceIdXmlReader.parseIdFromXml(ResourceIdXmlReader.java:38)
        at com.wind.meditor.property.AttributeItem.getResourceId(AttributeItem.java:37)
        at com.wind.meditor.visitor.ModifyAttributeVisitor.attr(ModifyAttributeVisitor.java:50)
        at pxb.android.axml.AxmlReader.accept(AxmlReader.java:65)
        at com.wind.meditor.core.ManifestEditor.processManifest(ManifestEditor.java:62)
        at org.lsposed.patch.LSPatch.modifyManifestFile(LSPatch.java:360)
        at org.lsposed.patch.LSPatch.patch(LSPatch.java:245)
        at org.lsposed.patch.LSPatch.doCommandLine(LSPatch.java:176)
        at org.lsposed.patch.LSPatch.main(LSPatch.java:151)
parse xml failed, Document is null
java.lang.IllegalArgumentException: InputStream cannot be null
        at java.xml/javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:118)
        at com.wind.meditor.xml.ResourceIdXmlReader.findIdFromXmlFile(ResourceIdXmlReader.java:67)
        at com.wind.meditor.xml.ResourceIdXmlReader.parseIdFromXml(ResourceIdXmlReader.java:38)
        at com.wind.meditor.property.AttributeItem.getResourceId(AttributeItem.java:37)
        at com.wind.meditor.visitor.ModifyAttributeVisitor.attr(ModifyAttributeVisitor.java:50)
        at pxb.android.axml.AxmlReader.accept(AxmlReader.java:65)
        at com.wind.meditor.core.ManifestEditor.processManifest(ManifestEditor.java:62)
        at org.lsposed.patch.LSPatch.modifyManifestFile(LSPatch.java:360)
        at org.lsposed.patch.LSPatch.patch(LSPatch.java:245)
        at org.lsposed.patch.LSPatch.doCommandLine(LSPatch.java:176)
        at org.lsposed.patch.LSPatch.main(LSPatch.java:151)
parse xml failed, Document is null
java.lang.IllegalArgumentException: InputStream cannot be null
        at java.xml/javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:118)
        at com.wind.meditor.xml.ResourceIdXmlReader.findIdFromXmlFile(ResourceIdXmlReader.java:67)
        at com.wind.meditor.xml.ResourceIdXmlReader.parseIdFromXml(ResourceIdXmlReader.java:38)
        at com.wind.meditor.property.AttributeItem.getResourceId(AttributeItem.java:37)
        at com.wind.meditor.visitor.ModifyAttributeVisitor.attr(ModifyAttributeVisitor.java:50)
        at pxb.android.axml.AxmlReader.accept(AxmlReader.java:65)
        at com.wind.meditor.core.ManifestEditor.processManifest(ManifestEditor.java:62)
        at org.lsposed.patch.LSPatch.modifyManifestFile(LSPatch.java:360)
        at org.lsposed.patch.LSPatch.patch(LSPatch.java:245)
        at org.lsposed.patch.LSPatch.doCommandLine(LSPatch.java:176)
        at org.lsposed.patch.LSPatch.main(LSPatch.java:151)
parse xml failed, Document is null
java.lang.IllegalArgumentException: InputStream cannot be null
        at java.xml/javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:118)
        at com.wind.meditor.xml.ResourceIdXmlReader.findIdFromXmlFile(ResourceIdXmlReader.java:67)
        at com.wind.meditor.xml.ResourceIdXmlReader.parseIdFromXml(ResourceIdXmlReader.java:38)
        at com.wind.meditor.property.AttributeItem.getResourceId(AttributeItem.java:37)
        at com.wind.meditor.visitor.ModifyAttributeVisitor.attr(ModifyAttributeVisitor.java:50)
        at pxb.android.axml.AxmlReader.accept(AxmlReader.java:65)
        at com.wind.meditor.core.ManifestEditor.processManifest(ManifestEditor.java:62)
        at org.lsposed.patch.LSPatch.modifyManifestFile(LSPatch.java:360)
        at org.lsposed.patch.LSPatch.patch(LSPatch.java:245)
        at org.lsposed.patch.LSPatch.doCommandLine(LSPatch.java:176)
        at org.lsposed.patch.LSPatch.main(LSPatch.java:151)
parse xml failed, Document is null
java.lang.IllegalArgumentException: InputStream cannot be null
        at java.xml/javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:118)
        at com.wind.meditor.xml.ResourceIdXmlReader.findIdFromXmlFile(ResourceIdXmlReader.java:67)
        at com.wind.meditor.xml.ResourceIdXmlReader.parseIdFromXml(ResourceIdXmlReader.java:38)
        at com.wind.meditor.property.AttributeItem.getResourceId(AttributeItem.java:37)
        at com.wind.meditor.visitor.ModifyAttributeVisitor.modifyAttr(ModifyAttributeVisitor.java:79)
        at com.wind.meditor.visitor.ModifyAttributeVisitor.<init>(ModifyAttributeVisitor.java:24)
        at com.wind.meditor.visitor.MetaDataVisitor.<init>(MetaDataVisitor.java:17)
        at com.wind.meditor.visitor.ApplicationTagVisitor.child(ApplicationTagVisitor.java:35)
        at com.wind.meditor.visitor.ApplicationTagVisitor.addChild(ApplicationTagVisitor.java:47)
        at com.wind.meditor.visitor.ApplicationTagVisitor.end(ApplicationTagVisitor.java:55)
        at pxb.android.axml.AxmlReader.accept(AxmlReader.java:74)
        at com.wind.meditor.core.ManifestEditor.processManifest(ManifestEditor.java:62)
        at org.lsposed.patch.LSPatch.modifyManifestFile(LSPatch.java:360)
        at org.lsposed.patch.LSPatch.patch(LSPatch.java:245)
        at org.lsposed.patch.LSPatch.doCommandLine(LSPatch.java:176)
        at org.lsposed.patch.LSPatch.main(LSPatch.java:151)
parse xml failed, Document is null
java.lang.IllegalArgumentException: InputStream cannot be null
        at java.xml/javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:118)
        at com.wind.meditor.xml.ResourceIdXmlReader.findIdFromXmlFile(ResourceIdXmlReader.java:67)
        at com.wind.meditor.xml.ResourceIdXmlReader.parseIdFromXml(ResourceIdXmlReader.java:38)
        at com.wind.meditor.property.AttributeItem.getResourceId(AttributeItem.java:37)
        at com.wind.meditor.visitor.ModifyAttributeVisitor.modifyAttr(ModifyAttributeVisitor.java:79)
        at com.wind.meditor.visitor.ModifyAttributeVisitor.<init>(ModifyAttributeVisitor.java:24)
        at com.wind.meditor.visitor.MetaDataVisitor.<init>(MetaDataVisitor.java:17)
        at com.wind.meditor.visitor.ApplicationTagVisitor.child(ApplicationTagVisitor.java:35)
        at com.wind.meditor.visitor.ApplicationTagVisitor.addChild(ApplicationTagVisitor.java:47)
        at com.wind.meditor.visitor.ApplicationTagVisitor.end(ApplicationTagVisitor.java:55)
        at pxb.android.axml.AxmlReader.accept(AxmlReader.java:74)
        at com.wind.meditor.core.ManifestEditor.processManifest(ManifestEditor.java:62)
        at org.lsposed.patch.LSPatch.modifyManifestFile(LSPatch.java:360)
        at org.lsposed.patch.LSPatch.patch(LSPatch.java:245)
        at org.lsposed.patch.LSPatch.doCommandLine(LSPatch.java:176)
        at org.lsposed.patch.LSPatch.main(LSPatch.java:151)
parse xml failed, Document is null
java.lang.IllegalArgumentException: InputStream cannot be null
        at java.xml/javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:118)
        at com.wind.meditor.xml.ResourceIdXmlReader.findIdFromXmlFile(ResourceIdXmlReader.java:67)
        at com.wind.meditor.xml.ResourceIdXmlReader.parseIdFromXml(ResourceIdXmlReader.java:38)
        at com.wind.meditor.property.AttributeItem.getResourceId(AttributeItem.java:37)
        at com.wind.meditor.visitor.ModifyAttributeVisitor.modifyAttr(ModifyAttributeVisitor.java:79)
        at com.wind.meditor.visitor.ModifyAttributeVisitor.end(ModifyAttributeVisitor.java:68)
        at com.wind.meditor.visitor.ApplicationTagVisitor.end(ApplicationTagVisitor.java:58)
        at pxb.android.axml.AxmlReader.accept(AxmlReader.java:74)
        at com.wind.meditor.core.ManifestEditor.processManifest(ManifestEditor.java:62)
        at org.lsposed.patch.LSPatch.modifyManifestFile(LSPatch.java:360)
        at org.lsposed.patch.LSPatch.patch(LSPatch.java:245)
        at org.lsposed.patch.LSPatch.doCommandLine(LSPatch.java:176)
        at org.lsposed.patch.LSPatch.main(LSPatch.java:151)
parse xml failed, Document is null
java.lang.IllegalArgumentException: InputStream cannot be null
        at java.xml/javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:118)
        at com.wind.meditor.xml.ResourceIdXmlReader.findIdFromXmlFile(ResourceIdXmlReader.java:67)
        at com.wind.meditor.xml.ResourceIdXmlReader.parseIdFromXml(ResourceIdXmlReader.java:38)
        at com.wind.meditor.property.AttributeItem.getResourceId(AttributeItem.java:37)
        at com.wind.meditor.visitor.ModifyAttributeVisitor.modifyAttr(ModifyAttributeVisitor.java:79)
        at com.wind.meditor.visitor.ModifyAttributeVisitor.end(ModifyAttributeVisitor.java:68)
        at com.wind.meditor.visitor.ApplicationTagVisitor.end(ApplicationTagVisitor.java:58)
        at pxb.android.axml.AxmlReader.accept(AxmlReader.java:74)
        at com.wind.meditor.core.ManifestEditor.processManifest(ManifestEditor.java:62)
        at org.lsposed.patch.LSPatch.modifyManifestFile(LSPatch.java:360)
        at org.lsposed.patch.LSPatch.patch(LSPatch.java:245)
        at org.lsposed.patch.LSPatch.doCommandLine(LSPatch.java:176)
        at org.lsposed.patch.LSPatch.main(LSPatch.java:151)
parse xml failed, Document is null
java.lang.IllegalArgumentException: InputStream cannot be null
        at java.xml/javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:118)
        at com.wind.meditor.xml.ResourceIdXmlReader.findIdFromXmlFile(ResourceIdXmlReader.java:67)
        at com.wind.meditor.xml.ResourceIdXmlReader.parseIdFromXml(ResourceIdXmlReader.java:38)
        at com.wind.meditor.property.AttributeItem.getResourceId(AttributeItem.java:37)
        at com.wind.meditor.visitor.UserPermissionTagVisitor.<init>(UserPermissionTagVisitor.java:21)
        at com.wind.meditor.visitor.ManifestTagVisitor.child(ManifestTagVisitor.java:31)
        at com.wind.meditor.visitor.ManifestTagVisitor.end(ManifestTagVisitor.java:61)
        at pxb.android.axml.AxmlReader.accept(AxmlReader.java:74)
        at com.wind.meditor.core.ManifestEditor.processManifest(ManifestEditor.java:62)
        at org.lsposed.patch.LSPatch.modifyManifestFile(LSPatch.java:360)
        at org.lsposed.patch.LSPatch.patch(LSPatch.java:245)
        at org.lsposed.patch.LSPatch.doCommandLine(LSPatch.java:176)
        at org.lsposed.patch.LSPatch.main(LSPatch.java:151)
parse xml failed, Document is null
Adding native lib..
added assets/lspatch/so/x86_64/liblspatch.so
added assets/lspatch/so/arm64/liblspatch.so
added assets/lspatch/so/x86/liblspatch.so
added assets/lspatch/so/arm/liblspatch.so
Adding dex..
Search target apk library arch...
Embedding modules...
Creating nested apk link...
Writing apk...
Done. Output APK: C:\Users\user\Downloads\.\app-release4-328-lspatched.apk

@yujincheng08
Copy link
Member

あざす

@yujincheng08 yujincheng08 merged commit b1691a9 into LSPosed:master Sep 4, 2022
@nonnonstop nonnonstop deleted the fix-assets branch September 4, 2022 11:48
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants