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
Post a Comment