Should I have to restart the device not only respring to install a tweak for backboardd?

坚强是说给别人听的谎言 提交于 2019-12-14 02:59:40

问题


I make a tweak that works in backboardd, if I just respring after install it, it doesn't work, I have to restart the my iPhone entirely. Are there any other better ways need not restarting device?


回答1:


You can execute this in your postinst script if you are installing your tweak as debian package (*.deb)

launchctl stop com.apple.backboardd

Backboard will restart automatically and cydia-substrate should be able to inject your tweak in it.




回答2:


Note: since you say that you're using iOSOpenDev to create your tweaks, there's another option, altho the postinst file works fine, too.

Add another post-install command to the custom build script that iOSOpenDev will have created for your project.

You should already see this under the Target->Build Phases->Run Script:

Just add the following line where the arrow is (line 2):

/opt/iOSOpenDev/bin/iosod run -h ${iOSOpenDevDevice} 'su mobile -c uicache'

Note that this requires the UIKit tools package from Cydia to be installed. (to run uicache)

You should also have a user-defined Build Setting setting iOSOpenDevDevice equal to your device's IP address, so the installation can occur via Wi-Fi.



来源:https://stackoverflow.com/questions/21569039/should-i-have-to-restart-the-device-not-only-respring-to-install-a-tweak-for-bac

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!