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 violation #44

Open
alexandre-thauvin opened this issue Nov 7, 2024 · 2 comments
Open

StrictMode violation #44

alexandre-thauvin opened this issue Nov 7, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@alexandre-thauvin
Copy link

Describe the bug
Using version 11.1.1 of freeRASP making emulators get the ANR which has been fixed in version 11.1.3. This ANR was because of StrictMode violation.
Despite this ANR not happening anymore in version 11.1.3, the StrictMode violation still occurs (cf logs)

To Reproduce
Integrate freeRASP as normal integration

If you don't have the bug with a sample app I suggest to do some disk/file operations then you should have it

Expected behavior
No StrictMode violation

Screenshots
If applicable, add screenshots to help explain your problem.

Please complete the following information:

  • Device: Google Pixel 7A
  • OS version: Android 14 - API 34
  • Version of freeRASP: 11.1.3

Additional context
Logs:

D  StrictMode policy violation: android.os.strictmode.LeakedClosableViolation: A resource was acquired at attached stack trace but never released. See java.io.Closeable for information on avoiding resource leaks.
                                                                                                    	at android.os.StrictMode$AndroidCloseGuardReporter.report(StrictMode.java:2007)
                                                                                                    	at dalvik.system.CloseGuard.warnIfOpen(CloseGuard.java:336)
                                                                                                    	at java.io.FileInputStream.finalize(FileInputStream.java:662)
                                                                                                    	at java.lang.Daemons$FinalizerDaemon.doFinalize(Daemons.java:370)
                                                                                                    	at java.lang.Daemons$FinalizerDaemon.processReference(Daemons.java:350)
                                                                                                    	at java.lang.Daemons$FinalizerDaemon.runInternal(Daemons.java:322)
                                                                                                    	at java.lang.Daemons$Daemon.run(Daemons.java:131)
                                                                                                    	at java.lang.Thread.run(Thread.java:1012)
                                                                                                    Caused by: java.lang.Throwable: Explicit termination method 'close' not called
                                                                                                    	at dalvik.system.CloseGuard.openWithCallSite(CloseGuard.java:288)
                                                                                                    	at dalvik.system.CloseGuard.open(CloseGuard.java:257)
                                                                                                    	at java.io.FileInputStream.<init>(FileInputStream.java:195)
                                                                                                    	at java.util.Scanner.<init>(Scanner.java:645)
                                                                                                    	at com.fingerprintjs.android.fingerprint.info_providers.CpuInfoProviderImpl.getCpuInfo(CpuInfoProvider.kt:63)
                                                                                                    	at com.fingerprintjs.android.fingerprint.info_providers.CpuInfoProviderImpl.access$getCpuInfo(CpuInfoProvider.kt:33)
                                                                                                    	at com.fingerprintjs.android.fingerprint.info_providers.CpuInfoProviderImpl$cpuInfo$1.invoke(CpuInfoProvider.kt:36)
                                                                                                    	at com.fingerprintjs.android.fingerprint.info_providers.CpuInfoProviderImpl$cpuInfo$1.invoke(CpuInfoProvider.kt:36)
                                                                                                    	at com.fingerprintjs.android.fingerprint.tools.ExceptionSafeExecutorKt.executeSafe(ExceptionSafeExecutor.kt:9)
                                                                                                    	at com.fingerprintjs.android.fingerprint.info_providers.CpuInfoProviderImpl.cpuInfo(CpuInfoProvider.kt:36)
                                                                                                    	at com.fingerprintjs.android.fingerprint.fingerprinting_signals.FingerprintingSignalsProvider$procCpuInfoSignal$2.invoke(FingerprintingSignalsProvider.kt:146)
                                                                                                    	at com.fingerprintjs.android.fingerprint.fingerprinting_signals.FingerprintingSignalsProvider$procCpuInfoSignal$2.invoke(FingerprintingSignalsProvider.kt:145)
                                                                                                    	at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74)
                                                                                                    	at com.fingerprintjs.android.fingerprint.fingerprinting_signals.FingerprintingSignalsProvider.getProcCpuInfoSignal(FingerprintingSignalsProvider.kt:145)
                                                                                                    	at com.aheaditec.talsec.security.r0.b(SourceFile:8)
                                                                                                    	at com.aheaditec.talsec.security.r0.a(SourceFile:27)
                                                                                                    	at com.aheaditec.talsec.security.r0$$ExternalSyntheticLambda0.run(D8$$SyntheticClass:0)
@alexandre-thauvin alexandre-thauvin added the bug Something isn't working label Nov 7, 2024
@msikyna
Copy link
Member

msikyna commented Nov 8, 2024

Hello @alexandre-thauvin ,
thank you for reporting the issue. We will look at it.

Kind regards,
Talsec team

@SirionRazzer
Copy link
Member

SirionRazzer commented Nov 18, 2024

Hi @alexandre-thauvin ,
We found out this originated in the fingerprintjs code and reported it to creators. fingerprintjs/fingerprintjs-android#118
Best regards,
Tomas

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants