越狱开发: vlc播放器添加自定义播放语速(ios)

缘起

如下图, 默认的全局倍速从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, 应该是可以自定义而不是写死的, 有空再整吧, 很多其他事情.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值