Commit Graph

225 Commits

Author SHA1 Message Date
LoveSy 8ed46a0c18 [core] No more PIE 2021-04-06 14:47:30 +08:00
LoveSy 0109da15d8 [core] Add missing NDEBUG 2021-04-06 14:47:30 +08:00
LoveSy 1ded91da62
[core] Set optimize flags correctly (#461)
Close #459
2021-04-06 09:15:40 +08:00
LoveSy 69a3e04ede
[core] Debug so should place under /system (#460)
Otherwise, unwind will fail
2021-04-06 00:29:40 +08:00
Wang Han fac2399b84
[core] Actually require Magisk v21+ (#458)
* Because magisk --path is not available till this version.
2021-04-05 12:22:23 +08:00
LoveSy 80bc9c0b35
[core] RAII JNI interface (#444)
Co-authored-by: Wang Han <wanghan1995315@gmail.com>
2021-04-03 19:35:39 +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 eecef24179
Update gradle (#437) 2021-03-31 06:19:37 +00:00
LoveSy 989e9e1bb6
[core] Test ccache (#436) 2021-03-30 23:17:57 +08:00
LoveSy 16982c5a3e
[core] Fix ccache on master build (#435) 2021-03-30 22:58:19 +08:00
Wang Han 7f1f5ced93
Include util_functions.sh from magisk --path (#434) 2021-03-30 07:50:12 +00:00
LoveSy 8bc0991275
[core] Use util function to check riru version (#433) 2021-03-30 05:48:06 +00:00
RikkaW e2b15b05dd Don't extract riru.sh to MODPATH 2021-03-30 13:08:06 +08:00
LoveSy fa97300d58
[core] Small refine of ElfImg (#431) 2021-03-30 12:38:08 +08:00
Wang Han e2c222ac1c
[core] Add an empty new line in uninstall.sh (#430)
* Or `echo` will directly append command in the existing line,
   which makes `/data/misc/lsp*` not removed.
2021-03-30 11:48:06 +08:00
LoveSy 3fb6dc741b Disable hide on debug build 2021-03-29 17:42:50 +08:00
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