Commit Graph

258 Commits

Author SHA1 Message Date
LoveSy 084ec536e6 Keep debug symbols for debug 2021-03-29 17:42:50 +08:00
LoveSy f551ed8724
[core] Strip .preinit_array (#425) 2021-03-29 00:33:21 +08:00
LoveSy f3e9fd6b8f
[core] Hash for looking up symbols (#424) 2021-03-28 22:28:46 +08:00
LoveSy 63065646fe
[core] Fix name check (#423) 2021-03-28 08:04:30 +00:00
LoveSy 69e5feffce
[core] Use ElfImg instead of DobbySymbolResolver (#419) 2021-03-28 07:14:57 +00:00
LoveSy 3f80d37364
[core] Move riru definitions from cmake to gradle (#422) 2021-03-28 15:01:33 +08:00
LoveSy 833eef49ec
[core] Support interface default method (#420) 2021-03-27 12:31:06 +00:00
LoveSy a1201ae42b
[CI] Update cache 2021-03-27 07:49:11 +08:00
LoveSy e5d61affdd
[core] Build libc++ ourselves (#406) 2021-03-26 07:11:35 +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
tehcneko 14f809d62f [core] Update dependencies 2021-03-25 21:52:06 +08:00
vvb2060 4fcb689e55
Use Java 11 (#398) 2021-03-23 07:10:56 +08:00
Wang Han eaf64f91a0
[core] Enforce Riru 25 in documents (#397) 2021-03-22 10:28:53 +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 9d06351073
[core] Keep R value of kAccPreCompiled flag (#386)
* Although this flag is likely to change on future S release,
   just keep R value for now because we don't want to break
   present DPs. What's more, this flag is always used with
   kAccCompileDontBother, so not removing it should not
   be harmful.

   https://android-review.googlesource.com/c/platform/art/+/1646010
2021-03-20 13:57:56 +00: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
LoveSy 2d8a9932f2 [core] Only clear precompile on R or above 2021-03-20 19:52:44 +08:00
Wang Han a08c5402bc [core] Remove unreachable SDK checks for YAHFA 2021-03-20 19:52:44 +08:00
LoveSy a6b4ed548e [core] Refactor Yahfa 2021-03-20 19:52:44 +08:00
LoveSy aa98da59da
[core] Fix resource hook on S (#377) 2021-03-20 01:23:01 +08:00
Wang Han 88f1f693c6
[core] Slightly clean up scripts (#376) 2021-03-19 13:55:08 +00: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 55248342fc
[core] Support Riru 25 (#367) 2021-03-17 08:08:30 +08:00
LoveSy c6bfffc785
[core] Fix pendding hook for os with newer art (#363) 2021-03-15 20:20:19 +08:00
vvb2060 b7c18eb12c
Use dobby prefab (#361) 2021-03-15 09:12:24 +00:00
LoveSy 85b252c1b8
[core] use proper dobby interface (#356) 2021-03-14 17:50:34 +00:00
LoveSy 52d0e98e83
[core] Embrace c++20 (#352) 2021-03-13 07:11:53 +00:00
Wang Han 7086c682c2
[core] `io_github_lsposed` -> `org_lsposed` (#351) 2021-03-13 05:50:11 +00:00
Wang Han 9896a1b193
[core] Fix stupid error in package name check (#349) 2021-03-13 03:30:22 +00:00
LoveSy 1de629f6e8
[core] Compile time string (#346) 2021-03-13 03:57:21 +08: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
tehcneko 5a26cec58c
[core] Use riru.sh from riru module template (#340)
* [core] Use riru.sh from riru module template

* [core] Remove unused scripts

* [core] Fix riru version in log file
2021-03-12 08:57:47 +00:00
LoveSy 7eda1f6845
[CI] Use ccache to cache github action building
* Try ccache

* Cache Cmake

* No ccache in gradle cache

Co-authored-by: vvb2060 <vvb2060@gmail.com>
2021-03-12 02:07:35 +08:00
LoveSy 4fa8839bae
[core] Add no-rtti & no-exceptions to cppflags (#335) 2021-03-12 00:47:30 +08:00
tehcneko edf41b715f [core] Fix riru version check 2021-03-11 19:34:34 +08:00
LoveSy 7afb339219 [core] Fix build 2021-03-11 19:34:34 +08:00
LoveSy c5bac3415c
[core] Support riru24 (#329)
* Support riru24

* tmp aar for build

* Check riru version

* Rename libriru_lspd to liblspd

* Fix hiddenapi

* Use maven
2021-03-11 10:57:06 +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
tehcneko 11da19b64c Fix module description 2021-03-09 18:51:28 +08:00
LoveSy f6415478f2 [shell] No more cache 2021-03-08 23:59:52 +08:00
LoveSy 7d52c215ad
[core] Completely remove SandHook (#293) 2021-03-08 22:50:43 +08:00
LoveSy 7d1652af05
[core] Prevent bootloop when rirud is dead (#286)
closes #285
2021-03-07 17:07:42 +00:00
LoveSy b5c1a0778f
[DexBuilder] Properly handle utf8 string (#282) 2021-03-07 22:24:30 +08:00
LoveSy f3680cdd07
[core] Refactor resource hook & remove useless files (#281) 2021-03-07 20:47:03 +08:00
LoveSy e72414b08c
[core] Supress hook warning on old R (#280) 2021-03-07 16:59:35 +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 cb6f14a41a
[core] Fix pending hook for Android S (#278) 2021-03-07 15:03:12 +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
tehcneko 5e5b4a976f
[app] RikkaX (#268) 2021-03-05 07:41:20 +00:00
vvb2060 cb5940bc1a
Optimize apk size (#263) 2021-03-04 18:00:22 +08:00
LoveSy ef7e3d07c5
[core] Make hook functions' names more resonable for debug (#262) 2021-03-04 08:08:10 +00:00
vvb2060 8e86ace802
Upgrade to AGP 7, ready to use Java 11 (#261)
* Update gradlew

./gradlew wrapper --gradle-version 6.8.3

* Fix line separator

* Fix build

Co-authored-by: tehcneko <7764726+tehcneko@users.noreply.github.com>
2021-03-03 16:35:50 +00:00
LoveSy 534b9f4fe6 [core] No verbose and debug log in release build 2021-03-03 23:27:33 +08: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 f900f9551d
[core] Fix version (#247) 2021-03-02 04:29:07 +08:00
LoveSy 5694e459a3
[gradle] Fix build (#246) 2021-03-02 03:40:18 +08:00
LoveSy 5b49351b7e
[gradle] kotlinfy (#240) 2021-03-02 02:55:15 +08:00
LoveSy 8594bfc766
[core] Remove key selector & optimize binary size (#233)
* [core] Remove key selector & optimize binary size

* More clean up

* Remove useless flags
2021-02-28 16:43:23 +00:00
LoveSy 1b7865d9a8
[core] Drop SDK 26 on installation (#235) 2021-02-28 16:21:57 +00:00
LoveSy 1182c9187d
[core] Fix NPE when getting package components (#228) 2021-02-28 06:22:39 +00:00
LoveSy 3537701778
[core] Fix zygote wait (#225) 2021-02-28 12:46:54 +08: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
tehcneko 27d9fd0a70
[core] Fix illegal access (#214)
* [core] Fix illegal access

* [CI] Upload mappings for core
2021-02-27 04:34:19 +00:00
Wang Han 64beb89789
[core] Print versionCode in log header (#212) 2021-02-27 02:46:00 +00:00
LoveSy 46388d2e69 [core] Fix illegal access 2021-02-27 09:22:53 +08:00
LoveSy 05656e0939 [core] Fix dexbuilder return type of constructor 2021-02-27 09:22:53 +08:00
LoveSy c23e172bac
[core] Fix YAHFA fails on some system modules (#210) 2021-02-27 09:08:55 +08:00
LoveSy f591672962
[core] Fix invoke range (#209) 2021-02-26 20:27:33 +00: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
vvb2060 a7500c73f3
[core] [app] Use commit count as version code (#195) 2021-02-25 02:36:52 +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
LoveSy 6aed74acdd
[core] Send app binder when requesting binder (#177) 2021-02-23 18:31:52 +08:00
LoveSy 6314bae5db
[core] ensure app_process starts before zygote (#172)
Fix system modules not loaded in some devices

修复部分机型不能加载系统模块
2021-02-23 10:21:57 +08:00
LoveSy a556880228
[core] fix typo (#168) 2021-02-22 18:58:06 +00:00