Commit Graph

179 Commits

Author SHA1 Message Date
JingMatrix c0478f593e
Hook dex2oat functions to remove LSPosed traces (#152)
We use the env LD_PRELOAD to hook the execution of `dex2oat`, which can be directly set to be a file descriptor.
2025-01-08 07:19:18 +01:00
JingMatrix 2bc0f0c716 Refine SELinux rules for Xposed files (#149)
1. The SELinux context label `magisk_file` is widely used by Zygisk implementation modules. It is improper for LSPosed to abuse this label for its own files. We replace it by `xposed_file`.
2. A new rule added according to the SELinux logs, which is needed to write to the mangaer's SharedPreference.
3. `xposed_data` is a new SELinux context label for XSharedPreference files, it is not meant to provide MAC restricted access but to conform with Android's rule: https://developer.android.com/about/versions/pie/android-9.0-changes-28#per-app-selinux.
4. We add attribute `mlstrustedobject` to ignore the `Multi-Level and Multi-Category Security` enforced on Android.
2025-01-06 16:31:17 +01:00
JingMatrix 1339fc7d3c Add more options in the Select menu
Allow users to select all/none and automatically include new applications.
Close #93 as completed.

Co-authored-by: mywalk <66966897+mywalkb@users.noreply.github.com>
2024-12-04 21:35:05 +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 85b8fa17fb Set provider of FakeContext as a workaround
The ContentProvider of FakeContext is tricky, being null or not, it can
always break notification construction in some devices.
Close #79 as fixed.
2024-11-24 22:24:48 +01:00
JingMatrix 0a2f26fef9 Fix parcel recycling when no response from bridge
In case that there is no response from bridge, a second try of sending
binder will cause the (unowned) parcels to be recycled twice.
2024-11-24 00:42:15 +01:00
JingMatrix 1b98e55cfc Bypass flags checks for Notification constrctors
Close #98 #96 as fixed.
In the decomplied smali files, the method `load_overrides_systemui`
of the class `FeatureFlagsImpl` is called only if its field
`systemui_is_cached` is false.
2024-11-22 20:30:09 +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 ff04a68822
Fix CallBooleanMethodV hook of exec_transact (#71)
* Revert "use shared memory"

This reverts commit 44570c5ed0.

* Revert "fix manager not detected"

This reverts commit 9125b4b2f1.

Close #69 as fixed.
2024-10-17 18:46:01 +02:00
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 b317b48e9a Allow to de-activate log watchlog (#20)
Requested by #14, a switch is added to the release version.
Patch of msvamp rejected in original repository
mywalk added ui interface

Co-authored-by: mywalk <66966897+mywalkb@users.noreply.github.com>
2024-09-22 14:25:40 +02:00
5ec1cff 41eb1c63ad new parasitic manager 2024-08-31 02:43:25 +02:00
5ec1cff 9125b4b2f1 fix manager not detected 2024-08-31 02:43:25 +02:00
5ec1cff 44570c5ed0 use shared memory 2024-08-31 02:43:24 +02:00
5ec1cff 948fda8e0c
set DdmHandleAppName to package name for daemon (#2905) 2023-12-30 11:44:59 +08:00
5ec1cff 2f58f0785d
fix FakeContext getContentResolver NPE (#2904) 2023-12-30 03:31:54 +00:00
LoveSy ab0ee265b1
Fix oneui notification (#2902) 2023-12-30 00:35:21 +08:00
5ec1cff edecd5c253
fix daemon could not post notification after soft reboot (#2899) 2023-12-28 09:34:13 +00:00
rawer886 6f1268e7af
Fix dex2oat on 64bit only Android 10 (#2820) 2023-10-19 03:50:06 +00:00
LoveSy c5e1a544bf
Update ApplicationInfo if it was system_server cached (#2805) 2023-10-11 11:10:18 +08:00
Nullptr dd66cf2b07
Fix remote preferences listener not working on system_server (#2794) 2023-10-09 15:04:41 +08:00
Howard Wu 35dfd650fe
Move manager APK to module path (#2787) 2023-10-07 22:37:58 +08:00
rawer886 7674396eff
Fix the 'lspd' process name (#2793)
ActivityThread#systemMain -> ActivityThread#attach will also change the
process name to 'system_process', so that there are two 'system_process'
processes in the system.


0e40462e11/core/java/android/app/ActivityThread.java (5119)

![截屏2023-10-07 16 16
30](https://github.com/LSPosed/LSPosed/assets/8243689/ee137210-ffa3-497a-aca1-5c215dd9eaed)

Co-authored-by: jiayg <jiayg@yuanfudao.com>
2023-10-07 17:37:34 +08:00
浅秋枫影 bbcb9cad5c
fix magiskDb file does not exist (#2459) 2023-09-05 19:00:45 +08:00
Nullptr 8d73414d2d
Fix processName = null (#2739) 2023-09-03 17:05:22 +00:00
Howard Wu 0d7cfd3797
Fix `IContentProvider` for Android P and below (#2735)
Fix #2734
2023-09-01 21:54:50 +08:00
Howard Wu e637d47fbe
Clean up (#2718) 2023-08-29 16:06:45 +08:00
Nullptr 8d7e0bb4d8
Don't add self to scope for modern modules (#2717) 2023-08-29 11:21:26 +08:00
Nullptr b9d282cdfd
Refine service & Add flash ksu script (#2714) 2023-08-28 11:52:18 +00:00
Howard Wu 32e0daf1b4
Fix IActivityManager.bindService for Android 14 (#2700) 2023-08-19 18:10:18 +00:00
Howard Wu 0b27b23952
Always call finishReceiver after dispatched BOOT_COMPLETED (#2693)
For Android 14:
1. Receivers registered with `scheduleRegisteredReceiver` need to call `finishReceiver` when `assumeDelivered` is false to avoid blocking.
2. `LOCKED_BOOT_COMPLETED` is no longer `ordered` but `assumeDelivered` = false

Co-authored-by: 5ec1cff <56485584+5ec1cff@users.noreply.github.com>
2023-08-18 10:07:11 +08:00
Nullptr 06c26fbbb6 Fix remote prefs 2023-08-16 17:19:46 +08:00
Nullptr bee7938002
New hook API (#2644) 2023-07-22 04:52:38 +00:00
南宫雪珊 db8927ac01
Check notification channels only when necessary (#2635) 2023-07-18 06:45:49 +00:00
LoveSy bc381f4bb5
Directly launch manager from broadcast without ActivityController (#2625) 2023-07-15 01:07:24 +08:00
南宫雪珊 6986343d4d
close fd (#2616) 2023-07-10 14:57:01 +08:00
南宫雪珊 a2db3f8b4e
Keep lspd is euid 0 in debug build (#2615) 2023-07-10 05:42:36 +00:00
南宫雪珊 8792e62df8
Save crash to file (#2460) 2023-07-10 13:20:57 +08:00
5ec1cff 4190bfb9e6
Fix wrong type casting in updateRemotePreferences (#2614)
fix https://github.com/libxposed/example/issues/2
2023-07-09 16:34:02 +00:00
5ec1cff df4ce63f41
New permission manager workaround (#2598) 2023-07-03 07:47:22 +00: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 8b3e331c5e
Set db sync mode for Android P+ (#2597) 2023-07-03 13:31:34 +08:00
LoveSy a49bb6074e Predefine some sqlite modes 2023-06-26 00:03:39 +08:00
Howard Wu d972bf4bd6
Set EUID to 1000 to fix notification and get modules list for Flyme (#2549)
Add more logs for LSPNotificationManager
Seteuid to 1000

This reverts commit 0a26993039.
2023-05-25 13:13:35 +00:00
Wang Han 9f6369cc9e
Fix NPE due to null getModule() return value 2023-04-05 20:23:30 +08:00
浅秋枫影 677ee95b2b
fix android 13+ secret_code (#2455)
see
https://developer.android.google.cn/reference/android/content/Context#RECEIVER_NOT_EXPORTED

---------

Co-authored-by: LoveSy <shana@zju.edu.cn>
2023-03-23 03:10:42 +08:00
LoveSy af1223e4a5
Fix notification intent for Android 14 DP2 (#2435) 2023-03-09 09:30:53 +00:00
Howard Wu 17e1fe3172
Call system service to reboot (#2425) 2023-03-07 00:40:02 +08:00
Howard Wu 0709f10f59
Enable Xposed API call protection by default (#2423) 2023-03-06 13:18:38 +00:00
LoveSy 516a4aa99d
Fix module loading (#2418) 2023-03-05 20:37:21 +08:00