简体   繁体   中英

Where can i find the source of an Android's method?

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

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

AndroidXref是在Android中查找代码的另一个不错的选择。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM