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

Problem "framework.jar" #31

Open
battosai50 opened this issue Sep 30, 2016 · 2 comments
Open

Problem "framework.jar" #31

battosai50 opened this issue Sep 30, 2016 · 2 comments

Comments

@battosai50
Copy link

Hello,

I can't make it work...I probably miss something obvious but can you help me?
Here's the log

H:\Softs\Huawei Ascend P7\Needle-master\Needle-master>patch.py
*** Selected device 7N2NEF1452015842
*** Device detected! proceeding...
*** Working dir: C:\Users\batto\AppData\Local\Temp\tmp7lp9q7xy
*** Rooting adbd...
adbd is already running as root
remount succeeded
*** Pulling framework from device...
2867 KB/s (38175 bytes in 0.013s)
*** Disassembling framework...
Exception in thread "main" org.jf.util.ExceptionWithContext: framework.jar is not an apk, dex file or odex file.
at org.jf.dexlib2.DexFileFactory.loadDexFiles(DexFileFactory.java:140)
at org.jf.dexlib2.DexFileFactory.loadDexFiles(DexFileFactory.java:81)
at org.jf.baksmali.main.main(main.java:259)

Traceback (most recent call last):
File "H:\Softs\Huawei Ascend P7\Needle-master\Needle-master\patch.py", line 67, in
subprocess.check_call(["java", "-jar", os.path.join(SCRIPT_DIR, "tools", "baksmali.jar"), "framework.jar", "-o", "classes", "-ls"])
File "C:\Users\batto\AppData\Local\Programs\Python\Python35\lib\subprocess.py", line 581, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['java', '-jar', 'H:\Softs\Huawei Ascend P7\Needle-master\Needle-master\tools\baksmali.jar', 'framework.jar', '-o', 'classes', '-ls']'
returned non-zero exit status 1

Probleme with extension ".jar"?
Will provide necessary informations about config if needed.
Thanks in advance

@ale5000-git
Copy link
Contributor

I think the error is just misleading, if you framework.jar is small like 37KB it means that the code isn't here so your ROM is probably odexed.
If you don't deodex the ROM it will not work.

@anarcobuda
Copy link

I am facing the same issue at the moment. I have deodex'd my ROM and it still gives me this warning.

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

3 participants