[skip ci] Misc changes (#830)

This commit is contained in:
Wang Han 2021-07-25 13:42:32 +08:00 committed by GitHub
parent 8b7811a7ed
commit 5f250e860c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 5 deletions

View File

@ -5,7 +5,7 @@
## Introduction ## Introduction
A Riru module trying to provide an ART hooking framework (initially for Android Pie) which delivers consistent APIs with the OG Xposed, leveraging YAHFA hooking framework, supports Android 8.1 ~ **12 Beta 2**. A Riru module trying to provide an ART hooking framework which delivers consistent APIs with the OG Xposed, leveraging YAHFA hooking framework.
> Xposed is a framework for modules that can change the behavior of the system and apps without touching any APKs. That's great because it means that modules can work for different versions and even ROMs without any changes (as long as the original code was not changed too much). It's also easy to undo. As all changes are done in the memory, you just need to deactivate the module and reboot to get your original system back. There are many other advantages, but here is just one more: Multiple modules can do changes to the same part of the system or app. With modified APKs, you to decide for one. No way to combine them, unless the author builds multiple APKs with different combinations. > Xposed is a framework for modules that can change the behavior of the system and apps without touching any APKs. That's great because it means that modules can work for different versions and even ROMs without any changes (as long as the original code was not changed too much). It's also easy to undo. As all changes are done in the memory, you just need to deactivate the module and reboot to get your original system back. There are many other advantages, but here is just one more: Multiple modules can do changes to the same part of the system or app. With modified APKs, you to decide for one. No way to combine them, unless the author builds multiple APKs with different combinations.

View File

@ -59,8 +59,8 @@ public class App extends Application {
static { static {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
// TODO: set specific class name instead of `L` // TODO: set specific class name
HiddenApiBypass.addHiddenApiExemptions("L"); HiddenApiBypass.addHiddenApiExemptions("");
} }
} }

View File

@ -149,9 +149,7 @@ namespace yahfa {
} }
uint32_t getAccessFlags(void *art_method) { uint32_t getAccessFlags(void *art_method) {
return read32((char *) art_method + OFFSET_access_flags_in_ArtMethod); return read32((char *) art_method + OFFSET_access_flags_in_ArtMethod);
// On API 29 whether to use the fast path or not is cached in the ART method structure
} }
void setAccessFlags(void *art_method, uint32_t access_flags) { void setAccessFlags(void *art_method, uint32_t access_flags) {