0

I'm looking to extend the StrictMode API, similar to what is suggested in this StackOverflow question. I saw that the API was extended in Honeycomb to include a detectCustomSlowMethod() API, which sounds like it could handle some extension cases (although I'm not sure what it does because the documentation is copy-pasted from the disk methods).

However, I want to extend the API to include additional hardware access detection, which isn't possible with the API. Therefore, my question is where can I find the code that implements the StrictMode API?

Community
  • 1
  • 1
Ryan Gross
  • 6,423
  • 2
  • 32
  • 44

2 Answers2

2

where can I find the code that implements the StrictMode API?

In the Android source code.

CommonsWare
  • 986,068
  • 189
  • 2,389
  • 2,491
1

Here's the main Java interface:

https://android.googlesource.com/platform/frameworks/base/+/master/core/java/android/os/StrictMode.java

The implementations is all over the Android guts, though.

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62
Brad Fitzpatrick
  • 3,551
  • 1
  • 19
  • 9