Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working on Termux #45

Open
KaMyKaSii opened this issue Nov 13, 2018 · 0 comments
Open

Not working on Termux #45

KaMyKaSii opened this issue Nov 13, 2018 · 0 comments

Comments

@KaMyKaSii
Copy link

KaMyKaSii commented Nov 13, 2018

I'm trying to patch on android itself. I prefer to use Termux instead of QPython because it is a complete terminal (not just for python). In it I have installed Python 3.7.1 and p7zip 16.02-1. The same error occurs when using option "2" or "3". Attached is my framework.jar in case you need to take a look. Thank you!

`$ python /storage/emulated/0/Download/ale5000-git-tingle-a8fafed/main.py
MENU

1 - Patch file from a device (adb)
2 - Patch file from the input folder
3 - Patch file directly from the device

3

*** OS: Linux 3.18.19 (android)
*** Python: 3.7.1 (64 bit)
*** Mode: 3
*** Working dir: /data/data/com.termux/files/usr/tmp/Tingle-bcs1i_75
*** Decompressing framework...
DEBUG: Decompressing framework.jar
*** Disassembling classes...
DEBUG: Disassembling framework/classes.dex
Failed to initialize runtime (check log for details)
Traceback (most recent call last):
File "/storage/emulated/0/Download/ale5000-git-tingle-a8fafed/main.py", line 598, in
smali_folder, dex_filename, dex_filename_last = find_smali(smali_to_search, "framework/", DEVICE_SDK)
File "/storage/emulated/0/Download/ale5000-git-tingle-a8fafed/main.py", line 516, in find_smali
disassemble(search_dir+filename, out_dir, device_sdk)
File "/storage/emulated/0/Download/ale5000-git-tingle-a8fafed/main.py", line 483, in disassemble
subprocess.check_call(disass_cmd)
File "/data/data/com.termux/files/usr/lib/python3.7/subprocess.py", line 341, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/data/data/com.termux/files/usr/bin/dalvikvm', '-Xmx128m', '-cp', '/storage/emulated/0/Download/ale5000-git-tingle-a8fafed/tools/baksmali-dvk.jar', 'org.jf.baksmali.Main', 'dis', '-l', '--seq', '-o', './smali-classes/', 'framework/classes.dex']' returned non-zero exit status 1.
$`

framework.jar.zip


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant