Skip to content

Intent #1853

Closed
Closed
@rapidocuento

Description

@rapidocuento

Is there an existing issue for this?

  • I have searched the existing issues

Is there a StackOverflow question about this issue?

  • I have searched StackOverflow

What happened?

A bug happened!

Relevant logcat output

2025-02-13 16:52:46.443 12707-12707 AndroidRuntime pid-12707 E FATAL EXCEPTION: main (Ask Gemini)
Process: com.google.samples.apps.nowinandroid.demo.debug, PID: 12707
java.lang.RuntimeException: StrictMode ThreadPolicy violation
at android.os.StrictMode$AndroidBlockGuardPolicy.onThreadPolicyViolation(StrictMode.java:1883)
at android.os.StrictMode$AndroidBlockGuardPolicy.lambda$handleViolationWithTimingAttempt$0(StrictMode.java:1797)
at android.os.StrictMode$AndroidBlockGuardPolicy.$r8$lambda$AF9hglpXLeeg2_1ZxHCfZb2exEY(Unknown Source:0)
at android.os.StrictMode$AndroidBlockGuardPolicy$$ExternalSyntheticLambda1.run(Unknown Source:6)
at android.os.Handler.handleCallback(Handler.java:958)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:224)
at android.os.Looper.loop(Looper.java:318)
at android.app.ActivityThread.main(ActivityThread.java:8847)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:561)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1013)
Caused by: android.os.strictmode.DiskReadViolation
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:8714)
at java.io.UnixFileSystem.checkAccess(UnixFileSystem.java:313)
at java.io.File.exists(File.java:813)
at android.app.ContextImpl.ensurePrivateDirExists(ContextImpl.java:801)
at android.app.ContextImpl.ensurePrivateDirExists(ContextImpl.java:792)
at android.app.ContextImpl.getPreferencesDir(ContextImpl.java:748)
at android.app.ContextImpl.getSharedPreferencesPath(ContextImpl.java:973)
at android.app.ContextImpl.getSharedPreferences(ContextImpl.java:594)
at android.content.ContextWrapper.getSharedPreferences(ContextWrapper.java:232)
at com.google.firebase.remoteconfig.RemoteConfigComponent.getMetadataClient(RemoteConfigComponent.java:313)
at com.google.firebase.remoteconfig.RemoteConfigComponent.get(RemoteConfigComponent.java:169)
at com.google.firebase.perf.config.RemoteConfigManager.isFirebaseRemoteConfigAvailable(RemoteConfigManager.java:401)
at com.google.firebase.perf.config.RemoteConfigManager.triggerRemoteConfigFetchIfNecessary(RemoteConfigManager.java:337)
at com.google.firebase.perf.config.RemoteConfigManager.getRemoteConfigValue(RemoteConfigManager.java:301)
at com.google.firebase.perf.config.RemoteConfigManager.getBoolean(RemoteConfigManager.java:213)
at com.google.firebase.perf.config.ConfigResolver.getRemoteConfigBoolean(ConfigResolver.java:867)
at com.google.firebase.perf.config.ConfigResolver.getIsExperimentTTIDEnabled(ConfigResolver.java:826)
at com.google.firebase.perf.metrics.AppStartTrace.onActivityResumed(AppStartTrace.java:355)
at android.app.Application.dispatchActivityResumed(Application.java:453)
at android.app.Activity.dispatchActivityResumed(Activity.java:1591)
at android.app.Activity.onResume(Activity.java:2194)
at com.google.samples.apps.nowinandroid.MainActivity.onResume(MainActivity.kt:160)
at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1618)
at android.app.Activity.performResume(Activity.java:9057)
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:5251)
at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:5294)
at android.app.servertransaction.ResumeActivityItem.execute(ResumeActivityItem.java:57)
at android.app.servertransaction.ActivityTransactionItem.execute(ActivityTransactionItem.java:45)
at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:190)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:101)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2620)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:224) 
at android.os.Looper.loop(Looper.java:318) 
at android.app.ActivityThread.main(ActivityThread.java:8847) 
at java.lang.reflect.Method.invoke(Native Method) 
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:561) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1013) 
2025-02-13 16:52:48.884 10661-10909 AppPredict com.miui.securitycenter.remote E click app not fount, pkgName is com.google.samples.apps.nowinandroid.demo.debug
2025-02-13 16:52:49.501 4972-5424 JavaExceptionHandler com.miui.daemon E Process: com.google.samples.apps.nowinandroid.demo.debug, PID: 12707 (Ask Gemini)
java.lang.RuntimeException: StrictMode ThreadPolicy violation
at android.os.StrictMode$AndroidBlockGuardPolicy.onThreadPolicyViolation(StrictMode.java:1883)
at android.os.StrictMode$AndroidBlockGuardPolicy.lambda$handleViolationWithTimingAttempt$0(StrictMode.java:1797)
at android.os.StrictMode$AndroidBlockGuardPolicy.$r8$lambda$AF9hglpXLeeg2_1ZxHCfZb2exEY(Unknown Source:0)
at android.os.StrictMode$AndroidBlockGuardPolicy$$ExternalSyntheticLambda1.run(Unknown Source:6)
at android.os.Handler.handleCallback(Handler.java:958)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:224)
at android.os.Looper.loop(Looper.java:318)
at android.app.ActivityThread.main(ActivityThread.java:8847)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:561)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1013)
Caused by: android.os.strictmode.DiskReadViolation
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:8714)
at java.io.UnixFileSystem.checkAccess(UnixFileSystem.java:313)
at java.io.File.exists(File.java:813)
at android.app.ContextImpl.ensurePrivateDirExists(ContextImpl.java:801)
at android.app.ContextImpl.ensurePrivateDirExists(ContextImpl.java:792)
at android.app.ContextImpl.getPreferencesDir(ContextImpl.java:748)
at android.app.ContextImpl.getSharedPreferencesPath(ContextImpl.java:973)
at android.app.ContextImpl.getSharedPreferences(ContextImpl.java:594)
at android.content.ContextWrapper.getSharedPreferences(ContextWrapper.java:232)
at com.google.firebase.remoteconfig.RemoteConfigComponent.getMetadataClient(RemoteConfigComponent.java:313)
at com.google.firebase.remoteconfig.RemoteConfigComponent.get(RemoteConfigComponent.java:169)
at com.google.firebase.perf.config.RemoteConfigManager.isFirebaseRemoteConfigAvailable(RemoteConfigManager.java:401)
at com.google.firebase.perf.config.RemoteConfigManager.triggerRemoteConfigFetchIfNecessary(RemoteConfigManager.java:337)
at com.google.firebase.perf.config.RemoteConfigManager.getRemoteConfigValue(RemoteConfigManager.java:301)
at com.google.firebase.perf.config.RemoteConfigManager.getBoolean(RemoteConfigManager.java:213)
at com.google.firebase.perf.config.ConfigResolver.getRemoteConfigBoolean(ConfigResolver.java:867)
at com.google.firebase.perf.config.ConfigResolver.getIsExperimentTTIDEnabled(ConfigResolver.java:826)
at com.google.firebase.perf.metrics.AppStartTrace.onActivityResumed(AppStartTrace.java:355)
at android.app.Application.dispatchActivityResumed(Application.java:453)
at android.app.Activity.dispatchActivityResumed(Activity.java:1591)
at android.app.Activity.onResume(Activity.java:2194)
at com.google.samples.apps.nowinandroid.MainActivity.onResume(MainActivity.kt:160)
at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1618)
at android.app.Activity.performResume(Activity.java:9057)
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:5251)
at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:5294)
at android.app.servertransaction.ResumeActivityItem.execute(ResumeActivityItem.java:57)
at android.app.servertransaction.ActivityTransactionItem.execute(ActivityTransactionItem.java:45)
at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:190)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:101)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2620)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:224) 
at android.os.Looper.loop(Looper.java:318) 
at android.app.ActivityThread.main(ActivityThread.java:8847) 
at java.lang.reflect.Method.invoke(Native Method) 
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:561) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1013)

