需求:
第一次尝试写tweak,做了一个锁屏弹窗,但是在**安装完成 install.exec “killall -9 SpringBoard”**的时候手机白苹果了.
日志:
Feb 24 14:45:18 iPhone com.apple.accessibility.AccessibilityUIServer[2108] : (repeated 22 times(s)): |AXIPC|warning| Could not verify connection. server port was nil
Feb 24 14:45:19 iPhone backboardd[2054] : CoreAnimation: timed out fence 31e17
Feb 24 14:45:19 iPhone backboardd[2054] : CoreAnimation: timed out fence 318fb
Feb 24 14:45:29 iPhone com.apple.accessibility.AccessibilityUIServer[2108] : (repeated 40 times(s)): |AXIPC|warning| Could not find server for service: com.apple.accessibility.AXSpringBoardServer
Feb 24 14:45:29 iPhone com.apple.accessibility.AccessibilityUIServer[2108] : (repeated 40 times(s)): |AXSBServer|error| AX SpringBoardServer: Error: Domain:AXIPC Code:0 Reason:未能完成该操作。Could not find server for service: com.apple.accessibility.AXSpringBoardServer
代码:
因为用不明白发帖里面的贴代码功能, 所以我贴到外站了, Ubuntu Pastebin
背景:
设备是6s(9.3.2)不过我本地的sdk是11.2的
另外还有一个问题: 我在hook的时候不知道我hook的类和方法对不对,也不太清楚这个应该在哪里查, 请求指点一下.