All Projects → codesourse → Bigbang

codesourse / Bigbang

Labels

Projects that are alternatives of or similar to Bigbang

React Universal Hooks
🎉 React Universal Hooks : just use****** everywhere (Functional or Class Component). Support React DevTools!
Stars: ✭ 148 (-23.71%)
Mutual labels:  hook
Easyrouter
A simple android framework used to route activity or action with url.
Stars: ✭ 164 (-15.46%)
Mutual labels:  hook
Dobby
a lightweight, multi-platform, multi-architecture hook framework.
Stars: ✭ 2,550 (+1214.43%)
Mutual labels:  hook
Logrus Logstash Hook
ℹ️ Logstash hook for logrus
Stars: ✭ 150 (-22.68%)
Mutual labels:  hook
Virtualxposed
A simple app to use Xposed without root, unlock the bootloader or modify system image, etc.
Stars: ✭ 12,648 (+6419.59%)
Mutual labels:  hook
Virtualapp
VirtualApp With Compatibility Of Android 10/11/12
Stars: ✭ 163 (-15.98%)
Mutual labels:  hook
Cargo Husky
Setup Git hooks automatically for cargo projects with 🐶
Stars: ✭ 141 (-27.32%)
Mutual labels:  hook
Fre
👻 Tiny Footprint Concurrent UI library for Fiber.
Stars: ✭ 3,195 (+1546.91%)
Mutual labels:  hook
Pinst
🍺 dev only postinstall hooks (package.json)
Stars: ✭ 162 (-16.49%)
Mutual labels:  hook
Useworker
⚛️ useWorker() - A React Hook for Blocking-Free Background Tasks
Stars: ✭ 2,233 (+1051.03%)
Mutual labels:  hook
Reshade
A generic post-processing injector for games and video software.
Stars: ✭ 2,285 (+1077.84%)
Mutual labels:  hook
React Intersection Observer
React implementation of the Intersection Observer API to tell you when an element enters or leaves the viewport.
Stars: ✭ 2,689 (+1286.08%)
Mutual labels:  hook
Pine
Dynamic java method hook framework on ART.
Stars: ✭ 171 (-11.86%)
Mutual labels:  hook
Pyhooked
Pure Python hotkey hook, with thanks to pyHook and pyhk
Stars: ✭ 150 (-22.68%)
Mutual labels:  hook
Headwolf
Scaffolding for agile development based on Xposed and Sekiro/基于Xposed和Sekiro搭建的敏捷开发的脚手架🎁献给懒汉们的小礼物😘只需四步!部署完一个Hook项目!👋👋新版本只需两步!!!
Stars: ✭ 182 (-6.19%)
Mutual labels:  hook
Detour Rs
A cross-platform detour library written in Rust
Stars: ✭ 146 (-24.74%)
Mutual labels:  hook
React Use Wizard
🧙 A React wizard (stepper) builder without the hassle, powered by hooks.
Stars: ✭ 162 (-16.49%)
Mutual labels:  hook
Ocmethodtrace
Trace Any Objective-C Method Calls
Stars: ✭ 194 (+0%)
Mutual labels:  hook
Ios Monitor Platform
📚 iOS 性能监控 SDK —— Wedjat(华狄特)开发过程的调研和整理
Stars: ✭ 2,316 (+1093.81%)
Mutual labels:  hook
React Nprogress
⌛️ A React primitive for building slim progress bars.
Stars: ✭ 173 (-10.82%)
Mutual labels:  hook

BigBang

性能损耗

状态        平均耗时       次数
不加之前 0.000213s 20000次
函数副本方法     0.000579s     20000次
存IMP指针方法    0.000587s     20000次

不同设备之间会存在差异

函数副本方法:

所有方法都加上 BigBang_前缀 副本方法IMP指针使用原方法的

存IMP指针方法

将IMP指针转成long 存入字典中

        //缓存
        _IMP imp = method_getImplementation(method);
        
        NSNumber *pNumber = [NSNumber numberWithLong:(long)imp];
        
        [impDict setObject:pNumber forKey:NSStringFromSelector(methodSel)];
        
        //使用
        NSNumber *pNumber = [impDict objectForKey:NSStringFromSelector(invocation.selector)];
        
        long *p = (long *)[pNumber longValue];
        
        _IMP imp = (_IMP)p;
        
        [invocation invokeUsingIMP:imp];

勾某个类的所有方法的,查看所有方法的执行顺序

使用方法

[BigBang hookClass:@"A_ManageViewController"];

常规使用:

放在只执行一次的函数里,防止多次勾一个函数 如

  • (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions

hook:

attribute((constructor)) static void entry()

放这里面

打日志的printf 改成 nslog

在终端那个应用里面就能看到日志

avatar  

微信

[BigBang hookClass:@"WCPayLogicMgr"];

[BigBang hookClass:@"WCRedEnvelopesLogicMgr"];

[BigBang hookClass:@"ContactUpdateHelper"];

[BigBang hookClass:@"WCRedEnvelopesNetworkHelper"];

[BigBang hookClass:@"WCRedEnvelopesReceiveHomeView"]

avatar

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].