XposedBridge | The Java part of the Xposed framework
kandi X-RAY | XposedBridge Summary
kandi X-RAY | XposedBridge Summary
The Java part of the Xposed framework.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Change the search widget
- Combines regex patterns into a single string .
- Combine decorations from source text into new job .
- Initialize a new SimpleLexer .
- Synchronize selection table
- This function is pretty pretty printing code .
- Creates a source decorator for the given options .
- Takes a regular expression and expands any whitespace and ranges in a string .
- Find the results of a search query .
- create new node
XposedBridge Key Features
XposedBridge Examples and Code Snippets
Community Discussions
Trending Discussions on XposedBridge
QUESTION
I wanted to hook getInstalledApplications and getInstalledPackages to monitor if the app use this method to get my appliactionlist.
My code:
ANSWER
Answered 2021-Mar-16 at 09:02Both code versions have one major problem:
Your hook can not work because you are trying to hook a method that does not exist: You are trying to hook the method getInstalledApplications()
but that method does not exist, only the method [getInstalledApplications(int)][1]
does exist and can be hooked.
You alerady notived that android.content.pm.PackageManager
is an abstract class and the method getInstalledApplications(int)
is abstract, too. As Xposed can not hook abstract Methods and Interfaces you have to specify the class that that actually implements the method getInstalledApplications(int)
.
The actual implementation of PackageManager is located in class android.app.ApplicationPackageManager as you already found out.
Therefore the correct hooking code is:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install XposedBridge
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page