Issue
I have been searching for the source of an Android Method named checkCallingOrSelfPermission
It is used to validate an application's permissions.
I tried downloading Android's source but i couldn't found it there,
could you help? Thanks
Solution
You can always Chack grepcode.com 's Method search: http://grepcode.com/search/?start=0&query=checkCallingOrSelfPermission&entity=method
PS.: Look for the ContextImpl Class to find the Implementation Full Link: http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/4.3_r2.1/android/app/ContextImpl.java#ContextImpl.checkCallingOrSelfPermission%28java.lang.String%29 . You have to scroll down and wait until the class is fully loaded then you can use Cmd+F or View the raw Source.
Oh and if you already have the Source: /frameworks/base/core/java/android/app/ContextImpl.java
Answered By - chuck258
Answer Checked By - Robin (JavaFixing Admin)