Commit Graph

1533 Commits

Author SHA1 Message Date
tehcneko 61db23cb18 [app] Fix possible crashes 2021-05-30 18:30:02 +08:00
tehcneko e91332c2b7 [app] Add missing copyright headers 2021-05-30 18:30:02 +08:00
tehcneko c6a156bf85
[app] Fix module list (#698) 2021-05-30 10:12:08 +00:00
tehcneko ba545bafec
[app] Refactored to use AndroidX Navigation (#697) 2021-05-30 09:33:35 +00:00
LoveSy a694d2bc73
[core] Check cast before returning from hooker (#696) 2021-05-30 15:18:13 +08:00
LoveSy efa42a4eb0
[core] Remove isSamePackage hook (#690) 2021-05-28 19:58:01 +08:00
tehcneko a6f0e666b8
The great cleanup + fix proguard (#689)
* [app] Fix proguard

* [core] Remove unused proguard rule

Co-authored-by: LoveSy <shana@zju.edu.cn>
2021-05-28 16:42:43 +08:00
LoveSy 4035493602
[app] Show user name (#688) 2021-05-28 15:42:52 +08:00
LoveSy de98686532
[core] Check loadedApk package name when getting manager binder (#687)
Some OS, like MIUI, inject other loaded apk to manager and will
cause annoying warnings
2021-05-27 14:15:59 +00:00
LoveSy c18ec95ce4
[CI] Remove gradle wrapper if more than one (#686) 2021-05-27 10:04:55 +08:00
LoveSy 7e6c230494
[core] Unblock receiver by calling finish receiver (#685) 2021-05-26 18:37:22 +00:00
LoveSy 18c7f60171
[core] Fix compatibility with 8.1 (#683) 2021-05-26 23:09:26 +08:00
LoveSy c741133b67
[core] Delay kill ppid (#682)
* Delay kill ppid

* remove useless nohup

* Exit when received uncaught exception
2021-05-26 10:56:09 +00:00
LoveSy ca80fd9446
[App] Start ACTION_SHOW_APP_INFO from backend (#679)
Co-authored-by: tehcneko <7764726+tehcneko@users.noreply.github.com>
2021-05-25 13:38:04 +00:00
LoveSy d67b34fd16
[core] Remove RiruHook (#677)
* First, dex2oat flags are not read by zygote and its
   child but installd so hooking it with Riru does nothing.
 * Second, we do not set native flag for methods so
   we don't need to handle the Oreo special case.
2021-05-25 08:49:30 +00:00
LoveSy 106aea6da8
[core] Fix #674 (#675) 2021-05-25 15:50:57 +08:00
Wang Han 4ad1d95915
[core] Drop useless hook for Huawei (#673)
* We don't force recompilation of pre-optimized
   APKs now so this is useless and does not even
   work as performDexOpt() hook was removed.
2021-05-25 05:07:09 +00:00
vvb2060 7403a17b82
Make AS happy (#672)
* Suppress error

* Register data binding generated files
2021-05-25 11:03:01 +08:00
vvb2060 6034d97e17
[core] Fix version code (#671) 2021-05-24 18:25:32 +00:00
LoveSy 550eacfccb
[core] Fix deamon name & fix daemon exit (#668) 2021-05-24 16:37:55 +00:00
Rom 1e31479d20
Update French translation (#667) 2021-05-24 13:16:29 +00:00
LoveSy 21d05486df
[core] Remove reflection hook (#666)
We previously hook reflection because we want only the hooker class
to have the privilege to access the backup method. However, we now
found that the backup method is a private copy and cannot be accessed
by outer classes, so we remove the relection hook for efficiency.
2021-05-24 08:34:22 +08:00
Wang Han bf63d97fb6
[core] Consolidate MIUI check (#663) 2021-05-23 17:05:24 +08:00
LoveSy 136be666ab
Bump new ver (#662) 2021-05-23 07:35:32 +00:00
Wang Han b98979d69b [core] Optimize imports 2021-05-23 14:34:13 +08:00
Wang Han 29d673e3fa [core] Move ModuleLogger to util package
* It has nothing to do with native now.
2021-05-23 14:34:13 +08:00
Wang Han 0dfb7f85f7 [app] Call reloadInstalledModules() unconditionally
* Final step to get a correct status of enabled modules.
2021-05-23 14:34:13 +08:00
Wang Han c3cc4b2b5c
[core] Remove API level check for inline hook (#660) 2021-05-23 05:04:08 +00:00
LoveSy 5084205647 [app] Refine codes 2021-05-23 11:03:54 +08:00
LoveSy 953c0394cc [app] Update HiddenApiBypass to 2.0 2021-05-23 11:03:54 +08:00
LoveSy 7c77589d35 [app] Fix user tab 2021-05-23 11:03:54 +08:00
Wang Han 85bf905d8c
[app] Call getEnabledModules() in reloadSingleModule() (#658)
* To get a reliable enabled status, we have to rely on
   backend every time a module is uninstalled from
   the manager.

Co-authored-by: tehcneko <7764726+tehcneko@users.noreply.github.com>
2021-05-22 13:49:40 +00:00
tehcneko 33cf2b994c
[app] Fix app filter (#657) 2021-05-22 13:43:36 +00:00
LoveSy 7f83efb2d5
[core] No longer trust testonly manager (#656) 2021-05-22 21:36:12 +08:00
Wang Han 7257181e2e
[app] Query enabled modules in reloadInstalledModules() (#655)
* This ensures that enabled modules will be updated together
   with installed modules.
2021-05-22 21:25:02 +08:00
LoveSy c9d93b9b47
[core] Also compile when Readme changed (#654) 2021-05-22 13:04:41 +00:00
tehcneko 0a452b7f3d
[app] Fix app filter (#653) 2021-05-22 20:17:23 +08:00
Wang Han 37dd63be81
[core] Correct process name for android in module log (#651)
* It can only be NULL for system_server.
2021-05-22 19:13:46 +08:00
tehcneko fb05d85a9b
[app] Don't filter recommended apps (#650)
* [app] Don't filter recommended apps

* Update AGP

* Update ScopeAdapter.java

Co-authored-by: Wang Han <wanghan1995315@gmail.com>
2021-05-22 10:55:33 +00:00
LoveSy 636c1ae603
Update build.gradle.kts (#649) 2021-05-22 03:55:32 +00:00
Wang Han d853be4367 [core] Honor `remove` flag for incompatible modules 2021-05-21 21:26:52 +08:00
RikkaW d85ef90275 Refuse to install if Riru is disabled or will be removed 2021-05-21 21:26:52 +08:00
RikkaW 7e6a0b81a3 Fix check Riru 2021-05-21 21:26:52 +08:00
tehcneko e6fba900f4
[app] Fix install dialog long clickable (#645) 2021-05-21 17:11:18 +08:00
LoveSy 02fd5be2fc [core] Switch to user if needed 2021-05-21 16:45:40 +08:00
tehcneko c0b556f2d8 [app] Fix get launch intent 2021-05-21 16:45:40 +08:00
tehcneko e2bb7d42f2 [app] Start and query activity from backend 2021-05-21 16:45:40 +08:00
tehcneko 15775da810 [core] Add queryIntentActivities and startActivityAsUserWithFeature 2021-05-21 16:45:40 +08:00
tehcneko a07239eeb1 [core] Check if MIUI 2021-05-21 12:45:34 +08:00
LoveSy 3600359b33 [core] Extend modules' scope for themselves to all users 2021-05-21 12:45:34 +08:00