Skip to content

[Bug]: Foreground service crash on Realme #128

@sameerasw

Description

@sameerasw

{
"device_info": {
"Manufacturer": "realme",
"Model": "RMX3521",
"Brand": "realme",
"Device": "RE54E2L1",
"Board": "bengal",
"Hardware": "qcom",
"AndroidVersion": "14",
"SDK": 34,
"SecurityPatch": "2025-03-01",
"AppVersionName": "10.0",
"AppVersionCode": 21
},
"logs": [],
"last_crash_log": "Crash Time: 2026-01-14 16:04:29.963\nThread: main\nException:
ForegroundServiceDidNotStartInTimeException\nMessage: Context.startForegroundService() did not then call Service.startForeground():
ServiceRecord{146c3f1 u0 com.sameerasw.essentials/.services.NotificationLightingService}\nStack
Trace:\nandroid.app.RemoteServiceException$ForegroundServiceDidNotStartInTimeException: Context.startForegroundService() did not
then call Service.startForeground(): ServiceRecord{146c3f1 u0 com.sameerasw.essentials/.services.NotificationLightingService}\n\tat
android.app.ActivityThread.generateForegroundServiceDidNotStartInTimeException(ActivityThread.java:2292)\n\tat
android.app.ActivityThread.throwRemoteServiceException(ActivityThread.java:2263)\n\tat android.app.ActivityThread.-
$$Nest$mthrowRemoteServiceException(Unknown Source:0)\n\tat
android.app.ActivityThread$H.handleMessage(ActivityThread.java:2561)\n\tat
android.os.Handler.dispatchMessage(Handler.java:106)\n\tat android.os.Looper.loopOnce(Looper.java:257)\n\tat
android.os.Looper.loop(Looper.java:368)\n\tat android.app.ActivityThread.main(ActivityThread.java:8839)\n\tat
java.lang.reflect.Method.invoke(Native Method)\n\tat
com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:572)\n\tat
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1049)\n\n\n--- Last Logs before crash ---\n",
"settings": {
"essentials_prefs": {
"flashlight_fade_enabled": {
"type": "Boolean",
"value": false
},
"button_remap_haptic_type": {
"type": "String",
"value": "DOUBLE"
},
"use_root": {
"type": "Boolean",
"value": false
},
"edge_lighting_ambient_show_lock_screen": {
"type": "Boolean",
"value": true
},
"edge_lighting_skip_silent": {
"type": "Boolean",
"value": false
},
"flashlight_pulse_enabled": {
"type": "Boolean",
"value": false
},
"button_remap_use_shizuku": {
"type": "Boolean",
"value": false
},
"button_remap_enabled": {
"type": "Boolean",
"value": true
},
"keyboard_bottom_padding": {
"type": "Float",
"value": 0
},
"keyboard_haptic_strength": {
"type": "Float",
"value": 1
},
"edge_lighting_glow_sides": {
"type": "String",
"value": "["BOTTOM","LEFT","TOP","RIGHT"]"
},
"keyboard_always_dark": {
"type": "Boolean",
"value": true
},
"edge_lighting_style": {
"type": "String",
"value": "STROKE"
},
"sound_mode_disabled": {
"type": "String",
"value": ""
},
"sound_mode_order": {
"type": "String",
"value": "Vibrate,Silent,Sound"
},
"keyboard_roundness": {
"type": "Float",
"value": 30
},
"flashlight_always_turn_off_enabled": {
"type": "Boolean",
"value": false
},
"app_lock_enabled": {
"type": "Boolean",
"value": true
},
"keyboard_functions_bottom": {
"type": "Boolean",
"value": false
},
"edge_lighting_pulse_duration": {
"type": "Float",
"value": 1482.65
},
"button_remap_vol_down_action_off": {
"type": "String",
"value": "Toggle mute"
},
"android.app.SharedPreferencesImpl$EditorImpl_is_added": {
"type": "Boolean",
"value": true
},
"edge_lighting_corner_radius": {
"type": "Float",
"value": 31.46
},
"edge_lighting_pulse_count": {
"type": "Float",
"value": 2
},
"button_remap_vol_up_action_on": {
"type": "String",
"value": "None"
},
"app_haptics_enabled": {
"type": "Boolean",
"value": true
},
"location_reached_radius": {
"type": "Int",
"value": 100
},
"keyboard_height": {
"type": "Float",
"value": 284.5614
},
"edge_lighting_stroke_thickness": {
"type": "Float",
"value": 5.6
},
"keyboard_shape": {
"type": "Int",
"value": 2
},
"check_pre_releases_enabled": {
"type": "Boolean",
"value": false
},
"pitch_black_theme_enabled": {
"type": "Boolean",
"value": true
},
"dynamic_night_light_enabled": {
"type": "Boolean",
"value": true
},
"flashlight_live_update_enabled": {
"type": "Boolean",
"value": false
},
"edge_lighting_custom_color": {
"type": "Int",
"value": -6688513
},
"maps_power_saving_enabled": {
"type": "Boolean",
"value": true
},
"flashlight_pulse_facedown_only": {
"type": "Boolean",
"type": "Boolean",
"value": false
},
"location_reached_lng": {
"type": "Long",
"value": 0
},
"location_reached_lat": {
"type": "Long",
"value": 0
},
"edge_lighting_enabled": {
"type": "Boolean",
"value": true
},
"edge_lighting_only_screen_off": {
"type": "Boolean",
"value": false
},
"button_remap_vol_down_action_on": {
"type": "String",
"value": "None"
},
"haptic_feedback_type": {
"type": "String",
"value": "NONE"
},
"default_tab": {
"type": "String",
"value": "ESSENTIALS"
},
"keyboard_pitch_black": {
"type": "Boolean",
"value": true
},
"freeze_lock_delay_index": {
"type": "Int",
"value": 0
},
"location_reached_enabled": {
"type": "Boolean",
"value": false
},
"keyboard_functions_padding": {
"type": "Float",
"value": 0
},
"freeze_when_locked_enabled": {
"type": "Boolean",
"value": false
},
"edge_lighting_ambient_display": {
"type": "Boolean",
"value": false
},
"edge_lighting_color_mode": {
"type": "String",
"value": "APP_SPECIFIC"
},
"button_remap_vol_up_action_off": {
"type": "String",
"value": "Toggle vibrate"
},
"last_update_check_time": {
"type": "Long",
"value": 1768504892613
},
"flashlight_adjust_intensity_enabled": {
"type": "Boolean",
"value": false
}
},
"caffeinate_prefs": {
"show_notification": {
"type": "Boolean",
"value": false
}
},
"link_prefs": {
"pinned_packages": {
"type": "StringSet",
"value": [
"com.android.chrome"
]
}
},
"diy_automations_prefs": {}
}
}

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions