Commit Graph

177 Commits

Author SHA1 Message Date
LoveSy 9480844c7b
Use thinlto & enable lto cache (#1517) 2022-01-08 01:13:00 +00:00
Nullptr b9666c9d08
[core] Split daemon (#1503) 2021-12-30 09:21:44 +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 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 5061a5a164
[log] Catch Zygisk log (#1352) 2021-11-04 15:27:29 +00:00
南宫雪珊 5589ecd29f
Revert "[zygisk] Use ASharedMemory (#1350)" (#1355)
This reverts commit 449b48e77f.
2021-11-03 02:18:57 +00:00
LoveSy 449b48e77f
[zygisk] Use ASharedMemory (#1350) 2021-11-02 13:43:23 +00:00
南宫雪珊 330747aca1
[core] Dump fd if log file deleted (#1337) 2021-10-29 10:13:08 +08:00
LoveSy 67fd7ca054
[core] Cache symbol address on Zygisk (#1326) 2021-10-24 16:38:30 +00:00
LoveSy 3facd944af [core] Update Zygisk API 2021-10-24 18:19:31 +08:00
LoveSy eeb8aa6ae3
[core] Use ashmem_create_region (#1304) 2021-10-17 14:18:53 +00:00
LoveSy c166163885
[core] No sepolicy is required for Zygisk flavor (#1303) 2021-10-17 20:46:47 +08:00
LoveSy 4ce312d5b6
[CI] Fix ccache (#1301) 2021-10-17 09:58:39 +00:00
LoveSy 7a7c0c56e3
[core] Support zygisk (#1228)
Co-authored-by: 南宫雪珊 <vvb2060@gmail.com>
Co-authored-by: tehcneko <88844448+tehcneko@users.noreply.github.com>
2021-10-16 19:44:26 +00:00
LoveSy 69900249c9
[core] Allow vdex speedup for InMemoryDex (#1260)
* [core] Allow vdex speedup for InMemoryDex

* 1
2021-10-12 19:22:54 +08:00
南宫雪珊 fc9fb05b7c
[core] Use latest version by default to support SDK 32(#1249) 2021-10-10 02:25:58 +08:00
LoveSy 630bd7ab03
[core] Try to fix #1144 again by moving profiling info (#1185)
Co-authored-by: canyie <31466456+canyie@users.noreply.github.com>
2021-09-29 12:30:24 +08:00
LoveSy 5102b5c4f2
[core] Log everything from daemon (#1180)
* [core] Log everything from daemon

* 1
2021-09-26 22:04:13 +08:00
LoveSy d8943e0937
[core] Try to fix #1144 by hook (#1166) 2021-09-26 05:39:33 +00:00
南宫雪珊 361e05ea2e
[core] check log size before set (#1169) 2021-09-25 12:45:51 +08:00
LoveSy 1e4ffb0a17
Revert "[core] Clear ProfilingInfo in backup method (#1147)" (#1165)
This reverts commit bf89c754dc.
2021-09-24 15:54:47 +08:00
Wang Han 2b4bdf1bbd
[core] Don't hardcode injected AID in native code (#1152)
* Update build.gradle.kts

* Update Android.mk

* Update main.cpp
2021-09-21 18:53:31 +08:00
残页 bf89c754dc
[core] Clear ProfilingInfo in backup method (#1147)
Co-authored-by: vvb2060 <vvb2060@gmail.com>
2021-09-21 17:00:54 +08:00
Wang Han 2d9d91bab3
[core] Set GID in specializeAppProcessPre() as well (#1133)
* USAP case.
2021-09-18 16:53:14 +08:00
LoveSy 42e85734c2
Add interface to deopt method (#1124)
Co-authored-by: 残页 <31466456+canyie@users.noreply.github.com>
Co-authored-by: Wang Han <wanghan1995315@gmail.com>
2021-09-17 16:05:53 +00:00
LoveSy 59cc621d98
Parasitic manager into a system app (#1103)
* add activity controller

* Hook `TRANSACTION_setActivityController`

* Hook setActivityController

* Inject into settings

* Check categories for manager

* Inject manager

* Hook webview

* Should not load modules for manager

* Remove shouldBlock

* remove pendding when server died

* Add shortcut automatically

* Load resources from manager

* Fix shortcut sleep wait

* Make R8 happy

* Fix when am is proxy

* lspd should run with euid=1000 after system server started

* Add shortcut from daemon

* Set injected package into gradle build script

* Try to inject into shell instead of settings

* Fix shortcut of shell and add icon

* Fix proguard

* hook handleReceiver

* Properly solve conflict

* Update shortcut everytime unlock

* Clear log

* Fix build

* chageng to use process${variantCapped}Resources

* Remove auto install manager

* Fix crash on some devices

* Fix new intent

* Make app toast when restart fails

* Fallback to recreate

* refine code

* Use fakecontext to set shortcut

* Fix compatibility with Android 12

* Fix `credentialProtectedDataDir`

* Fix webview

* Fix recreate

* Fix autofill

* Fix webview cache context

* Switch to inject into settings

* Send notification from daemon

* Change notification title
2021-09-16 13:36:04 +00:00
残页 bb86467918
[core] Fix elf name match (#1083) 2021-09-08 16:24:38 +00:00
LoveSy 6a2e53134f
[core] Fix `failed to open [anon:linker_alloc]` (#1082)
Fix LSPosed/LSPatch#17
2021-09-08 23:45:28 +08:00
tehcneko 4464210e69
[app] Preload webview htmls (#1078)
* [app] Preload webview htmls

* [app] Remove "v" from version name
2021-09-08 10:03:02 +08:00
Howard Wu 00e40aac28
Reduce the buffer size again in Release to the default value (#1043) 2021-09-03 22:09:25 +08:00
Howard Wu 3774390840
Update logcat.cpp (#1040) 2021-09-03 10:36:09 +00:00
LoveSy 71780b4b70
[core] Create log dir when it was deleted (#1037) 2021-09-02 14:23:38 +00:00
残页 3e412e1e8c
[core] Try manually start logd (#1030) 2021-08-31 23:48:23 +08:00
vvb2060 18c3bb426f Tag len includes nullptr
https://cs.android.com/android/platform/superproject/+/master:system/logging/liblog/tests/logprint_test.cpp;l=137;drc=3e3b6dc5e955fd9530c1d1bed8eee1726b91c59b
2021-08-28 23:41:18 +08:00
LoveSy 4c4dda340a
[core] Fix logcat tag len (#1022)
It's an ASOP's bug that tag len is 1 larger
2021-08-28 05:53:45 +00:00
LoveSy 4eeadd02d6
[core] Explicit `sv` for optimization (#1021) 2021-08-27 19:13:02 +08:00
vvb2060 bc765d3cdd
[core] clear logs will refresh fd (#1020) 2021-08-27 18:56:28 +08:00
vvb2060 24120e75ad
[core] Force logging on boot (#996) 2021-08-24 09:20:10 +00:00
LoveSy 42ddca8b05
[core] Move config to db again (#989)
Co-authored-by: vvb2060 <vvb2060@gmail.com>
2021-08-24 00:15:53 +08:00
vvb2060 485da5a37c
Revert "[core] Move config to db (#981)" (#988)
This reverts commit 40e47762d7.
2021-08-23 22:28:41 +08:00
vvb2060 394d7fba19
Revert "[core] Fix logcat (#986)" (#987)
This reverts commit a4abbfa67a.
2021-08-23 22:21:55 +08:00
vvb2060 a4abbfa67a
[core] Fix logcat (#986) 2021-08-23 21:19:32 +08:00
vvb2060 40e47762d7
[core] Move config to db (#981) 2021-08-23 16:57:24 +08:00
LoveSy 05f8704576
[core] Module log using lspd logcat (#980) 2021-08-22 18:53:11 +00:00
LoveSy 08520cd8e7
[core] Prevent logcat infinite loop (#976) 2021-08-22 09:54:52 +00:00
LoveSy c87172e88c
[log] Check log size in native (#966) 2021-08-21 09:12:20 +08:00
vvb2060 9f868aeddf
[core] Native logcat (#960)
Co-authored-by: LoveSy <shana@zju.edu.cn>
2021-08-20 19:15:13 +00:00
vvb2060 6dfaf67a07
[core] get full exception info (#955) 2021-08-20 14:50:56 +08:00