Skip to content

Commit

Permalink
Fix a typo in the code & README.
Browse files Browse the repository at this point in the history
  • Loading branch information
gauravssnl committed Feb 7, 2024
1 parent ecdf775 commit 7406682
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ For more details & updated logic, refer to the C/C++ hooks code present in the r
The below Java classes methods have been hooked to avoid root detection

1. java.io.File.exists()
2. android.content.pm.PackageManager.exec()
2. android.content.pm.PackageManager.getPackageInfo()
3. Runtime.exec()

For more details & updated logic, refer to the Kotlin/Java hooks code present in the repo.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ class MainModule(base: XposedInterface, param: ModuleLoadedParam) : XposedModule
@SuppressLint("PrivateApi")
private fun hookPackageManagerGetPackageInfo(classLoader: ClassLoader) {
val clazz = classLoader.loadClass("android.content.pm.PackageManager")
clazz.declaredMethods.filter { it.name == "exec" }.forEach{
clazz.declaredMethods.filter { it.name == "getPackageInfo" }.forEach{
hook(it, MyHooker::class.java)
}
log("Hooked PackageManagerGetPackageInfo")
Expand Down

0 comments on commit 7406682

Please sign in to comment.