Commit Graph

93 Commits

Author SHA1 Message Date
Captain Throwback 92cbed418e Start service daemon in late_start mode (#57)
1. Starting daemon during post-fs-data can cause Play Integrity detection
   for devices without the PlayIntegrityFix module.
2. Starting LSPosed service daemon in post-fs-data mode is redundant on
   many devices
2024-10-08 03:05:03 +02:00
JingMatrix bb869eac2d Fix implementation of UnhookPLT
Currently, inline_unhooker is not used in the code.
We still fix the logic to avoid confusion.

There is no feasible way to determinate if the parameter original is a
valid function pointer or a `const char` pointer.
We suppose it as a char pointer in the first step.
2024-09-23 15:58:40 +02:00
JingMatrix 534e3930ae Use PLT hook from Zygisk API(v4) 2024-09-23 11:10:37 +02:00
JingMatrix 4d8e01176f Remove Riru support
The repository RikkaApps/Riru is archived since Jan 8, 2024, which
recommends Zygisk as its alternative.
2024-09-23 11:10:25 +02:00
JingMatrix ea2e1c8518 Update to Zygisk API v4
Skip checking magisk version on KernelSU or APatch
Close #44 as completed
2024-09-23 11:10:03 +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 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 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 16c09cefce Fix LSPosed-Bridge log TAG 2024-08-31 02:43:25 +02:00
JingMatrix f8409ad34b Open parasitic manager through WebUI
Open the parasitic manager using WebUI of KernelSU / APtach.
In the future the web page could become an alternative manager,
without parasitic manager at all.

See https://github.com/mywalkb/LSPosed_mod/issues/65 for details.

Co-authored-by: mywalk <66966897+mywalkb@users.noreply.github.com>
2024-08-31 02:43:25 +02:00
5ec1cff 201af3f165 use Theme_DeviceDefault_Settings 2024-08-31 02:43:25 +02:00
5ec1cff 571655dc0a support lower versions and fix activityInfo pollution 2024-08-31 02:43:25 +02:00
5ec1cff 8c0fb4f5eb temporary fix for A14 QPR3 2024-08-31 02:43:25 +02:00
5ec1cff 41eb1c63ad new parasitic manager 2024-08-31 02:43:25 +02:00
5ec1cff 44570c5ed0 use shared memory 2024-08-31 02:43:24 +02:00
5ec1cff c5d7b32cc0 ignore binder transactions flooding 2024-08-31 02:43:08 +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 bdba029fe9 Update repo info 2024-07-27 10:40:27 +02:00
JingMatrix 4666b13013 Annonce support for Android 15 Beta 4 2024-07-24 01:41:02 +02:00
JingMatrix 17625a04d5 Fix CMake syntax error
Update cmake version
2024-07-24 01:23:05 +02:00
JingMatrix 2e0de88eca Apply patch da1daf of mywalkb/LSPosed_mod
From Android 14 QPR3 and forward, the classloader of injected app (com.android.shell)
does not contain the apk manager, so in hook getClassLoader there is a new check when
it got a negative response the apk manager is injected in classloader, so parasitic
manager can start correctly.

Co-authored-by: mywalk <66966897+mywalkb@users.noreply.github.com>
2024-07-24 01:22:43 +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
vvb2060 df74d83eb0 set mount ns propagation to slave 2024-01-07 13:23:32 +08: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
rawer886 50004a55cb
Restart the device in the flash LSPosed with the root (#2812) 2023-10-13 12:02:53 +08:00
Howard Wu 9a8c18648f
Fix rerunApk (#2809) 2023-10-11 11:56:52 +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
Howard Wu 35dfd650fe
Move manager APK to module path (#2787) 2023-10-07 22:37:58 +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 134cd71fa0
Wrap whole onTransact (#2740) 2023-09-03 17:18:48 +00:00
Nullptr b9d282cdfd
Refine service & Add flash ksu script (#2714) 2023-08-28 11:52:18 +00:00
Howard Wu 0229e294d0
buildDir deprecated, use layout.buildDirectory instead (#2697)
gradle/gradle#20210
gradle/gradle#24820
2023-08-19 12:27:55 +08:00
Howard Wu 1bb7a340ba
[skip ci] Gradle task: reboot using power svc (#2692) 2023-08-17 16:57:14 +08:00
LoveSy 7fe84388e4 Upgrade gradle 2023-07-10 21:56:07 +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 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
LoveSy 57c1263ac4
Fix dex2oat build 2023-04-16 01:05:08 +08:00
LoveSy b277416c1d
Upgrade AGP 2023-04-15 23:01:08 +08:00
LoveSy f887d0116c
Upgrade gradle (#2487) 2023-04-12 16:46:09 +00:00
LoveSy 5eaec4596a
Refine zygisk api 2023-04-01 20:47:07 +08:00
LoveSy cf0e552715 Upgrade deps 2023-04-01 18:15:15 +08:00
LoveSy 7087c6f752
Support Android 14 DP2 (#2434)
close #2433 

But the notification cannot send broadcast now.
2023-03-09 12:28:34 +08:00
Howard Wu 22b3e95e5d
Require Riru 26.1.7+ (#2430)
Co-authored-by: 南宫雪珊 <vvb2060@gmail.com>
2023-03-09 02:41:01 +08:00
LoveSy b069da0323 Refine gradle scripts 2023-02-26 16:48:49 +08:00
LoveSy d671dc535e enable configuration cache 2023-02-26 16:48:49 +08:00
LoveSy 54483ab89b Implement invokeOriginalConstructor 2023-02-26 16:48:49 +08:00