Konloch / Konloch/bytecode-viewer

iqiyi

Open
#571 1 comment 0 reactions 0 assignees View on GitHub
Bug
Dominant language
Java
Stars
15.6k
Forks
1.3k
PR merge metrics
No merged PRs in 30d

Description

Please send this error log to https://github.com/Konloch/bytecode-viewer/issues or Konloch at https://the.bytecode.club or konloch@gmail.com
If you hold appropriate legal rights to the relevant class/jar/apk file please include that as well.
Bytecode Viewer Version: 2.13.1 [Fat Jar], OS: Windows 10, Java: 21

java.lang.NullPointerException: Cannot invoke "java.io.File.exists()" because "resourcesFolder" is null
at the.bytecode.club.bytecodeviewer.util.JarUtils.loadResourcesFromFolder(JarUtils.java:241)
at the.bytecode.club.bytecodeviewer.resources.importing.impl.APKResourceImporter.open(APKResourceImporter.java:52)
at the.bytecode.club.bytecodeviewer.resources.importing.ImportResource.importKnownFile(ImportResource.java:91)
at the.bytecode.club.bytecodeviewer.resources.importing.ImportResource.run(ImportResource.java:63)
at java.base/java.lang.Thread.run(Thread.java:1583)
Please send this error log to https://github.com/Konloch/bytecode-viewer/issues or Konloch at https://the.bytecode.club or konloch@gmail.com
If you hold appropriate legal rights to the relevant class/jar/apk file please include that as well.
Bytecode Viewer Version: 2.13.1 [Fat Jar], OS: Windows 10, Java: 21

java.nio.file.InvalidPathException: Illegal char <:> at index 108: C:\Users\ALDO\.Bytecode-Viewer\bcv_temp\OjXIuYIWilrrmgKVzVSXSiFHCfsAXvSt\Decoded Resources\unknown\META-INF\:QYVideoClient_debug.kotlin_module
at java.base/sun.nio.fs.WindowsPathParser.normalize(WindowsPathParser.java:204)
at java.base/sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:175)
at java.base/sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:77)
at java.base/sun.nio.fs.WindowsPath.parse(WindowsPath.java:92)
at java.base/sun.nio.fs.WindowsFileSystem.getPath(WindowsFileSystem.java:231)
at java.base/java.io.File.toPath(File.java:2401)
at brut.directory.DirUtils.copyToDir(DirUtils.java:99)
at brut.directory.DirUtils.copyToDir(DirUtils.java:84)
at brut.directory.AbstractDirectory.copyToDir(AbstractDirectory.java:207)
at brut.androlib.ApkDecoder.copyUnknownFiles(ApkDecoder.java:298)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:95)
at brut.apktool.Main.cmdDecode(Main.java:244)
at brut.apktool.Main.main(Main.java:105)
at the.bytecode.club.bytecodeviewer.util.APKTool.decodeResources(APKTool.java:48)
at the.bytecode.club.bytecodeviewer.resources.importing.impl.APKResourceImporter.open(APKResourceImporter.java:51)
at the.bytecode.club.bytecodeviewer.resources.importing.ImportResource.importKnownFile(ImportResource.java:91)
at the.bytecode.club.bytecodeviewer.resources.importing.ImportResource.run(ImportResource.java:63)
at java.base/java.lang.Thread.run(Thread.java:1583)

Contributor guide

Open the contributing guide

Research direction

Start at APKResourceImporter.open and trace the reported calls into JarUtils.loadResourcesFromFolder and APKTool.decodeResources. Reproduce the APK import on Windows 10 with Java 21, including the resource path reported by brut.directory.DirUtils.copyToDir. Done means the reported resource-import exceptions no longer occur.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
reverse-engineering
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.