Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

StrictMode policy violation; ~duration=102 ms: android.os.strictmode.DiskReadViolation #669

Open
HGaurav328 opened this issue Sep 20, 2024 · 2 comments

Comments

@HGaurav328
Copy link

StrictMode policy violation; ~duration=102 ms: android.os.strictmode.DiskReadViolation (Ask Gemini)
at android.os.StrictMode$AndroidBlockGuardPolicy.onReadFromDisk(StrictMode.java:1666)
at libcore.io.BlockGuardOs.access(BlockGuardOs.java:74)
at libcore.io.ForwardingOs.access(ForwardingOs.java:128)
at android.app.ActivityThread$AndroidOs.access(ActivityThread.java:8054)
at java.io.UnixFileSystem.checkAccess(UnixFileSystem.java:332)
at java.io.File.exists(File.java:829)
at android.app.ContextImpl.getDataDir(ContextImpl.java:3196)
at android.app.ContextImpl.getDir(ContextImpl.java:3215)
at android.content.ContextWrapper.getDir(ContextWrapper.java:351)
at com.clevertap.android.sdk.inapp.images.FileResourceProvider.(FileResourceProvider.kt:57)
at com.clevertap.android.sdk.inapp.images.repo.FileResourcesRepoFactory$Companion.createFileResourcesRepo(FileResourcesRepoFactory.kt:45)
at com.clevertap.android.sdk.inapp.images.repo.FileResourcesRepoFactory.createFileResourcesRepo(Unknown Source:2)
at com.clevertap.android.sdk.CleverTapFactory.getCoreState(CleverTapFactory.java:178)
at com.clevertap.android.sdk.CleverTapAPI.(CleverTapAPI.java:1164)
at com.clevertap.android.sdk.CleverTapAPI.instanceWithConfig(CleverTapAPI.java:886)
at com.clevertap.android.sdk.CleverTapAPI.getDefaultInstance(CleverTapAPI.java:751)
at com.clevertap.android.sdk.CleverTapAPI.getDefaultInstance(CleverTapAPI.java:766)
at com.clevertap.android.sdk.CleverTapAPI.getDefaultInstanceOrFirstOther(CleverTapAPI.java:3063)
at com.clevertap.android.sdk.CleverTapAPI.createNotificationChannel(CleverTapAPI.java:315)
at com.viewlift.hoichoi.datasource.startup.CleverTapInitializer.initializeCleverTap(CleverTapInitializer.kt:27)
at com.viewlift.hoichoi.datasource.startup.CleverTapInitializer.create(CleverTapInitializer.kt:15)
at com.viewlift.hoichoi.datasource.startup.CleverTapInitializer.create(CleverTapInitializer.kt:11)
at androidx.startup.AppInitializer.doInitialize(AppInitializer.java:180)
at androidx.startup.AppInitializer.doInitialize(AppInitializer.java:138)
at androidx.startup.AppInitializer.initializeComponent(AppInitializer.java:117)
at com.viewlift.hoichoi.HoichoiApplication.onAppInitializer(HoichoiApplication.kt:72)
at com.viewlift.hoichoi.HoichoiApplication.onCreate(HoichoiApplication.kt:64)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1316)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6998)
at android.app.ActivityThread.-$$Nest$mhandleBindApplication(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2236)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:205)
at android.os.Looper.loop(Looper.java:294)
at android.app.ActivityThread.main(ActivityThread.java:8177)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:552)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:971)

@HGaurav328
Copy link
Author

CleverTap version: com.clevertap.android:clevertap-android-sdk:7.0.1

@CTLalit
Copy link
Collaborator

CTLalit commented Sep 23, 2024

We have recorded this as a part of our internal testing as well. Since this violation is related to just accessing file (rather just a directory reference) we will be solving this as it gets prioritised in roadmap and mention it in release notes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants