Commit Graph

299 Commits

Author SHA1 Message Date
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
vvb2060 377c8af3c7 Add receivers log 2022-12-05 01:05:18 +08:00
XposedBot 99cb46606f
[translation] Update translation from Crowdin (#2268) 2022-12-04 02:30:14 +08:00
vvb2060 d1ea380898 Support config change 2022-12-03 17:21:57 +08:00
vvb2060 2aec14482b Add notification to open app 2022-12-03 17:21:57 +08:00
vvb2060 4669e3677a Do not hardcode service names 2022-12-03 17:21:57 +08:00
vvb2060 0a26993039 Stop seteuid to 1000
#1872
2022-12-03 17:21:57 +08:00
vvb2060 e8cce7a88e Update version check 2022-12-03 17:21:57 +08:00
vvb2060 323fb7a501 Delete signature verification log 2022-12-03 17:21:57 +08:00
Howard Wu 6b70b624e3
Set the dex2oat wrapper owner and group to `root:shell` (#2248) 2022-11-27 00:12:05 +08:00
Howard Wu 6ee21618a6
Fix CrashReportActivity theme (#2226) 2022-11-12 22:18:54 +08:00
XposedBot a0476c7beb
[translation] Update translation from Crowdin (#2220) 2022-11-11 12:48:31 +00:00
XposedBot 4665c75998
[translation] Update translation from Crowdin (#2201) 2022-10-31 20:11:18 +08:00
XposedBot 57c3b42a88
[translation] Update translation from Crowdin (#2194) 2022-10-26 09:43:47 +00:00
LoveSy 82bc5cab0d
Update deps (#2170) 2022-10-13 16:54:25 +00:00
Howard Wu 86fd75ab7a
Clear application profile data before perform dexOpt (#2141) 2022-09-26 10:01:26 +08:00
5ec1cff 135a7d69f8
Avoid calling `finishReceiver` for unordered broadcasts (#2139) 2022-09-25 16:07:55 +08:00
LoveSy 811d3e49c1
Refine codes (#2122) 2022-09-15 10:18:27 +08:00
XposedBot 85b54dc64f
[translation] Update translation from Crowdin (#2113) 2022-09-14 06:29:56 +00:00
LoveSy 8f8eb73a69
Fix broadcastIntentWithFeature on Android S with newer patch (#2111) 2022-09-14 10:52:52 +08:00
XposedBot ba3581a9c0
[translation] Update translation from Crowdin (#2106) 2022-09-12 11:25:04 +00:00
XposedBot bfdba4c7aa
[translation] Update translation from Crowdin (#2066) 2022-08-09 06:58:36 +00:00
LoveSy 1b3b838760
Fix broadcast on SDK 32 (#2065) 2022-08-08 13:45:58 +00:00
LoveSy 02f09247ae
Use striped so for debug build (#2047) 2022-07-25 00:33:00 +08: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 5ea6dffcbf
Replace corruption handler of DB (#1982) 2022-06-09 07:09:31 +00:00
Fankesyooni c10d4dd837
Fix: "cancelNotificationWithTag" method difference when API below 30 (#1975) 2022-06-06 08:28:07 +00:00
XposedBot 9d3f9cfdc7
[translation] Update translation from Crowdin (#1970) 2022-06-02 06:48:38 +00:00
南宫雪珊 cbd19d17a8
Revert "Fix resource hook on MediaTek" (#1954)
MTK has fixed this issue, for devices that have not been updated,
can use `resetprop ro.vendor.pref_scale_enable_cfg 0`
2022-05-19 09:08:12 +00:00
南宫雪珊 8febd8cc7a
Fix resource hook on MediaTek (#1951) 2022-05-19 04:57:35 +08:00
Andrew Gunnerson 793c5c955a
LSPManagerService: Change SELinux label of entire cache directory (#1933) (#1944)
With webview on Android 13 Beta (at least on Google Pixel devices),
webview expects to be able to read from a randomly generated temp directory:

    /data/user/0/com.android.shell/cache/.com.google.Chrome.XXXXXX (deleted)

Before this change, the root of the cache directory is labeled with
`shell_data_file` and `Chrome_ChildIOT` is not permitted read access to
the temp directory:

    05-12 10:59:48.728 13692 13692 W Chrome_ChildIOT: type=1400 audit(0.0:258): avc: denied { read } for path=2F646174612F757365722F302F636F6D2E616E64726F69642E7368656C6C2F63616368652F2E636F6D2E676F6F676C652E4368726F6D652E5965394D6433202864656C6574656429 dev="dm-47" ino=230834 scontext=u:r:isolated_app:s0:c512,c768 tcontext=u:object_r:shell_data_file:s0 tclass=file permissive=0
2022-05-16 06:57:27 +08:00
LoveSy e3b96ebb92
Update AGP (#1941) 2022-05-15 14:08:08 +08:00
南宫雪珊 b392f331c8
Replace ParceledListSlice with ParcelableListSlice (#1936) 2022-05-14 23:06:18 +08:00
南宫雪珊 2f0de5b7f3
Fix save log (#1932) 2022-05-11 09:38:39 +00:00
南宫雪珊 b36c170b8c
Fix prefs on other user (#1929) 2022-05-10 14:17:00 +00:00
XposedBot ffabc92423
[translation] Update translation from Crowdin (#1920) 2022-05-07 03:56:57 +00:00
LoveSy dbc350a75e
Fix hooking internal used methods (#1900) 2022-04-28 11:38:10 +08:00
LoveSy 109cdba60c
Fix module appid abnormal after soft reset (#1895) 2022-04-27 07:33:11 +00:00
Fankesyooni 59913258f9
Hide username in primary user's notification (#1889)
The notification prompt will not contain the current username when the primary user installs the Xposed Module
2022-04-25 21:50:27 +08:00
Howard Wu d81b44f8ee
Show the username that the module is installed to (#1887) 2022-04-23 16:05:35 +08:00
Fankesyooni a0dd9c0866
Fix the Xposed Module notification repeated push problem and the other problem (#1886)
* Fix the Xposed Module notification repeated push problem

* Fix a possible bug when Xposed Module uninstall the notification push again

* Fix after an multi-pie user install the Xposed Module the active notification repeat
2022-04-23 15:25:10 +08:00
Fankesyooni 44e15da227
Fix the notification push issue after Xposed Module installation or removed (#1882)
* Canceled the notification when Xposed Module removed

* Fix the packageName confusion notification push problem

* Ignore the addition of duplicate ids

* Add the packageName into notification tag

* Revise the notification id into auto-increment id

* Add the conflict ids templates web url

* Revise only the package name and userId are reserved for judging the uniqueness of the notification id

* Fix code style
2022-04-22 06:40:03 +00:00
XposedBot 60e37fe128
[translation] Update translation from Crowdin (#1879) 2022-04-21 11:26:09 +00:00
Nullptr dc6cd4b0fd
Fix incorrect mount point on Android 10 (#1870)
* Detect conditions when dex2oat wrapper doesn't work

* No enum

* Copy

* Update

* Update

* Fix dex2oat wrapper on Android 10

* Stupid typo

* Update dex2oat.cpp

Co-authored-by: LoveSy <shana@zju.edu.cn>
2022-04-21 01:40:48 +00:00
Ketal 5b8c4ab15e
fix:error obfuscate classes list (#1874)
android.content.res.XmlResourceParser
2022-04-20 05:36:18 +00:00
LoveSy faf99616b4
Use `ParceledListSlice` only for system classes (#1865) 2022-04-17 17:34:17 +00:00
双草酸酯 0fb6931ef1
fix crash when obfuscation disabled (#1863) 2022-04-17 11:38:30 +00:00
双草酸酯 a1a9cb4d1b
Obfuscate all classes (#1850)
* Obfuscate more classes

WIP DO NOT USE THIS BRANCH

* Fix resources hook

NOT TESTED

* done

* remode debug code

* use fmt

* obfuscate core & nativebridge

* BridgeService

* update proguard rules

Co-authored-by: 南宫雪珊 <vvb2060@gmail.com>
Co-authored-by: LoveSy <shana@zju.edu.cn>
2022-04-17 15:51:27 +08:00
XposedBot 8a74235b92
[translation] Update translation from Crowdin (#1853) 2022-04-16 09:18:03 +00:00
LoveSy b5aff15919
Skip duplicate scopes for module process (#1845)
Fix #1844
2022-04-14 16:51:24 +08:00
南宫雪珊 4fcf2308df
Check preload dex (#1834) 2022-04-11 19:48:11 +08:00
南宫雪珊 4cb9115fa5
Fix regen signature (#1829) 2022-04-10 23:37:27 +08:00
LoveSy 5a143c9855
Log LRU (#1822)
Co-authored-by: 残页 <31466456+canyie@users.noreply.github.com>
2022-04-09 18:56:52 +08:00
XposedBot d1c5283661
[translation] Update translation from Crowdin (#1823) 2022-04-09 10:40:21 +00:00
Nullptr 6085d64835
Further fix module prefs (#1819) 2022-04-07 16:37:31 +00:00
南宫雪珊 be1bbf7b9b
Fix module prefs (#1813) 2022-04-05 17:12:50 +00:00
南宫雪珊 be722b2e2e
Fix moduleClassNames (#1796) 2022-04-05 15:41:23 +00:00
Nullptr ee2c1a3320
Fallback if dex2oat wrapper crashes (#1810)
* Fallback if dex2oat wrapper crashes

* Update daemon/src/main/java/org/lsposed/lspd/service/Dex2OatService.java

Co-authored-by: 残页 <31466456+canyie@users.noreply.github.com>

* Update

Co-authored-by: 残页 <31466456+canyie@users.noreply.github.com>
2022-04-05 09:14:28 +08:00
LoveSy a884c1b2ba
Support attach debugger to hooked process (#1807) 2022-04-04 12:58:20 +08:00
Nullptr 3ca1478a3a
Optimize dex2oat wrapper (#1805) 2022-04-03 11:30:15 +08:00
Nullptr 2f9e0e07b0
Resolve dex2oat parameters for Android 10+ (#1803) 2022-04-02 13:13:22 +08:00
南宫雪珊 e9e65f70c4
Reduce miscPath permissions (#1795) 2022-03-26 05:51:23 +00:00
LoveSy 57c1b8b904
Use ccache for all native modules (#1787) 2022-03-23 19:16:19 +08:00
XposedBot d5b1df5bd5
[translation] Update translation from Crowdin (#1785)
* New translations strings.xml (Romanian)

* New translations strings.xml (Urdu (Pakistan))

* New translations strings.xml (Afrikaans)

* New translations strings.xml (Catalan)

* New translations strings.xml (Danish)

* New translations strings.xml (Finnish)

* New translations strings.xml (Hebrew)

* New translations strings.xml (Polish)

* New translations strings.xml (Kurdish)

* New translations strings.xml (Kurdish)
2022-03-23 10:16:53 +00:00
LoveSy 9344cf6c54
NDK 24 (#1780)
* NDK 24

* Use `ANDROID_ALLOW_UNDEFINED_SYMBOLS`
2022-03-21 17:43:32 +08:00
LoveSy 416167a226
Refactor ApplicationService (#1775) 2022-03-20 08:44:17 +08:00
LoveSy f0c04177d6
Log `LSPlant` (#1770) 2022-03-18 08:54:28 +08:00
LoveSy 6b368b041b
Move all serivces into a single dir (#1768) 2022-03-16 20:55:45 +00:00
XposedBot 42a5357d6a
[translation] Update translation from Crowdin (#1767) 2022-03-16 17:15:59 +00:00
LoveSy 6258435645
Refine gradle script (#1765) 2022-03-16 17:20:43 +08:00
LoveSy 0bf0948e9a
Refactor `core` to use LSPlant as the ART hook framework (#1756) 2022-03-15 07:51:30 +08:00
LoveSy 6f48c663db
Refactor some gradle (#1752) 2022-03-13 07:23:04 +08:00
LoveSy 4b9a4f8316
Ensure um is ready when updating cache (#1737) 2022-02-28 22:23:13 +08:00
XposedBot e1508a16f4
[translation] Update translation from Crowdin (#1709) 2022-02-20 15:00:56 +00:00
XposedBot 756e4370e2
[translation] Update translation from Crowdin (#1700) 2022-02-19 13:17:45 +08:00
XposedBot 90116ab1cd
[translation] Update translation from Crowdin (#1696) 2022-02-17 13:11:47 +00:00
LoveSy e17c39318d
Call `systemMain` after prepare (#1692) 2022-02-14 12:27:41 +00:00
LoveSy 808d941846
Fix icon creation on ZUI (#1690)
Fix #1687
2022-02-14 19:39:16 +08:00
南宫雪珊 a32d4fc0ab
Save boot kmsg (#1688) 2022-02-14 10:36:00 +00:00
南宫雪珊 a72f59d07a
Fix create modules dir (#1686) 2022-02-14 09:57:08 +00:00
LoveSy 36d1f8dba7
Parallize module cache and preload (#1681) 2022-02-14 16:54:24 +08:00
LoveSy 26f414ff03
Update dependencies (#1680) 2022-02-12 19:38:46 +00:00
LoveSy 5ab4c98fc5
Refine obfuscate (#1679) 2022-02-13 02:47:59 +08:00
LoveSy 306468afb4
Refine configuration change (#1672) 2022-02-11 23:34:36 +08:00
LoveSy e3a7256f01
Use S_V2 instead to check Tiramisu(#1667) 2022-02-11 01:58:55 +00:00
LoveSy b0d1e7a2bb
Support Android 13 DP1 (#1666) 2022-02-11 09:12:10 +08:00
双草酸酯 4e33363729
Fix #1652 (#1655) 2022-02-09 15:35:26 +00:00
kotori2 771bd77585 optimization 2022-02-08 23:34:43 +08:00
vvb2060 7e3d57353e show snackbar after toggling option 2022-02-08 23:34:43 +08:00
kotori2 16b7936303 disable dex obfuscate by default && show toast after toggling dex obfuscate option 2022-02-08 23:34:43 +08:00
kotori2 9e07750d0e properly close pfd 2022-02-08 23:34:43 +08:00
kotori2 cedb0d0f1d make compiler happy 2022-02-08 23:34:43 +08:00
kotori2 55469abc8d Fix dex loading while obfuscation is disabled 2022-02-08 23:34:43 +08:00
Stillhard 4ffea2a367 Fix proguard rules 2022-02-08 23:34:43 +08:00
LoveSy 68b98c2850 Update ConfigManager.java 2022-02-08 23:34:43 +08:00
kotori2 c63794d304 set initial value for dex obfuscate 2022-02-08 23:34:43 +08:00
kotori0 d3518d18d6 fix wrong signature 2022-02-08 23:34:43 +08:00
kotori0 2582eb3654 add option to disable dex obfuscation 2022-02-08 23:34:43 +08:00
LoveSy 67e3460d7a Get rid of config.cpp 2022-02-08 23:34:43 +08:00
LoveSy 45f0962d59 No need for signature prefix 2022-02-08 23:34:43 +08:00
kotori0 a854bb6a33 more java keywords 2022-02-08 23:34:43 +08:00