Commit Graph

118 Commits

Author SHA1 Message Date
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
南宫雪珊 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
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
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
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
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
LoveSy 5a143c9855
Log LRU (#1822)
Co-authored-by: 残页 <31466456+canyie@users.noreply.github.com>
2022-04-09 18:56:52 +08: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
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 416167a226
Refactor ApplicationService (#1775) 2022-03-20 08:44:17 +08:00
LoveSy 4b9a4f8316
Ensure um is ready when updating cache (#1737) 2022-02-28 22:23:13 +08: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 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 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
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 2582eb3654 add option to disable dex obfuscation 2022-02-08 23:34:43 +08:00
LoveSy 45f0962d59 No need for signature prefix 2022-02-08 23:34:43 +08:00
kotori0 9760e8d733 reduce memory allocation && properly close fds 2022-02-08 23:34:43 +08:00
kotori0 d3b0140230 Proxy transaction from system server service to application service 2022-02-08 23:34:43 +08:00
kotori0 d40191b711 use random class names 2022-02-08 23:34:43 +08:00
kotori0 4d5a4dcb27 [core] send LSP main dex through binder 2022-02-08 23:34:43 +08:00
kotori0 30d1c1b551 [core] Runtime dex obfuscation implementation 2022-02-08 23:34:43 +08:00
LoveSy dea13db843
run service.sh by busybox sh with `ASH_STANDALONE=1` (#1633) 2022-02-05 10:20:34 +00:00
LoveSy 9f20d8609f
Fix logical shortcut (#1632) 2022-02-05 09:37:03 +00:00
LoveSy bde9990c50
Fix module re-enable (#1631) 2022-02-05 16:42:41 +08:00
南宫雪珊 d8908d7ff8
Fix modules status in log (#1630) 2022-02-05 12:57:44 +08:00
LoveSy e70a9fddaa
Dynamically generate shortcut icon (#1628) 2022-02-04 17:55:42 +00:00
南宫雪珊 dab4879176
Save more modules info to log (#1625) 2022-02-03 20:43:38 +00:00
LoveSy 4bcf7718ad
Do not broadcast when module path not changed (#1622) 2022-02-03 17:53:48 +00:00
LoveSy 4955dcb542
Module list from manager should use match all flag (#1621) 2022-02-04 01:35:37 +08:00
LoveSy b81caac913
Collect modules in log and close fds (#1610) 2022-02-02 20:27:21 +08:00
LoveSy 74c55e9947
Fix log save (#1605) 2022-02-02 08:01:59 +00:00
LoveSy 1be8257252
Fix save log & repo (#1597) 2022-02-01 12:33:18 +08:00
LoveSy 9fd0a1156b
Fetch modules from all users (#1588) 2022-01-30 05:38:24 +00:00
LoveSy afb80064cf
JVM's GC sucks (#1584) 2022-01-30 12:35:42 +08:00
LoveSy 40aebb5703
Try to restart zygote if injection fails (#1582)
Max #retrial=1 by default
2022-01-29 19:24:38 +08:00
南宫雪珊 5209136174
Save tombstones and anr (#1579) 2022-01-29 07:26:13 +00:00
LoveSy 31e6246e6e
Better component name for shortcut (#1570)
Some launcher may not support __activity_dummy

Co-authored-by: 南宫雪珊 <vvb2060@gmail.com>
2022-01-28 14:05:00 +08:00
LoveSy 3dcbe46f88
Don't show on denylist when enforcement is off (#1563) 2022-01-26 16:07:11 +00:00
LoveSy 303def1344
Proper support RTL (#1562) 2022-01-26 11:50:47 +08:00
LoveSy 5ee5297fb6
[app] Fix back press behavior (#1552) 2022-01-24 18:33:58 +08:00
LoveSy d11c0f78a8
More MD3 designs (#1548)
Co-authored-by: RikkaW <rikka@shizuku.moe>
2022-01-22 22:40:30 +08:00
Nullptr 1f5dfbc1b9
[daemon] Only package needed resources (#1508)
* [skip ci] Fix reRunDaemon task

* [daemon] Only package needed resources

* Shrink resources
2021-12-30 17:31:34 +00:00
Nullptr b9666c9d08
[core] Split daemon (#1503) 2021-12-30 09:21:44 +08:00