Code of Conduct

  • I agree to follow this project's Code of Conduct

Google Open Source Community Guidelines

At Google, we recognize and celebrate the creativity and collaboration of open
source contributors and the diversity of skills, experiences, cultures, and
opinions they bring to the projects and communities they participate in.

Every one of Google's open source projects and communities are inclusive
environments, based on treating all individuals respectfully, regardless of
gender identity and expression, sexual orientation, disabilities,
neurodiversity, physical appearance, body size, ethnicity, nationality, race,
age, religion, or similar personal characteristic.

We value diverse opinions, but we value respectful behavior more.

Respectful behavior includes:

  • Being considerate, kind, constructive, and helpful.
  • Not engaging in demeaning, discriminatory, harassing, hateful, sexualized, or
    physically threatening behavior, speech, and imagery.
  • Not engaging in unwanted physical contact.

Some Google open source projects may adopt an explicit project code of
conduct, which may have additional detailed expectations for participants. Most
of those projects will use our modified Contributor Covenant.

Resolve peacefully

We do not believe that all conflict is necessarily bad; healthy debate and
disagreement often yields positive results. However, it is never okay to be
disrespectful.

If you see someone behaving disrespectfully, you are encouraged to address the
behavior directly with those involved. Many issues can be resolved quickly and
easily, and this gives people more control over the outcome of their dispute.
If you are unable to resolve the matter for any reason, or if the behavior is
threatening or harassing, report it. We are dedicated to providing an
environment where participants feel welcome and safe.

Reporting problems

Some Google open source projects may adopt a project-specific code of conduct.
In those cases, a Google employee will be identified as the Project Steward,
who will receive and handle reports of code of conduct violations. In the event
that a project hasn’t identified a Project Steward, you can report problems by
emailing opensource@google.com.

We will investigate every complaint, but you may not receive a direct response.
We will use our discretion in determining when and how to follow up on reported
incidents, which may range from not taking action to permanent expulsion from
the project and project-sponsored spaces. We will notify the accused of the
report and provide them an opportunity to discuss it before any action is
taken. The identity of the reporter will be omitted from the details of the
report supplied to the accused. In potentially harmful situations, such as
ongoing harassment or threats to anyone's safety, we may take action without
notice.

This document was adapted from the IndieWeb Code of Conduct and can also
be found at https://opensource.google/conduct/.

Originally posted by @rapidocuento in #1825

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions