Commit Graph

691 Commits

Author SHA1 Message Date
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 11be039203
Update dexbuilder (#1697) 2022-02-19 11:05:18 +00:00
LoveSy f8198488aa
Fix resource hook on ZUI (#1691) 2022-02-14 12:02:24 +00:00
LoveSy 142c308261
Do not depend on SDK_INT (#1689)
Co-authored-by: 残页 <31466456+canyie@users.noreply.github.com>
2022-02-14 11:46:45 +00:00
LoveSy ef1439a3f3 Fix `systemMain` being inlined in Android 13 2022-02-12 19:03:18 +08:00
kotori2 efa0fb4645 make compiler happy 2022-02-12 16:11:50 +08:00
残页 5b8e831cd0 Update HookMain.cpp 2022-02-12 16:11:50 +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 2b70e64e6d Fix ShouldUseInterpreterEntrypoint in Android 13 2022-02-12 16:11:50 +08:00
LoveSy dcd29b8751 Fix deopt method since Android 13 2022-02-12 16:11:50 +08:00
LoveSy 7a9b966ec7 Support preview sdk 2022-02-12 16:11:50 +08:00
LoveSy b0d1e7a2bb
Support Android 13 DP1 (#1666) 2022-02-11 09:12:10 +08:00
LoveSy 3bcb2867b7
Use am from service manager (#1656) 2022-02-10 00:30:34 +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 f5422786c0 move framework back to MODPATH 2022-02-08 23:34:43 +08:00
kotori0 581810401d Use PLOGE 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 a628528cd8 Fix memory leaks && use RAII on obfuscation methods 2022-02-08 23:34:43 +08:00
kotori0 e384765921 remove dex read code from zygisk 2022-02-08 23:34:43 +08:00
kotori0 d40191b711 use random class names 2022-02-08 23:34:43 +08:00
kotori0 db7d1b9323 refine code 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 6a16b2e346
Update Zygisk API to v2 (#1642) 2022-02-08 01:26:56 +08:00
LoveSy dea13db843
run service.sh by busybox sh with `ASH_STANDALONE=1` (#1633) 2022-02-05 10:20:34 +00:00
LoveSy d6dfc3ac0e
Unshare `/data/resource-cache` (#1627)
to avoid overlay conflict
2022-02-04 17:09:54 +00:00
LoveSy ad2ff45789
Fix an UAF UB (#1607) 2022-02-02 17:06:03 +08:00
LoveSy a885818a4d
Bump version to 1.7.0 (#1600) 2022-02-01 12:34:16 +00:00
LoveSy 8a53627b43
Support HarmonyOS (#1594)
Fix #1592
2022-01-31 23:55:28 +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
南宫雪珊 5898667351
Zygisk has been released (#1581) 2022-01-29 10:33:36 +00:00
LoveSy 2830441fd6
[core] Fix ZTE devices on zygisk (#1576) 2022-01-28 16:14:30 +00:00
LoveSy ad59477953
[core] Fix huawei devices on zygisk (#1575) 2022-01-28 16:03:05 +00:00
LoveSy f02712ce5c
Fix telemetry version for debug build (#1566) 2022-01-28 14:47:07 +08:00
LoveSy 8668d73a2d
Update dep (#1565) 2022-01-27 23:02:16 +08:00
LoveSy fcf667b980
Support Magisk's new update channel (#1545) 2022-01-19 14:45:02 +00: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 9480844c7b
Use thinlto & enable lto cache (#1517) 2022-01-08 01:13:00 +00:00
残页 1a2dc545ed
[core] Tell user to properly reinstall Magisk if version mismatch (#1515) 2022-01-07 12:13:55 +00:00
LoveSy af61504eeb
[app] Support dynamic colors (#1512) 2022-01-06 13:12:46 +00:00
Nullptr b9093f2bb6
[daemon] Fix shortcut (#1511) 2022-01-02 20:06:56 +08:00
Nullptr 9d90b4d5ed
Only extract needed libs (#1510) 2022-01-01 14:42:27 +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 23c044a4f3
[daemon] Fix proguard (#1505) 2021-12-30 03:32:21 +00:00
Nullptr 73cfc94ed6
[core] Fix daemon path (#1504) 2021-12-30 11:06:39 +08:00
Nullptr b9666c9d08
[core] Split daemon (#1503) 2021-12-30 09:21:44 +08:00
LoveSy 1451b546c1
Fix typo (#1502) 2021-12-28 16:32:43 +00:00
LoveSy e829bdd15d
Support adding icon after launcher changed (#1497) 2021-12-28 15:39:23 +00:00
LoveSy de0579efde
Refine gradle script (#1495) 2021-12-27 02:17:35 +08:00
LoveSy 946ff240a8
Fix trampoline on 32bit abi (#1494) 2021-12-25 00:22:14 +08:00
LoveSy ca1549c2d9
Use atomic to reduce #mmaps when hooking (#1492)
* Use atomic to reduce #mmaps when hooking

* Get rid of uint128 by taking advantage of mmap align
2021-12-24 22:28:58 +08:00
LoveSy 6572809f1d
Dont launch lspd when flavor not match (#1483)
To be compatible with fef44bd24f
2021-12-14 16:13:40 +00:00
南宫雪珊 5b479c09b5
[gradle] Don't use internal API (#1481) 2021-12-14 16:03:04 +00:00
LoveSy 75436aa90d
Lock screen unconditionally after switching user (#1482)
Fix #1480
2021-12-14 20:18:54 +08:00
南宫雪珊 45ae52de0c
[app] Target 32 (#1479) 2021-12-10 21:35:39 +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 6dcceec3c9
[app] Fix hint text (#1397)
* [app] Fix hint text

* Fix text underline
2021-11-12 20:28:38 +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
南宫雪珊 b5ba03318b
Bump version to 1.6.3 (#1377) 2021-11-09 07:16:51 +00:00
RikkaW 984373e500 [core] createWithAdaptiveBitmap 2021-11-08 21:57:06 +08:00
LoveSy 367aa23a87
[CI] update zip name (#1376) 2021-11-08 19:54:58 +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
LoveSy 5061a5a164
[log] Catch Zygisk log (#1352) 2021-11-04 15:27:29 +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
南宫雪珊 5589ecd29f
Revert "[zygisk] Use ASharedMemory (#1350)" (#1355)
This reverts commit 449b48e77f.
2021-11-03 02:18:57 +00:00
LoveSy a160bdca9e
Enable resources hook if necessary (#1351) 2021-11-02 13:56:14 +00:00
LoveSy 449b48e77f
[zygisk] Use ASharedMemory (#1350) 2021-11-02 13:43:23 +00:00
Howard Wu 01f3a67c99
[app] Update dependencies (#1344) 2021-10-30 14:30:50 +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