linkedin / linkedin/qark

Failed to run APKTool

Open
#376 4 comments 0 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

Hello, Facing a issue please have a look.

C:\Users\samee>qark --apk C:\Users\samee\Desktop\Test\test.apk
Decompiling...
dex2jar C:\Users\samee\build\qark\classes.dex -> C:\Users\samee\build\qark\test.jar
Detail Error Information in File .\classes-error.zip
Please report this file to http://code.google.com/p/dex2jar/issues/entry if possible.
Failed to run APKTool with command: b'java -Djava.awt.headless=true -jar C:\\\\Users\\\\samee\\\\AppData\\\\Roaming\\\\Python\\\\Python39\\\\site-packages\\\\qark\\\\decompiler\\\\..\\\\lib\\\\apktool/apktool.jar d C:\\\\Users\\\\samee\\\\Desktop\\\\Test\\\\test.apk --no-src --force -m --output C:\\\\Users\\\\samee\\\\build\\\\qark\\\\apktool'
Traceback (most recent call last):
File "C:\Users\samee\AppData\Roaming\Python\Python39\site-packages\qark\decompiler\decompiler.py", line 155, in run_apktool
subprocess.call(shlex.split(custom_apktool_command))
File "c:\users\samee\appdata\local\programs\python\python39-32\lib\shlex.py", line 315, in split
return list(lex)
File "c:\users\samee\appdata\local\programs\python\python39-32\lib\shlex.py", line 300, in __next__
token = self.get_token()
File "c:\users\samee\appdata\local\programs\python\python39-32\lib\shlex.py", line 109, in get_token
raw = self.read_token()
File "c:\users\samee\appdata\local\programs\python\python39-32\lib\shlex.py", line 140, in read_token
nextchar = self.instream.read(1)
AttributeError: 'bytes' object has no attribute 'read'
Failed to run APKTool

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_apktool, line 155, and reproduce the reported APKTool command on Windows with Python 3.9. Read the shlex traceback and verify the failure path; the issue is complete when APKTool runs without the reported bytes/read error.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.