Commit Graph

498 Commits

Author SHA1 Message Date
LoveSy 7b4c10da07 Dont expose loaded param impl 2023-02-26 16:48:49 +08:00
LoveSy 265d8e7e76 Refine XposedResources 2023-02-26 16:48:49 +08:00
LoveSy f853a81d62 More info for XposedModule constructor 2023-02-26 16:48:49 +08:00
LoveSy 7a5f7181a8 Return correct app data dir from zygote params 2023-02-26 16:48:49 +08:00
Nullptr fb0ceca588 Implement module service 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 39178b1dad Refine XposedResources 2023-02-26 16:48:49 +08:00
LoveSy a922ae9e6c Store apk path 2023-02-26 16:48:49 +08:00
LoveSy 18bedd4fbb Allow get resource 2023-02-26 16:48:49 +08:00
Nullptr 4896974873 Fix a typo 2023-02-26 16:48:49 +08:00
LoveSy 3cc44464d6 Throw AbstractMethodError instead 2023-02-26 16:48:49 +08:00
LoveSy 3a2eef1dbb Allow some interfaces 2023-02-26 16:48:49 +08:00
LoveSy d9f3ac1bad Allow nested xposedcontextwrapper 2023-02-26 16:48:49 +08:00
LoveSy 31674f589e Implement callback 2023-02-26 16:48:49 +08:00
LoveSy f68994f60a Implement xposed module context 2023-02-26 16:48:49 +08:00
LoveSy 14f31b604a Load module context 2023-02-26 16:48:49 +08:00
南宫雪珊 10804dfa7f
Clean code (#2335) 2023-01-16 22:04:00 +08:00
vvb2060 323fb7a501 Delete signature verification log 2022-12-03 17:21:57 +08:00
LoveSy c5918f7886
Check backup nullptr (#2237) 2022-11-25 09:24:35 +08:00
LoveSy 2ba0d5a714
Init resources hook when call hookSystemWideLayout (#2210)
Fix #2209
2022-11-03 17:32:46 +08:00
LoveSy f29c797200
Fix UB (#2020) 2022-07-04 15:12:55 +08: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
南宫雪珊 f69de757aa
Avoid copy array (#1914) 2022-05-05 20:54:48 +08:00
LoveSy d54eddbb25
Fix library search path on Android 9- (#1913) 2022-05-04 11:07:06 +08:00
南宫雪珊 c63fb7af37
Use native containers (#1910)
* Pack parameters

* Use native containers

Co-authored-by: LoveSy <shana@zju.edu.cn>
2022-05-03 20:35:45 +08:00
LoveSy 7aa27b8386
Fix set trusted (#1899) 2022-04-28 11:56:59 +08:00
LoveSy 177c2cd0c4
Fix hook may not work on debuggable runtime (#1892)
Co-authored-by: Wang Han <wanghan1995315@gmail.com>
2022-04-27 06:21:47 +08:00
LoveSy 85a05bbbd1
Avoid creating the LoadedApk from ourselves (#1852)
Fix #1843
2022-04-16 12:04:20 +08:00
LoveSy 81448c3958
`XC_LayoutInflated` should be comparable (#1851) 2022-04-16 04:29:05 +08:00
LoveSy b5aff15919
Skip duplicate scopes for module process (#1845)
Fix #1844
2022-04-14 16:51:24 +08:00
残页 9a022f4c17
Constructor of ActivityThread is private (#1833) 2022-04-10 16:18:05 +00:00
残页 9e3a3ac2b2
No need to implement Method.invoke ourselves (#1831) 2022-04-10 18:10:55 +08:00
LoveSy ec5f7847e9
Avoid using system methods in callback (#1830) 2022-04-10 08:15:52 +00:00
LoveSy 73f994ad2a
Fix array cast (#1783) 2022-03-21 14:39:13 +00:00
LoveSy ac704e5704
Fix make class inheritable (#1777) 2022-03-21 02:29:25 +08:00
LoveSy 416167a226
Refactor ApplicationService (#1775) 2022-03-20 08:44:17 +08:00
LoveSy 3049dbb29b
Use COW array set for loaded modules (#1771) 2022-03-18 11:47:04 +08:00
Nullptr e0de4ca6d7
Separate core into bridge and loader (#1766) 2022-03-17 19:12:01 +08:00
LoveSy 1790cbb608
Move loadedapk check forward (#1762) 2022-03-15 20:18:58 +08:00
LoveSy 159c65d6b2
Fix predefined deoptmization (#1759) 2022-03-15 15:59:57 +08:00
LoveSy 0bf0948e9a
Refactor `core` to use LSPlant as the ART hook framework (#1756) 2022-03-15 07:51:30 +08:00
LoveSy e15d39672a
Stripe pending hook (#1751) 2022-03-12 03:32:00 +08:00
残页 6fff15e968
Fix createResourcesForActivity hook handling (#1744) 2022-03-06 00:33:05 +08:00
南宫雪珊 97ef900125
Fix parasitic manager state restore on 8.1 (#1726) 2022-02-26 04:26:35 +08:00
LoveSy 2ba199d68c
Fix parasitic manager state restore on 8.1 (#1725) 2022-02-25 20:34:36 +08:00
LoveSy bc8b4c69a5
Fix parasitic manager hooker in 8.1 (#1724) 2022-02-25 12:17:57 +00:00
清茶 3fdc4e51c9
Fix cache deadlock in `XposedHelpers.java` (#1723) 2022-02-25 10:37:06 +00:00
清茶 583be18a7b
Fix performance traps of reflection members in `XposedHelpers.java` (#1719) 2022-02-25 08:01:28 +00:00
LoveSy f8198488aa
Fix resource hook on ZUI (#1691) 2022-02-14 12:02:24 +00:00
LoveSy ef1439a3f3 Fix `systemMain` being inlined in Android 13 2022-02-12 19:03:18 +08:00
LoveSy 77b69d52c2 Fallback classloader 2022-02-12 16:11:50 +08:00
LoveSy 8a655cc27e Fix toString NPE 2022-02-12 16:11:50 +08:00
LoveSy 3bcb2867b7
Use am from service manager (#1656) 2022-02-10 00:30:34 +08:00
LoveSy 45f0962d59 No need for signature prefix 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
LoveSy d6dfc3ac0e
Unshare `/data/resource-cache` (#1627)
to avoid overlay conflict
2022-02-04 17:09:54 +00:00
LoveSy 8a53627b43
Support HarmonyOS (#1594)
Fix #1592
2022-01-31 23:55:28 +08:00
LoveSy d59cc6b784
Enhance resources hook (#1524)
1. Fix missing `getFloat` overload for XResources
2. Fix missing `getFont` overload
3. Add `getValue` and `getValueForDensity` replacement for apps that
   obtain raw values
2022-01-10 20:51:56 +08:00
LoveSy af61504eeb
[app] Support dynamic colors (#1512) 2022-01-06 13:12:46 +00:00
Nullptr b9666c9d08
[core] Split daemon (#1503) 2021-12-30 09:21:44 +08:00
LoveSy e829bdd15d
Support adding icon after launcher changed (#1497) 2021-12-28 15:39:23 +00:00
LoveSy 75436aa90d
Lock screen unconditionally after switching user (#1482)
Fix #1480
2021-12-14 20:18:54 +08:00
LoveSy 5c6585871d
Generate new UUID for each startup (#1469) 2021-12-04 16:12:38 +00:00
Howard Wu 6a735d2064
Reload ModulesFragment after user removed or added (#1465)
Co-authored-by: LoveSy <shana@zju.edu.cn>
2021-12-04 21:44:40 +08:00
LoveSy daac47daa4
[core] Filter pkginfo from other users (#1462) 2021-11-30 15:16:35 +08:00
LoveSy fa2bd0cd7c
[core] Fix `removeModuleScopeWithoutCache` (#1461) 2021-11-30 15:16:34 +08:00
Howard Wu 8a684b8d0d
[core] Use EXTRA_REMOVED_FOR_ALL_USERS (#1460)
Android 12 fixes the behavior of ACTION_PACKAGE_FULLY_REMOVED, which is defined to function as a single-user level full uninstall. For full uninstallation by all users and apk deletion, use EXTRA_REMOVED_FOR_ALL_USERS.
e74e961711%5E%21/
2021-11-30 15:16:34 +08:00
LoveSy 86a20f7eef
[core] Workaround for lenovo (motorola) app clone (#1458)
Co-authored-by: 南宫雪珊 <vvb2060@gmail.com>
2021-11-29 15:55:56 +00:00
LoveSy 62667a4e05
[app] Only allow setting modules' scope when enabled (#1455) 2021-11-29 11:43:40 +00:00
Howard Wu ed4d230821
[core] Fix broadcast on Android 12 (#1456) 2021-11-29 19:08:03 +08:00
南宫雪珊 d83b25df41
[core] Fix getprop (#1435) 2021-11-23 17:24:04 +00:00
LoveSy 04b5a087b8
Dont revert when foreign key violates (#1419)
* Dont revert when foreign key violates

* 1

* 2

* 3

Co-authored-by: 南宫雪珊 <vvb2060@gmail.com>
2021-11-21 06:07:55 +00:00
LoveSy 4d9f060aa9
Prevent crash when xresources init failed (#1420) 2021-11-21 13:25:52 +08:00
Howard Wu 4bf7c04ca7
[app] Optimize module and app list loading (#1401)
Co-authored-by: LoveSy <shana@zju.edu.cn>
2021-11-20 16:47:35 +00:00
LoveSy b1ae31b151
Retain parasitic manager in recent tasks (#1417) 2021-11-19 19:32:17 +08:00
LoveSy 5656f1b330
Config db to use cascade delete (#1408)
Co-authored-by: Howard Wu <40033067+Howard20181@users.noreply.github.com>
2021-11-16 10:53:29 +00:00
南宫雪珊 b36eed6f31
Update gradle (#1409) 2021-11-16 05:04:04 +08:00
LoveSy b26c8bc59e
Init resources hook when call SystemWideReplace (#1400)
Fix #1399
2021-11-13 16:25:02 +08:00
LoveSy a04f2159ad
chattr -i for log directory (#1398)
Co-authored-by: Howard Wu <40033067+Howard20181@users.noreply.github.com>
2021-11-13 09:14:15 +08:00
LoveSy 8ebdcd55b4
[core] Move `setActivityController` to boot complete (#1387)
For oddo Android 9, if activityController is set too earilier, it
crashes system server. So move the set latter
2021-11-11 17:34:28 +08:00
LoveSy ccab9b8a1f
[core] Fix crash if binder descriptor is null (#1388) 2021-11-11 17:26:23 +08:00
RikkaW 984373e500 [core] createWithAdaptiveBitmap 2021-11-08 21:57:06 +08:00
Howard Wu 91426fc35c
Fix props reader (#1374)
* [core] Fix read props

Co-authored-by: LoveSy <shana@zju.edu.cn>
2021-11-08 16:58:37 +08:00
LoveSy 6475dc86a0
[core] Fix another leak 2021-11-08 16:33:34 +08:00
LoveSy 2065b84d73
[core] Fix leak 2021-11-08 08:26:19 +00:00
Howard Wu 0d08926eae
Switch the getprop context to `u:r:untrusted_app:s0` (#1371)
Co-authored-by: LoveSy <shana@zju.edu.cn>
Co-authored-by: 南宫雪珊 <26996262+vvb2060@users.noreply.github.com>
2021-11-08 07:25:30 +00:00
Howard Wu c0c1da28df
[core] Request create shortcut when using the secret code launch mana… (#1368)
* [core] Request create the shortcut when using the secret code launch manager and auto add shortcut is not disabled
2021-11-07 19:30:51 +00:00
Howard Wu 59b59ab69d
Fix #1369 (#1370) 2021-11-07 19:26:08 +00:00
Howard Wu 971bcc6946
Don't use shell context to getprop (#1362)
* [core] Getprop

* [app] Remove getprop
2021-11-08 02:25:01 +08:00
LoveSy be08e41c4e
Generate icon for backend (#1363) 2021-11-07 10:05:52 +00:00
Howard Wu 6291a848b8
Change the log file suffix to log (#1360) 2021-11-04 22:05:55 +08:00
LoveSy 663c7ec762
Check null (#1356) 2021-11-03 06:56:24 +00:00
LoveSy a160bdca9e
Enable resources hook if necessary (#1351) 2021-11-02 13:56:14 +00:00
LoveSy 5f14670bd9
Fix #1329 (#1338) 2021-10-29 10:41:08 +00:00
南宫雪珊 330747aca1
[core] Dump fd if log file deleted (#1337) 2021-10-29 10:13:08 +08:00
Wang Han cebd677c58 Revert "[core] Allow vdex speedup for InMemoryDex (#1260)"
* Useless.

This reverts commit 69900249c9.
2021-10-24 18:19:31 +08:00
Wang Han fecaa37b4c
[core] Don't consider deny list on Riru variant (#1322) 2021-10-23 07:50:02 +00:00
LoveSy 5eac73de77
[core] Show Riru or Zygisk based (#1311) 2021-10-18 16:18:37 +00:00