Skip to content

dex2jar only includes class files in the converted jar #31

@AriaMoradi

Description

@AriaMoradi

I have this apk: tachiyomi-zh.copymanga-v1.3.48.zip

The contents are:

$ unzip tachiyomi-zh.copymanga-v1.3.48.apk 
Archive:  tachiyomi-zh.copymanga-v1.3.48.apk
  inflating: META-INF/com/android/build/gradle/app-metadata.properties  
  inflating: classes.dex             
  inflating: kotlin-tooling-metadata.json  
  inflating: simp.txt                
  inflating: simplified.txt          
  inflating: AndroidManifest.xml     
 extracting: res/CG.png              
 extracting: res/D2.png              
 extracting: res/SD.png              
 extracting: res/jy.png              
 extracting: res/u3.png              
 extracting: resources.arsc          
  inflating: META-INF/CERT.SF        
  inflating: META-INF/CERT.RSA       
  inflating: META-INF/MANIFEST.MF 

Part of the code inside the apk is using this library: https://github.com/luhuiguo/chinese-utils/blob/master/src/main/java/com/luhuiguo/chinese/Converter.java#L49 and the stacktrace is available at Suwayomi/Suwayomi-Server#512 (comment)

That library requires to load resource file /simp.txt or /simplified.txt but these are not included in the converted jar.

We are converting dex2jar via this function: https://github.com/Suwayomi/Tachidesk-Server/blob/master/server/src/main/kotlin/suwayomi/tachidesk/manga/impl/util/PackageTools.kt#L53

Is there something we can do to make dex2jar include non-class files as well?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions