JingMatrix
e7a5835d8f
Clear compilation warnings ( #121 )
...
* Fix warnings of CMake
To completely remove CMake version warnings, one may need to change the CMakeLists.txt file in the NDK installation.
* Add compiler flag -Wpedantic
Show compilation errors for the core subject, while ignore some of them
2024-12-09 22:15:18 +01:00
RichardLuo
e2070858c6
Remove log of throwable in XC_MethodReplacement.java ( #111 )
...
Developers can get the throwable using the [XC_MethodHook.MethodHookParam API](https://api.xposed.info/reference/de/robv/android/xposed/XC_MethodHook.MethodHookParam.html ).
Logging such throwable will leave unintended trace to the log buffer of the hooked application.
Note: this line of adding log was added in commit 7b638a706d
2024-12-03 14:27:16 +01:00
JingMatrix
466b3a4aee
Strip logs if verbose log is disabled ( #101 )
...
When the `Disable verbose log` option is toggled, more logs are stripped to avoid detections based on log entries.
2024-11-25 22:28:34 +01:00
JingMatrix
8fb6afb84e
Rename Apache class names to avoid conflicts
...
We add a gradle task to rename class names in the Apache library
2024-10-31 14:43:43 +01:00
JingMatrix
e55ecdf67c
Remove LSPlt submodule
...
Close #43 as completed.
2024-09-23 11:10:37 +02:00
JingMatrix
534e3930ae
Use PLT hook from Zygisk API(v4)
2024-09-23 11:10:37 +02:00
JingMatrix
e50a3f3c38
Fix Dobby hook fallback
...
Even if dladdr could not find function name for an address given by
art_symbol_resolver, we should still process inline hook.
Close #32 as completed, close #39 as merged
2024-09-22 14:26:01 +02:00
JingMatrix
6b2ce6c614
Add commons-lang as a subproject
...
Avoid using a local version of this apache module
2024-09-22 14:25:45 +02:00
JingMatrix
e28e194682
Indicate plt hook explicitly
...
The file magisk_loader.cpp is reformatted using clangd
2024-09-12 15:19:28 +02:00
JingMatrix
c2c4e5207f
Add external project xz-embedded
2024-09-12 11:31:07 +02:00
JingMatrix
c3782c9b3c
Adapt LSPlant upstream update
...
1. Remove the usage of `tstring` since it is removed in the upstream.
2. In commit aa98da5 , the return value of android::ResStringPool::setup
was mistaken.
3. We should also set a proper symbol resolver for native_api.
2024-09-12 11:31:07 +02:00
JingMatrix
d4e00eac40
Use LSPlt only for Android 15
...
For non-stripped `libart.so` ELFs, their plt tables are too small for
inline hook.
2024-09-12 11:31:01 +02:00
JingMatrix
1d7de6c78e
Avoid resolving `libart` symbols twice
...
LSPlt is only used to hook libart symbols.
The file `native_util.h` is reformatted by clangd.
Fallback to Dobby if LSPlt fails.
2024-09-12 11:30:15 +02:00
JingMatrix
75e300532e
Use Dobby for native_api
...
LSPlt might not be capable for general native_api hooks
Fix Dobby module repo Url
chiteroman has deleted his repo, so I should maintain my own fork.
2024-09-12 11:30:06 +02:00
JingMatrix
4c4a3f4fa1
[skip ci] Implement (Unhook/Hook)Function (LSPlt)
...
Co-authored-by: Stillhard <indofreeserver@yahoo.co.id>
2024-08-31 05:36:57 +02:00
JingMatrix
42cf1c2fd5
[skip ci] Replace submodule Dobby by LSPlt
...
It remains to implement HookFunction and UnhookFunction with LSPlt
2024-08-31 05:36:57 +02:00
5ec1cff
41eb1c63ad
new parasitic manager
2024-08-31 02:43:25 +02:00
5ec1cff
c5d7b32cc0
ignore binder transactions flooding
2024-08-31 02:43:08 +02:00
JingMatrix
779faeb5ee
Use a local version of org.apache.commons.lang3
...
Revert commit f3beb86
2024-08-27 01:51:03 +02:00
JingMatrix
9df0af313f
Update dobby dependency
...
Note that RS_SUCCESS = 0 is removed in the commit
f4643b8d14d7cc94516b446ca77d952d0b986d50
of https://github.com/jmpews/Dobby
The CMake option DOBBY_GENERATE_SHARED is removed, we use dobby_static
explicitly.
2024-08-27 01:50:17 +02:00
JingMatrix
b56313157e
Update LSPlant for Android 15
...
Convert ScopedLocalRef to its reference, otherwise we get error:
no viable conversion from 'ScopedLocalRef<_jobject *>' (aka 'lsplant::ScopedLocalRef<_jobject *>') to 'jobject' (aka '_jobject *')
2024-07-24 01:23:05 +02:00
JingMatrix
17625a04d5
Fix CMake syntax error
...
Update cmake version
2024-07-24 01:23:05 +02:00
JingMatrix
3146ca3605
Apply patch 92a04e3 of mywalkb/LSPosed_mod
...
Support for stripped library as libart.
We thus need to parse a new section `.gnu_debugdata`, compressed
with xz library, which is in elf header of the library.
After in memory decompression, new elf header is parsed to find
the section `.symtab`.
Co-authored-by: mywalk <66966897+mywalkb@users.noreply.github.com>
2024-07-24 01:22:58 +02:00
JingMatrix
f3beb8688f
Avoid depending on ClassUtils.getClass
...
Might cause class conflicts when target APP also uses ClassUtils.
Fix for LSPatch.
2024-01-07 13:06:28 +01:00
LoveSy
42190f1fb8
Remove symbol cache ( #2872 )
...
It only caches one symbol now, and thus is unnecessary to use cache
anymore
2023-12-06 11:54:15 +00:00
南宫雪珊
99579a0762
Remove synchronized ( #2829 )
2023-10-25 07:23:59 +00:00
LoveSy
cbee741d55
Fix some missing onPackageLoad on Android U because of inline ( #2802 )
2023-10-11 03:20:08 +00:00
LoveSy
159a3adcf8
Fix wrong NewXSharedPreference path because of inline ( #2804 )
2023-10-11 09:28:37 +08:00
Nullptr
dd66cf2b07
Fix remote preferences listener not working on system_server ( #2794 )
2023-10-09 15:04:41 +08:00
LoveSy
7fef809d01
Use phmap instead of absl ( #2781 )
2023-10-07 23:11:26 +08:00
LoveSy
50c343d152
No cache setOverrideTable ( #2789 )
2023-10-06 05:43:59 +00:00
LoveSy
5c85a20601
Fix Service initialization ( #2784 )
2023-10-04 18:41:45 +00:00
LoveSy
888a7dbeb6
Upgrade cxx ( #2780 )
2023-10-05 01:06:57 +08:00
Nullptr
d21891303d
Refactor LoadedApkGetCLHooker
2023-08-16 17:19:46 +08:00
Nullptr
06c26fbbb6
Fix remote prefs
2023-08-16 17:19:46 +08:00
Nullptr
fc1adeac55
Use modern hook API for internal hookers
2023-08-16 17:19:46 +08:00
Nullptr
e8e9105598
Update API + Partial separate hook bridge
2023-08-16 17:19:46 +08:00
LoveSy
afe74b536b
Only clear modules' LoadedApks rather than all ( #2647 )
2023-07-26 17:37:54 +00:00
Nullptr
bee7938002
New hook API ( #2644 )
2023-07-22 04:52:38 +00:00
anonymix007
645d7cfadf
Fix Native Hook for modern API modules ( #2632 )
2023-07-16 11:29:57 +08:00
LoveSy
a483aa3248
Remove FastNative stub ( #2631 )
...
It's now included in platform 34
2023-07-15 18:24:16 +08:00
LoveSy
1c586fe41f
Use mApkPath to get resource ( #2621 )
2023-07-12 14:58:11 +00:00
南宫雪珊
6986343d4d
close fd ( #2616 )
2023-07-10 14:57:01 +08:00
5ec1cff
1ffa4b5fe4
Fix LayoutInflater not working on LSPosedContext ( #2606 )
2023-07-06 09:47:34 +00:00
5ec1cff
66d8a3e1c6
LSPosedContext: ensure mResources is initialized when calling getTheme() ( #2603 )
2023-07-05 16:45:44 +00:00
南宫雪珊
40321d8f84
Skip secondary classloaders that do not include code ( #2601 )
...
rovo89/XposedBridge@2ca8d5e
Restore original xposed behavior
2023-07-04 03:30:55 +08:00
LoveSy
6f6c4b67d7
Use correct pkg name for system_server ( #2580 )
...
Allow hooking processes of android package besides system_server
system_server: uid=1000 pkg=system proc=system
ChooserActivity,ResolverActivity: uid=1000 pkg=android proc=android:ui,system:ui
Co-authored-by: 5ec1cff <ewtqyqyewtqyqy@gmail.com>
Co-authored-by: vvb2060 <vvb2060@gmail.com>
2023-07-03 05:40:12 +00:00
LoveSy
7a45723eda
Remove setTrust race workaround
2023-07-01 23:49:10 +08:00
LoveSy
617c6ab317
Fix NativeHook using modern API ( #2595 )
2023-07-01 23:47:38 +08:00
LoveSy
46558c6bc9
Try three times when setting classloader trusted
...
It may fail because of race, so try more as a temporary workaround
2023-06-25 22:03:34 +08:00