tingle icon indicating copy to clipboard operation
tingle copied to clipboard

Unable to patch Nexus 5X

Open poisonsnak opened this issue 9 years ago • 1 comments

I came from here https://github.com/moosd/Needle/issues/16 with the same issue. Here are the two files you asked for: boot-fw.zip

My device has /system/framework/arm/boat.oat as well as /system/framework/arm64/boat.oat. They are quite large (about 60MB) so I only included the first one as you requested but if you need the other let me know. When I run your patch this is the output:

$ sudo python3 patch.py Where do you want to take the file to patch?

1 - From the device (adb) 2 - From the input folder

> 1

*** OS: Linux 4.6.0-1-amd64 (linux) *** Selected device: 00defa40427cb549 *** Working dir: /tmp/tmp5pkyxhn2 *** Pulling framework from device... 6 KB/s (310 bytes in 0.043s) *** Disassembling framework... *** Disassembling classes... Traceback (most recent call last): File "patch.py", line 156, in <module> smali_folder, dex_filename, dex_filename_last = find_smali(smali_to_search, "framework/"); File "patch.py", line 147, in find_smali dir_list = tuple(sorted(os.listdir(dir))); FileNotFoundError: [Errno 2] No such file or directory: 'framework/'

I tried copying /system/framework/framework.jar to the input folder and running it again with option 2 but the result is the same.

Thanks for your hard work on this. If you need anything else from me let me know.


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

poisonsnak avatar Aug 28 '16 04:08 poisonsnak

Thanks for the files :)

For now I have added the detection with a nicer message about the problem. It will require some time to code it and I'm not sure if I will insert the code directly inside Tingle or if I will create a separate tool to run before Tingle.

I will write here when I have done some progress but do not expect something soon.

ale5000-git avatar Aug 28 '16 15:08 ale5000-git