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
c1119266e4
Fix proguard rules
2024-08-31 02:43:25 +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
8e96b8de21
Replace axml by WindySha/ManifestEditor
2024-05-18 23:48:50 +02:00
JingMatrix
0a935413fc
Adjust proguard for Android R8
...
1. Use JDK 21
2. Update android plugins for JDK 21
3. Update gradle wrapper
The new R8 engine will change more class names than before, we thus
need to save those needed ones.
2024-05-18 23:48:43 +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
Howard Wu
a1305c8916
Update proguard-rules.pro ( #2691 )
...
Fix hook
Co-authored-by: Js0n <29531167+JasonKhew96@users.noreply.github.com>
2023-08-16 16:04:09 +00: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
LoveSy
40845b3f74
Fix race by lock-free backup implementation
2023-06-25 17:34:11 +08:00
Alexey
4d4160ef5f
Typo in `AfterHooker` class name ( #2529 )
...
a typo in the class name that caused afterHook to not work on the new
api
2023-05-12 09:21:07 +08:00
LoveSy
8cb547c3ed
[skip ci] Revert "Let AGP to strip native libs" ( #2498 )
...
Reverts LSPosed/LSPosed#2496
2023-04-17 09:16:29 +08:00
LoveSy
d8b7916ce0
Let AGP to strip native libs ( #2496 )
2023-04-16 14:10:12 +08:00