Commit Graph

481 Commits

Author SHA1 Message Date
LoveSy 1588d6160c
Disable new resource shinker to avoid string strip (#1160) 2021-09-23 14:45:50 +00:00
LoveSy 3b230e2653
Fix magisk su request latency (#1159) 2021-09-23 00:40:52 +08:00
LoveSy e95c9acbb7
[parasitic] Fix 8.1 compatibility (#1157) 2021-09-21 17:16:23 +00:00
LoveSy 41755d4464
[core] Fix write settings (#1156) 2021-09-22 00:26:00 +08:00
LoveSy 9afa34932e
[parasitic] Also parasitic into default manager (#1154) 2021-09-21 22:27:03 +08:00
LoveSy fe05768189
[core] Temp disable signature verification (#1153) 2021-09-21 13:12:53 +00: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
vvb2060 8a469ee5a9
[core] Verify apk (#1145)
* [core] Verify apk

* 1

* 2

* Update ConfigFileManager.java

* 3

Co-authored-by: Wang Han <wanghan1995315@gmail.com>
2021-09-20 23:15:19 +08:00
LoveSy 3480410262
Detach fd in replaceShellCommand() 2021-09-19 13:14:41 +08:00
LoveSy 024af644e6
[parasitic] Load original providers (#1139)
* Don't clear providers in handleBindApplication()

* Load original providers

* restore packageName

Co-authored-by: 残页 <31466456+canyie@users.noreply.github.com>
2021-09-19 10:18:24 +08:00
LoveSy 91667dc67f
[core] Fix icon draw on shitty MIUI (#1138) 2021-09-18 14:59:35 +00:00
LoveSy 9acbdb609a
[app] Fix processName of parastic manager (#1135) 2021-09-18 13:34:18 +00:00
Wang Han 2d9d91bab3
[core] Set GID in specializeAppProcessPre() as well (#1133)
* USAP case.
2021-09-18 16:53:14 +08:00
LoveSy 8e9950a111
[core] Inject back into shell and use okhttp to load image (#1130)
* Use okhttp to intercept webview request

* Inject back into shell again

* Clean code

* Fix mime
2021-09-18 15:09:41 +08:00
LoveSy 5c5e1755d6
[core] Refactor pending hook (#1125) 2021-09-18 12:45:15 +08:00
Wang Han acbd6adc77
[core] Widen MANAGER_INJECTED_UID usage (#1129) 2021-09-18 03:48:29 +00:00
LoveSy fd2162bffa
[core] Skip updating cache again when force update (#1127) 2021-09-18 11:35:22 +08:00
LoveSy ec0dac1683
[core] Fix system module path update (#1126) 2021-09-18 03:19:36 +00:00
浅秋枫影 1cce235c46
Get `managerIcon` from mipmap (#1122) 2021-09-17 16:14:38 +00: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
LoveSy 695fe45c56
[core] Fix modules may be loaded twice in Android 12 (#1116)
In android 12, loaded apk may be loaded async before handleBindApp

Co-authored-by: 残页 <31466456+canyie@users.noreply.github.com>
2021-09-15 23:52:45 +08:00
LoveSy 8641aab22c
[core] Fix resend when system server dies while sending (#1089) 2021-09-09 13:09:34 +00:00
LoveSy a48ab2aff3
[skip ci] Description add Android 12 Beta 5 support (#1084)
* Add beta 5 support to readme

* Update module.prop
2021-09-09 04:16:05 +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
vvb2060 4d6c3821f3
Revert "[core] public loadModule (#1059)" (#1068)
This reverts commit 6e036f49da.
2021-09-06 17:10:08 +08:00
LoveSy 7ab16ade9f
[core] Fix updateWithOnConflict always returns >0 (#1067) 2021-09-06 16:52:29 +08:00
LoveSy 3613c09719
[core] Avoid setScope starving (#1060) 2021-09-05 23:10:42 +08:00
vvb2060 6e036f49da
[core] public loadModule (#1059) 2021-09-05 16:29:30 +08:00
vvb2060 6cb3eacea8
[core] Move loadModule to ConfigFileManager (#1058) 2021-09-05 08:07:30 +00:00
Howard Wu 3d2159f52c
Turkish translation (#1044)
* Add Turkish translation

* Update strings.xml
2021-09-03 15:50:23 +00:00
Howard Wu 00e40aac28
Reduce the buffer size again in Release to the default value (#1043) 2021-09-03 22:09:25 +08:00
vvb2060 c2cdecf644
Revert "[core] fix loading embedded module so (#1036)" (#1042)
This reverts commit 1075743360.
2021-09-03 11:52:27 +00:00
Nullptr 1075743360
[core] fix loading embedded module so (#1036)
* [core] fix loading embedded module so

* [core] move if out of for

* [core] make cpp master happy

* [core] make cpp master happy once more

Co-authored-by: LoveSy <shana@zju.edu.cn>
2021-09-03 11:16:45 +00:00
Howard Wu 3774390840
Update logcat.cpp (#1040) 2021-09-03 10:36:09 +00:00
LoveSy a42d1223be
[core] DO NOT call pm when pm is not yet fully ready (#1038)
Fix #1034
2021-09-03 02:17:53 +08:00
LoveSy 71780b4b70
[core] Create log dir when it was deleted (#1037) 2021-09-02 14:23:38 +00:00
vvb2060 8f5f2d224d
[core] Verify apk signature (#1035) 2021-09-01 21:16:13 +08:00
残页 3e412e1e8c
[core] Try manually start logd (#1030) 2021-08-31 23:48:23 +08:00
vvb2060 13a8dd7685 Save logs by folder 2021-08-28 23:41:18 +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 7c706a31d4
[core] Rewrite with NIO2 API (#1016) 2021-08-26 21:29:52 +08:00
LoveSy d57617656f
[core] Fix #1013 (#1014)
Co-authored-by: vvb2060 <vvb2060@gmail.com>
2021-08-26 11:22:25 +00:00
LoveSy 48c642e778
[core] Get pm binder everytime checking its status (#1010) 2021-08-25 19:17:35 +00:00