bfdecrypt icon indicating copy to clipboard operation
bfdecrypt copied to clipboard

Add support for iOS 15

Open fenfenS opened this issue 1 year ago • 6 comments

fenfenS avatar Nov 23 '22 10:11 fenfenS

Thanks for the contribution, I will hopefully test, merge and update on repo later (I'll need to get my tweak compiling environment updated probably xd).

Change the dependence to com.spark.libsparkapplist from Applist.

I remember considering updating this to use SparkAppList so that's good.

Also good catch on the issue with Substitute being the first image rather than app's image, I had no chance of testing this library before contrary to Substrate and libhooker.

Remove the extra plist file in /Library/MobileSubstrate/DynamicLibraries/ folder, which leads error in latest Substitute.

Hm, so it seems Substitute is the only of three that first checks for plist and then searches for dylib rather than the other way around.

In fairness the existence of that file was a low-effort way to ensure a package update won't conflict with a manually modified file and override it or, worse, throw an error to the user. I'll probably need to re-think/re-check if that would even happen at all, it might be fine as-is, but otherwise a cleaner solution than before could be to only create a basic file there in postinst only if it didn't exist, and that would solve the concern in a similar way I guess...

p0358 avatar Nov 23 '22 14:11 p0358

I agree with your review. I started to write some obj-c from these week for my little project, so I just tried to make it worked fine in my device for less code. Edit any code as you want, I just thought it could help the project a little. And the plist file in /Library/MobileSubstrate/DynamicLibraries/ folder, I tried to rename bfdecrypt_fromprefs.plist to bfdecrypt.plist.prefs, and Substitute checked it still. So I just gave it up, and leave the option to you.(lol)

fenfenS avatar Nov 24 '22 09:11 fenfenS

@fenfenS I’m sorry to bother you, but could you please upload the deb for your fork? It would be highly appreciated because I have no experience whatsoever with building deb files for tweaks from source… Thank You! :)

eyeslow avatar Nov 27 '22 18:11 eyeslow

@eyeslow https://github.com/fenfenS/bfdecrypt/releases/tag/test

fenfenS avatar Dec 01 '22 13:12 fenfenS

Got the plist trouble in DynamicLibraries folder again. I was wrong about the bug. And it turns out Substitute v2.3.1 did not monitor the plist file state correctly. Only if there is a file remove/add in the DynamicLibraries folder, then the Substitute would re-parse the plist file. Tried sudo cat /tmp/bfdecrypt.plist > bfdecrypt.plist and [filterDict writeToFile:], and Substitute did't follow the change.

fenfenS avatar Dec 01 '22 16:12 fenfenS

Was the tweak updated to ios 16 ?

BlueStitch4 avatar Apr 09 '23 13:04 BlueStitch4