Commit Graph

347 Commits

Author SHA1 Message Date
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
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
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
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
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
vvb2060 13a8dd7685 Save logs by folder 2021-08-28 23:41:18 +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
vvb2060 acf203be40
[core] Add log (#1009) 2021-08-25 18:59:38 +00:00
LoveSy f2d4092589
[core] Invalidate cache when pm is dead while caching (#1007) 2021-08-26 01:00:39 +08:00
vvb2060 b4a67a1f9e
[core] Remove all old configs (#1000) 2021-08-25 12:07:51 +08:00
vvb2060 7e85205b8b
[feature] zip all logs (#999) 2021-08-25 00:28:06 +08:00
vvb2060 24120e75ad
[core] Force logging on boot (#996) 2021-08-24 09:20:10 +00:00
LoveSy 7c16f7d6a4
[core] Fix create index (#993) 2021-08-24 04:29:29 +00:00
LoveSy 04352a7da6
[core] Update database (#990) 2021-08-23 18:03:21 +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
vvb2060 3600e53865
[core] Don't override system properties (#972) 2021-08-21 12:58:42 +00:00
vvb2060 dbc6df3cf3
[core] Don't trust SystemProperties (#970) 2021-08-21 17:30:37 +08:00
vvb2060 4e61b4d2ac
[core] Fix NPE (#967) 2021-08-21 07:36:06 +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
LoveSy ee9de79eb1
[core] Fix apk path not updated again (#961) 2021-08-20 16:57:39 +00:00
LoveSy 904b8ec6a2
[core] Fix apk path update (#956)
When an app is updated, the old apk will still exist
2021-08-20 07:45:43 +00:00
vvb2060 7ef5da6867
Use ISO date-time formatter (#954) 2021-08-19 18:55:52 +00:00
vvb2060 5af017dc32
[core] Remove grantManagerPermission (#953) 2021-08-19 18:15:43 +00:00
vvb2060 70344ff9fd
Use java8 time API (#952) 2021-08-19 18:00:02 +00:00
vvb2060 036b87caad [core] Remove PowerService 2021-08-19 01:41:40 +08:00
vvb2060 818f576f25 [app] Remove WRITE_SECURE_SETTINGS permission 2021-08-19 01:41:40 +08:00
vvb2060 f1fa90eb38
[app] Remove INTERACT_ACROSS_USERS permission (#938) 2021-08-18 23:40:10 +08:00
vvb2060 8afc509368
[app] Update module updated notification message (#922) 2021-08-17 04:35:12 +08:00
vvb2060 cf641b1854
Revert "[app] Dynamic registration receiver (#918)" (#920)
This reverts commit 35d8f3c1ce.
2021-08-16 07:46:23 +00:00
vvb2060 35d8f3c1ce
[app] Dynamic registration receiver (#918) 2021-08-16 14:57:23 +08:00
vvb2060 50de490d3e
[app] Update strings (#908) 2021-08-16 01:00:23 +08:00
vvb2060 4e554affc3
[core] Remove workaround (#903)
close #856
2021-08-15 17:51:36 +08:00
LoveSy 02b7b59ac7
[core] Fix #898 (#902) 2021-08-15 11:32:20 +08:00
LoveSy 9fc385e2bd
[core] unshare daemon (#892) 2021-08-12 18:54:32 +00:00
LoveSy 95c0f8aafc
[core] Use Field.set instead of Method.invoke (#891) 2021-08-12 18:31:27 +08:00
LoveSy b9272157fe
[core] make log great again (#887) 2021-08-11 18:53:11 +00:00
vvb2060 ba701b0435
Check old version Manager (#886) 2021-08-11 18:12:51 +00:00
LoveSy 3cc368754b
[core] Check apk path is not null (#885) 2021-08-11 19:05:42 +08:00
LoveSy 09e50460cd
[core] Dispatch uninstall event to manager as well (#884) 2021-08-11 18:51:27 +08:00
vvb2060 00e8c69ad1
Misc changes (#882) 2021-08-11 12:45:29 +08:00
LoveSy acb5b34f2f
[core] Fix package availability (#879) 2021-08-10 06:14:45 +08:00
LoveSy a84935b14e
[core] Refine caching of config manager (#878) 2021-08-10 04:18:22 +08:00
vvb2060 3cd9fd1735
[core] Preload module apk (#877) 2021-08-09 19:27:58 +08:00
vvb2060 1d9210ee34
[core] No more system context (#872) 2021-08-07 14:44:00 +00:00
vvb2060 ad5cd87d4a
[core] Use array list (#870) 2021-08-07 22:34:28 +08:00
LoveSy 49163768d6
[core] no more testOnly (#871) 2021-08-07 14:22:21 +00:00
vvb2060 7ea7f9e9b6
What a Terrible Failure (#868) 2021-08-07 13:09:35 +00:00
LoveSy 29afb441d8
[core] Clear activityThread cache (#867) 2021-08-07 12:18:07 +00:00
LoveSy e1cdb46eb1
[core] Fix NPE of `getWithComponment` (#866) 2021-08-07 11:05:54 +00:00
LoveSy e68b412664
[core] Close inputstream (#864) 2021-08-07 07:46:18 +00:00
vvb2060 ca91e87aeb
Clean code (#863) 2021-08-07 10:10:34 +08:00
vvb2060 607bbedec4
[core] pre load module dexes (#853)
* [core] pre load module dexes

* 1

* 2

* 4
2021-08-06 13:40:41 +00:00
LoveSy 87bfb3f818
[core] Fix app filter for non-primary users (#852) 2021-08-06 12:47:42 +00:00
LoveSy 7687ea42f2
[core] Fix some apps not showing (#851)
Especially dual apps...
2021-08-06 20:07:14 +08:00
LoveSy a020d7dae5
[core] Fix R8 misobfusion (#849) 2021-08-06 07:53:00 +00:00
vvb2060 88e5869642
[skip ci] Add note (#847)
* [skip ci] Add note

* add proper way
2021-08-06 06:37:16 +00:00
LoveSy c16176c637
[app] Fix manager activation (#848) 2021-08-06 06:33:35 +00:00
LoveSy 36a1fe03e7
[core] Do not allow hooking inner methods (#846) 2021-08-06 06:18:28 +00:00
LoveSy 10a2ae56a6
Preparation for Module api (#506)
Co-authored-by: vvb2060 <vvb2060@gmail.com>
2021-08-06 05:55:37 +00:00
LoveSy a70e2595bd [core] Fix DexFile name 2021-08-06 13:50:58 +08:00
vvb2060 8e156c7958
[app] Simplify code (#844) 2021-08-06 02:27:15 +00:00
LoveSy 45310fc85d
[core] Fix critical section on send bridge (#842) 2021-08-05 14:44:13 +00:00
LoveSy 93e4bb9349
[gradle] misc changes (#839) 2021-08-03 16:05:05 +08:00
vvb2060 188d4757df
[core] Check list size (#825) 2021-07-19 08:22:45 +08:00
vvb2060 5a272d2d23
[core] AIDL array copy bug workaround (#823) 2021-07-19 06:14:48 +08:00
vvb2060 a9c0409cd9
[core] Move signature verification to lspd (#822) 2021-07-19 03:34:36 +08:00
vvb2060 1937365b38
Android 12 (#814) 2021-07-15 11:46:33 +08:00
vvb2060 521786f6af
[core] Fix resource leak (#813) 2021-07-14 16:29:23 +00:00
vvb2060 bfe31837ad
Add getLdLibraryPath (#812) 2021-07-14 13:38:45 +00:00
vvb2060 2c34372803
[core] Fix module load on Android 10 (#811) 2021-07-13 05:53:27 +00:00
vvb2060 d432f3b09b
[core] Fix module load on Android 9 (#810) 2021-07-13 12:25:16 +08:00
vvb2060 e2a0d2f05a
[core]Load module in memory (#809) 2021-07-12 06:29:52 +00:00
vvb2060 4b769db0d5
[core] Split apk support (#803) 2021-07-03 20:18:52 +08:00
LoveSy 1e71d035c2 [core] Match all flags for broadcast 2021-07-03 15:13:49 +08:00