Tag

Hooking

0 views collected around this technical thread.

DaTaobao Tech
DaTaobao Tech
Nov 6, 2023 · Mobile Development

Analyzing and Fixing iOS 16 WKWebView Crash via Reverse Engineering and Hooking

By reverse‑engineering the iOS 16 WKWebView image‑analysis crash, the team identified a nil‑buffer bug in VisionKitCore’s CGImage creation, then mitigated it by runtime‑hooking VKCRemoveBackgroundResult’s createCGImage (returning NULL) and suppressing the image‑analysis gesture, reducing crashes from thousands to near zero.

HookingVisionKitWKWebView
0 likes · 29 min read
Analyzing and Fixing iOS 16 WKWebView Crash via Reverse Engineering and Hooking
Sohu Tech Products
Sohu Tech Products
May 31, 2023 · Mobile Development

Analysis of an Android Step Counter Manipulation App Using the Xposed Framework

This article provides a detailed technical analysis of an Android step‑counter simulator app that leverages the Xposed framework to hook system sensor APIs, modify step data, and achieve user‑defined step targets, while also explaining relevant sensor fundamentals and required permissions.

AndroidHookingMobile Security
0 likes · 7 min read
Analysis of an Android Step Counter Manipulation App Using the Xposed Framework
Watermelon Video Tech Team
Watermelon Video Tech Team
Aug 13, 2021 · Mobile Development

Raphael: An Open‑Source Native Memory Leak Detection Tool for Android

Raphael is a native memory‑leak detection tool developed by Bytedance's video team, open‑sourced to address Android native memory issues through a combination of inline/PLT hooking, efficient stack unwinding, and optimized caching, offering low‑overhead, version‑independent monitoring across diverse native allocation APIs.

AndroidHookingNative Memory Leak
0 likes · 24 min read
Raphael: An Open‑Source Native Memory Leak Detection Tool for Android
ByteDance Dali Intelligent Technology Team
ByteDance Dali Intelligent Technology Team
Jun 19, 2021 · Mobile Development

Hooking iOS UICollectionView Delegate with Method Swizzling and NSProxy: Challenges and Solutions

This article explains how to use AOP techniques such as Method Swizzle and NSProxy to hook UICollectionView and UIViewController delegate methods for precise event tracking, analyzes compatibility problems caused by multiple delegate proxies in large apps, and proposes three practical solutions to avoid crashes and maintain extensibility.

Delegate ProxyHookingMethod Swizzling
0 likes · 15 min read
Hooking iOS UICollectionView Delegate with Method Swizzling and NSProxy: Challenges and Solutions
ByteDance Terminal Technology
ByteDance Terminal Technology
May 28, 2021 · Mobile Development

Hooking iOS Delegates with Method Swizzling and Proxy Patterns: Challenges, Crash Analysis, and Compatibility Solutions

This article explores using AOP techniques such as Method Swizzle and NSProxy‑based delegate proxies to instrument iOS view controllers and collection view delegates, analyzes crashes caused by multiple setDelegate hooks—including interactions with RxCocoa—and proposes several practical solutions to ensure stable hooking in complex app environments.

AOPDelegate ProxyHooking
0 likes · 17 min read
Hooking iOS Delegates with Method Swizzling and Proxy Patterns: Challenges, Crash Analysis, and Compatibility Solutions
58 Tech
58 Tech
May 19, 2021 · Mobile Development

Hooking Swift Functions by Modifying the Virtual Table (VTable)

This article explains a novel Swift hooking technique that modifies the virtual function table (VTable) to replace method implementations, detailing Swift's runtime structures such as TypeContext, Metadata, OverrideTable, and providing concrete ARM64 assembly and Swift code examples.

HookingSwiftTypeContext
0 likes · 19 min read
Hooking Swift Functions by Modifying the Virtual Table (VTable)
Tencent Music Tech Team
Tencent Music Tech Team
Apr 23, 2021 · Mobile Development

Native Memory Analysis and Optimization in Android K歌 Application

The article details a thorough investigation of native‑memory crashes in the K歌 Android app, describing how memory usage was profiled, comparing three analysis tools, building a custom loli_profiler‑based hook to track malloc/free and bitmap allocations, exposing leaks, and outlining fixes and future optimization plans.

AndroidBitmapHooking
0 likes · 28 min read
Native Memory Analysis and Optimization in Android K歌 Application
Sohu Tech Products
Sohu Tech Products
Jun 3, 2020 · Mobile Development

Understanding Variadic Function Hooking and Stack Context Pollution with TrampolineHook

This article explains why adding parameter‑reading code to a variadic‑function hook causes a deterministic crash due to stack context pollution, analyzes the calling‑stack layout and register usage with ARM64 assembly, and presents a heap‑based context‑saving solution using TrampolineHook to safely intercept variadic methods on iOS.

HookingObjective-CTrampolineHook
0 likes · 12 min read
Understanding Variadic Function Hooking and Stack Context Pollution with TrampolineHook
vivo Internet Technology
vivo Internet Technology
Mar 25, 2020 · Mobile Development

Dynamic Multi-language Resource Replacement and WebView Crash Resolution in Android

To prevent translation errors and post‑release crashes in multilingual Android apps, the article describes a dynamic resource‑replacement system that loads external language packs via AssetManager, proxies Resources through reflection, integrates the proxy with ResourcesManager, and updates WebView assets, eliminating garbled text and long‑press crashes.

AndroidDynamic LocalizationHooking
0 likes · 31 min read
Dynamic Multi-language Resource Replacement and WebView Crash Resolution in Android
Tencent Cloud Developer
Tencent Cloud Developer
Sep 3, 2019 · Mobile Development

Improving iOS App Launch Speed with Binary Reordering and Page Fault Reduction

By generating an order file that places frequently executed code contiguously, the authors reduce iOS app cold‑launch page faults by about 15%, achieving roughly a 10% launch‑time improvement without code changes, using runtime hooking and static analysis to build the symbol ordering.

Binary ReorderingHookingPGO
0 likes · 13 min read
Improving iOS App Launch Speed with Binary Reordering and Page Fault Reduction
360 Tech Engineering
360 Tech Engineering
Sep 24, 2018 · Mobile Development

Adapting the Dual‑Instance Plugin Framework to Android P Activity Lifecycle Changes

This article explains how the highly invasive plugin framework "Dual Master" is adapted to Android P by analyzing the refactored Activity lifecycle handling, the EXECUTE_TRANSACTION message flow, and the necessary code modifications for activity placeholder replacement, restoration, and system provider hooking.

Activity LifecycleAndroidAndroid P
0 likes · 11 min read
Adapting the Dual‑Instance Plugin Framework to Android P Activity Lifecycle Changes
Tongcheng Travel Technology Center
Tongcheng Travel Technology Center
Jul 5, 2017 · Mobile Development

In‑Depth Analysis of Xposed Framework Initialization and Hook Mechanism on Android

This article provides a detailed technical walkthrough of how the Xposed framework replaces the Android Zygote process, initializes its runtime, registers services, and hooks methods by examining the main, initialize, startAll, and onVmCreated functions along with installation steps.

AndroidHookingMobile Development
0 likes · 6 min read
In‑Depth Analysis of Xposed Framework Initialization and Hook Mechanism on Android