Commit Graph

300 Commits

Author SHA1 Message Date
LoveSy c5e1a544bf
Update ApplicationInfo if it was system_server cached (#2805) 2023-10-11 11:10:18 +08:00
LoveSy c423c6e705
Add tag `LSPosedContext` to module log (#2803) 2023-10-11 09:08:36 +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
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
LoveSy 888a7dbeb6
Upgrade cxx (#2780) 2023-10-05 01:06:57 +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
XposedBot 37b38d8f1d
[translation] Update translation from Crowdin (#2720)
Co-authored-by: LoveSy <shana@zju.edu.cn>
Co-authored-by: Wang Han <wanghan1995315@gmail.com>
2023-08-29 11:49:27 +00: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 0229e294d0
buildDir deprecated, use layout.buildDirectory instead (#2697)
gradle/gradle#20210
gradle/gradle#24820
2023-08-19 12:27:55 +08: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
Howard Wu 7bfdfaa3b9
Remove app res dir from daemon build script (#2677) 2023-08-10 10:28:45 +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
XposedBot cc6ca4f88e
[translation] Update translation from Crowdin (#2629) 2023-07-15 09:49:05 +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 4b75c8af79
Revert "Use source dependencies instead of mavenLocal (#2445)" (#2586)
This reverts commit 03d2cea093
2023-06-28 04:24:46 +00: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
XposedBot 4102707fa8
[translation] Update translation from Crowdin (#2538) 2023-05-15 09:32:44 +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 b277416c1d
Upgrade AGP 2023-04-15 23:01:08 +08:00
LoveSy f887d0116c
Upgrade gradle (#2487) 2023-04-12 16:46:09 +00:00
XposedBot 81edbdc117
[translation] Update translation from Crowdin (#2488) 2023-04-13 00:36:05 +08: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
XposedBot 40e65fb43c
[translation] Update translation from Crowdin (#2451) 2023-03-22 20:00:03 +08:00
LoveSy 03d2cea093
Use source dependencies instead of mavenLocal (#2445) 2023-03-21 11:45:26 +08:00
XposedBot 8584aec718
[translation] Update translation from Crowdin (#2438) 2023-03-14 10:05:03 +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
南宫雪珊 9dfa88fa24
Initially trigger an event (#2402) 2023-02-27 16:22:40 +08:00
LoveSy 6751b7350f
Check module configuration (#2403)
Co-authored-by: vvb2060 <vvb2060@gmail.com>
2023-02-27 11:43:37 +08:00
Howard Wu c7f39e0e5d
Cleanup (#2404) 2023-02-26 17:23:09 +00:00
LoveSy d7c7069114 No metadata required for modern modules 2023-02-26 16:48:49 +08:00
LoveSy b069da0323 Refine gradle scripts 2023-02-26 16:48:49 +08:00
LoveSy 559f2860dd Fix native method registration 2023-02-26 16:48:49 +08:00
LoveSy d671dc535e enable configuration cache 2023-02-26 16:48:49 +08:00
LoveSy f19950adda Notify module if request scope fails to send notification 2023-02-26 16:48:49 +08:00
Nullptr 295b0ee0ce Change xposed_init -> java_init.list, add xposedtargetversion 2023-02-26 16:48:49 +08:00
Nullptr 7d2c599e96 Implement block scope request 2023-02-26 16:48:49 +08:00
LoveSy 73a98d6b9d Add block scope request to configManager 2023-02-26 16:48:49 +08:00
LoveSy 403791a25e Only send binder to non-legacy module 2023-02-26 16:48:49 +08:00
LoveSy 3209433766 Use gradle dependencies 2023-02-26 16:48:49 +08:00
Nullptr 53fec857a0 Clear uid set on registerUidObserver 2023-02-26 16:48:49 +08:00
LoveSy ae5f8a70ae Refine codes 2023-02-26 16:48:49 +08:00
LoveSy 4768d6cba4 Fix files context 2023-02-26 16:48:49 +08:00
LoveSy 4c3f8d95db Correct module remote file implementation 2023-02-26 16:48:49 +08:00
LoveSy d429e51900 Support list files 2023-02-26 16:48:49 +08:00
LoveSy 3db7dba439 change usingContext -> legacy 2023-02-26 16:48:49 +08:00
Nullptr 516f9e35db Add getFrameworkPrivilege and featuredMethod 2023-02-26 16:48:49 +08:00
Nullptr ad463ac1e0 Fix notification 2023-02-26 16:48:49 +08:00
Nullptr b83c0f4169 Fix module service not constructed 2023-02-26 16:48:49 +08:00
LoveSy 9e360ea07e Simplify never ask 2023-02-26 16:48:49 +08:00
LoveSy 89d255d18a Implement scope interfaces 2023-02-26 16:48:49 +08:00
LoveSy 9abf3f2b16 More implementation 2023-02-26 16:48:49 +08:00
LoveSy 87db036fdf Implement RemotePreferences edit 2023-02-26 16:48:49 +08:00
Nullptr d9b3263077 Refine get version interface 2023-02-26 16:48:49 +08:00
LoveSy 55f1860e71 Fix 2023-02-26 16:48:49 +08:00
LoveSy ffc20e2e72 Add more module service interfaces 2023-02-26 16:48:49 +08:00
LoveSy acaf40ca44 Service for each module 2023-02-26 16:48:49 +08:00
Nullptr 89f80098bb Move service interface 2023-02-26 16:48:49 +08:00
Nullptr ed3612570c Fix getModuleApkPath 2023-02-26 16:48:49 +08:00
Nullptr fb0ceca588 Implement module service 2023-02-26 16:48:49 +08:00
Nullptr d29a3bf16e Fix system_server module load 2023-02-26 16:48:49 +08:00
Nullptr 050438e31f Make IRemotePreferenceCallback internal 2023-02-26 16:48:49 +08:00
Nullptr 4137282af9 Implement RemotePreference on hookee side 2023-02-26 16:48:49 +08:00
LoveSy 14f31b604a Load module context 2023-02-26 16:48:49 +08:00
LoveSy a2be0bd030 Load entries from META-INF/xposed 2023-02-26 16:48:49 +08:00
LoveSy a01afb3a6c Additional application info for modules 2023-02-26 16:48:49 +08:00
Howard Wu 9b1907adfc
Annotation Nullable (#2394) 2023-02-24 11:31:27 +08:00
南宫雪珊 3d11c2f0f7
Make dex2oat wrapper more compatible (#2372) 2023-02-19 21:24:54 +08:00
南宫雪珊 e7c36afeb0
Fix duplicate broadcasts (#2373) 2023-02-08 06:42:13 +08:00
LoveSy ebf5bba4d8
Fix notification on samsung (#2356)
```java
try {
    this.mSystemUIContext = context.createPackageContext(AudioConstants.SYSTEMUI_PACKAGE_NAME, 0);
} catch (PackageManager.NameNotFoundException e) {
} catch (SecurityException e2) {
}
```
2023-01-24 18:26:52 +00:00
LibXZR 5ea3db130c
Skip new launch when the previous one is still pending (#2347)
Fixes #2346

Co-authored-by: LoveSy <shana@zju.edu.cn>
2023-01-19 02:03:35 +08:00
Nullptr 7826b68645
Fix webview permission (#2334)
#2328
2023-01-16 12:47:57 +08:00
XposedBot 4277622fac
[translation] Update translation from Crowdin (#2322) 2023-01-15 09:38:17 +00:00
Nullptr 0969a25816
Fix dex2oat fallback (#2320) 2023-01-15 06:22:49 +00:00
XposedBot 583a5a541d
[translation] Update translation from Crowdin (#2290) 2022-12-09 19:35:33 +00:00
XposedBot 2294fc8c34
[translation] Update translation from Crowdin (#2281) 2022-12-06 11:07:47 +08:00
南宫雪珊 86d4722f80
Set opPkg to settings for android 9- (#2277) 2022-12-05 22:21:50 +08:00
vvb2060 26dd523fa0 Local get launch intent 2022-12-05 01:05:18 +08:00
vvb2060 ff35b9dc11 Fix system warning 2022-12-05 01:05:18 +08:00