linkedin / linkedin/qark

Error running dex2jar command

Open
#386 2 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
3.4k
Forks
663
PR merge metrics
No merged PRs in 30d

Description

Platform:
Windows 10
Python 3.8
Java 1.8.0_191
Qark version 4.0.0

Error:
C:\Users\yyyyyyyyyyyyyyy>qark --apk .\Downloads\xxxxxxxxxxyyyyyyyyyyyyyyy.apk
Decompiling...
Error running dex2jar command: b'C:\\\\Users\\\\yyyyyyyyyyyyyy\\\\AppData\\\\Roaming\\\\Python\\\\Python38\\\\site-packages\\\\qark\\\\decompiler\\\\..\\\\lib\\\\dex2jar-2.0\\\\d2j-dex2jar.bat C:\\\\Users\\\\yyyyyyyyyyyy\\\\build\\\\qark\\\\classes.dex -o C:\\\\Users\\\\yyyyyyyyy\\\\build\\\\qark\\\\xxxxxxxyyyyyyyyyy.jar'
Traceback (most recent call last):
File "C:\Users\yyyyyyyyyyyy\AppData\Roaming\Python\Python38\site-packages\qark\decompiler\decompiler.py", line 206, in _run_dex2jar
ret_code = subprocess.call(shlex.split(dex2jar_command))
File "c:\python38\lib\shlex.py", line 311, in split
return list(lex)
File "c:\python38\lib\shlex.py", line 300, in __next__
token = self.get_token()
File "c:\python38\lib\shlex.py", line 109, in get_token
raw = self.read_token()
File "c:\python38\lib\shlex.py", line 140, in read_token
nextchar = self.instream.read(1)
AttributeError: 'bytes' object has no attribute 'read'
Error running dex2jar command

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in qark/decompiler/decompiler.py at _run_dex2jar, especially line 206 where subprocess.call and shlex.split are used. Reproduce the reported qark --apk command on Windows with the listed Python and Java versions, then verify that dex2jar runs and decompilation proceeds without the reported bytes AttributeError.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, python
Domain
mobile-dev, security
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.