Commit Graph

228 Commits

Author SHA1 Message Date
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 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
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
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
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
LoveSy cb665d4eeb
[core] Clean scope automatically for mutli-users (#620) 2021-05-18 19:04:10 +08:00
LoveSy fd32c3107a
Detect system framework injection status (#619) 2021-05-18 06:25:06 +00:00
LoveSy 20bcaf9e0b
[core] Try to fix module logger (#609) 2021-05-17 21:04:37 +08:00
LoveSy d861198738
[core] Fix module update (#608) 2021-05-17 12:52:32 +00:00
LoveSy dc8deae175
[core] Add missing component filter (#602) 2021-05-17 12:49:18 +08:00
LoveSy 9c1bbd5606
[core] Fix package listener (#600) 2021-05-17 05:21:51 +08:00
vvb2060 e272e48e86
Install to profiles (#592) 2021-05-15 21:29:49 +00:00
vvb2060 5ec10c89bb
Fix uninstall (#588)
* Fix uninstall

* Bump version again

* Add installExistingPackageAsUser

* Drop INSTALL_ALL_WHITELIST_RESTRICTED_PERMISSIONS

* Fix activation

* 反了

* 空格

Co-authored-by: Wang Han <wanghan1995315@gmail.com>
Co-authored-by: LoveSy <shana@zju.edu.cn>
2021-05-15 12:46:14 +00:00
LoveSy 09ac0e3af4
[core] Fix stupid bug (#586) 2021-05-15 05:40:05 +00:00
LoveSy c8f2dffbca
[core] Fix on Android Q- (#585) 2021-05-15 12:39:28 +08:00
LoveSy 5032bc0b15
[core] Prefs for modules in non-primary user space (#582) 2021-05-15 12:34:27 +08:00
LoveSy 0df0a14808
[core] Workaround for service manager overwritten on Android R (#581) 2021-05-15 03:05:04 +08:00
vvb2060 d9f95d1280
Use Java writer (#579) 2021-05-14 16:36:47 +00:00
LoveSy dbc0226d66
[core] Recognize module from other user profile (#555)
Co-authored-by: tehcneko <7764726+tehcneko@users.noreply.github.com>
2021-05-14 16:28:12 +08:00
LoveSy aa857a3705
[core] Fix register receiver permission (#561)
责任全在 @RikkaW
2021-05-11 08:40:40 +00:00
Wang Han 14b1fc555b
[core] Replace remaining xposedmodule references (#559) 2021-05-10 15:28:23 +08:00
tehcneko 7139c3f11f
[app] Added option to disable forced display of the application launcher icon on Android 10+ (#541)
* [core] Grant android.permission.WRITE_SECURE_SETTINGS

* Disable jetifier

* [app] Added option to disable forced display of the application launcher icon on Android 10+
2021-05-06 12:27:38 +00:00
LoveSy 94ef17f06d
[core] `nativeinit` does not have to check .so postfix (#540) 2021-05-06 12:05:28 +08:00
LoveSy fdc7a4d8d9
[core] Refine native api (#538) 2021-05-05 15:07:47 +08:00
tehcneko 0409f3af97 [core] Remove SELinux permissive check 2021-04-25 21:31:10 +08:00
tehcneko d7897b67d9
[core] Remove useless codes (#505)
* [core] Replace tabs with spaces

* [core] Remove useless codes
2021-04-24 14:59:35 +08:00
vvb2060 86304f11ce
Remove migration setting (#504)
* Add self check

* clean

* Update description

* Remove migration setting

since c5bac3415c, it has been invalid
2021-04-24 12:43:23 +08:00
vvb2060 2eae90dfe7
Generate SignInfo (#493) 2021-04-18 11:27:35 +08:00
LoveSy 03d5f1b444
[core] Fix in rare case system hooks invalid (#486) 2021-04-13 20:59:08 +08:00
vvb2060 20ba09408f
Change to use dependencies (#481)
org.apache.commons:commons-lang3
de.upb.cs.swt:axml
2021-04-13 04:08:40 +08:00
LoveSy c56c89327b
Revert "[core] FastNative (#467)" (#469)
Someone report keeping annotation on release build make some java methods call failed.

This reverts commit 65f387f429.
2021-04-08 13:03:22 +00:00
Wang Han 80646bfa3c
[core] Remove @FastNative annotation of onPostFixupStaticTrampolines() (#468)
* This is not even a native method.
2021-04-08 07:32:54 +00:00
LoveSy 65f387f429
[core] FastNative (#467) 2021-04-07 17:46:51 +08:00
LoveSy caa1bef21f
[core] Remove useless codes (#441) 2021-04-01 18:52:44 +08:00
LoveSy a384697655
[core] Update JNI helper (#440) 2021-04-01 10:17:39 +00:00
LoveSy 833eef49ec
[core] Support interface default method (#420) 2021-03-27 12:31:06 +00:00
LoveSy a30d306a11
[core] Remove useless code (#409)
Since we change the package name, we don't have to hook old manager
which use contants.

Since we have released new stable version, we should prepare for
randomize package name and therefore don't need to fix package name
mismatch.
2021-03-26 04:13:54 +00:00
rovo89 5b9c8b6c5b [core] Ignore PACKAGE_CHANGED for single components
The event is needed to detect e.g. if a package has been frozen, but it
can also occur if components (e.g. receivers) are disabled/enabled. Ignore
the event in these cases.
2021-03-21 11:54:26 +08:00
Wang Han 40fcde9ce0 [core] Refine module log output
* Add E/I to indicate error or information, while we are at
   it, slightly change output format.
2021-03-20 21:47:03 +08:00
Wang Han 9b081dac37 [core] Remove special handling for com.sygic.aura
* Was introduced in original Xposed because this app implemented
   low-level resource class replacements iteself and would crash with
   resource hook enabled, which is not the case anymore.
2021-03-20 21:47:03 +08:00
tehcneko 39aa9952b5
[core] Print version to logcat (#375)
* [core] Print version to logcat

* [core] Check module id on init
2021-03-19 21:21:11 +08:00
LoveSy 83786b6dea
[core] Fix notification when modules updated/installed (#370)
Co-authored-by: tehcneko <7764726+tehcneko@users.noreply.github.com>
2021-03-18 01:24:34 +00:00
tehcneko 7c1ea44479
[app] Update dependencies (#368) 2021-03-17 12:24:29 +08:00
LoveSy c6bfffc785
[core] Fix pendding hook for os with newer art (#363) 2021-03-15 20:20:19 +08:00
Wang Han 9896a1b193
[core] Fix stupid error in package name check (#349) 2021-03-13 03:30:22 +00:00
Wang Han 04620f525e
[core] Fix uninstallPackage() check for old manager (#345) 2021-03-12 22:20:01 +08:00
tehcneko ace4412d31
[core] Fix package installation on S (#343) 2021-03-12 12:01:41 +00:00
Wang Han 696309af0b
[core] Uninstall old manager on boot automatically (#330)
* [core] Uninstall old manager on boot automatically

* Update PackageService.java
2021-03-11 11:40:16 +08:00
vvb2060 b4131fd6c4
New packagename (#326) 2021-03-10 17:09:34 +00:00
LoveSy a7a59d21e4
[core] No more live patch (#317) 2021-03-10 06:40:13 +00:00
LoveSy 7dd171b2bb [core] Check sepolicy in backend & try livepatch 2021-03-10 02:41:58 +08:00
LoveSy 7d52c215ad
[core] Completely remove SandHook (#293) 2021-03-08 22:50:43 +08:00
LoveSy f3680cdd07
[core] Refactor resource hook & remove useless files (#281) 2021-03-07 20:47:03 +08:00
tehcneko 83045a69a7 [core] Fix uninstalling 2021-03-07 16:02:42 +08:00
tehcneko e5e7c3617f [core] Return actual uninstall status to manager 2021-03-07 15:38:57 +08:00
tehcneko 60be0e2071 [core] Log uninstall status message 2021-03-07 15:38:57 +08:00
tehcneko 4ce43df88f [core] Upgrade manager if older version installed 2021-03-07 15:38:57 +08:00
LoveSy 80abe3dc64 [core] No need to uninstall if upgrade manager under the same sign 2021-03-07 14:14:38 +08:00
LoveSy 74f4404d7a [core] Merge manager into Magisk zip 2021-03-07 14:14:38 +08:00
tehcneko d6ea773aa8 [manager-service] Add uninstallPackage 2021-03-07 14:14:38 +08:00
LoveSy cc6155b496 [core] Auto install manager when invalid 2021-03-07 14:14:38 +08:00
LoveSy ef7e3d07c5
[core] Make hook functions' names more resonable for debug (#262) 2021-03-04 08:08:10 +00:00
LoveSy 84c8da994b
[core] Don't filter `android` (#259) 2021-03-03 13:59:48 +00:00
LoveSy 4442f684b9 [core] [app] Show freezed apps 2021-03-03 20:17:10 +08:00
LoveSy bbcc3437b9 [core] Support freeze app
close #253
2021-03-03 20:17:10 +08:00
LoveSy 5b49351b7e
[gradle] kotlinfy (#240) 2021-03-02 02:55:15 +08:00
LoveSy 1182c9187d
[core] Fix NPE when getting package components (#228) 2021-02-28 06:22:39 +00:00
LoveSy d5ee8d3842
[core] Async cache (#221)
* [core] Async cache

* Wait for handler

* Resolve reviews

* Refine imports
2021-02-27 14:48:27 +00:00
LoveSy cb5c9ea4d2
[core] use dex builder to generate resource dummy class (#215) 2021-02-27 05:27:23 +00:00
LoveSy 05656e0939 [core] Fix dexbuilder return type of constructor 2021-02-27 09:22:53 +08:00
LoveSy 66dc5161b4
[core] Introduce c++ dexbuilder to replace dexmaker (#207) 2021-02-26 18:06:41 +00:00
tehcneko d1867122d0
[core] Enable optimize (#205)
* [core] Load module with DelegateLastClassLoader

* [core] Drop support for API26

* [core] Enable optimize

* [core] Update proguard rules

* [core] Enable obfuscation
2021-02-26 23:45:19 +08:00
LoveSy ec50521554
[core] Truncate log if log file is too big (#202) 2021-02-26 12:22:05 +08:00
tehcneko a286b074e3
[core] Remove config observer (#201) 2021-02-25 19:40:10 +08:00
tehcneko 29e6731127
[core] Fix updating module apk path from package receiver (#198) 2021-02-25 08:43:35 +00:00
LoveSy cc0afb03e8
[core] Refine dexmaker cache stategy for YAHFA (#187)
* [core] Refine dexmaker cache stategy for YAHFA

* Delete old when old cache is invalid
2021-02-24 22:13:24 +08:00
tehcneko fad2cf3064 [app] Add force stop and reboot 2021-02-24 20:58:14 +08:00
tehcneko e844450b23 [core] Add reboot and force stop 2021-02-24 20:58:14 +08:00
tehcneko 9279fb03de
[core] Fix getPackageInfo flags (#190) 2021-02-24 07:05:40 +00:00
tehcneko af01bd4626
[core] Fix no process filter (#188) 2021-02-24 13:07:41 +08:00
LoveSy dee8477f7c
[core] Update/remove module iff userId=0 (#185) 2021-02-24 01:50:48 +08:00
tehcneko 128f3d8937
[core] [app] Filter out apps without any process for the scope list (#181)
* Filter out apps without any process for the scope list

* Bump ver

Co-authored-by: LoveSy <shana@zju.edu.cn>
2021-02-23 14:28:13 +00:00