android - Why StrictMode does not catch read/write operations by SQLite? -


in app have following setup strictmode:

    strictmode.setthreadpolicy(new strictmode.threadpolicy.builder()             .detectdiskreads()             .detectdiskwrites()             .detectnetwork()             .penaltylog()             .penaltydeath()             .build()); 

at point i've noticed have few places sqlite operations not placed in separate thread nevertheless don't trigger strictmode violation. i've tested on real device android 5.1.1 , on genymotions 4.4.4 , 5.1.1 same result. have recollections sqlite operations used trigger strictmode violations not case. idea why?

i saw in documentation following:

notably, disk or network access jni calls won't trigger it.

is reason?

sqlite library written in c, accesses database file indeed hidden inside jni calls.


Comments

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -