- UID
- 55012
注册时间2008-9-1
阅读权限90
最后登录1970-1-1
版主
TA的每日心情 | 奋斗 2015-10-29 08:08 |
---|
签到天数: 3 天 [LV.2]偶尔看看I
|
本帖最后由 creantan 于 2015-1-21 09:42 编辑
最新版本做了验证。。可以在cydia中添加PYG源http://apt.chinapyg.com来下载最新绿钻插件
看到有人在用iOS版本QQ音乐的tweak,我也下了个看了下:
- 00007e9c push {r4, r7, lr}
- 00007e9e mov r4, r0
- 00007ea0 movw r0, #0x18e
- 00007ea4 movt r0, #0x0
- 00007ea8 add r7, sp, #0x4
- 00007eaa add r0, pc ; __MergedGlobals
- 00007eac ldr r2, [r0] ; __MergedGlobals
- 00007eae mov r0, r4
- 00007eb0 blx r2
- 00007eb2 mov r0, r4
- 00007eb4 blx imp___symbolstub1__object_getClass
- 00007eb8 movw r1, #0xee
- 00007ebc movt r1, #0x0
- 00007ec0 add r1, pc ; "_qqUser", argument #2 for method imp___symbolstub1__class_getInstanceVariable
- 00007ec2 blx imp___symbolstub1__class_getInstanceVariable
- 00007ec6 blx imp___symbolstub1__ivar_getOffset
- 00007eca movw r1, #0x15a
- 00007ece movs r2, #0xa
- 00007ed0 movt r1, #0x0
- 00007ed4 ldr r4, [r4, r0]
- 00007ed6 add r1, pc ; @selector(setMVipLevel:)
- 00007ed8 ldr r1, [r1] ; @selector(setMVipLevel:), argument #2 for method imp___symbolstub1__objc_msgSend
- 00007eda mov r0, r4 ; argument #1 for method imp___symbolstub1__objc_msgSend
- 00007edc blx imp___symbolstub1__objc_msgSend
- 00007ee0 movw r0, #0x14a
- 00007ee4 movs r2, #0x1
- 00007ee6 movt r0, #0x0
- 00007eea add r0, pc ; @selector(setMVip:)
- 00007eec ldr r1, [r0] ; @selector(setMVip:)
- 00007eee mov r0, r4
- 00007ef0 pop.w {r4, r7, lr}
- 00007ef4 b.w _objc_msgSend$shim
复制代码 实现代码:
- @interface QQUser{
- BOOL mVip;
- int mVipLevel;
- }
- @property int mVipLevel;
- @property BOOL mVip;
- @end
- %hook UserSession
- - (void)onLoginSuccess{
- %orig;
- QQUser *user = MSHookIvar<QQUser *>(self, "_qqUser");
- user.mVipLevel = 10;
- user.mVip = YES;
- }
- %end
复制代码
|
|