From 9d0635107336d8cfea99731de77be14e238a0aed Mon Sep 17 00:00:00 2001 From: Wang Han Date: Sat, 20 Mar 2021 21:57:56 +0800 Subject: [PATCH] [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 --- core/src/main/cpp/external/yahfa/src/HookMain.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/cpp/external/yahfa/src/HookMain.cpp b/core/src/main/cpp/external/yahfa/src/HookMain.cpp index dac18d11..eae67387 100644 --- a/core/src/main/cpp/external/yahfa/src/HookMain.cpp +++ b/core/src/main/cpp/external/yahfa/src/HookMain.cpp @@ -13,7 +13,7 @@ namespace { size_t ArtMethodSize; constexpr size_t OFFSET_access_flags_in_ArtMethod = 4; constexpr uint32_t kAccCompileDontBother = 0x02000000; - constexpr uint32_t kAccPreCompiled = 0x00100000 | 0x00200000; + constexpr uint32_t kAccPreCompiled = 0x00200000; constexpr uint32_t kAccPublic = 0x0001; // class, field, method, ic constexpr uint32_t kAccPrivate = 0x0002; // field, method, ic constexpr uint32_t kAccProtected = 0x0004; // field, method, ic