Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects, and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Developer articles
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
Lukas22041
PatchLib
Repository navigation
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
More
items
Attaching to the UI
Jump to bottom
Lukas04 edited this page
Oct 17, 2026
·
1 revision
PAGE TBD
Notes:
context.getData().putWeak()
Wiki pages
Pages
20
Loading
Home
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
After Hook
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Attaching to the UI
Loading
Before Hook
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Capabilities
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Disabling patches
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Handling super calls
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Hooks
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
How patching works
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Limitations
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Matching targets
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Non declared methods
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Patching with Kotlin
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Redirect Method Call
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Redirects
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Reflection
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Setting up the dependency
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Transient data
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Working with obfuscated code
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Your first patch
Uh oh!
There was an error while loading.
Please reload this page
.
Show 5 more pages…
Home
Introduction to Patchlib
Capabilities
How patching works
Setting up the dependency
Your first patch
Matching targets
ClassMatch
MethodMatch
FieldMatch
Reflection
Non-declared methods
Handling super calls
Transient data
Disabling patches
Limitations
Patch Types
Hooks
Before Hook
After Hook
Except Hook
Redirects
Redirect Method Call
Redirect Constructor Call
Redirect Field Read
Redirect Field Write
Working with obfuscated code
Example Patches
Attaching to the UI
Other utilities
Class Scanning
Patching with Kotlin
Developer Documentation
PatchLib Internals
Clone this wiki locally
You can’t perform that action at this time.