ale5000-git / tingle

Tingle - Android patcher
http://forum.xda-developers.com/showthread.php?t=3438764
GNU General Public License v3.0
160 stars 11 forks source link

Not working on Termux #45

Open KaMyKaSii opened 5 years ago

KaMyKaSii commented 5 years ago

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!](https://www.bountysource.com/issues/70622781-not-working-on-termux?utm_campaign=plugin&utm_content=tracker%2F43052892&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F43052892&utm_medium=issues&utm_source=github).