jakeajames / rootlessJB

299 stars 79 forks source link

build tweakinject.dylib #22

Open matbrik opened 5 years ago

matbrik commented 5 years ago

Hi, I tried to build TweakInject the make.sh in its folder but the resulting dylib doesn't work. my steps are:

Did I miss anything? maybe the payload source it is different? I've tried both rootlessJB3 and rootlessJB

jakeajames commented 5 years ago

What does "doesn't work" mean

matbrik commented 5 years ago

Without modifying the code the tweaks do not work on jailbreak, while root daemons and ssh are working. I have tried to sign the dylib with ldid/2 and on the respring after the jailbreak procedure the screen stays black with the spinner spinning. If via ssh I ps | grep the springboard is not running

jakeajames commented 5 years ago

Did you ldid2 after sending it to device?

matbrik commented 5 years ago

I have tried to ldid2 TweakInject both on the mac and then running rootlessJB and doing the normal rootlessJB, scp of tweakInject to the device in /tmp, ldid2 on it and then sending it back to the mac to be tested inside rootlessJB

matbrik commented 5 years ago

I believe that the binary file in the repo does not match the source code, could you confirm it?

jakeajames commented 5 years ago

Did you inject the dylib to the trustcache after copying to device? And yes, source code matches, but maybe the binary is for arm64e as well and I forgot to update the Makefile.