版权声明:本文为pureszgd原创文章,未经允许不得转载, 要转载请评论留言! https://blog.csdn.net/pureszgd/article/details/85015550
缘起
如下图, 默认的全局倍速从2到4间没了, 想设个2.5都要每次听的时候重新设置, 好麻烦.
1.安装theos
安装dpkg, ldid, theos
brew install dpkg ldid
sudo git clone --recursive https://github.com/theos/theos.git /opt/theos
sudo chown $(id -u):$(id -g) /opt/theos
添加配置到~/.bash_profile
export THEOS=/opt/theos
export PATH=/opt/theos/bin/:$PATH
source ~/.bash_profile
运行nic.pl, 已安装成功.
2.确认vlc的app信息
bundleid
- 1.使用clutch
clutch -i
> VLC for Mobile <org.videolan.vlc-ios>
- 2.直接使用ifuncbox打开查看plist文件
砸壳
- 1.还是使用clutch
clutch -b org.videolan.vlc-ios
- 2.使用pp助手下载已砸壳的ipa包
二进制名
VLC for iOS
3.hook代码
%hook IASKSettingsStoreUserDefaults
- (void)setObject:(id)arg1 forKey:(id)arg2 {
if ([arg2 isEqualToString:@"playback-speed"]) {
arg1 = @(2.4);
}
%orig;
}
%end
这样实现有点ugly, 应该是可以自定义而不是写死的, 有空再整吧, 很多其他事情.