Blocking incoming sms in iOS 7

微笑、不失礼 提交于 2019-12-06 05:49:45
  1. My solution works on iOS 7
  2. Your bundle id is wrong, it should be com.apple.imservice.sms. I've posted SMS service directory path (/System/Library/Messages/PlugIns/SMS.imservice/). In there you can find Info.plist which contains bundle id of the plugin - com.apple.imservice.sms.
  3. You are hooking the wrong method. It's IMDService -(void)loadServiceBundle, without arguments. Then you can use [[self bundle] bundleIdentifier] to get bundle id. Also, don't forget to call original implementation of loadServiceBundle before you hook _processReceivedMessage: or even check for bundle id. Original implementation actually loads the plugin, so calling it should be the first thing you do.
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!