Commit Graph

49 Commits

Author SHA1 Message Date
Caner Karaca 9222db4fa7 Update dependencies (#16)
Update for mainswitchbar from 1.0.2 to 1.1.0 should be ignored in the future.

Co-authored-by: JingMatrix <jingmatrix@gmail.com>
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 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 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
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 56a058bd27 Turn on EXPORT_COMPILE_COMMANDS
To make `clangd` work properly, one may need to make symbolic links

```
cd daemon
ln -sf $PWD/build/tools/debug/arm64-v8a/compile_commands.json build
```
2024-07-24 01:23:05 +02:00
JingMatrix ecaf1e53eb Update external
fix fmt build
2024-07-24 01:23:05 +02:00
Howard Wu bb8b8bfab5
Update lsplant (#2806) 2023-10-11 07:34:43 +00:00
Howard Wu 254a8adb27
Officially announce Android 14 support (#2801)
Co-authored-by: LoveSy <shana@zju.edu.cn>
2023-10-10 17:06:21 +00:00
LoveSy 15e480132a
Fix AdjustThreadVisibilityCounter inline (#2799) 2023-10-10 11:57:43 +08:00
LoveSy d487932696
Fix class verification of hooker crash for sdk 34 (#2797) 2023-10-10 10:01:20 +08:00
LoveSy 7fef809d01
Use phmap instead of absl (#2781) 2023-10-07 23:11:26 +08:00
LoveSy 888a7dbeb6
Upgrade cxx (#2780) 2023-10-05 01:06:57 +08:00
Js0n 2135685007
sync: submodule Dobby (#2660)
Fix native hook on arm paltforms
2023-08-03 20:01:08 +08:00
LoveSy 7a45723eda Remove setTrust race workaround 2023-07-01 23:49:10 +08:00
LoveSy 40845b3f74 Fix race by lock-free backup implementation 2023-06-25 17:34:11 +08:00
LoveSy b2692e6a60
Upgrade AGP (#2515) 2023-05-02 11:55:52 +08:00
LoveSy 013428370f
Upgrade deps (#2324) 2023-01-15 10:35:10 +00:00
LoveSy 0dab3f687f
Fix 32bit symbol (#2288) 2022-12-07 01:55:22 +00:00
LoveSy 0d5b6af524
Update deps (#2264) 2022-12-02 15:48:53 +00:00
LoveSy fd1c51e027
Use latest tag for version name (#2251) 2022-11-29 22:05:22 +08:00
LoveSy 4535057e07
Update deps (#2239) 2022-11-19 17:20:34 +00:00
LoveSy cd6e947397
Update submodules (#2229) 2022-11-14 17:25:03 +08:00
LoveSy 7a544a4aaa
Fix hooking proxy method (#2208) 2022-11-01 14:43:30 -04:00
LoveSy abe143e9cc
Fix hook/deoptimize static methods failed on some Andorid 13 devices (#2198) 2022-10-29 18:30:56 +08:00
LoveSy 82bc5cab0d
Update deps (#2170) 2022-10-13 16:54:25 +00:00
LoveSy 65136dc5ff
Update AGP and LSPlant (#2136) 2022-09-19 07:59:03 +00:00
LoveSy 4ffcb36a95
Preliminary support for Android 14 (#2110) 2022-09-13 16:52:11 +00:00
LoveSy 4e83cfa4d3
Fix deoptmize static methods (#2109) 2022-09-13 18:10:53 +08:00
LoveSy ae62c1700b
Update deps (#2025)
Fix #2022
2022-07-05 14:01:28 +00:00
LoveSy 666e8780c7
Update deps (#2016) 2022-06-30 16:43:40 +08:00
LoveSy 307b88f1d6
Use `absl::flat_hash_map` instead (#2001) 2022-06-29 02:21:39 +08:00
LoveSy 22137c266e
Update deps (#2002) 2022-06-22 14:49:42 +00:00
LoveSy f3055202da
Disable Dobby SymbolResolver (#1976) 2022-06-06 17:34:16 +08:00
南宫雪珊 b392f331c8
Replace ParceledListSlice with ParcelableListSlice (#1936) 2022-05-14 23:06:18 +08:00
LoveSy dbc350a75e
Fix hooking internal used methods (#1900) 2022-04-28 11:38:10 +08:00
LoveSy 7d5778a01c
Update elf util & lsplant to support A13B1 arm (#1894) 2022-04-27 03:29:32 +00:00
LoveSy 177c2cd0c4
Fix hook may not work on debuggable runtime (#1892)
Co-authored-by: Wang Han <wanghan1995315@gmail.com>
2022-04-27 06:21:47 +08:00
双草酸酯 7b937c3347
Use fmtlib to print log (#1854)
(release zip size + ~50k)
2022-04-16 18:20:11 +08:00
LoveSy b5aff15919
Skip duplicate scopes for module process (#1845)
Fix #1844
2022-04-14 16:51:24 +08:00
LoveSy a884c1b2ba
Support attach debugger to hooked process (#1807) 2022-04-04 12:58:20 +08:00
LoveSy 6afa054b1c
Update submodules to reduce binary size (#1798) 2022-03-30 08:23:01 +08:00
LoveSy 57c1b8b904
Use ccache for all native modules (#1787) 2022-03-23 19:16:19 +08:00
LoveSy 4564bf2091
Better handle native method (#1778) 2022-03-21 07:17:14 +08:00
LoveSy ac704e5704
Fix make class inheritable (#1777) 2022-03-21 02:29:25 +08:00
LoveSy 4f7e8970ca
Workaround for multiple calls to the same unhook (#1760) 2022-03-15 12:28:54 +00:00
LoveSy 0bf0948e9a
Refactor `core` to use LSPlant as the ART hook framework (#1756) 2022-03-15 07:51:30 +08:00