summaryrefslogtreecommitdiffstats
path: root/runtime/reflection.h
diff options
context:
space:
mode:
authorJeff Hao <jeffhao@google.com>2014-03-26 15:08:20 -0700
committerJeff Hao <jeffhao@google.com>2014-03-28 14:27:55 -0700
commit11d5d8fffe41cc7daadbfa2ca98ecb978f3029af (patch)
treefae2cf974b502420a942043d135d301aa75967e7 /runtime/reflection.h
parenta708e32a9f764a48175e705ec4bcd2201c84f492 (diff)
downloadandroid_art-11d5d8fffe41cc7daadbfa2ca98ecb978f3029af.tar.gz
android_art-11d5d8fffe41cc7daadbfa2ca98ecb978f3029af.tar.bz2
android_art-11d5d8fffe41cc7daadbfa2ca98ecb978f3029af.zip
Add access checks to Method and Field reflection.
Art side of this change. Has a corresponding libcore change. Bug: 13620925 Change-Id: Ie67f802a2a400e8212b489b9a261b7028422d8ba
Diffstat (limited to 'runtime/reflection.h')
-rw-r--r--runtime/reflection.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/runtime/reflection.h b/runtime/reflection.h
index 325998fe20..5cc725f2c6 100644
--- a/runtime/reflection.h
+++ b/runtime/reflection.h
@@ -68,12 +68,15 @@ void InvokeWithShadowFrame(Thread* self, ShadowFrame* shadow_frame, uint16_t arg
SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
jobject InvokeMethod(const ScopedObjectAccess& soa, jobject method, jobject receiver,
- jobject args)
+ jobject args, bool accessible)
SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
bool VerifyObjectIsClass(mirror::Object* o, mirror::Class* c)
SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
+bool ValidateAccess(mirror::Object* obj, mirror::Class* declaring_class, uint32_t access_flags)
+ SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
+
} // namespace art
#endif // ART_RUNTIME_REFLECTION_H_