[Question] Changing the the default install folder

Question

I have a problem with my Electra jailbreak (currently on 1.0.3) that a fellow r/jailbreak user was helping me fix. But he went AWOL and the issue is almost but not quite resolved.

Overview

  • Cydia would install all tweaks smoothly and with no errors...but if they had a component in the iOS Settings app they were DOA and nothing appeared in Settings. Tweaks that did not have a Settings component functioned normally.

  • After messing around trying various fixes (none worked) I made a thread requesting help, it can be seen here, and with some assistance found out what the problem is and what needs to be done to resolve it.

This is what I did so far:

  • Created a folder with Filza called TweakInject in /Library

  • Moved tweaks from /Library/MobileSubstrate/DynamicLibraries, the default install location, to /Library/TweakInject

Result

  • Tweaks moved to Library/TweakInject work as they should and show up in iOS Settings app.

The Remaining Problem

  • Tweaks still install into /Library/MobileSubstrate/DynamicLibraries and must be manually copied to Library/TweakInject before they function normally

I ran a bunch of commands the user helping me suggested (they can be seen in my original thread here) in NewTerm but they did not resolve the issue. Said user has not returned and I must still manually move my tweaks into Library/TweakInject to get them working normally. I would like to get them to install into the above mentioned folder by default.

Is there any way I can make this happen? If not, is is there another fix for this issue I can try? Thank you in advance for any help you are able to offer.

Posted Mar 10, 2018, 3:08 AM UTC

17
midnightchipsDeveloper•

Have you tried making a symbolic link from that folder to /Library

2
CodeRed23OPiPhone 6s, iOS 11.1.2•

Thanks for replying, much appreciated. I see that DynamicLibraries is itself a symbolic link to usr/lib/TweakInject so would I make a link to that folder and replace the dedicated TweakInject folder in /Library with it?

If yes, can I rename the dedicated TI folder and leave it in /Library while I reboot and rejailbreak or could that cause a conflict and throw the device into a boot loop?

1
midnightchipsDeveloper•

I think you could link it but idk about the big looping. I wouldn't rename files in their but I'm not 100 sure

1
CodeRed23OPiPhone 6s, iOS 11.1.2•

So would you create a symbolic link to usr/lib/TweakInject in /Library and reboot and rejailbreak or am I getting this mixed up?

1
midnightchipsDeveloper•

Not sure

1
sizzlysausage•

Hi, I created a post to address this exact problem: https://redd.it/8372op

2
CodeRed23OPiPhone 6s, iOS 11.1.2•

Awesome, thanks for the heads up. Will check it out asap.

1