Commit Graph

329 Commits

Author SHA1 Message Date
vvb2060 74f93dbd7a
Ndk build (#753)
* Update dependencies

* Use prefab dobby

* NDK build

* Add ccache

* Fix library copy

* rm CMakeLists.txt
2021-06-20 11:46:38 +08:00
LoveSy f410634dc9
[core] Remove useless files (#750) 2021-06-17 19:05:08 +08:00
LoveSy 73e27dc86b
[gradle] Update gradle, AGP & fix build issue & downgrade safe-args (#749)
* [gradle] Fix build in some unknown cases

* [gradle] Update gradle
2021-06-17 15:49:26 +08:00
LoveSy cef4137c7a
[core] Manually release ElfImg (#747) 2021-06-15 10:06:53 +08:00
LoveSy b49001cfab
[README] Support Android 12 Beta 2 (#745) 2021-06-12 02:05:19 +08:00
LoveSy 9ccef6b794
[core] Fix broadcast receiver after soft reboot (#739)
`sendToBridge` stucks the binder thread so that
`ActivityManagerService`'s receipent won't be called
2021-06-10 06:53:53 +08:00
LoveSy 9c8f9beb49
[core] Check system properties (#732) 2021-06-05 14:03:38 +08:00
LoveSy 4cb731c1fb
[core] Completely switch to ElfImg (#730) 2021-06-04 02:07:53 +08:00
LoveSy f010322c91
[core] Fix get module source (#725) 2021-06-03 10:42:32 +00:00
LoveSy 0ad10cf369
[core] Check pending exception (#724) 2021-06-03 10:17:15 +00:00
LoveSy b1198f83a0
[core] Log before hooked app crash (#700) 2021-05-30 18:52:12 +08:00
tehcneko e91332c2b7 [app] Add missing copyright headers 2021-05-30 18:30:02 +08: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 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 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
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
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 c3cc4b2b5c
[core] Remove API level check for inline hook (#660) 2021-05-23 05:04:08 +00:00
LoveSy 7f83efb2d5
[core] No longer trust testonly manager (#656) 2021-05-22 21:36:12 +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
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
LoveSy 02fd5be2fc [core] Switch to user if needed 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
LoveSy 9d417fa6cf Load module together with package name 2021-05-21 12:45:34 +08:00
LoveSy 384681bbb8 [core] Prevent MIUI dual remove packages 2021-05-21 12:45:34 +08:00
LoveSy 4e40cf9802 [core] Send IApplicationThread to daemon 2021-05-21 12:45:34 +08:00
tehcneko a5c1397516
Update dependencies (#638) 2021-05-20 11:36:29 +00:00
LoveSy 9680f39a1f [Template] Support S Beta 1 2021-05-19 13:13:35 +08:00
LoveSy 9899bbfb95
[core] Check status of dladdr (#626) 2021-05-19 03:45:24 +00:00
LoveSy ee57426443
[core] Remove incorrect flags (#625) 2021-05-18 20:34:09 +00:00
LoveSy 61bee4743a
[core] Remove deleteOnClose which causes lock fail (#624) 2021-05-18 17:41:02 +00:00
LoveSy 85a4d4eea1
[core] A better way to launch daemon (#622) 2021-05-18 16:45:22 +00:00