changhuapeng / FrameworkPatcherGO

A Magisk/KernelSU/APatch module to modify framework.jar directly on the phone, to build a valid system-level certificate chain.
https://xdaforums.com/t/module-framework-patcher-go.4674536/
312 stars 30 forks source link

Module Installation can't find bash #10

Open xperia-droid opened 3 months ago

xperia-droid commented 3 months ago

I tried to install the FrameworkPatcher v1.1.1 on my Pixel 8 with Evolution X ROM and Magisk 27.0.

The Installation fails on my side because it can't find the bash binary. Magisk install log

I have executed the find command in termux and found the following binaries:

su
:/ # find / -name bash
/data_mirror/data_ce/null/0/com.termux/files/usr/lib/bash
/data_mirror/data_ce/null/0/com.termux/files/usr/bin/bash
/data_mirror/data_ce/null/0/com.termux/files/usr/share/doc/bash
/data_mirror/data_ce/null/0/com.termux/files/usr/include/bash
/data_mirror/data_ce/null/0/com.sonelli.juicessh/files/bin/arm/pie/bash
/dev/tmp17534/bash
/dev/tmp17073/bash
/data/user/0/com.termux/files/usr/lib/bash
/data/user/0/com.termux/files/usr/bin/bash
/data/user/0/com.termux/files/usr/share/doc/bash
/data/user/0/com.termux/files/usr/include/bash
/data/user/0/com.sonelli.juicessh/files/bin/arm/pie/bash
/data/data/com.termux/files/usr/lib/bash
/data/data/com.termux/files/usr/bin/bash
/data/data/com.termux/files/usr/share/doc/bash
/data/data/com.termux/files/usr/include/bash
/data/data/com.sonelli.juicessh/files/bin/arm/pie/bash
/system_ext/etc/bash
/system_ext/bin/bash

Do you need some information from my side?

xperia-droid commented 3 months ago

Fixed it by installing this bash module: https://xdaforums.com/t/module-framework-patcher-go.4674536/post-89558843

It could decompile the file but instant failed after modifying Framework.jar: magisk_install_log_2024-06-19T02.58.44.log

Error from Log:

******************************
> Setting up FrameworkPatch ...
******************************
unzip: can't open /dev/tmp14234/framework-patched.jar[.zip]
unzip: can't open /dev/tmp14234/framework-patched.jar[.zip]
5 dex files found in framework.jar
FrameworkPatch's compiled classes.dex renamed to classes6.dex and patched to framework.jar
/data/adb/modules_update/FrameworkPatcherGo/customize.sh: line 308: /dev/tmp14234/ugu/zip: cannot execute binary file: Exec format error
Modifying framework.jar failed
timeout: invalid option -- t
BusyBox v1.36.1-osm0sis (2023-09-02 19:01:41 ADT) multi-call binary.

Usage: timeout [-s SIG] [-k KILL_SECS] SECS PROG ARGS

Run PROG. Send SIG to it if it is not gone in SECS seconds.
Default SIG: TERM.If it still exists in KILL_SECS seconds, send KILL.
xperia-droid commented 3 months ago

More details in xda thread: https://xdaforums.com/t/module-framework-patcher-go.4674536/post-89570184

VendorAttestation commented 3 months ago

@changhuapeng make official fix please as the zip dosent work for me